joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429547
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x555718]
call fcn.0044925d
mov ebx, eax
test ebx, ebx
je 0x4295ab
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x429570
push dword [esp + 0xc]
push ebx
call eax
jmp 0x4295ab
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00449fc0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0044a0a0
pop edi
pop esi
pop ebx
ret 8

Function at 0x429675
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 1
call edi
mov ebx, 0x8000
test bx, ax
je 0x42968f
inc esi
push 2
call edi
test bx, ax
je 0x42969b
or esi, 2
push 4
call edi
test bx, ax
je 0x4296a7
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x429c89
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x429cc1
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
test byte [edi + 0x14], 8
je 0x429da6
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x429da6
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
sub ebp, dword [esp + 0x18]
mov dword [esp + 0x28], eax
test eax, eax
jle 0x429dd4
test ebp, ebp
jle 0x429dd4
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x429dd4
push ebp
push dword [esp + 0x2c]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x429d9d
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x429d47
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x429d5c
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
sub dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x3c]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x429dd4
cmp dword [edi + 0x10], ebx
je 0x429dc0
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x429dd4
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
cmp dword [esp + 0x10], 0
je 0x429de4
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x429dec
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, dword [esp + 0x20]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi]
mov dword [esp + 0x14], eax
call fcn.0042eb7b
push eax
call fcn.0042f6c3
push dword [0x554294]
mov dword [esp + 0x24], eax
call fcn.004493d9
mov ebp, eax
movsx ecx, si
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
mov edi, 0x8000
test di, ax
je 0x429e60
inc ebx
push 0x12
call esi
test di, ax
je 0x429e6c
or ebx, 2
push 0x11
call esi
test di, ax
je 0x429e78
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.00429675
push 0x429ecd
push ebp
push dword [esp + 0x2c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x3c]
push dword [esp + 0x20]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x44]
movzx eax, ax
push 0x332c
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], eax
call fcn.00434e58
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x42c428
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x555720]
call fcn.004490be
xor ebp, ebp
mov esi, eax
cmp dword [0x554798], ebp
jne 0x42c504
xor ebx, ebx
inc ebx
mov dword [0x554798], ebx
call fcn.0042e9e6
mov edi, 0xa4
push edi
push ebp
push 0x5547a0
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x5547a0], 0x13
lea eax, [esp + 0x10]
mov dword [0x5547a4], edi
mov dword [0x5547b0], 0x42c373
mov dword [0x5547b4], 0x42c6be
push eax
mov dword [0x554808], 0x42c34e
mov dword [0x55480c], 0x42c609
mov dword [0x5547ac], 0x42c329
mov dword [0x554830], 0x42c38e
mov dword [0x554844], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42c504
cmp dword [esp + 0x20], ebx
je 0x42c4ec
cmp dword [esp + 0x20], 2
jne 0x42c504
cmp dword [esp + 0x14], 5
jae 0x42c4f4
mov dword [0x554844], ebp
jmp 0x42c504
jne 0x42c504
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x554844], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.004359c4
mov eax, dword [esp + 0x140]
push ebp
push dword [0x553c4c]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x42c5da
push dword [esp + 0x128]
push dword [0x555718]
call fcn.0044929c
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x42c5a9
push edi
call fcn.00440cb5
test eax, eax
je 0x42c5a9
push ebp
push ebp
push edi
call fcn.004408ff
mov dword [esi + 0x18], eax
jmp 0x42c5ac
mov dword [esi + 0x18], ebp
push 0x42c078
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x5547a0
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x55479c], eax
call fcn.0042ebaa
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c

Function at 0x42d12c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x42d19e
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x42d155
mov ebx, eax
push dword [ebp]
call fcn.0042c8f8
push ebx
push dword [ebp]
mov edi, eax
call fcn.0042c8cf
add esp, 0xc
mov esi, eax
push 0
push ebx
push 0x130c
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push dword [ebp]
call fcn.0042d1be
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42fad9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x555748]
call fcn.0044925d
mov esi, eax
test esi, esi
je 0x42fbb3
cmp dword [ebp + 0xc], 0
je 0x42fb25
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x42fb16
cmp dword [esi + 0x1c], 0
jne 0x42fb16
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x42fbb3
test byte [ebp + 0x10], 3
je 0x42fb40
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00430743
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x42fb65
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x42fb79
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x42fb96
test ebx, ebx
je 0x42fb8a
push 8
jmp 0x42fb9c
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x42fba9
test ebx, ebx
je 0x42fb9f
push 3
pop ecx
jmp 0x42fba9
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x430a01
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x430a94
push 9
call esi
test al, al
jns 0x430a94
push 0x11
call esi
test al, al
js 0x430a94
push 0x10
call esi
test al, al
js 0x430a94
push 0x12
call esi
test al, al
js 0x430a94
push 0x10
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
push 5
lea eax, [ebp - 0x24]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x430a76
push 4
lea eax, [ebp - 0x24]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x430a94
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
jne 0x430a94
xor eax, eax
jmp 0x430b15
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x430abc
push 0x11
call esi
test al, al
js 0x430ab4
push 0x10
call esi
test al, al
js 0x430ab4
push 0x12
call esi
test al, al
jns 0x430abc
push 1
push edi
call fcn.00430b1d
mov esi, dword [sym.imp.USER32.dll_GetPropW]
test ebx, ebx
je 0x430ad2
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x430b12
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x430b12
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x430b12
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x430b12
lea eax, [esi - 1]
push eax
push dword [0x555748]
call fcn.0044925d
test eax, eax
je 0x430b12
mov eax, dword [eax + 8]
jmp 0x430b14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x431432
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4314db
cmp dword [ebp + 0xc], esi
je 0x4314db
push edi
push dword [ebp + 8]
push dword [0x555760]
call fcn.0044925d
mov edi, eax
test edi, edi
je 0x4314da
or dword [edi + 0x28], 0xffffffff
or dword [edi + 0x2c], 0xffffffff
cmp dword [ebp + 0x14], esi
je 0x4314c9
push 0xc
push esi
push dword [0x553c50]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov dword [eax], edi
add eax, 4
push eax
call fcn.00449d50
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
lea eax, [edi + 8]
push eax
call fcn.00449d50
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push 0x431670
push 0x4000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4314c0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
jmp 0x4314da
push edi
call fcn.0043140c
pop ecx
jmp 0x4314da
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004314f8
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x10

Function at 0x4314f8
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1040
call fcn.00422410
push ebx
push ebp
push esi
push edi
push dword [esp + 0x105c]
xor edi, edi
mov dword [esp + 0x18], edi
call fcn.004f3530
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push accept
push dword [esp + 0x1070]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [esp + 0x1054]
mov ebx, eax
test ebx, ebx
je 0x431645
push 0x4fb83c
push str.TYPE
push esi
call fcn.00431de3
test eax, eax
je 0x43163e
push 0x4fb824
push esi
call fcn.00431ce2
test eax, eax
je 0x43163e
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00431f56
test eax, eax
je 0x43163e
push ebp
push str.STOR
push esi
call fcn.00431de3
test eax, eax
je 0x431626
push str.125_150
push esi
call fcn.00431ce2
test eax, eax
je 0x431626
cmp dword [esi + 0x1c], edi
jne 0x4315bd
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00431f00
test eax, eax
je 0x431626
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 1
push eax
push esi
call fcn.004320dc
test eax, eax
je 0x431626
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
push edi
lea eax, [esp + 0x14]
push eax
push 0x1000
lea eax, [esp + 0x5c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], edi
jle 0x431623
push dword [esp + 0x10]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00431e20
test eax, eax
je 0x431626
mov eax, dword [esp + 0x10]
cdq
add dword [esi + 0x28], eax
adc dword [esi + 0x2c], edx
cmp dword [esi + 0x30], edi
je 0x4315dd
jmp 0x431626
xor edi, edi
inc edi
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004320ba
cmp dword [esp + 0x14], 0
je 0x43163e
push esi
call fcn.00431db4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.004f3520
or dword [esi + 0x2c], 0xffffffff
test edi, edi
je 0x43165c
mov dword [esi + 0x28], 0xfffffffd
jmp 0x431663
mov dword [esi + 0x28], 0xfffffffe
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1040
ret
Function at 0x431968
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x431a11
cmp dword [ebp + 0x10], esi
je 0x431a11
push edi
push dword [ebp + 8]
push dword [0x555760]
call fcn.0044925d
mov edi, eax
test edi, edi
je 0x431a10
or dword [edi + 0x28], 0xffffffff
or dword [edi + 0x2c], 0xffffffff
cmp dword [ebp + 0x14], esi
je 0x4319ff
push 0xc
push esi
push dword [0x553c50]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov dword [eax], edi
add eax, 4
push eax
call fcn.00449d50
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
lea eax, [edi + 8]
push eax
call fcn.00449d50
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push 0x431baf
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4319f6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
jmp 0x431a10
push edi
call fcn.00431942
pop ecx
jmp 0x431a10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00431a18
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x10
Function at 0x431a18
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1048
call fcn.00422410
push ebx
push ebp
push esi
push edi
push dword [esp + 0x1060]
xor edi, edi
mov ebx, edi
call fcn.004f3530
mov esi, dword [esp + 0x105c]
mov ebp, eax
push 0x4fb83c
push str.TYPE
push esi
mov dword [esp + 0x1c], ebp
call fcn.00431de3
test eax, eax
je 0x431b84
push 0x4fb824
push esi
call fcn.00431ce2
test eax, eax
je 0x431b84
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00431f56
test eax, eax
je 0x431b84
push ebp
push str.RETR
push esi
call fcn.00431de3
test eax, eax
je 0x431b6f
push str.125_150
push esi
call fcn.00431ce2
test eax, eax
je 0x431b6f
cmp dword [esi + 0x1c], edi
jne 0x431ac0
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00431f00
test eax, eax
je 0x431b6f
lea eax, [esp + 0x20]
xor ebx, ebx
push eax
inc ebx
push esi
mov dword [esp + 0x1c], ebx
call fcn.004320dc
test eax, eax
je 0x431b6f
push edi
push pe_nt_image_headers32
push 2
push edi
push ebx
push 0xc0000000
push dword [esp + 0x107c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
test ebp, ebp
je 0x431b6b
push 0x1000
lea eax, [esp + 0x5c]
mov dword [esi + 0x28], edi
push eax
lea eax, [esp + 0x28]
mov dword [esi + 0x2c], edi
push eax
mov dword [esi + 0x30], edi
call fcn.00431cf6
mov dword [esp + 0x18], eax
test eax, eax
je 0x431b62
mov ebx, eax
cmp dword [esi + 0x30], edi
jne 0x431b5e
push edi
lea eax, [esp + 0x20]
push eax
push ebx
lea eax, [esp + 0x64]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, ebx
cdq
add dword [esi + 0x28], eax
lea eax, [esp + 0x58]
push 0x1000
adc dword [esi + 0x2c], edx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00431cf6
mov ebx, eax
test ebx, ebx
jne 0x431b23
mov ebx, dword [esp + 0x14]
push ebp
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004320ba
test ebx, ebx
je 0x431b84
push esi
call fcn.00431db4
push ebp
call fcn.004f3520
or dword [esi + 0x2c], 0xffffffff
test edi, edi
je 0x431b9b
mov dword [esi + 0x28], 0xfffffffd
jmp 0x431ba2
mov dword [esi + 0x28], 0xfffffffe
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1048
ret
Function at 0x431f56
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc28
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [esi + 0x1c], ebx
je 0x432037
push 0x4fb7b7
push str.PASV
push esi
call fcn.00431de3
push 0x400
lea eax, [ebp - 0x428]
push eax
push 0x4fb880
push esi
call fcn.00431d0c
test eax, eax
je 0x4320af
lea esi, [ebp - 0x425]
cmp byte [ebp - 0x425], bl
je 0x4320af
mov al, byte [esi]
cmp al, 0x30
jl 0x431fdd
cmp al, 0x39
jg 0x431fdd
mov ecx, esi
cmp al, 0x39
jg 0x431fca
inc esi
mov al, byte [esi]
cmp al, 0x30
jge 0x431fbf
push ecx
mov byte [esi], bl
call sub.MSVCRT.dll_atoi
mov dword [ebp + edi*4 - 0x18], eax
inc edi
pop ecx
cmp edi, 6
je 0x431feb
inc esi
cmp byte [esi], bl
jne 0x431fb3
cmp edi, 6
jne 0x4320af
push dword [ebp - 0xc]
lea eax, [ebp - 0xc28]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x4fb884
push eax
call fcn.004f36c0
mov eax, dword [ebp - 8]
add esp, 0x18
shl eax, 8
add eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0xc28]
push eax
call fcn.00432728
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test eax, eax
je 0x4320af
mov dword [ecx + 0x20], 5
jmp 0x4320ac
push ebx
push 0xffffffffffffffff
call fcn.00432d43
mov dword [esi + 8], eax
test eax, eax
je 0x4320af
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0x10
push ecx
lea ecx, [ebp - 0x28]
push ecx
push dword [eax]
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x26]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
movzx eax, cl
push eax
sar ecx, 8
lea eax, [ebp - 0x428]
and ecx, 0xff
push ecx
push str.127_0_0_1__d__d
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
lea eax, [ebp - 0x428]
push eax
push str.PORT
push esi
call fcn.00431de3
push 0x4fb824
push esi
call fcn.00431ce2
test eax, eax
je 0x4320af
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4321df
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push fcn.0043212e
push 0x10
push 0x2c
call fcn.00449330
push 0
push 0
push 8
mov dword [0x554ca4], eax
call fcn.00449129
cmp word [0x554c9c], 0
mov dword [0x555768], eax
jne 0x4322c4
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x432237
mov word [0x554c9c], di
jmp 0x43223f
xor eax, eax
mov word [0x554c9c], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x554cb8], eax
test eax, eax
je 0x4322c3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4fb8dc
push eax
call esi
push 0x4fb8e8
push dword [0x554cb8]
mov dword [0x554ca8], eax
call esi
push str.getnameinfo
push dword [0x554cb8]
mov dword [0x554cac], eax
call esi
push str.WSAStringToAddressA
push dword [0x554cb8]
mov dword [0x554cb0], eax
call esi
cmp dword [0x554ca8], 0
mov dword [0x554cb4], eax
pop esi
je 0x4322c3
cmp dword [0x554cac], 0
je 0x4322c3
cmp dword [0x554cb0], 0
je 0x4322c3
test eax, eax
je 0x4322c3
mov dword [0x554ca0], edi
pop edi
add esp, 0x190
ret
Function at 0x4327ad
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [esi], 1
jne 0x4327d3
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
jmp 0x432810
cmp dword [esi + 0x2c], ebx
je 0x432810
mov edi, dword [ebp + 0x10]
cmp edi, dword [esi + 0x30]
jle 0x4327e3
mov edi, dword [esi + 0x30]
push edi
push dword [esi + 0x34]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0x30], edi
add esp, 0xc
add dword [esi + 0x34], edi
cmp dword [esi + 0x30], ebx
jne 0x432810
push dword [esi + 0x2c]
push ebx
push dword [0x553c50]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x2c], ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc