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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
push dword [esi + 0x68]
push 0x77a
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x47b028
lea eax, [edi - 9]
mov dword [ebp - 8], 1
cmp eax, 0xd
ja case.0x47af87.11
movzx eax, byte [eax + 0x47b04c]
jmp dword [eax*4 + 0x47b03c]
test byte [esi + 0x300], 8
je case.0x47af87.11
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne case.0x47af87.11
test dword [esi + 0x2f4], 0x1000
jne case.0x47af87.11
mov dword [ebp - 8], 0
jmp case.0x47af87.11
test byte [esi + 0x300], 8
je case.0x47af87.11
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne case.0x47af87.11
mov dword [ebp - 8], 0
jmp case.0x47af87.11
push 0
push 0x302
push dword [esi + 0x68]
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x47b028
cmp edi, 8
je 0x47b028
mov ecx, dword [esi + 0x2c4]
lea edx, [ebp - 8]
push edx
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edi
push 0x102
call dword [eax + 0xc]
push edi
push dword [esi + 0x68]
push 0x775
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a0676
mov esp, ebp
pop ebp
ret 0xc

Function at 0x47af8e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
push dword [esi + 0x68]
push 0x77a
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x47b028
lea eax, [edi - 9]
mov dword [ebp - 8], 1
cmp eax, 0xd
ja case.0x47af87.11
movzx eax, byte [eax + 0x47b04c]
jmp dword [eax*4 + 0x47b03c]
test byte [esi + 0x300], 8
je case.0x47af87.11
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne case.0x47af87.11
test dword [esi + 0x2f4], 0x1000
jne case.0x47af87.11
mov dword [ebp - 8], 0
jmp case.0x47af87.11
test byte [esi + 0x300], 8
je case.0x47af87.11
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne case.0x47af87.11
mov dword [ebp - 8], 0
jmp case.0x47af87.11
push 0
push 0x302
push dword [esi + 0x68]
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x47b028
cmp edi, 8
je 0x47b028
mov ecx, dword [esi + 0x2c4]
lea edx, [ebp - 8]
push edx
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edi
push 0x102
call dword [eax + 0xc]
push edi
push dword [esi + 0x68]
push 0x775
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a0676
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47afbe
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
push dword [esi + 0x68]
push 0x77a
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x47b028
lea eax, [edi - 9]
mov dword [ebp - 8], 1
cmp eax, 0xd
ja case.0x47af87.11
movzx eax, byte [eax + 0x47b04c]
jmp dword [eax*4 + 0x47b03c]
test byte [esi + 0x300], 8
je case.0x47af87.11
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne case.0x47af87.11
test dword [esi + 0x2f4], 0x1000
jne case.0x47af87.11
mov dword [ebp - 8], 0
jmp case.0x47af87.11
test byte [esi + 0x300], 8
je case.0x47af87.11
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne case.0x47af87.11
mov dword [ebp - 8], 0
jmp case.0x47af87.11
push 0
push 0x302
push dword [esi + 0x68]
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x47b028
cmp edi, 8
je 0x47b028
mov ecx, dword [esi + 0x2c4]
lea edx, [ebp - 8]
push edx
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edi
push 0x102
call dword [eax + 0xc]
push edi
push dword [esi + 0x68]
push 0x775
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a0676
mov esp, ebp
pop ebp
ret 0xc

Function at 0x47b060
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
push dword [esi + 0x68]
push 0x77b
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x47b14d
mov eax, 1
mov dword [ebp - 8], eax
cmp edi, 9
je 0x47b0ea
cmp edi, 0xd
je 0x47b0ba
cmp edi, 0x1b
jne 0x47b0fc
test byte [esi + 0x300], 8
je 0x47b0fc
mov dword [ebp - 8], 0
jmp 0x47b0fc
test byte [esi + 0x300], 8
je 0x47b0fc
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x47b0fc
test dword [esi + 0x2f4], 0x1000
jne 0x47b0fc
mov dword [ebp - 8], 0
jmp 0x47b0fc
test byte [esi + 0x300], 8
mov ecx, 0
cmovne eax, ecx
mov dword [ebp - 8], eax
mov ecx, dword [esi + 0x2c4]
lea edx, [ebp - 8]
push edx
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edi
push 0x100
call dword [eax + 0xc]
push edi
push dword [esi + 0x68]
push 0x775
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_PostMessageW]
test dword [esi + 0x2f4], 0x800
jne 0x47b14d
cmp edi, 8
jne 0x47b14d
mov ecx, dword [esi + 0x2c4]
push 0
push 0
push 7
mov eax, dword [ecx]
push 0x115
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a0676
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47c680
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b8d38
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x628960]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x628960]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp eax, 0x701
jne 0x47c701
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0xb0]
mov eax, dword [ebx + 0x18]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x14]
add eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push ecx
push eax
mov ecx, esi
call fcn.00479e80
jmp 0x47c81d
cmp eax, 0x70b
jne 0x47c81d
cmp dword [ebx + 0xc], 0x202
jne 0x47c81d
mov ecx, dword [esi + 0x2cc]
lea edx, [esp + 0x28]
push 0
push edx
push 0
mov eax, dword [ecx]
push 0x434
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x1c]
lea edx, [esp + 0x14]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x2cc]
push edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
push edx
mov eax, dword [ecx]
push 0
push 0x437
call dword [eax + 0xc]
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00479d40
mov dword [esp + 0x58], 0
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x2cc]
push edx
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
mov eax, dword [esp + 0x30]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
push 0
push 0x437
call dword [eax + 0xc]
push dword [ebx + 0x18]
lea eax, [esi + 0x34c]
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.0047cbc0
cmp dword [eax], 0
je 0x47c7e5
cmp dword [esp + 0x44], 8
lea edi, [esp + 0x30]
push dword [ebx + 0x18]
mov ecx, dword [esp + 0x18]
cmovae edi, dword [esp + 0x34]
mov esi, dword [ebx + 0xc]
call fcn.0047cbc0
push edi
push esi
push dword [eax]
mov eax, dword [esp + 0x1c]
push dword [eax + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x47c80a
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
push 1
cmovae eax, dword [esp + 0x34]
push 0
push eax
push str.iexplore
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x44], 8
jb 0x47c81d
push dword [esp + 0x30]
call fcn.0048b2ba
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004a0676
mov esp, ebp
pop ebp
ret 8
Function at 0x47e560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8e48
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
movzx eax, dx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x47e659
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x47e659
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x1c]
push esi
push eax
call fcn.004abb00
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 0x14]
push 0x10
mov dword [ebp - 0x1c], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x47e63e
lea ecx, [esi + 4]
xorps xmm0, xmm0
push ecx
push dword [ebp - 0x1c]
movdqu xmmword [esi], xmm0
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [ecx], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x47e640
xor esi, esi
mov eax, dword [ebp - 0x20]
push edi
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, 1
jmp 0x47e65b
xor al, al
cmp dword [ebp + 0x1c], 8
mov byte [ebp - 0x15], al
jb 0x47e672
push dword [ebp + 8]
call fcn.0048b2ba
mov al, byte [ebp - 0x15]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x4899e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
mov dword [0x6464f0], 0x612164
mov dword [0x6464f4], 0
mov dword [0x6464f8], 0
call fcn.00489da0
push 0x6464fc
mov dword [0x6464f4], eax
mov word [0x646518], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0x6464f0
push 0x489a70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [0x646514], eax
xor ecx, ebp
mov eax, 0x6464f0
call fcn.004a0676
mov esp, ebp
pop ebp
ret

Function at 0x489b00
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b9d10
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x628960]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x628960]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
push eax
mov dword [esp + 0x4c], eax
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.0048a660
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], 1
cmp byte [esi + 0x28], 0
jne 0x489bab
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x489b80
cmp byte [esi + 0x29], 0
je 0x489c66
lea edi, [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 8], 0
jne 0x489bf1
push edi
call ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x28], 0
je 0x489b80
lea ecx, [esp + 0x30]
call fcn.0048a5e0
push dword [esp + 0x30]
call fcn.0048b2ba
add esp, 4
cmp dword [esp + 0x2c], 8
jb 0x489bd3
push dword [esp + 0x18]
call fcn.0048b2ba
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov ebx, dword [eax]
lea eax, [esp + 0x18]
add ebx, 8
cmp eax, ebx
je 0x489c0d
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.00437fd0
lea eax, [ebx + 0x18]
lea ecx, [esp + 0x30]
cmp ecx, eax
je 0x489c22
mov eax, dword [eax]
push eax
push dword [eax]
call fcn.00489de0
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 8], 0
jne 0x489c4c
push edi
call ebx
jmp 0x489ba5
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
push dword [eax]
lea eax, [esp + 0x18]
push eax
call fcn.00489d10
push edi
call ebx
jmp 0x489ba5
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.00489c90
test al, al
je 0x489b9d
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 4]
jmp 0x489ba5
Function at 0x48a6a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba57b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x628960]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ecx], vtable.JSON.0
mov byte [ecx + 0x48], 0
and dword [ecx + 0x48], 0xfffffeff
mov dword [ecx + 0x4c], 0
mov byte [ecx + 0x58], 0
mov eax, ecx
and dword [ecx + 0x58], 0xfffffeff
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x20], 1
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x49111b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x491160
call fcn.0048c61b
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x491160
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x49117c
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0048ae6c
mov ebx, eax
test edi, edi
je 0x49117a
test esi, esi
je 0x49117a
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b11dc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x628960]
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.004a73be
mov dword [ebp - 0x14], eax
cmp dword [0x6438ec], esi
jne 0x4b12cf
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4b125c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4b13af
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4b13af
push 0x5c2b50
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b13af
push eax
call ebx
push 0x5c2b5c
push edi
mov dword [0x6438ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5c2b6c
push edi
mov dword [0x6438f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5c2b80
push edi
mov dword [0x6438f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6438fc], eax
test eax, eax
je 0x4b12cc
push 0x5c2b9c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6438f8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4b12f4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b12e7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4b1309
push 4
pop eax
jmp 0x4b13b1
cmp dword [ebp - 0x14], esi
je 0x4b1309
push dword [0x6438ec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4b12ee
mov eax, dword [0x6438f8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4b1367
cmp dword [0x6438fc], edi
je 0x4b1367
push eax
call ebx
push dword [0x6438fc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4b1367
test eax, eax
je 0x4b1367
call ecx
test eax, eax
je 0x4b135c
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 0x4b135c
test byte [ebp - 8], 1
jne 0x4b1367
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4b1397
mov eax, dword [0x6438f0]
cmp eax, edi
je 0x4b1394
push eax
call ebx
test eax, eax
je 0x4b1394
call eax
mov esi, eax
test esi, esi
je 0x4b1394
mov eax, dword [0x6438f4]
cmp eax, edi
je 0x4b1394
push eax
call ebx
test eax, eax
je 0x4b1394
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x6438ec]
call ebx
test eax, eax
je 0x4b13af
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4b13b1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x4df0c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4df110
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4df10a
shr eax, 8
cmp al, 2
jne 0x4df10a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x4eb740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.004f5460
lea esi, [ebp - 0x108]
add esp, 0x10
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x4eb780
sub esi, ecx
mov ecx, dword [edi + 0x130]
test ecx, ecx
je 0x4eb7ba
cmp dword [edi + 0x45d8], 0
jne 0x4eb7ba
lea edx, [ebp - 0x108]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4eb7a2
mov dword [edi + 0x45d8], 1
cmp dword [edi + 0x324], 0
je 0x4eb7fc
mov byte [ebp + esi - 0x108], 0xa
inc esi
cmp esi, 0x102
jae 0x4eb848
mov eax, dword [edi + 0x19c]
mov byte [ebp + esi - 0x108], 0
test eax, eax
je 0x4eb80c
push dword [edi + 0x12c]
lea ecx, [ebp - 0x108]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
push dword [edi + 0x128]
push 1
push 2
push 0x5ca744
call fcn.004a1a2e
push dword [edi + 0x128]
lea eax, [ebp - 0x108]
push 1
push esi
push eax
call fcn.004a1a2e
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop edi
pop esi
call fcn.004a0676
mov esp, ebp
pop ebp
ret
call fcn.004a5835
int3

Function at 0x4eb850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4eb907
cmp dword [edi + 0x324], 0
je 0x4eb907
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push 0x801
push eax
call fcn.004f5460
lea esi, [ebp - 0x808]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4eb8a1
mov eax, dword [edi + 0x19c]
sub esi, ecx
test eax, eax
je 0x4eb8da
push dword [edi + 0x12c]
lea ecx, [ebp - 0x808]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
push dword [edi + 0x128]
push 1
push 2
push 0x5ca744
call fcn.004a1a2e
push dword [edi + 0x128]
lea eax, [ebp - 0x808]
push 1
push esi
push eax
call fcn.004a1a2e
add esp, 0x20
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x4ebb00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x134]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4ebb7e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4ebb4e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.004f7240
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.004eb740
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x45dc], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebx
pop ebp
ret