joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40972e
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov eax, edx
mov ebp, esp
push edi
mov edi, ecx
xor ecx, ecx
push esi
push ebx
mov ebx, 4
sub esp, 8
mov dword [ebp - 0x10], edx
cdq
idiv ebx
mov bl, byte [0x43f718]
mov byte [ebp - 0x11], bl
xor ebx, ebx
shl eax, 2
cmp eax, ebx
jg 0x40976b
mov eax, dword [ebp - 0x10]
mov esi, 4
add ebx, edi
cdq
idiv esi
xor eax, eax
jmp 0x4097a0
mov edx, dword [edi + ebx]
add ebx, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
cmp byte [ebp - 0x11], 0
jne 0x4097e5
imul edx, edx, 0x1b873593
xor edx, ecx
rol edx, 0xd
lea edx, [edx + edx*4]
lea ecx, [edx - 0x19ab949c]
jmp 0x409756
dec edx
shl eax, 8
movzx esi, byte [ebx + edx]
or eax, esi
test edx, edx
jg 0x409796
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
mov edx, eax
xor eax, eax
cmp byte [ebp - 0x11], 0
jne 0x4097e7
imul eax, edx, 0x1b873593
xor ecx, dword [ebp - 0x10]
xor ecx, eax
mov eax, ecx
shr eax, 0x10
xor ecx, eax
imul ecx, ecx, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr edx, 0x10
xor eax, edx
jmp 0x4097e7
xor eax, eax
pop edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41db42
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x2c
mov esi, dword [fcn.0042b8f0]
mov dword [esp], 1
call esi
mov ebx, eax
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
lea eax, [edi + 4]
jne 0x41db74
mov eax, 0x437c91
mov dword [esp + 8], eax
mov dword [esp + 4], 0x437c60
mov dword [esp], ebx
call fcn.0041d50d
mov edx, eax
cmp edx, dword [ebp - 0x1c]
jge 0x41dbd9
cmp byte [edi + edx + 4], 0
jne 0x41dbb3
mov dword [esp + 4], ebx
mov dword [esp], 0
mov dword [ebp - 0x20], edx
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x41dbd9
mov edx, dword [ebp - 0x20]
inc edx
jmp 0x41db8a
lea eax, [edi + edx + 4]
mov dword [esp + 4], 0x437c60
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [ebp - 0x20], edx
call fcn.0041d50d
test eax, eax
jle 0x41dbd9
mov edx, dword [ebp - 0x20]
add edx, eax
jmp 0x41db8a
cmp byte [0x43f718], 0
jne 0x41dc1c
mov dword [esp], 1
call esi
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x437c92
call sub.msvcrt.dll_fwrite
mov dword [esp], 1
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x421a90
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0042b8f0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0042b8f0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x421af0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x43fb74]
test esi, esi
jle 0x421c10
mov eax, dword [0x43fb78]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x421b24
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x421ba7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x421b10
mov dword [esp], ebx
call fcn.00422470
mov edi, eax
test eax, eax
je 0x421c37
mov eax, dword [0x43fb78]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004225b0
mov edx, dword [0x43fb78]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x421c17
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x421ba0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x421bb0
add dword [0x43fb74], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x43fb78]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x421ba0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00421a90
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x421b2e
mov eax, dword [0x43fb78]
mov eax, dword [eax + ebx + 0xc]
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.00421a90
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00421a90
lea esi, [esi]
nop
Function at 0x4220f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x43fb90
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x43fb88]
sub esp, 4
test ebx, ebx
je 0x422145
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x42213e
test esi, esi
je 0x42213e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x422120
mov dword [esp], 0x43fb90
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x422470
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x422495
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4224a0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x422495
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4224e8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4224de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4224ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4224d0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x79d938
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x79d93e
pop ebp
sub ebp, 6
sub ebp, 0x39d938
jmp 0x79d99c
jmp 0x79d9a5
mov eax, 0x39d938
cmp dword [eax], eax
add eax, ebp
add eax, 0x93
mov ecx, 0x63d
mov edx, 0x49f76199
xor byte [eax], dl
inc eax
dec ecx
jne 0x79d9bc
jmp 0x79d9cf
add byte [eax], al
add byte [0xf3fbc516], bl
fyl2x
fyl2x
cdq
mov dword [ecx + 0x5599f199], ebx
mov ch, 0x99
sbb byte [ecx + 0x38], ch
imul dword [edi + 0x18]
imul edi, dword [eax], 0xaae76cf7
stosb byte es:[edi], al
pop ecx
leave
or al, 0x5d
cmp dword [ecx + 0x5412c999], ebp
adc dl, byte [eax]
movsd dword es:[edi], dword [esi]
cdq
cdq
cdq
sbb byte [eax + 0x61], bl
cdq
cdq
cdq
lcall 0x9999, 0x999d2154
and esi, dword [ecx + 0x6e999999]
jnp 0x79d9a8
push ecx
adc bl, byte [eax]
xchg ebp, eax
cdq
cdq
cdq
lcall 0x90af, 0x22f1c95c
cdq
int1
loop 0x79da5b
test eax, 0xbdb59899
int1
cdq
cdq
cdq
cdq
jno 0x79d9c8
cdq
cdq
cdq
jo 0x79d9e2
cdq
cdq
cdq
int3
jo 0x79d9e7
test al, 0x9b
sbb bl, byte [ebx - 0x63]
rcl byte [esi + 0x66666d1c]
les bx, [ebx - 0x6b]
cdq
adc dl, byte [0x99999dbd]
cdq
int1
and ch, byte [edi - 0x1d0e6670]
cmp ebp, dword [ecx - 0x424a6767]
enter 0xffffffffffff9c71, 0xffffffffffffff99
cdq
cdq
jo 0x79da4a
wait
cdq
cdq
int3
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
mov edi, dword [esp + 0x21c]
lea eax, [esp + 0x10c]
push eax
push 0x104
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10c]
push ecx
lea edx, [esp + 0xc]
push 0x104
push edx
call dword [sym.imp.MSVCR90.dll_strcpy_s]
push str.PreUpdate.log
lea eax, [esp + 0x18]
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll_strcat_s]
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
push 0x404144
lea ecx, [esp + 0x28]
push ecx
push 0x44f370
call dword [sym.imp.MSVCR90.dll_freopen_s]
mov edx, dword [esp + 0x240]
push edi
push edx
call fcn.004010f0
add esp, 0x30
test al, al
je 0x4010ae
call fcn.004012d0
test al, al
je 0x4010b3
call fcn.00401580
test al, al
je 0x4010ae
call fcn.004017f0
test al, al
jne 0x4010b3
mov esi, 1
call fcn.00401cf0
mov eax, dword [0x44f370]
push eax
call dword [sym.imp.MSVCR90.dll_fflush]
mov ecx, dword [0x44f370]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
mov ecx, dword [esp + 0x218]
add esp, 8
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00403178
add esp, 0x20c
ret
Function at 0x401cf0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x310
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x30c], eax
push esi
push edi
lea eax, [esp + 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.MSVCR90.dll_strcpy_s]
lea ecx, [esp + 0x10c]
push ecx
lea edx, [esp + 0xc]
push 0x104
push edx
call esi
mov edi, dword [sym.imp.MSVCR90.dll_strcat_s]
push str.plink.exe
lea eax, [esp + 0x18]
push 0x104
push eax
call edi
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x22c]
push 0x104
push edx
call esi
push str.cleanscript.txt
lea eax, [esp + 0x238]
push 0x104
push eax
call edi
mov esi, dword [sym.imp.MSVCR90.dll_remove]
lea ecx, [esp + 0x38]
push ecx
call esi
lea edx, [esp + 0x244]
push edx
call esi
mov ecx, dword [esp + 0x34c]
add esp, 0x38
pop edi
pop esi
xor ecx, esp
call fcn.00403178
add esp, 0x310
ret

Function at 0x403178
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x403182
repz ret
jmp fcn.00403433

Function at 0x401550
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x124]
sub esp, 0x144
mov dword [ebp - 0x124], 0xa
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x116]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], eax
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
movsx ebx, byte [ebp - 0x116]
lea eax, [ebp - 0x120]
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
sub ebx, 0x41
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4015c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.00401550
mov dword [esp], 0x40169c
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x4020fe
sub eax, 0x40169c
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401665
mov dword [esp], ebx
lea esi, [ebp - 0x88]
call fcn.00401463
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.004014c4
mov cl, bl
mov dword [esp + 8], esi
lea eax, [ebx + 0x1b800]
sar eax, cl
mov ecx, 0x40300c
shl ebx, cl
mov dword [esp + 4], eax
add ebx, ecx
mov dword [esp], ebx
call fcn.00401e01
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x402fac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x461020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403044
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403024
xor eax, eax
push ebp
push 0x40301d
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 0x403060
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 0x403024
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x461020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x461020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d10
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46304c], 0
je 0x403d71
cmp word [0x463220], 0xd7b2
jne 0x403d39
cmp dword [0x463228], 0
jbe 0x403d39
mov eax, 0x46321c
call dword [0x463238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46106c
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 0x403d98
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x461030], 0
jne 0x403d8d
push 0
push 0x461064
push 0x46106c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405c98
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405cfe
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004040fc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b70
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405ce8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d05
lea eax, [ebp - 0x10]
call fcn.00403e8c
ret

Function at 0x40aee4
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 0x40af1d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f7c
jmp 0x40af26
mov eax, ebx
mov edx, esi
call fcn.00403ee0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40af30
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 0x40af51
mov al, byte [esp]
jmp 0x40af53
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b5d8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b450
mov eax, dword [0x462174]
cmp byte [eax], 0
je 0x40b654
mov eax, dword [0x461f70]
call fcn.004029dc
call fcn.00402874
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.00408724
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 0x40b69c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b68a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x461f18]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x463668]
call fcn.004051ac
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 0x40bf44
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c01a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f24
lea eax, [ebp - 8]
call fcn.0040439c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040434c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c004
mov eax, ebx
call fcn.0040270c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bffd
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 - 8]
call fcn.0040434c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bfe7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c02c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bfe7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c004
mov eax, dword [ebp - 0x10]
call fcn.0040272c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c021
lea eax, [ebp - 8]
call fcn.00403e8c
ret

Function at 0x40c524
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c588
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004040fc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408234
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c58f
lea eax, [ebp - 0xc]
call fcn.00403e8c
ret

Function at 0x41dc60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x463888
cmp dword [edi], 0
jne 0x41dcdc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x463884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4613fc
mov ecx, 2
call fcn.00402908
mov edx, 0x41dc38
lea eax, [esi + 5]
call fcn.0041dc58
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041dc58
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41dcb1
mov dword [0x463884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41f228
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41f22e
ret
Function at 0x42167c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4216cd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4216b4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4216a4
jmp 0x4216cd
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4216b5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431d80
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x431ccc
call sub.user32.dll_EnumWindows
ret

Function at 0x431ea0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x431f1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00431900
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x431ec5
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00431500
cmp dword [ebp - 4], 0
je 0x431f07
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0040434c
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431f24
lea eax, [ebp - 4]
call fcn.00403e8c
ret

Function at 0x43520c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x463b58], 0
je 0x43535b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x462108]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43535b
mov eax, dword [0x463b5c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x463b58]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43532a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x463b58]
call fcn.00417218
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x435322
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x435322
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x435322
mov eax, dword [ebp - 0x14]
call fcn.0043dedc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x435322
push ebp
call fcn.004351c8
pop ecx
test al, al
jne 0x435322
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4352de
mov eax, dword [ebp - 0x14]
call fcn.0043c9d4
dec eax
jle 0x435322
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403338
cmp byte [ebp - 1], 0
je 0x435322
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x435322
mov edx, dword [ebp - 0x14]
mov eax, dword [0x463b5c]
call fcn.00434994
inc edi
dec ebx
jne 0x435271
mov eax, dword [0x463b5c]
cmp dword [eax + 8], 0
jle 0x435342
mov eax, dword [0x463b5c]
call fcn.00434a24
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43535b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00435030
pop ecx
test al, al
jne 0x43535b
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret