joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ae01
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x410ba4]
push edi
jae 0x40afd6
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x410bc0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x40afd6
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x40aeac
test dl, 2
jne 0x40aeac
test dl, 0x48
je 0x40ae76
cmp byte [eax + 5], 0xa
je 0x40ae76
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40aebf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x40aea7
mov dword [0x40f718], ecx
jmp 0x40afdd
cmp eax, 0x6d
jne 0x40aeb3
xor eax, eax
jmp 0x40afea
push eax
call fcn.0040a40e
pop ecx
jmp 0x40afe7
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x40afd1
test eax, eax
je 0x40aee6
cmp byte [ebx], 0xa
jne 0x40aee6
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40aeef
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x40afcb
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x40afbb
cmp al, 0xd
je 0x40af21
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x40afad
dec ecx
cmp dword [ebp - 8], ecx
jae 0x40af3b
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x40af36
add dword [ebp - 8], 2
jmp 0x40af8f
mov dword [ebp - 8], eax
jmp 0x40afa9
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40af63
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40afa9
cmp dword [ebp - 0x10], 0
je 0x40afa9
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40af84
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40af8f
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40afac
cmp ebx, dword [ebp + 0xc]
jne 0x40af94
cmp byte [ebp - 1], 0xa
jne 0x40af94
mov byte [ebx], 0xa
jmp 0x40afac
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040b7bb
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40afad
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x40af05
jmp 0x40afcb
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40afcb
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x40afea
and dword [0x40f718], 0
mov dword [0x40f714], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b23f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40f904], ebx
push esi
push edi
jne 0x40b2bf
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40b2fa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40d19c
push edi
call esi
test eax, eax
mov dword [0x40f904], eax
je 0x40b2fa
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40f908], eax
call esi
cmp dword [0x40f720], 2
mov dword [0x40f90c], eax
jne 0x40b2bf
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40f914], eax
je 0x40b2bf
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40f910], eax
mov eax, dword [0x40f910]
test eax, eax
je 0x40b304
call eax
test eax, eax
je 0x40b2eb
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40f914]
test eax, eax
je 0x40b2eb
test byte [ebp - 8], 1
jne 0x40b304
cmp dword [0x40f72c], 4
jb 0x40b2fe
or byte [ebp + 0x12], 0x20
jmp 0x40b323
xor eax, eax
jmp 0x40b333
or byte [ebp + 0x12], 4
jmp 0x40b323
mov eax, dword [0x40f908]
test eax, eax
je 0x40b323
call eax
mov ebx, eax
test ebx, ebx
je 0x40b323
mov eax, dword [0x40f90c]
test eax, eax
je 0x40b323
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40f904]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b847
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00406110
mov eax, dword [0x40f08c]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x410ba4]
mov dword [ebp - 4], eax
jae 0x40b98a
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x410bc0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40b98a
push 1
push esi
push ebx
call fcn.0040b7bb
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x40b994
push 2
push esi
push ebx
call fcn.0040b7bb
add esp, 0xc
cmp eax, 0xffffffff
je 0x40b994
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40b934
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00405830
push 0x8000
push ebx
call fcn.0040bceb
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40b8f3
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0040a637
add esp, 0xc
cmp eax, 0xffffffff
je 0x40b911
sub edi, eax
test edi, edi
jg 0x40b8e8
jmp 0x40b927
cmp dword [0x40f718], 5
jne 0x40b924
mov dword [0x40f714], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0040bceb
pop ecx
pop ecx
jmp 0x40b974
jge 0x40b974
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0040b7bb
push ebx
call fcn.0040a5fb
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x40b974
mov dword [0x40f714], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40f718], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0040b7bb
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40b997
mov dword [0x40f714], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040b495
leave
ret
Function at 0x403358
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.00405050
test esi, esi
jne 0x40338e
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.00405140
jmp 0x4033ac
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031fc
mov edi, eax
test esi, esi
je 0x4033ac
cmp dword [ebx], 0
je 0x4033ac
dec esi
jmp 0x403395
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403f48
Capabilities:
Query or enumerate registry value

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

Function at 0x404dfc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48304c], 0
je 0x404e5d
cmp word [0x483220], 0xd7b2
jne 0x404e25
cmp dword [0x483228], 0
jbe 0x404e25
mov eax, 0x48321c
call dword [0x483238]
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 0x404e84
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48002c], 0
jne 0x404e79
push 0
push 0x48077c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404fd4
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 [0x480034], 0
je 0x404ffa
mov edx, esi
mov eax, ebx
call dword [0x480034]
jmp 0x405009
mov eax, 8
call fcn.00402f00
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x48304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404f9c
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 0x40664c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40687c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4066cf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40687c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4066cf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406898
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406758
xor eax, eax
push ebp
push 0x406751
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406488
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406736
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4068b8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406736
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406758
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406872
cmp byte [ebp - 0xd], 0
jne 0x40679f
cmp byte [ebp - 0x12], 0
je 0x406872
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4067b8
dec ebx
cmp byte [ebx], 0x2e
je 0x4067c7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4067b7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406872
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406804
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406872
cmp byte [ebp - 0xd], 0
je 0x406872
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406872
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4091f8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40924a
test eax, edx
je 0x40924d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40920d
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 0x409233
add ecx, 4
js 0x409223
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409230
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 0x409259
test edx, edx
jne 0x409200
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.004054e0
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.004054e0
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 0x40ca64
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 0x40ca9d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405140
jmp 0x40caa6
mov eax, ebx
mov edx, esi
call fcn.004050a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cfdc
mov eax, dword [0x482610]
cmp byte [eax], 0
je 0x40d1e0
mov eax, dword [0x4823b8]
call fcn.00403744
call fcn.0040305c
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.0040a0c0
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 0x40d228
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d216
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x482348]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4857f8]
call fcn.00406430
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 0x40dae0
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 0x40dbb6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004050e8
lea eax, [ebp - 4]
call fcn.00405538
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004054e0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40dba0
mov eax, ebx
call fcn.00402f00
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40db99
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.004054e0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40db83
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dbc8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40db83
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 0x40dba0
mov eax, dword [ebp - 0x10]
call fcn.00402f1c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dbbd
lea eax, [ebp - 4]
call fcn.00405050
ret

Function at 0x41f770
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.0041f4ac
dec esi
jne 0x41f792
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x420904
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4879f0
cmp dword [edi], 0
jne 0x420980
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4879ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x480b94
mov ecx, 2
call fcn.004030fc
mov edx, 0x4208dc
lea eax, [esi + 5]
call fcn.004208fc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004208fc
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 0x420955
mov dword [0x4879ec], 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 0x424184
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.004054e0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4241dc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48277c]
mov dl, 1
mov eax, dword [0x423c90]
call fcn.0040d330
call fcn.004049c4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00423d98
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 0x42540c
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 0x425412
ret
Function at 0x438cc4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, byte [0x438d00]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x438cdb
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x438cea
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x438cf9
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x43ad44
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.00405050
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43ad92
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.004052c0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43fe6c
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 0x43ff9f
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 [0x423cf0]
call fcn.00423dc0
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x43ff75
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00423e60
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.004052c0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x43ffb4
call fcn.00405368
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00423ec4
lea ecx, [ebp - 4]
mov edx, 0x43fff0
mov eax, dword [ebp - 0xc]
call fcn.0042410c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040f004
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43ff58
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43fffc
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 [0x4815c0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ff5f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x44004c
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 0x440093
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x440076
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x440087
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x440093
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x44559c
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 [0x487c50], 0
je 0x4456e5
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x48259c]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x4456e5
mov eax, dword [0x487c54]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x487c50]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4456b4
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x487c50]
call fcn.00418fd8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4456ac
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x4456ac
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4456ac
mov eax, dword [ebp - 0x14]
call fcn.0044fed0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4456ac
push ebp
call fcn.00445558
pop ecx
test al, al
jne 0x4456ac
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.0040434c
test al, al
je 0x4456ac
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.0040434c
cmp byte [ebp - 1], 0
je 0x4456ac
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4456ac
mov edx, dword [ebp - 0x14]
mov eax, dword [0x487c54]
call fcn.00444cc8
inc edi
dec ebx
jne 0x445601
mov eax, dword [0x487c54]
cmp dword [eax + 8], 0
jle 0x4456cc
mov eax, dword [0x487c54]
call fcn.00444d80
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4456e5
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004453bc
pop ecx
test al, al
jne 0x4456e5
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