joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416420
Capabilities:
Create process memory minidump
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x422490
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x14], ebx
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x38], ebx
call fcn.00415bc0
add esp, 4
mov ecx, dword [eax]
push ecx
push str.TEMP
mov byte [esp + 0x3c], 1
call dword [sym.imp.MSVCR70.dll_getenv]
add esp, 4
push eax
lea edx, [esp + 0x18]
push str._s_s.dmp
push edx
call fcn.00401ab0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4164b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebp, dword [esp + 0x10]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
je 0x416519
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x20], eax
mov eax, dword [edi]
mov dword [esp + 0x24], eax
neg eax
lea ecx, [esp + 0x18]
push ecx
push ebx
sbb eax, eax
lea edx, [esp + 0x28]
and eax, edx
push eax
push ebx
push esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], 0x416140
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.DBGHELP.dll_MiniDumpWriteDump
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x10]
push esi
call fcn.004013a0
mov edi, dword [esp + 0x40]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x34], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416554
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x2c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x4180a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
mov eax, dword [0x4389b8]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 0x14]
cmp ebx, 0x40
push esi
mov dword [esp + 0x160], eax
push edi
jle 0x418105
lea eax, [esp + 0x108]
push eax
call fcn.0041e210
mov ecx, dword [ebp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x114]
push edx
call fcn.0041eb20
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0041ebe0
add esp, 0x18
lea edx, [esp + 0x10]
mov ebx, 0x10
jmp 0x418108
mov edx, dword [ebp + 0x10]
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0xc0]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
mov ecx, ebx
mov eax, ecx
shr ecx, 2
mov esi, edx
lea edi, [esp + 0xc0]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
mov esi, edx
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
jmp 0x418160
mov cl, byte [esp + eax + 0xc0]
mov bl, byte [esp + eax + 0x78]
xor cl, 0x36
xor bl, 0x5c
mov byte [esp + eax + 0xc0], cl
mov byte [esp + eax + 0x78], bl
inc eax
cmp eax, 0x40
jl 0x418160
lea eax, [esp + 0x20]
push eax
call fcn.0041e210
push 0x40
lea ecx, [esp + 0xc8]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.0041eb20
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.0041eb20
mov esi, dword [ebp + 0x18]
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.0041ebe0
lea ecx, [esp + 0x44]
push ecx
call fcn.0041e210
push 0x40
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.0041eb20
push 0x10
lea ecx, [esp + 0x58]
push esi
push ecx
call fcn.0041eb20
add esp, 0x40
lea edx, [esp + 0x20]
push edx
push esi
call fcn.0041ebe0
mov ecx, dword [esp + 0x16c]
xor ecx, dword [ebp + 4]
add esp, 8
call fcn.0041fbeb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x41aaf0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x422909
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x4389b8]
xor eax, dword [esp + 0x28]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], esi
mov dword [esi], 0x42a09c
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esp + 0x34], ebx
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
push str.text_plain
lea ecx, [esi + 0xc]
mov byte [esp + 0x38], 1
call fcn.00405870
push str.iso_8859_1
lea ecx, [esi + 0x10]
mov byte [esp + 0x38], 2
call fcn.00405870
mov byte [esp + 0x34], 3
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [esp + 0x34], 4
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [esp + 0x34], 5
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov byte [esp + 0x34], 6
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x20], eax
lea ecx, [esi + 0x24]
mov byte [esp + 0x34], 7
call fcn.00417900
mov dword [esi + 0x40], 0x42a074
mov dword [esi + 0x44], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], ebx
mov byte [esp + 0x34], 9
mov dword [esi + 0x54], ebx
lea edi, [esi + 0x58]
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x38], 0xa
mov dword [esi + 0x5c], 1
call dword [sym.imp.RPCRT4.dll_UuidCreate]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x18], ebx
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
mov ebp, dword [esp + 0x10]
cmp ebp, ebx
jne 0x41ac42
xor eax, eax
jmp 0x41ac50
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41ac47
sub eax, edx
push eax
push ebp
mov ecx, edi
call fcn.00401960
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeA]
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x20]
xor ecx, dword [esp + 0x30]
pop ebp
pop ebx
add esp, 0x28
jmp fcn.0041fbeb
Function at 0x41ab13
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x422909
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x4389b8]
xor eax, dword [esp + 0x28]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], esi
mov dword [esi], 0x42a09c
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esp + 0x34], ebx
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
push str.text_plain
lea ecx, [esi + 0xc]
mov byte [esp + 0x38], 1
call fcn.00405870
push str.iso_8859_1
lea ecx, [esi + 0x10]
mov byte [esp + 0x38], 2
call fcn.00405870
mov byte [esp + 0x34], 3
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [esp + 0x34], 4
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [esp + 0x34], 5
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov byte [esp + 0x34], 6
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x20], eax
lea ecx, [esi + 0x24]
mov byte [esp + 0x34], 7
call fcn.00417900
mov dword [esi + 0x40], 0x42a074
mov dword [esi + 0x44], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], ebx
mov byte [esp + 0x34], 9
mov dword [esi + 0x54], ebx
lea edi, [esi + 0x58]
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x38], 0xa
mov dword [esi + 0x5c], 1
call dword [sym.imp.RPCRT4.dll_UuidCreate]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x18], ebx
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
mov ebp, dword [esp + 0x10]
cmp ebp, ebx
jne 0x41ac42
xor eax, eax
jmp 0x41ac50
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41ac47
sub eax, edx
push eax
push ebp
mov ecx, edi
call fcn.00401960
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeA]
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x20]
xor ecx, dword [esp + 0x30]
pop ebp
pop ebx
add esp, 0x28
jmp fcn.0041fbeb
Function at 0x41b590
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x422ac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x4389b8]
xor eax, dword [esp + 0x20]
push esi
mov esi, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
push edi
xor edi, edi
test eax, eax
je 0x41b6e8
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41b6df
mov eax, dword [str.QUIT_r_n]
mov dl, byte [0x42a692]
mov cx, word [0x42a690]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
mov byte [esp + 0x12], dl
mov word [esp + 0x10], cx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b5f8
mov ecx, dword [esi + 8]
push 0
sub eax, edx
push eax
lea eax, [esp + 0x14]
push eax
push ecx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x41b67d
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x30]
push str.CSMTPConnection::Disconnect__Failed_in_call_to_send_QUIT_command__GetLastError_returns:__d
push eax
call fcn.00401ab0
mov edx, dword [esi]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b67d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi]
push 0xdd
mov ecx, esi
call dword [eax + 8]
mov edi, eax
test edi, edi
jne 0x41b6df
push 0x16
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CSMTPConnection::Disconnect__An_unexpected_QUIT_response_was_received
lea ecx, [esp + 0x30]
call fcn.00405870
mov edx, dword [esi]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
mov dword [esp + 0x28], 1
call dword [edx + 0x10]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b6df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esi + 0xc], 0
jmp 0x41b730
push str.CSMTPConnection::Disconnect__Already_disconnected_from_SMTP_server__doing_nothing
lea ecx, [esp + 0xc]
call fcn.00405870
mov eax, dword [esi]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x28], 2
call dword [eax + 0x10]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b730
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x41b745
push eax
call sub.WSOCK32.dll_closesocket
mov dword [esi + 8], 0xffffffff
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x18]
xor ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
call fcn.0041fbeb
add esp, 0x20
ret 4
Function at 0x41e210
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x41ebe0
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
mov eax, dword [0x4389b8]
xor eax, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
xor ecx, ecx
lea eax, [edi + 0x12]
jmp 0x41ec00
mov dl, byte [eax - 2]
mov byte [esp + ecx + 8], dl
mov dl, byte [eax - 1]
mov byte [esp + ecx + 9], dl
mov dl, byte [eax]
mov byte [esp + ecx + 0xa], dl
mov dl, byte [eax + 1]
mov byte [esp + ecx + 0xb], dl
add ecx, 4
add eax, 4
cmp ecx, 8
jb 0x41ec00
mov ecx, dword [edi + 0x10]
shr ecx, 3
and ecx, 0x3f
cmp ecx, 0x38
mov eax, 0x38
jb 0x41ec3e
mov eax, 0x78
sub eax, ecx
push eax
push 0x438978
push edi
call fcn.0041eb20
push 8
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0041eb20
mov ecx, dword [esp + 0x30]
add esp, 0x18
inc ecx
lea eax, [edi + 2]
mov esi, 4
lea esp, [esp]
mov dl, byte [eax - 2]
mov byte [ecx - 1], dl
mov dl, byte [eax - 1]
mov byte [ecx], dl
mov dl, byte [eax]
mov byte [ecx + 1], dl
mov dl, byte [eax + 1]
mov byte [ecx + 2], dl
add eax, 4
add ecx, 4
dec esi
jne 0x41ec70
xor eax, eax
mov ecx, 0x16
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
xor ecx, dword [esp + 0x14]
pop edi
pop esi
add esp, 0xc
jmp fcn.0041fbeb
Function at 0x41fcd2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x42b588
call fcn.0041fff0
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41fd0f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41fd0f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41fd27
cmp eax, 0x20b
je 0x41fd14
mov dword [ebp - 0x1c], ebx
jmp 0x41fd3b
cmp dword [ecx + 0x84], 0xe
jbe 0x41fd0f
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x41fd35
cmp dword [ecx + 0x74], 0xe
jbe 0x41fd0f
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR70.dll___set_app_type]
pop ecx
or dword [0x438f8c], 0xffffffff
or dword [0x438f90], 0xffffffff
call dword [sym.imp.MSVCR70.dll___p__fmode]
mov ecx, dword [0x438f7c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR70.dll___p__commode]
mov ecx, dword [0x438f78]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR70.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x438f88], eax
call fcn.00420054
call fcn.004200f4
cmp dword [0x4389e0], ebx
jne 0x41fd9b
push fcn.004200f4
call dword [sym.imp.MSVCR70.dll___setusermatherr]
pop ecx
call fcn.004200e2
push 0x4380a0
push 0x43809c
call sub.MSVCR70.dll__initterm
push 0x420098
call fcn.0041fcb3
mov eax, dword [0x438f74]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x438f70]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR70.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp eax, ebx
jge 0x41fdef
push 8
call sub.MSVCR70.dll__amsg_exit
pop ecx
push 0x438098
push section..data
call sub.MSVCR70.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR70.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x41fe49
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x41fe1d
cmp al, 0x22
jne 0x41fe0f
cmp byte [esi], 0x22
jne 0x41fe26
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x41fe30
cmp al, 0x20
jbe 0x41fe22
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x41fe54
movzx eax, word [ebp - 0x48]
jmp 0x41fe57
cmp byte [esi], 0x20
jbe 0x41fe26
inc esi
mov dword [ebp - 0x34], esi
jmp 0x41fe49
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00420b4a
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x41fe74
push esi
call dword [sym.imp.MSVCR70.dll_exit]
call dword [sym.imp.MSVCR70.dll__cexit]
jmp 0x41fea9
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0042002b
ret
Function at 0x406ddc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406e42
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404b44
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004033c8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406e2c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e49
lea eax, [ebp - 0x10]
call fcn.004048d4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404db0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a055
test al, 0x10
jne 0x40a059
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a1d8
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404db0
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40a1fa
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40d540
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 0x40d579
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004049c4
jmp 0x40d582
mov eax, ebx
mov edx, esi
call fcn.00404928
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d58c
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 0x40d5ad
mov al, byte [esp]
jmp 0x40d5af
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x45a378
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x577820]
cmp byte [eax + 0xc], 0
je 0x45a4e5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a4de
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x578b34], 0
jne 0x45a3cc
push 0x45a4ec
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x45a4f4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x578b34], eax
cmp dword [0x570f90], 0
jne 0x45a4c7
push 0x45a504
call sub.kernel32.dll_LoadLibraryA
mov dword [0x570f90], eax
cmp dword [0x570f90], 0
je 0x45a4c7
push 0x45a510
mov eax, dword [0x570f90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x578b38], eax
push 0x45a520
mov eax, dword [0x570f90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x578b3c], eax
push 0x45a534
mov eax, dword [0x570f90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x578b40], eax
push 0x45a54c
mov eax, dword [0x570f90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x578b44], eax
push 0x45a564
mov eax, dword [0x570f90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x578b48], eax
push 0x45a578
mov eax, dword [0x570f90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x578b4c], eax
push 0x45a590
mov eax, dword [0x570f90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x578b50], eax
push 0x45a5a8
mov eax, dword [0x570f90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x578b54], eax
push 0x45a5c4
mov eax, dword [0x570f90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x578b58], eax
push 0x45a5d0
mov eax, dword [0x570f90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x578b5c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a4e5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45edf0
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.004048d4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45ee3f
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.00404b44
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x466634
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x466684]
test si, 4
je 0x466648
or bl, 1
test si, 8
je 0x466652
or bl, 4
test si, 1
je 0x46665c
or bl, 8
test si, 2
je 0x466666
or bl, 0x10
test si, 0x10
je 0x466670
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46667f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret