joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10059af0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0xc], eax
push esi
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0
cmp dword [ebp + 8], 0
jne 0x10059b29
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0xe
xor eax, eax
jmp 0x10059cf3
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x10059b46
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0x14
xor eax, eax
jmp 0x10059cf3
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10059b6c
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 2
xor eax, eax
jmp 0x10059cf3
mov eax, dword [ebp - 4]
and eax, 0x10
jne 0x10059b87
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0x14
xor eax, eax
jmp 0x10059cf3
push 0x104
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.MSVCR90.dll__wfullpath]
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
mov esi, eax
push str.
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
add esi, eax
push 0x100f2d0c
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
add esi, eax
lea ecx, [esi + esi + 0x452]
push ecx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10059bff
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0xc
xor eax, eax
jmp 0x10059cf3
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 8]
add eax, 0x448
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy]
add esp, 8
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x448]
test edx, edx
je 0x10059c81
mov eax, dword [ebp - 8]
add eax, 0x448
push eax
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2 + 0x446]
cmp edx, 0x2f
je 0x10059c81
mov eax, dword [ebp - 8]
add eax, 0x448
push eax
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2 + 0x446]
cmp edx, 0x5c
je 0x10059c81
push 0x100f2d10
mov eax, dword [ebp - 8]
add eax, 0x448
push eax
call dword [sym.imp.MSVCR90.dll_wcscat]
add esp, 8
push 0x100f2d14
mov ecx, dword [ebp - 8]
add ecx, 0x448
push ecx
call dword [sym.imp.MSVCR90.dll_wcscat]
add esp, 8
mov edx, dword [ebp - 8]
mov dword [edx + 0x440], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [eax + 0x444], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x230], 0
xor edx, edx
mov eax, dword [ebp - 8]
mov word [eax + 0x234], dx
xor ecx, ecx
mov edx, dword [ebp - 8]
mov word [edx + 0x236], cx
push 0x104
push 0
mov eax, dword [ebp - 8]
add eax, 0x238
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov eax, dword [ebp - 8]
pop esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10001000
mov esp, ebp
pop ebp
ret
Function at 0x1006a270
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x6a09e667
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xbb67ae85
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x3c6ef372
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xa54ff53a
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x510e527f
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x9b05688c
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x1f83d9ab
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], 0x5be0cd19
mov edx, dword [ebp + 8]
mov dword [edx + 0x24], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 0
pop ebp
ret

Function at 0x1006c6b0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0xc3d2e1f0
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
pop ebp
ret

Function at 0x1006d5b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0
pop ebp
ret
Function at 0x1008dd50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
call fcn.1008bf50
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1008dd7a
or eax, 0xffffffff
jmp 0x1008dda0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call sym.glib_2.0.dll_g_free
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x100916a0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x100916ae
jmp 0x100916d8
push 0x100e0788
push 0x178
push 0x100e0798
push 0x100e07b0
push 8
push 0x100e07d8
call sym.glib_2.0.dll_g_log
add esp, 0x18
xor eax, eax
jmp 0x1009186e
xor eax, eax
jne 0x100916a6
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x9c0], 0x270
jb 0x10091808
mov dword [ebp - 8], 0
jmp 0x10091701
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xe3
jge 0x10091757
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4]
and edx, 0x80000000
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 4]
and eax, 0x7fffffff
or edx, eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
shr ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
xor ecx, dword [eax + edx*4 + 0x634]
mov edx, dword [ebp - 4]
and edx, 1
xor ecx, dword [edx*4 + 0x100c825c]
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [edx + eax*4], ecx
jmp 0x100916f8
jmp 0x10091762
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x26f
jge 0x100917b8
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
and eax, 0x80000000
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx*4 + 4]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
shr edx, 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
xor edx, dword [ecx + eax*4 - 0x38c]
mov eax, dword [ebp - 4]
and eax, 1
xor edx, dword [eax*4 + 0x100c825c]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [eax + ecx*4], edx
jmp 0x10091759
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x9bc]
and edx, 0x80000000
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0x7fffffff
or edx, ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
shr edx, 1
mov eax, dword [ebp + 8]
xor edx, dword [eax + 0x630]
mov ecx, dword [ebp - 4]
and ecx, 1
xor edx, dword [ecx*4 + 0x100c825c]
mov eax, dword [ebp + 8]
mov dword [eax + 0x9bc], edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x9c0], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x9c0]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x9c0]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x9c0], ecx
mov eax, dword [ebp - 4]
shr eax, 0xb
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 7
and ecx, 0x9d2c5680
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shl edx, 0xf
and edx, 0xefc60000
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shr eax, 0x12
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10091a60
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x10091a6c
jmp 0x10091a94
push 0x100e0658
push 0x10d
push 0x100e0668
push 0x100e0680
push 8
push 0x100e06a8
call sym.glib_2.0.dll_g_log
add esp, 0x18
jmp 0x10091bc7
xor eax, eax
jne 0x10091a64
call fcn.10091940
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x14
je 0x10091ab1
cmp dword [ebp - 4], 0x16
je 0x10091b25
jmp 0x10091ba5
cmp dword [ebp + 0xc], 0
jne 0x10091abe
mov dword [ebp + 0xc], 0x6b842128
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x9c0], 1
jmp 0x10091aea
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x9c0]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x9c0], edx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x9c0], 0x270
jae 0x10091b20
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x9c0]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 - 4]
imul edx, edx, 0x10dcd
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x9c0]
mov eax, dword [ebp + 8]
mov dword [eax + ecx*4], edx
jmp 0x10091ad5
jmp 0x10091bc7
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x9c0], 1
jmp 0x10091b51
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x9c0]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x9c0], edx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x9c0], 0x270
jae 0x10091ba3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x9c0]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x9c0]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + edx*4 - 4]
shr edx, 0x1e
mov ecx, dword [ebp + 8]
xor edx, dword [ecx + eax*4 - 4]
imul edx, edx, 0x6c078965
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x9c0]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x9c0]
mov ecx, dword [ebp + 8]
mov dword [ecx + eax*4], edx
jmp 0x10091b3c
jmp 0x10091bc7
push 0
push 0x100e06b0
push 0x12a
push 0x100e06b4
push 0x100e06cc
call sym.glib_2.0.dll_g_assertion_message
add esp, 0x14
xor edx, edx
jne 0x10091ba5
mov esp, ebp
pop ebp
ret
Function at 0x185e110
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x605000]
push edi
or ebp, 0xffffffff
jmp 0x185e132
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x185e139
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x185e128
mov eax, 1
add ebx, ebx
jne 0x185e14b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x185e15c
jne 0x185e17b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x185e17b
dec eax
add ebx, ebx
jne 0x185e168
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x185e140
add ebx, ebx
jne 0x185e177
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x185e1cd
xor ecx, ecx
sub eax, 3
jb 0x185e193
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x185e202
sar eax, 1
mov ebp, eax
jmp 0x185e19e
add ebx, ebx
jne 0x185e19e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x185e16c
inc ecx
add ebx, ebx
jne 0x185e1ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x185e16c
add ebx, ebx
jne 0x185e1b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x185e1ae
jne 0x185e1ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x185e1ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x185e1ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x185e1de
jmp 0x185e12e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x185e1ec
add edi, ecx
jmp 0x185e12e
pop esi
mov edi, esi
mov ecx, 0x37f180
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x185e227
cmp byte [edi], 0x9c
jne 0x185e20c
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x185e20a
lea edi, [esi + 0x95a000]
mov eax, dword [edi]
or eax, eax
je 0x185e26f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9daa1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9dab48]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x185e22d
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9dab4c]
or eax, eax
je 0x185e269
mov dword [ebx], eax
add ebx, 4
jmp 0x185e24a
call dword [esi + 0x9dab5c]
mov ebp, dword [esi + 0x9dab50]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x185e2a3
sub esp, 0xffffff80
jmp 0x12cb450
Function at 0x403660
Capabilities:
Query or enumerate registry value

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

Function at 0x404504
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x472048], 0
je 0x404565
cmp word [0x47221c], 0xd7b2
jne 0x40452d
cmp dword [0x472224], 0
jbe 0x40452d
mov eax, 0x472218
call dword [0x472234]
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 0x40458c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46f02c], 0
jne 0x404581
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40bbe8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba60
mov eax, dword [0x4713cc]
cmp byte [eax], 0
je 0x40bc64
mov eax, dword [0x4711cc]
call fcn.00403028
call fcn.00402de8
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.00408c80
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 0x40bcac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc9a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x471174]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4747f4]
call fcn.00405910
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 0x40c4f8
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 0x40c5ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040471c
lea eax, [ebp - 4]
call fcn.00404b98
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b48
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c5b8
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c5b1
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.00404b48
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c59b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c5e0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c59b
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 0x40c5b8
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5d5
lea eax, [ebp - 4]
call fcn.00404684
ret
Function at 0x41b370
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x475300
cmp dword [edi], 0
jne 0x41b3ec
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4752fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46fad4
mov ecx, 2
call fcn.00402e7c
mov edx, 0x41b348
lea eax, [esi + 5]
call fcn.0041b368
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b368
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 0x41b3c1
mov dword [0x4752fc], 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 0x41d948
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.00404b48
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d9a0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4714f4]
mov dl, 1
mov eax, dword [0x41d46c]
call fcn.0040bda8
call fcn.004040cc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d574
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 0x41ea58
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 0x41ea5e
ret
Function at 0x42ab88
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.00404684
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42abd6
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.004048f4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42ec58
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 0x42ed8b
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 [0x41d4cc]
call fcn.0041d59c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42ed61
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d63c
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.004048f4
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x42eda0
call fcn.00404994
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d6a0
lea ecx, [ebp - 4]
mov edx, 0x42eddc
mov eax, dword [ebp - 0xc]
call fcn.0041d8d0
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d844
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42ed44
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x42ede8
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 [0x470434]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ed4b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x42ee38
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 0x42ee7f
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42ee62
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42ee73
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x42ee7f
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x433970
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 [0x475534], 0
je 0x433ab9
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x471368]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x433ab9
mov eax, dword [0x475538]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x475534]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x433a88
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x475534]
call fcn.00414320
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x433a80
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x433a80
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x433a80
mov eax, dword [ebp - 0x14]
call fcn.0043db94
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x433a80
push ebp
call fcn.0043392c
pop ecx
test al, al
jne 0x433a80
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403a54
test al, al
je 0x433a80
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.00403a54
cmp byte [ebp - 1], 0
je 0x433a80
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x433a80
mov edx, dword [ebp - 0x14]
mov eax, dword [0x475538]
call fcn.0043309c
inc edi
dec ebx
jne 0x4339d5
mov eax, dword [0x475538]
cmp dword [eax + 8], 0
jle 0x433aa0
mov eax, dword [0x475538]
call fcn.00433154
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x433ab9
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00433790
pop ecx
test al, al
jne 0x433ab9
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