joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10076016
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1007602c
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1007603d
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1007607e
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x100783ea
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x10078333
add ebx, 0
push ecx
call 0x10078348
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x7345a198
sub ebx, dword [0x734799d7]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x734799c7
call fcn.10073e12
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.10073320
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x100784a6
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x100784a6
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x1007845d
mov eax, 1
lock xchg dword [0x734799d3], eax
push 0x3dd1fc71
call 0x100783ea
push esi
add esp, 8
cmp eax, 0
jne 0x100783d3
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x100783f9
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x1007840e
cmp ecx, edx
cmp eax, 0
je 0x10078433
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x1007841d
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.1007844c
dec eax
loope 0x1007844f
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x734799d3], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x10078483
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x10078498
jmp 0x100784a3
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x10078391
Function at 0x1007f50b
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1007f7e1
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x7346664b
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x7345d611
push 0xffffffffffffffff
call fcn.1007670b
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1007f575
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.1007f58d
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x1007f7d5
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1007f7a9
Function at 0x1008efdb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1008effd
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1008effd
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1008effd
ret
cmp word [ebx + 4], 0x14c
jne 0x1008effd
test word [ebx + 0x16], 2
je 0x1008effd
test word [ebx + 0x16], 0x100
je 0x1008effd
cmp word [ebx + 0x18], 0x10b
jne 0x1008effd
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1008effd
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1008f089
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1008f01d
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10075f68
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1008effd
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x1008f089
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1008effd
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1008effd
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1008effd
ret
cmp word [ebx + 4], 0x14c
jne 0x1008effd
test word [ebx + 0x16], 2
je 0x1008effd
test word [ebx + 0x16], 0x100
je 0x1008effd
cmp word [ebx + 0x18], 0x10b
jne 0x1008effd
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1008effd
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1008f089
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1008f01d
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10075f68
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1008effd
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x1008f140
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1008f199
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1008f140
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1008f14f
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10494df2
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1008f1a0
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10076016
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1008f23f
add edi, 4
add eax, 2
dec ecx
jne 0x1008f185
call 0x1008f1ec
loope 0x1008f1e2
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1008f23c
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1008f24d
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1008f200
cmp eax, ecx
ja 0x1008f200
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1008f28a
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1008f280
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100764f5
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1008f14f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1008f199
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1008f140
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1008f14f
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10494df2
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1008f1a0
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10076016
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1008f23f
add edi, 4
add eax, 2
dec ecx
jne 0x1008f185
call 0x1008f1ec
loope 0x1008f1e2
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1008f23c
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1008f24d
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1008f200
cmp eax, ecx
ja 0x1008f200
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1008f28a
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1008f280
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100764f5
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x40329c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a20
test esi, esi
jne 0x4032d2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404b10
jmp 0x4032f0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403140
mov edi, eax
test esi, esi
je 0x4032f0
cmp dword [ebx], 0
je 0x4032f0
dec esi
jmp 0x4032d9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4039f4
Capabilities:
Query or enumerate registry value

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

Function at 0x4048a0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x460044], 0
je 0x404901
cmp word [0x460218], 0xd7b2
jne 0x4048c9
cmp dword [0x460220], 0
jbe 0x4048c9
mov eax, 0x460214
call dword [0x460230]
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 0x404928
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45e02c], 0
jne 0x40491d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408498
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4084ea
test eax, edx
je 0x4084ed
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4084ad
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4084d3
add ecx, 4
js 0x4084c3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4084d0
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4084f9
test edx, edx
jne 0x4084a0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x408d8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404eb0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408daa
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x408dcb
cmp ebx, 3
je 0x408dcb
cmp ebx, 0x7b
je 0x408dcb
mov eax, esi
call fcn.00408d4c
test al, al
jne 0x408dcf
xor eax, eax
jmp 0x408dd1
mov al, 1
pop esi
pop ebx
ret

Function at 0x40b8fc
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 0x40b935
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b10
jmp 0x40b93e
mov eax, ebx
mov edx, esi
call fcn.00404a74
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b948
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 0x40b96a
movzx eax, byte [esp]
jmp 0x40b96c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bffc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40be74
mov eax, dword [0x45fa6c]
cmp byte [eax], 0
je 0x40c078
mov eax, dword [0x45f888]
call fcn.004033a8
call fcn.00402fac
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.00409068
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 0x40c0c0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c0ae
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45f830]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4627f0]
call fcn.00405b98
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 0x40c938
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 0x40ca0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404ab8
lea eax, [ebp - 4]
call fcn.00404f08
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404eb0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c9f8
mov eax, ebx
call fcn.00402e50
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c9f1
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.00404eb0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c9db
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ca20
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c9db
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 0x40c9f8
mov eax, dword [ebp - 0x10]
call fcn.00402e6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca15
lea eax, [ebp - 4]
call fcn.00404a20
ret

Function at 0x41b954
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4649e4
cmp dword [edi], 0
jne 0x41b9d0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4649e0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45ead0
mov ecx, 2
call fcn.00403040
mov edx, 0x41b92c
lea eax, [esi + 5]
call fcn.0041b94c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b94c
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 0x41b9a5
mov dword [0x4649e0], 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 0x41c214
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404eb0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41c26c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45fb8c]
mov dl, 1
mov eax, dword [0x41bbfc]
call fcn.0040c1bc
call fcn.00404468
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041bd04
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41c304
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x13c], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41c56b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404a20
test esi, esi
je 0x41c35f
mov eax, esi
xor ecx, ecx
mov edx, 0x34
call fcn.0040351c
lea eax, [ebp - 0x114]
mov edx, ebx
call fcn.00409128
cmp byte [ebp - 0x114], 0
jne 0x41c393
lea edx, [ebp - 0x13c]
xor eax, eax
call fcn.0040329c
mov edx, dword [ebp - 0x13c]
lea eax, [ebp - 0x114]
call fcn.00409128
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jle 0x41c537
mov eax, ebx
call fcn.004092bc
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x41c530
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x41c3e8
call fcn.00404514
jmp 0x41c537
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x45eb0c]
push eax
mov edi, dword [ebp - 0x14]
push edi
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x41c40d
call fcn.00404514
jmp 0x41c537
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x254]
movzx eax, word [ebx]
mov edx, 4
call fcn.004089a8
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x250], eax
mov byte [ebp - 0x24c], 0xb
lea ecx, [ebp - 0x258]
movzx eax, word [ebx + 2]
mov edx, 4
call fcn.004089a8
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], 0xb
lea edx, [ebp - 0x250]
mov ecx, 1
mov eax, 0x41c584
call fcn.00409798
mov edx, dword [ebp - 0x240]
lea eax, [ebp - 0x23c]
mov ecx, 0xff
call fcn.00404cbc
lea edx, [ebp - 0x23c]
lea eax, [ebp - 0x135]
mov cl, 0x20
call fcn.0040340c
test esi, esi
je 0x41c4cc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x41c59c
push edi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x41c4cc
mov ecx, 0x34
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.004075b4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x25c]
lea edx, [ebp - 0x135]
call fcn.00404c84
lea eax, [ebp - 0x25c]
mov edx, dword [ebp - 4]
call fcn.00404cec
mov edx, dword [ebp - 0x25c]
lea eax, [ebp - 0x114]
call fcn.00409128
push eax
push edi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x41c51a
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
call fcn.004092a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c537
mov eax, dword [ebp - 0x14]
call fcn.00409308
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c572
lea eax, [ebp - 0x25c]
mov edx, 3
call fcn.00404a44
lea eax, [ebp - 0x240]
call fcn.00404a20
lea eax, [ebp - 0x13c]
call fcn.00404a20
ret
Function at 0x41e804
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 0x41e80a
ret
Function at 0x4301c4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
test bl, bl
je 0x4301e5
test edi, 0x40000
je 0x4301ff
test bl, bl
jne 0x430280
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x430280
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x430232
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x430247
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x430256
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x430267
cmp byte [esp + 2], 0
je 0x430280
cmp byte [esp + 2], 0
je 0x430278
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x430280
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x430524
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x43054a
mov eax, esp
push eax
push 0x4304ec
call sub.user32.dll_EnumWindows
jmp 0x43055d
mov eax, esp
push eax
push 0x4304cc
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x4305e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x43063c]
test si, 4
je 0x4305fd
or bl, 1
test si, 8
je 0x430607
or bl, 4
test si, 1
je 0x430611
or bl, 8
test si, 2
je 0x43061b
or bl, 0x10
test si, 0x10
je 0x430625
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x430634
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x430640
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x43067c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43065a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x430669
or bl, 4
test esi, 0x20000000
je 0x430674
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret