joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7a29
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ff94c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b7afe
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b7aed
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x4b7ad7
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x4b7aed
push eax
push edi
push dword [ebp - 0x110]
call fcn.004b79c6
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x4b7b00
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b7f56
leave
ret 4

Function at 0x4b7f56
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ff94c]
jne 0x4b7f60
repz ret
jmp fcn.004b870f
Function at 0x4bc740
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x48
call fcn.004b81c0
mov eax, dword [0x4ff94c]
xor eax, esp
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x5c]
push esi
mov esi, dword [esp + 0x5c]
xor eax, eax
push edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0xc], ecx
test ebx, ebx
je 0x4bc77b
mov eax, 1
mov dword [edi], ebx
jmp 0x4bc77d
mov ebx, dword [edi]
test ecx, ecx
je 0x4bc7e7
cmp dword [ebx + 0x34], esi
jge 0x4bc7b7
push ebp
lea ebp, [edi + 4]
push ebx
push ebp
call fcn.004a6280
mov eax, dword [esp + 0x18]
push esi
push eax
push ebp
call fcn.004a62a0
lea ecx, [edi + 0x1cc]
push ecx
lea edx, [edi + 0x1d0]
push edx
push ebp
call fcn.004a62c0
add esp, 0x20
pop ebp
jmp 0x4bc7eb
push esi
push ecx
lea eax, [edi + 0x1d0]
push eax
call sub.MSVCR100.dll_memcpy
mov ecx, 0x40
sub ecx, esi
push ecx
lea edx, [esi + edi + 0x1d0]
push 0
push edx
call sub.MSVCR100.dll_memset
add esp, 0x18
mov dword [edi + 0x1cc], esi
jmp 0x4bc7eb
test eax, eax
je 0x4bc863
xor eax, eax
lea ecx, [ecx]
mov cl, byte [edi + eax + 0x1d0]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x40
jl 0x4bc7f0
lea esi, [edi + 0x9c]
push ebx
push esi
call fcn.004a6280
mov edx, dword [ebx + 0x34]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.004a62a0
add esp, 0x14
xor eax, eax
jmp 0x4bc830
mov cl, byte [edi + eax + 0x1d0]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x40
jl 0x4bc830
lea esi, [edi + 0x134]
push ebx
push esi
call fcn.004a6280
mov edx, dword [ebx + 0x34]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.004a62a0
add esp, 0x14
lea esi, [edi + 0x9c]
add edi, 4
mov ecx, 0x26
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b7f56
add esp, 0x48
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x27c057da
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x2cff3239
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
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 eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748
Function at 0x401112
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44f030]
jne 0x40111c
repz ret
jmp fcn.00401d31

Function at 0x409100
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040587e
and dword [ebp - 4], 0
cmp dword [0x451790], 0
mov ebx, eax
jne 0x4091b1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409262
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409262
push eax
call fcn.0040580c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x451790], eax
call esi
push eax
call fcn.0040580c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x451794], eax
call esi
push eax
call fcn.0040580c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x451798], eax
call esi
push eax
call fcn.0040580c
pop ecx
mov dword [0x4517a0], eax
test eax, eax
je 0x4091b1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040580c
pop ecx
mov dword [0x45179c], eax
mov eax, dword [0x45179c]
cmp eax, ebx
je 0x409209
cmp dword [0x4517a0], ebx
je 0x409209
push eax
call fcn.00405887
push dword [0x4517a0]
mov esi, eax
call fcn.00405887
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409209
test edi, edi
je 0x409209
call esi
test eax, eax
je 0x409200
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409200
test byte [ebp - 0xc], 1
jne 0x409209
or dword [ebp + 0x10], 0x200000
jmp 0x409242
mov eax, dword [0x451794]
cmp eax, ebx
je 0x409242
push eax
call fcn.00405887
pop ecx
test eax, eax
je 0x409242
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409242
mov eax, dword [0x451798]
cmp eax, ebx
je 0x409242
push eax
call fcn.00405887
pop ecx
test eax, eax
je 0x409242
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x451790]
call fcn.00405887
pop ecx
test eax, eax
je 0x409262
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409264
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b130
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x44f030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2b0a1cc]
push ebx
mov ebx, dword [0x2b09eec]
push esi
mov esi, dword [0x44ff60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40b171
push str.wozekajevirifegavonetucusiva
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x2b0a1cc]
mov dword [0x2b09ee8], esi
cmp eax, 0x114e
jne 0x40b199
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x14]
push eax
push str.gavipokucohuj
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov eax, dword [0x2b0a1cc]
cmp eax, 0x2f
jne 0x40b1bb
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
call fcn.0040b060
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401112
add esp, 0x428
ret
Function at 0x438ca5
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x438a14
add esi, ecx
sub ecx, 0x2d33e557
call fcn.00438cdf
or esi, esi
xor dword [eax], ebx
sub esi, esi
sub esi, 1
mov ecx, 0xc4013183
inc eax
add esi, 0x545d0eed
or ecx, esi
push esi
pop esi
cmp eax, edx
jne fcn.00438ca5
inc esi
sub esi, esi
add esi, esi
ret
Function at 0x4032fc
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.0040509c
test esi, esi
jne 0x403332
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.0040518c
jmp 0x403350
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403200
mov edi, eax
test esi, esi
je 0x403350
cmp dword [ebx], 0
je 0x403350
dec esi
jmp 0x403339
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403f78
Capabilities:
Query or enumerate registry value

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

Function at 0x404e48
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52c04c], 0
je 0x404ea9
cmp word [0x52c220], 0xd7b2
jne 0x404e71
cmp dword [0x52c228], 0
jbe 0x404e71
mov eax, 0x52c21c
call dword [0x52c238]
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 0x404ed0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b7030], 0
jne 0x404ec5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405020
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4b7038], 0
je 0x405046
mov edx, esi
mov eax, ebx
call dword [0x4b7038]
jmp 0x405055
mov eax, 8
call fcn.00402f10
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x52c04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404fe8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x40947c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4094ce
test eax, edx
je 0x4094d1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409491
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 0x4094b7
add ecx, 4
js 0x4094a7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4094b4
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 0x4094dd
test edx, edx
jne 0x409484
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040552c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409d59
test al, 0x10
je 0x409d5d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040552c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409d7d
test al, 0x10
jne 0x409d81
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d170
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 0x40d1a9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040518c
jmp 0x40d1b2
mov eax, ebx
mov edx, esi
call fcn.004050f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d1bc
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 0x40d1de
movzx eax, byte [esp]
jmp 0x40d1e0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d870
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d6e8
mov eax, dword [0x52b044]
cmp byte [eax], 0
je 0x40d8ec
mov eax, dword [0x52acdc]
call fcn.004037a0
call fcn.0040306c
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.0040a088
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 0x40d934
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d922
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x52ac5c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x52e7f8]
call fcn.004065f4
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 0x40e200
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 0x40e2d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405134
lea eax, [ebp - 4]
call fcn.00405584
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040552c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e2c0
mov eax, ebx
call fcn.00402f10
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e2b9
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.0040552c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e2a3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e2e8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e2a3
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 0x40e2c0
mov eax, dword [ebp - 0x10]
call fcn.00402f2c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e2dd
lea eax, [ebp - 4]
call fcn.0040509c
ret

Function at 0x41fc2c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041f968
dec esi
jne 0x41fc4e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x420dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5309f0
cmp dword [edi], 0
jne 0x420e3c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5309ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4b7afc
mov ecx, 2
call fcn.00403100
mov edx, 0x420d98
lea eax, [esi + 5]
call fcn.00420db8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00420db8
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 0x420e11
mov dword [0x5309ec], 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 0x423610
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.0040552c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x423668
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x52b21c]
mov dl, 1
mov eax, dword [0x422f4c]
call fcn.0040da3c
call fcn.004049f4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004230c0
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 0x4249c8
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 0x4249ce
ret
Function at 0x430d44
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0040509c
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x430d92
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040530c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x435e74
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x435fa7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x422fac]
call fcn.004230e8
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x435f7d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004231c4
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.0040530c
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x435fbc
call fcn.004053b4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00423350
lea ecx, [ebp - 4]
mov edx, 0x435ff8
mov eax, dword [ebp - 0xc]
call fcn.00423598
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040f54c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x435f60
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x436004
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4b842c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435f67
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x436054
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x43609b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43607e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43608f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x43609b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x43ac34
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 [0x530c48], 0
je 0x43ad7d
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x52af9c]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x43ad7d
mov eax, dword [0x530c4c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x530c48]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43ad4c
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x530c48]
call fcn.00419400
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43ad44
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x43ad44
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43ad44
mov eax, dword [ebp - 0x14]
call fcn.00445328
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43ad44
push ebp
call fcn.0043abf0
pop ecx
test al, al
jne 0x43ad44
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.0040437c
test al, al
je 0x43ad44
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, 0xffbc
call fcn.0040437c
cmp byte [ebp - 1], 0
je 0x43ad44
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43ad44
mov edx, dword [ebp - 0x14]
mov eax, dword [0x530c4c]
call fcn.0043a360
inc edi
dec ebx
jne 0x43ac99
mov eax, dword [0x530c4c]
cmp dword [eax + 8], 0
jle 0x43ad64
mov eax, dword [0x530c4c]
call fcn.0043a418
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43ad7d
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043aa54
pop ecx
test al, al
jne 0x43ad7d
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