joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10922377
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10941e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.kernel32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1091ca9d
mov dword [ebp - 0x14], eax
cmp dword [0x10989374], esi
jne 0x1092246a
push 0x800
push esi
push 0x10932310
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x109223f7
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x57
jne 0x1092254a
push esi
push esi
push 0x10932310
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1092254a
push 0x10932328
push edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x1092254a
push eax
call ebx
push 0x10932334
push edi
mov dword [0x10989374], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push eax
call ebx
push 0x10932344
push edi
mov dword [0x10989378], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push eax
call ebx
push 0x10932358
push edi
mov dword [0x1098937c], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10989384], eax
test eax, eax
je 0x10922467
push 0x10932374
push edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10989380], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
test eax, eax
je 0x1092248f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10922482
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x109224a4
push 4
pop eax
jmp 0x1092254c
cmp dword [ebp - 0x14], esi
je 0x109224a4
push dword [0x10989374]
call dword [sym.imp.kernel32.dll_DecodePointer]
push 3
jmp 0x10922489
mov eax, dword [0x10989380]
mov ebx, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, edi
je 0x10922502
cmp dword [0x10989384], edi
je 0x10922502
push eax
call ebx
push dword [0x10989384]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10922502
test eax, eax
je 0x10922502
call ecx
test eax, eax
je 0x109224f7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x109224f7
test byte [ebp - 8], 1
jne 0x10922502
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10922532
mov eax, dword [0x10989378]
cmp eax, edi
je 0x1092252f
push eax
call ebx
test eax, eax
je 0x1092252f
call eax
mov esi, eax
test esi, esi
je 0x1092252f
mov eax, dword [0x1098937c]
cmp eax, edi
je 0x1092252f
push eax
call ebx
test eax, eax
je 0x1092252f
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10989374]
call ebx
test eax, eax
je 0x1092254a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1092254c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1091745c
mov esp, ebp
pop ebp
ret
Function at 0x1092a0b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [sym.imp.Core.dll_int_GUnicodeOS]
sub esp, 0x300
cmp dword [eax], 0
push esi
push edi
mov edi, dword [sym.imp.Core.dll_wchar_t____cdecl_appStrcpy_wchar_t___wchar_t_const__]
jne 0x1092a19c
push 0xff
lea eax, [ebp - 0x1ff]
mov byte [ebp - 0x200], 0
push 0
push eax
call fcn.10916820
push 0xff
lea eax, [ebp - 0xff]
mov byte [ebp - 0x100], 0
push 0
push eax
call fcn.10916820
push 0xff
lea eax, [ebp - 0x2ff]
mov byte [ebp - 0x300], 0
push 0
push eax
call fcn.10916820
add esp, 0x24
lea eax, [ebp - 0x200]
push 0x100
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
push 0x100
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
push 0x100
lea eax, [ebp - 0x300]
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.Core.dll_wchar_t_const____cdecl_appFromAnsi_char_const___wchar_t__]
lea eax, [ebp - 0x200]
push 0
push eax
call esi
push eax
push 0x109893a8
call edi
lea eax, [ebp - 0x100]
push 0
push eax
call esi
push eax
push 0x109895a8
call edi
lea eax, [ebp - 0x300]
push 0
push eax
call esi
push eax
push 0x109897a8
call edi
add esp, 0x30
jmp 0x1092a1ce
push 0x100
push 0x109893a8
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
push 0x100
push 0x109895a8
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
push 0x100
push 0x109897a8
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.Core.dll_int___cdecl_appStrlen_wchar_t_const__]
push 0x10934684
push 0x109897a8
call esi
add esp, 4
lea eax, [eax*2 + 0x109897a0]
push eax
call dword [sym.imp.Core.dll_int___cdecl_appStricmp_wchar_t_const___wchar_t_const__]
add esp, 8
test eax, eax
jne 0x1092a214
push 0x10934690
push 0x109897a8
call esi
add esp, 4
lea eax, [eax*2 + 0x109897a0]
push eax
call edi
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001c6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c73b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c6f2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c6f2
cmp esi, ebx
jge 0x1001c6f2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c735
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c735
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c74d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x1001c970
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
mov eax, dword [ebp + 8]
je 0x1001c998
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001c9b2
lea ecx, [ebp - 0x108]
push ecx
push eax
call sym.drvSOFT.x3d_public:_double___stdcall_MATRIX3D::Det_void_const
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022650
leave
ret 4

Function at 0x1001cb80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001cbb6
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001cc15
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call sym.drvSOFT.x3d_public:_double___stdcall_MATRIX3D::Det_void_const
lea eax, [ebp - 0x20c]
push eax
push edi
call sym.drvSOFT.x3d_public:_double___stdcall_MATRIX3D::Det_void_const
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call sym.drvSOFT.x3d_public:_double___stdcall_MATRIX3D::Det_void_const
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022650
leave
ret 0x10
Function at 0x1001cc30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001cc5c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001cc8d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001cc8b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call sym.drvSOFT.x3d_public:_double___stdcall_MATRIX3D::Det_void_const
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001cc8d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022650
leave
ret 8
Function at 0x4082a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x4082b7
pop dword [ebp - 0x34]
mov eax, 0x4082b7
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x22572a3e
sub dword [ebp - 0x44], 0xd404e4f3
mov dword [ebp - 0x40], 0xc473a446
add dword [ebp - 0x40], 0x6dbfa7ff
mov dword [ebp - 0x3c], 0x7bdde48b
add dword [ebp - 0x3c], 0xd06e5fa3
mov dword [ebp - 0x38], 0x90361b5f
add dword [ebp - 0x38], 0x6fc9e4a1
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x6d86d7ce
add dword [ebp - 0x44], 0x6eb9188
mov dword [ebp - 0x40], 0x51cae2c2
add dword [ebp - 0x40], 0xefa17eb3
mov dword [ebp - 0x3c], 0x582d24e9
sub dword [ebp - 0x3c], 0xf4bdb87d
mov dword [ebp - 0x38], 0x519e0b2
add dword [ebp - 0x38], 0xfae61f4e
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xece62ccb
add eax, 0x135a7349
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x36546
push 0
call eax
mov ecx, 0x3e11
mov ebx, eax
mov edx, 0x43be00
add edx, dword [ebp - 0x34]
mov edi, 0x419045a8
mov dword [ebp - 0x24], 0xde9376a4
mov esi, dword [edx]
add dword [ebp - 4], ecx
xor esi, edi
add dword [ebp - 0xc], 0x2c3e399e
mov dword [ebx], esi
mov dword [ebp - 4], 0x18f29a1f
add ebx, 0xd87a46c3
add ebx, 0x2785b941
add edx, 0x17e3d324
add edx, 0xe81c2ce0
loop 0x4083bd
add eax, 0xc293070b
sub eax, 0xc2921bf4
mov ebx, eax
add eax, 0x3488631b
sub eax, 0x34886316
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x402f7c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x45d008], 0x8088405
inc edx
mov dword [ebx + 0x45d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40367c
Capabilities:
Query or enumerate registry value

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

Function at 0x404520
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x529048], 0
je 0x404581
cmp word [0x52921c], 0xd7b2
jne 0x404549
cmp dword [0x529224], 0
jbe 0x404549
mov eax, 0x529218
call dword [0x529234]
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 0x4045a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45d030], 0
jne 0x40459d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4080fc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40818c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40818c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40813f
test edx, 3
jne 0x40812e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408139
jmp 0x40813f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40813f
cmp dword [ecx - 8], 1
je 0x408149
mov edx, ebx
or edx, 3
call fcn.00404dec
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40815b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046a0

Function at 0x408198
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408228
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408228
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081db
test edx, 3
jne 0x4081ca
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081d5
jmp 0x4081db
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081db
cmp dword [ecx - 8], 1
je 0x4081e5
mov edx, ebx
or edx, 3
call fcn.00404dec
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4081f7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046a0

Function at 0x40b48c
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 0x40b4c5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404790
jmp 0x40b4ce
mov eax, ebx
mov edx, esi
call fcn.004046f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba04
mov eax, dword [0x528588]
cmp byte [eax], 0
je 0x40bc08
mov eax, dword [0x528398]
call fcn.00403044
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.00408c24
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 0x40bc50
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc3e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x528340]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x52b7f4]
call fcn.004058bc
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 0x40c49c
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 0x40c572
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404738
lea eax, [ebp - 4]
call fcn.00404bb4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b64
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c55c
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c555
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.00404b64
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c53f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c584
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c53f
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 0x40c55c
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c579
lea eax, [ebp - 4]
call fcn.004046a0
ret
Function at 0x41b154
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x52c300
cmp dword [edi], 0
jne 0x41b1d0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x52c2fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45dad8
mov ecx, 2
call fcn.00402e7c
mov edx, 0x41b12c
lea eax, [esi + 5]
call fcn.0041b14c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b14c
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 0x41b1a5
mov dword [0x52c2fc], 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 0x41d6ec
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.00404b64
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d744
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5286a4]
mov dl, 1
mov eax, dword [0x41d210]
call fcn.0040bd4c
call fcn.004040e8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d318
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 0x41e8d4
Capabilities:
Encode data using xor

Disassembly:
ret
add byte [ecx + ebp*8], ah
inc ecx
add byte [ecx], al
add bh, bh
inc dword [eax + 0x100041eb]
push esp
push edx
jae 0x41e8c9
jne 0x41e8ce
arpl word [ebp + 0x4d], sp
dec ebp
popal
outsb dx, byte [esi]
popal
jb 0x41e7f3
inc eax
add byte [eax + ebp*8 + 0x41], dh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov ah, 0xe8
inc ecx
add byte [eax + ebp*8 + 0x240041], bh
add byte [eax], al
add al, ch
inc ecx
add byte [edx + edi + 0x3ac80040], bh
inc eax
add ah, cl
cmp al, byte [eax]
sar byte [edx], 1
inc eax
add ah, al
cmp al, byte [eax]
or al, 0x38
inc eax
add byte [eax], ch
cmp byte [eax], al
and al, 0xe9
inc ecx
add byte [ecx], al
add bh, bh
push eax
jmp 0x41e8fc
arpl word [ebp + 0x4d], sp
popal
outsb dx, byte [esi]
popal
jb 0x41e85e
ror byte [ecx + 0x31c289d1], 0xc0
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41e8da
ret
dec esi
and byte [ebp - 0x17aff7ba], cl
movsd dword es:[edi], dword [esi]
jle 0x41e904
dec dword [ebx + 0x74db84c6]
psubsb mm3, mm6
push edx
invalid
Function at 0x42c4fc
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.004046a0
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42c54a
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.00404910
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4305cc
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 0x4306ff
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 [0x41d270]
call fcn.0041d340
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4306d5
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d3e0
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404910
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x430714
call fcn.004049b0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d444
lea ecx, [ebp - 4]
mov edx, 0x430750
mov eax, dword [ebp - 0xc]
call fcn.0041d674
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d7e8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4306b8
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43075c
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 [0x45e438]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4306bf
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x4307ac
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 0x4307f3
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4307d6
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4307e7
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4307f3
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret