joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491e50
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x50cd70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
mov esi, ecx
push 9
mov ecx, edi
mov dword [esp + 0x14], esi
call fcn.004e0f16
xor ebp, ebp
cmp eax, ebp
jle 0x491eaf
push eax
lea eax, [esp + 0x6c]
push eax
mov ecx, edi
call fcn.004d9491
push eax
mov ecx, edi
mov dword [esp + 0x64], ebp
call fcn.004e0b76
lea ecx, [esp + 0x68]
mov dword [esp + 0x60], 0xffffffff
call fcn.004e0a3d
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x68]
push ecx
push edx
lea ecx, [esi + 0x60]
call fcn.004dbdcc
mov esi, eax
mov eax, dword [esp + 0x68]
neg esi
sbb esi, esi
and esi, eax
je 0x491fb9
mov ebx, dword [sym.imp.USER32.dll_MapVirtualKeyA]
test ebp, ebp
mov eax, 0x5755ec
jne 0x491ee7
mov eax, 0x5447c0
push eax
mov ecx, edi
call fcn.004e0e19
test byte [esi], 0x10
je 0x491f00
push str.Alt
mov ecx, edi
call fcn.004e0e19
test byte [esi], 8
je 0x491f11
push str.Ctrl
mov ecx, edi
call fcn.004e0e19
test byte [esi], 4
je 0x491f22
push str.Shift
mov ecx, edi
call fcn.004e0e19
test byte [esi], 1
je 0x491f85
xor eax, eax
push 0
mov ax, word [esi + 2]
push eax
call ebx
lea ecx, [esp + 0x18]
push 0x40
shl eax, 0x10
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.004e0aab
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x70]
push eax
call fcn.00491cd0
push eax
mov ecx, edi
mov dword [esp + 0x64], 1
call fcn.004e0e55
lea ecx, [esp + 0x6c]
mov dword [esp + 0x60], 0xffffffff
call fcn.004e0a3d
jmp 0x491f90
mov cl, byte [esi + 2]
push ecx
mov ecx, edi
call fcn.004e0e40
mov ax, word [esi + 4]
mov ebp, 1
test ax, ax
je 0x491fb9
and eax, 0xffff
lea edx, [eax*4]
sub edx, eax
neg edx
lea esi, [esi + edx*2]
test esi, esi
jne 0x491ed9
mov ecx, dword [esp + 0x58]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x54
ret 8
Function at 0x4922f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x50cdf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
mov eax, esi
mov edi, ecx
mov dword [esp + 0x10], vtable.CBrush.0
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
xor eax, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
call fcn.0048fdb0
mov ebx, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
call ebx
push eax
lea ecx, [esp + 0x14]
call fcn.004e499d
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0xa8]
mov edx, dword [esp + 0x14]
add eax, ecx
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [ebp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call fcn.004e49f4
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0xa8]
mov dword [esp + 0x20], edx
add eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [0x57d528]
test eax, eax
je 0x4923cb
push 4
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
jmp 0x4923d0
push 0xffffff
call ebx
push eax
lea ecx, [esp + 0x14]
call fcn.004e499d
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
lea edx, [esp + 0x18]
and eax, ebx
push eax
mov eax, dword [ebp + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call fcn.004e49f4
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x493930
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x260
push ebx
push ebp
mov ebp, dword [esp + 0x270]
push esi
push edi
mov edi, dword [esp + 0x280]
test edi, edi
mov esi, ecx
jne 0x493972
mov eax, dword [esp + 0x27c]
mov ecx, dword [esp + 0x274]
push eax
push 0
push 0
push ebp
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebx, eax
jmp 0x493976
mov ebx, dword [esp + 0x10]
cmp ebx, 0x20
jbe 0x493984
cmp edi, 1
jne 0x493a68
mov edx, dword [esi]
lea eax, [esp + 0x68]
push eax
push str..htm
push SysReAllocString
mov ecx, esi
call dword [edx + 0xf8]
test eax, eax
jne 0x493a68
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x68]
push str._shellopencommand
push ecx
call edi
mov edx, dword [esi]
lea eax, [esp + 0x68]
lea ecx, [esp + 0x68]
push eax
push ecx
push SysReAllocString
mov ecx, esi
call dword [edx + 0xf8]
test eax, eax
jne 0x493a68
lea edx, [esp + 0x68]
push 0x543a60
push edx
call fcn.004a1925
add esp, 8
test eax, eax
jne 0x493a04
lea eax, [esp + 0x68]
push 0x543a5c
push eax
call fcn.004a1925
add esp, 8
test eax, eax
je 0x493a07
mov byte [eax], 0
lea ecx, [esp + 0x68]
push 0x543a58
push ecx
call edi
lea edx, [esp + 0x68]
push ebp
push edx
call edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x68]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x4c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x493a64
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x260
ret 0x10
mov ebx, dword [esp + 0x14]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x260
ret 0x10
Function at 0x4a8dc4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x579fe0
cmp edx, dword [eax]
je 0x4a8de6
add eax, 8
inc ecx
cmp eax, 0x57a070
jl 0x4a8dd7
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x579fe0]
jne 0x4a8f14
mov eax, dword [0x57f734]
cmp eax, 1
je 0x4a8eee
test eax, eax
jne 0x4a8e17
cmp dword [0x577514], 1
je 0x4a8eee
cmp edx, 0xfc
je 0x4a8f14
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4a8e4e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004abe20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004a48d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4a8e91
lea eax, [ebp - 0x1a4]
push eax
call fcn.004a48d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5294a8
push edi
call fcn.004a3500
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004abe20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004abe30
lea eax, [ebp - 0xa0]
push 0x529488
push eax
call fcn.004abe30
push dword [esi + 0x579fe4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004abe30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004adee7
add esp, 0x2c
pop edi
jmp 0x4a8f14
lea eax, [ebp + 8]
lea esi, [esi + 0x579fe4]
push 0
push eax
push dword [esi]
call fcn.004a48d0
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 0x4b3770
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.004a1cd0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4b383b
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 0x4b383b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4b37ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4b37f9
or bh, 8
and edi, 0x8000000
je 0x4b3814
mov eax, dword [0x580edc]
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 0x4b383b
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 0x4b3c10
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 0x4b3c3b
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 0x4b3c5f
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 0x4b3c7a
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 0x4e11d1
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 0x4e11f3
cmp dword [edi + 0x3c], 0
jne 0x4e11f3
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004f81f1
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.004e1220
pop edi
pop esi
pop ebx
ret 8

Function at 0x4e126e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004f81f1
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 0x4e129f
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.004e12b2
pop edi
pop esi
pop ebx
ret 8

Function at 0x4f771b
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.004f81f1
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4f7758
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f7758
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4f775c
xor eax, eax
jmp 0x4f77da
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004dc4af
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4f7794
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 0x4f777e
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004f78cb
push ebx
mov edi, eax
call fcn.004dc4d8
test edi, edi
pop ecx
je 0x4f77d6
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.004f7694
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004f77df
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4f9f89
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4f9fb7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f9fd5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f9eef
jmp 0x4f9fd5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f9fd5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f9eef
test edi, edi
mov eax, edi
jne 0x4f9fbf
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401040
Capabilities:
Get common file path

Disassembly:
push ecx
push esi
push 0x40450c
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x40450c
push str._s_temphtml.htm
push 0x404610
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
push 0x404718
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4042bc
push 0x404718
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40109b
mov eax, 1
pop esi
pop ecx
ret
push str.kvhtml.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x404714], eax
jne 0x4010cd
push str.Error_loading_kvhtml.dll_n
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
mov eax, 1
pop esi
pop ecx
ret
push str.KVHTMLGetInterface
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4010fb
push str.Error_Loading__kvhtml.dll__n
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
mov eax, 5
pop esi
pop ecx
ret
push 0x4044d8
call eax
lea ecx, [esp + 4]
push 0
push ecx
push 0x404260
push 0
call dword [0x4044d8]
test eax, eax
mov dword [0x40481c], eax
jne 0x40114e
mov edx, dword [esp + 4]
push edx
push str.Error_initializing_KVHTML:__d_n
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [0x404714]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 2
pop esi
pop ecx
ret
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop esi
pop ecx
ret
Function at 0x4016e0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1008
call fcn.004020f0
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x404474
push 0x404610
xor ebp, ebp
xor ebx, ebx
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x4017d2
push 2
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov ebp, eax
push esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
test ebp, ebp
je 0x4017d2
push 0x404474
push 0x404610
mov byte [esp + 0x18], 0x61
mov byte [esp + 0x19], 0x6a
mov byte [esp + 0x1a], 0x44
mov byte [esp + 0x1b], 0x46
call edi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
mov esi, eax
push esi
push 0x1000
lea eax, [esp + 0x28]
push 1
push eax
call edi
add esp, 0x18
test eax, eax
je 0x4017c8
lea eax, [esp + eax + 0x18]
lea edx, [esp + 0x18]
cmp edx, eax
lea ecx, [esp + 0x18]
jae 0x4017b2
mov edx, ecx
lea ebp, [esp + 0x18]
sub edx, ebp
and edx, 0x80000003
jns 0x40179d
dec edx
or edx, 0xfffffffc
inc edx
movsx edx, byte [esp + edx + 0x10]
movsx ebp, byte [ecx]
xor edx, ebp
add ebx, edx
inc ecx
cmp ecx, eax
jb 0x401788
mov ebp, dword [esp + 0x14]
push esi
push 0x1000
lea eax, [esp + 0x20]
push 1
push eax
call edi
add esp, 0x10
test eax, eax
jne 0x401778
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push ebx
push ebp
push str.____size___ld_checksum___ld_n
push 0x404820
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x404820
call fcn.00401000
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1008
ret
Function at 0x401d60
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x560
push ebx
mov ebx, dword [esp + 0x568]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [esp + 0x364]
push ebx
mov dword [esp + 0x14], ecx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x364]
push str..
push ecx
call edi
lea edx, [esp + 0x14]
lea eax, [esp + 0x364]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x401dc4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x560
ret 4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
test byte [esp + 0x18], 0x10
je 0x401e64
lea ecx, [esp + 0x44]
push 0x404260
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401ec5
lea edx, [esp + 0x44]
push 0x40447c
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401ec5
lea eax, [esp + 0x158]
push ebx
push eax
call esi
lea ecx, [esp + 0x158]
push 0x404478
push ecx
call edi
lea edx, [esp + 0x44]
push edx
call ebp
test eax, eax
jle 0x401e31
lea eax, [esp + 0x44]
jmp 0x401e46
lea edx, [esp + 0x148]
push edx
call ebp
test eax, eax
jle 0x401e51
lea eax, [esp + 0x148]
lea ecx, [esp + 0x158]
push eax
push ecx
call edi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x158]
push edx
call fcn.00401d60
jmp 0x401ec5
lea eax, [esp + 0x260]
push ebx
push eax
call esi
lea ecx, [esp + 0x260]
push 0x404478
push ecx
call edi
lea edx, [esp + 0x44]
push edx
call ebp
test eax, eax
jle 0x401e8f
lea eax, [esp + 0x44]
jmp 0x401ea4
lea edx, [esp + 0x148]
push edx
call ebp
test eax, eax
jle 0x401eaf
lea eax, [esp + 0x148]
lea ecx, [esp + 0x470]
push eax
push ecx
call esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x470]
lea eax, [esp + 0x260]
push edx
push eax
call dword [ecx]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401dcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x401dcb
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x560
ret 4
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x46037b]
shl eax, 2
mov dword [0x46037f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004553e0
pop edx
call fcn.00455344
call fcn.00455420
push 0
call fcn.00456644
pop ecx
push 0x460324
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x460383], eax
push 0
jmp fcn.0045a48c

Function at 0x405ed4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x405f5d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x464d14
push 0x101
call sub.WSOCK32.DLL_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x405f47
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0044dae0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x405f74
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x464a48]
mov dl, 1
mov eax, dword [0x4052d0]
call fcn.0044e418
call fcn.00452c80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f64
lea eax, [ebp - 0x1c]
call fcn.00453184
ret
Function at 0x4065f0
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406514
mov cl, 1
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.0045271c
push 0x10
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 4]
push eax
call sub.WSOCK32.DLL_connect
mov edx, 0x406654
call fcn.00405e1c
mov byte [esi + 0x29], 0
test byte [esi + 0x28], 0x10
jne 0x406646
cmp dword [esi + 4], 0xffffffff
setne al
mov byte [esi + 8], al
mov cl, 2
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.0045271c
pop esi
pop ebx
ret

Function at 0x40672c
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.004535c8
push eax
call sub.WSOCK32.DLL_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00452208
test ebx, ebx
je 0x406777
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x4067bc
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov word [ebx], 2
test edi, edi
je 0x4067e4
mov edx, edi
mov eax, esi
call fcn.0040672c
mov dword [ebx + 4], eax
jmp 0x406821
cmp dword [ebp - 4], 0
je 0x4067fd
mov eax, dword [ebp - 4]
call fcn.004535c8
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 4], eax
jmp 0x406821
cmp byte [ebp + 0xc], 0
jne 0x40680a
xor eax, eax
mov dword [ebx + 4], eax
jmp 0x406821
mov ecx, dword [0x464a50]
mov dl, 1
mov eax, dword [0x4052d0]
call fcn.0044e3dc
call fcn.00452c80
cmp dword [ebp + 0x14], 0
je 0x40683d
mov edx, dword [ebp + 0x14]
mov eax, esi
call fcn.00406788
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
jmp 0x40684b
mov ax, word [ebp + 0x10]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10