joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100017c1
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push edi
push 0x14
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x1000185c
push str.jvm.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x100017f3
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor eax, eax
jmp 0x1000185e
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.JVM_DTraceGetVersion
push ebx
call esi
push str.JVM_DTraceIsSupported
push ebx
mov dword [edi], eax
call esi
push str.JVM_DTraceActivate
push ebx
mov dword [edi + 4], eax
call esi
push str.JVM_DTraceDispose
push ebx
mov dword [edi + 8], eax
call esi
push str.JVM_DTraceIsProbeEnabled
push ebx
mov dword [edi + 0xc], eax
call esi
push ebx
mov dword [edi + 0x10], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
xor esi, esi
cmp dword [edi], esi
je 0x10001851
cmp dword [edi + 4], esi
je 0x10001851
cmp dword [edi + 8], esi
je 0x10001851
cmp dword [edi + 0xc], esi
je 0x10001851
cmp dword [edi + 0x10], esi
jne 0x1000185b
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov edi, esi
pop esi
mov eax, edi
pop edi
pop ebx
ret

Function at 0x100022cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x100022de
pop dword [ebp - 0x4c]
mov eax, 0x1459bc15
add eax, 0xfba666c9
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x9c4aff2e
sub dword [ebp - 0x5c], 0x4df8b9e3
mov dword [ebp - 0x58], 0xc0202e49
sub dword [ebp - 0x58], 0x8dece204
mov dword [ebp - 0x54], 0x24a4678e
sub dword [ebp - 0x54], 0xd8582360
mov dword [ebp - 0x50], 0x890be181
sub dword [ebp - 0x50], 0x890be181
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xa9b4f3ee
add dword [ebp - 0x5c], 0xcabd7568
mov dword [ebp - 0x58], 0x9e7440ac
add dword [ebp - 0x58], 0xa2f820c9
mov dword [ebp - 0x54], 0xc26ad4b
sub dword [ebp - 0x54], 0xa8b740df
mov dword [ebp - 0x50], 0xd8ad6ce
add dword [ebp - 0x50], 0xf2752932
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xd455e6f9
sub eax, 0xc455b6f1
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3219e
push 0
call eax
mov ecx, 0xf76c11d8
sub ecx, 0xf76bdb63
mov esi, eax
mov edx, 0x9da6f12f
add edx, 0x725970d1
add edx, dword [ebp - 0x4c]
mov edi, 0xcc52c489
sub edi, 0xbd272292
mov dword [ebp - 0x40], 0x6fb05c65
mov ebx, dword [edx]
add dword [ebp - 0x38], edx
add ebx, edi
xor dword [ebp - 4], edi
mov dword [esi], ebx
add esi, 0x7965c7e7
sub esi, 0x7965c7e3
add edx, 4
loop 0x100023fb
add eax, 0xcca7
mov ebx, eax
add eax, 0x4578bc87
sub eax, 0x4578bc82
mov ecx, 0x10000000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x4166f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edx, dword [0x18210a4]
test edx, edx
je 0x416718
and ax, 0x3ff
cmp ax, 4
jne 0x418b1a
xor eax, eax
leave
ret
nop
nop
nop
nop
nop
nop
nop
nop
add eax, esp
add byte [ebx + ecx*4], al
or byte [esi], al
sbb al, 0
add eax, 0x50000000
or byte [ecx], cl
pop es
sub al, byte [0x80e5102]
mov ah, 0xf
pop es
add byte [eax], al
add byte [ebx + 0x102040c], al
add byte [edi], cl
test byte [edi], al
add bh, bh
invalid
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x181ffb0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.01820010

Function at 0x1820010
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x1823420]
test eax, eax
jle 0x1820113
mov edx, dword [0x1823424]
xor ebx, ebx
mov ecx, dword [edx + 4]
cmp ecx, esi
ja 0x1820041
mov edi, dword [edx + 8]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x18200b6
add ebx, 1
add edx, 0xc
cmp ebx, eax
jne 0x1820030
mov dword [esp], esi
call fcn.018208f0
test eax, eax
mov edi, eax
je 0x182013a
lea esi, [ebx + ebx*2]
mov ebx, dword [0x1823424]
shl esi, 2
add ebx, esi
mov dword [ebx + 8], eax
mov dword [ebx], 0
call fcn.018209e0
add eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x1823424]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x182011a
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x18200c0
add dword [0x1823420], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x18200af
cmp eax, 0x80
je 0x18200af
cmp eax, 8
je 0x18200af
mov eax, dword [ebp - 0x28]
add esi, dword [0x1823424]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x18200af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0181ffb0
xor ebx, ebx
jmp 0x182004b
mov eax, dword [0x1823424]
mov eax, dword [eax + esi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0181ffb0
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0181ffb0
lea esi, [esi]
Function at 0x1820810
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x1820848
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x182083e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x182084a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1820830
xor eax, eax
pop ebx
pop esi
ret
Function at 0x402b40
Capabilities:
Create pipe
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x848
mov eax, dword [0x416004]
xor eax, esp
mov dword [esp + 0x844], eax
push esi
push edi
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0xc
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x30], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x30], 0
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x402be7
mov eax, dword [esp + 0x10]
push 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push 1
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
lea eax, [esp + 0x14]
push eax
call fcn.00401170
add esp, 4
test al, al
jne 0x402c02
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402bdc
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402be7
push eax
call esi
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x844]
xor ecx, esp
call fcn.00402e4d
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [esp + 0x14]
xor esi, esi
nop dword [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x402c7c
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x402c6f
mov eax, 0x7ff
lea edx, [esp + 0x10]
sub eax, esi
cmp eax, ecx
push 0
cmovb ecx, eax
lea eax, [esp + 0x4c]
push edx
push ecx
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402c7c
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x402c7c
test eax, eax
je 0x402c6f
add esi, eax
jmp 0x402c10
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402c10
lea eax, [esp + 0x48]
add eax, esi
test esi, esi
je 0x402d23
cmp esi, 0x800
jae 0x402d58
xorps xmm0, xmm0
mov byte [eax], 0
lea ecx, [esp + 0x48]
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x30], 0
lea edx, [ecx + 1]
mov dword [esp + 0x34], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402cb8
sub ecx, edx
lea eax, [esp + 0x48]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00402900
push ecx
lea edx, [esp + 0x24]
call fcn.004022f0
mov ecx, dword [esp + 0x38]
add esp, 4
cmp ecx, 0x10
jb 0x402d0f
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402d05
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402d53
push ecx
push edx
call fcn.00402e8b
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x402bdc
push edi
jmp 0x402bda
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x402d30
push edi
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402d3b
push eax
call esi
mov ecx, dword [esp + 0x84c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00402e4d
mov esp, ebp
pop ebp
ret 0x10
call fcn.00406162
call fcn.00402fde
int3
Function at 0x4037fe
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40383d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40383d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40383d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40383d
cmp dword [ecx + 0x74], 0xe
jbe 0x40383d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40820e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x416004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x408259
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040842f
test al, al
jne 0x408253
sub edx, 2
cmp edx, edi
jne 0x408239
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40827b
lea eax, [edi + 2]
cmp edx, eax
je 0x40827b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040815a
add esp, 0x10
jmp 0x408375
push esi
lea ecx, [ebp - 0x255]
call fcn.0040842f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4082be
push dword [ebp - 0x25c]
jmp 0x40826b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4082fb
cmp word [ebp - 0x226], 0
je 0x40831c
cmp word [ebp - 0x226], ax
jne 0x4082fb
cmp word [ebp - 0x224], 0
je 0x40831c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040815a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x408368
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4082d5
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x408350
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x408375
push 0x407f8a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040adb0
add esp, 0x10
jmp 0x408345
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402e4d
leave
ret

Function at 0x409d0f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410fbc
push 0x410fb4
push str.FlsAlloc
push 0x1e
call fcn.00409c4c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409d43
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f134]
call esi
jmp 0x409d49
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x409d8d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410fcc
push 0x410fc4
push str.FlsGetValue
push 0x20
call fcn.00409c4c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409dc4
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40eaa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40eacd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40eacd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4c6110
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x97000]
push edi
jmp 0x4c612a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c6131
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6120
mov eax, 1
add ebx, ebx
jne 0x4c6143
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c6154
jne 0x4c6173
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6173
dec eax
add ebx, ebx
jne 0x4c6160
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c6138
add ebx, ebx
jne 0x4c616f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c61c5
xor ecx, ecx
sub eax, 3
jb 0x4c618b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c61fa
sar eax, 1
mov ebp, eax
jmp 0x4c6196
add ebx, ebx
jne 0x4c6196
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6164
inc ecx
add ebx, ebx
jne 0x4c61a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6164
add ebx, ebx
jne 0x4c61b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c61a6
jne 0x4c61c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c61a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c61e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c61d6
jmp 0x4c6126
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c61e4
add edi, ecx
jmp 0x4c6126
pop esi
mov edi, esi
mov ecx, 0x18c4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c6202
cmp byte [edi], 0xc
jne 0x4c6202
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4c6207
lea edi, [esi + 0xc1000]
mov eax, dword [edi]
or eax, eax
je 0x4c627f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10d8a8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10d9d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c6234
mov ecx, edi
jns 0x4c6263
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10d9d8]
or eax, eax
je 0x4c6279
mov dword [ebx], eax
add ebx, 4
jmp 0x4c6251
call dword [esi + 0x10d9e8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4c62b0
cmp al, 0xef
ja 0x4c62a3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4c6285
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4c6292
mov ebp, dword [esi + 0x10d9dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4c62e4
sub esp, 0xffffff80
jmp 0x429ab4
Function at 0x402fd0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x476008], 0x8088405
inc edx
mov dword [ebx + 0x476008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403748
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x476024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4037c0
xor eax, eax
push ebp
push 0x4037b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4037fc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4037c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x476024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x476024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4045ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50a048], 0
je 0x40464d
cmp word [0x50a21c], 0xd7b2
jne 0x404615
cmp dword [0x50a224], 0
jbe 0x404615
mov eax, 0x50a218
call dword [0x50a234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404674
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x476030], 0
jne 0x404669
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4082d8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408368
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408368
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40831b
test edx, 3
jne 0x40830a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408315
jmp 0x40831b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40831b
cmp dword [ecx - 8], 1
je 0x408325
mov edx, ebx
or edx, 3
call fcn.00404eb8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408337
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040476c

Function at 0x408374
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408404
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408404
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4083b7
test edx, 3
jne 0x4083a6
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4083b1
jmp 0x4083b7
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4083b7
cmp dword [ecx - 8], 1
je 0x4083c1
mov edx, ebx
or edx, 3
call fcn.00404eb8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4083d3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040476c

Function at 0x40b818
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b851
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040485c
jmp 0x40b85a
mov eax, ebx
mov edx, esi
call fcn.004047c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b864
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b886
movzx eax, byte [esp]
jmp 0x40b888
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bf18
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bd90
mov eax, dword [0x509b18]
cmp byte [eax], 0
je 0x40bf94
mov eax, dword [0x5098f8]
call fcn.004030d4
call fcn.00402e10
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408fb0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bfdc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bfca
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x50989c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x50c7f4]
call fcn.00405988
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c828
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c8fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404804
lea eax, [ebp - 4]
call fcn.00404c80
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c30
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c8e8
mov eax, ebx
call fcn.00402cb4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c8e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c30
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c8cb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c910
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c8cb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c8e8
mov eax, dword [ebp - 0x10]
call fcn.00402cd0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c905
lea eax, [ebp - 4]
call fcn.0040476c
ret