joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c31
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x400
push esi
xor esi, esi
cmp dword [0x2457354], 0x400
push edi
jne 0x401c7d
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
call fcn.004041a1
push esi
call fcn.00404828
push esi
push esi
call fcn.00404673
push esi
call fcn.004048de
add esp, 0x14
xor edi, edi
cmp edi, 0x16c76
jge 0x401c8f
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e5c52
jg 0x401cb5
inc edi
cmp edi, 0x3003f
jl 0x401c7f
mov eax, dword [0x439b6c]
mov dword [0x2457354], eax
call fcn.0040192c
mov edi, 0x3078f
cmp dword [0x2457354], 0x51f
jne 0x401ce1
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x401cc9
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x4027b4
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x43234d
call fcn.004321c8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040348a
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.004048ed
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x4027fc
call fcn.0040323e
mov dword [ebx], eax
call fcn.00402ffd
mov ecx, eax
call fcn.004011a5
mov eax, ebx
jmp 0x4027fe
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x404f75
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43899c]
jne 0x404f7f
repz ret
jmp fcn.0040b6ac
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa16f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov dword [ebp - 0x11c], ecx
mov ecx, dword [ebp - 0x11c]
call fcn.00462600
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x11c]
add ecx, 4
call fcn.00401f70
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x11c]
mov dword [eax], method.CCommandLineInfo.virtual_0
lea ecx, [ebp - 0x110]
call fcn.00401f70
mov byte [ebp - 4], 2
push 0x100
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x114]
call fcn.00484d70
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x110]
call fcn.00484e3b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x114]
call fcn.00484d02
push str._tmp_WR.65r
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x118]
push eax
call fcn.00484f97
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x12c], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x12c]
push edx
mov ecx, dword [ebp - 0x11c]
add ecx, 4
call fcn.00484e3b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.00484d02
push 1
push 8
call fcn.00470cbc
add esp, 8
mov ecx, dword [ebp - 0x11c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x11c]
mov eax, dword [edx + 8]
mov byte [eax], 0x72
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx + 8]
mov byte [edx + 1], 0x6f
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax + 8]
mov byte [ecx + 2], 0x6e
mov edx, dword [ebp - 0x11c]
mov eax, dword [edx + 8]
mov byte [eax + 3], 0x67
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx + 8]
mov byte [edx + 4], 0x70
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax + 8]
mov byte [ecx + 5], 0x69
mov edx, dword [ebp - 0x11c]
mov eax, dword [edx + 8]
mov byte [eax + 6], 0x6e
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx + 8]
mov byte [edx + 7], 0x67
mov ecx, dword [ebp - 0x11c]
call fcn.00401cc3
test eax, eax
jne 0x4011ac
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x110]
call fcn.00484d02
jmp 0x4011bb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x110]
call fcn.00484d02
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x42f16f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov dword [ebp - 0x98], 3
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x42f1b3
cmp dword [ebp - 0x84], 1
jne 0x42f231
cmp dword [ebp - 0x8c], 0
jne 0x42f231
lea ecx, [ebp - 0x9c]
push ecx
push 1
push 0
push str.Control_PanelDesktop
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42f22f
mov dword [ebp - 0x124], 0x80
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
push ecx
push 0
push str.WheelScrollLines
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42f222
push 0xa
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.00471a69
add esp, 0xc
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42f244
push 0
lea edx, [ebp - 0x98]
push edx
push 0
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [ebp - 0x98]
mov esp, ebp
pop ebp
ret
Function at 0x47a0c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4ce600
cmp edx, dword [eax]
je 0x47a0e2
add eax, 8
inc ecx
cmp eax, 0x4ce690
jl 0x47a0d3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4ce600]
jne 0x47a210
mov eax, dword [0x4f42d8]
cmp eax, 1
je 0x47a1ea
test eax, eax
jne 0x47a113
cmp dword [0x4cdae4], 1
je 0x47a1ea
cmp edx, 0xfc
je 0x47a210
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47a14a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0047a8e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004723c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x47a18d
lea eax, [ebp - 0x1a4]
push eax
call fcn.004723c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4b9978
push edi
call fcn.004722b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0047a8e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0047a8f0
lea eax, [ebp - 0xa0]
push 0x4b9958
push eax
call fcn.0047a8f0
push dword [esi + 0x4ce604]
lea eax, [ebp - 0xa0]
push eax
call fcn.0047a8f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0047d5a1
add esp, 0x2c
pop edi
jmp 0x47a210
lea eax, [ebp + 8]
lea esi, [esi + 0x4ce604]
push 0
push eax
push dword [esi]
call fcn.004723c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x481a60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00472270
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x481b2b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x481b2b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x481ade
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x481ae9
or bh, 8
and edi, 0x8000000
je 0x481b04
mov eax, dword [0x4f5b9c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x481b2b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x481f2b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x481f4f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x481f6a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x486c96
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x486cce
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004851a9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00485181
jmp 0x486cda
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4888a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4888e2
call fcn.004a0677
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4888e2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4888d9
xor eax, eax
jmp 0x4888ea
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004888f0
pop edi
pop esi
pop ebx
ret 4

Function at 0x489b65
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x489b87
cmp dword [edi + 0x3c], 0
jne 0x489b87
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004a0677
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00489bb4
pop edi
pop esi
pop ebx
ret 8

Function at 0x489c02
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004a0677
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x489c33
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00489c46
pop edi
pop esi
pop ebx
ret 8

Function at 0x49e1d4
Capabilities:
Create http request

Disassembly:
mov eax, 0x4ae2cc
call fcn.004725e4
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x49e20c
call fcn.004a0677
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x49e231
push eax
push dword [esi + 4]
call fcn.0049ee53
jmp 0x49e23d
push esi
push eax
mov ecx, 0x4f3d80
call fcn.0049e24e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x49e4ff
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x4ae32b
call fcn.004725e4
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0048affa
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x4cc564]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.00484e8b
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.00484e8b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x4a0dff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004a0677
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4a0e3c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a0e3c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4a0e40
xor eax, eax
jmp 0x4a0ebe
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00485d85
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4a0e78
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4a0e62
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004a0faf
push ebx
mov edi, eax
call fcn.00485dae
test edi, edi
pop ecx
je 0x4a0eba
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004a0d78
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004a0ec3
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4a47f0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4a4818
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4a4829
push 2
call edi
test ax, ax
jge 0x4a4829
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004862e8
cmp dword [esi + 0x30], ebx
jne 0x4a4903
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004862e8
cmp eax, dword [esp + 0x34]
jne 0x4a4903
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4a489f
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4a48e4
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4a4903
cmp eax, 0x205
je 0x4a4903
cmp eax, 0x201
je 0x4a4903
cmp eax, 0x204
je 0x4a4903
cmp eax, ebx
jne 0x4a48ca
cmp dword [esp + 0x1c], 0x1b
je 0x4a4903
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x4f3f40]
jbe 0x4a48f9
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4a485c
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x4096df
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x409700
jl 0x4096f7
test edi, edi
jne 0x409700
xor eax, eax
xor edx, edx
jmp 0x4097c1
cmp dword [ebx + 0x38], 0
je 0x409715
push eax
push edi
push dword [ebp + 8]
call fcn.004097c7
jmp 0x4097c1
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40975c
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40975c
cmp eax, edi
jb 0x409736
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040c050
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x409762
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4097b6
mov ecx, ebx
call fcn.00408f79
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4097a1
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00413fa3
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4097b6
jmp 0x409774
test edx, edx
je 0x4097b6
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00413fa3
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40bbaf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40bbee
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40bbee
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bbee
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40bbee
cmp dword [ecx + 0x74], 0xe
jbe 0x40bbee
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41b424
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e6c0
push 0x42e6b8
push str.FlsAlloc
push 0x1e
call fcn.0041b291
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b458
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a16c]
call esi
jmp 0x41b45e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41b4a2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e6d0
push 0x42e6c8
push str.FlsGetValue
push 0x20
call fcn.0041b291
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b4d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a16c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]