joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c660
Capabilities:
Print debug messages

Disassembly:
push ecx
push esi
xor esi, esi
cmp dword [0x4b0948], esi
je 0x43c676
push str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call sub.KERNEL32.dll_OutputDebugStringA
cmp dword [0x4b0940], esi
jne 0x43c6a2
cmp dword [0x4b0948], esi
jne 0x43c68f
call fcn.0043c43d
test eax, eax
je 0x43c6a7
push dword [esp + 0xc]
push dword [0x48bc48]
call fcn.0043c63f
test eax, eax
je 0x43c6a7
xor esi, esi
inc esi
jmp 0x43c6c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7f
je 0x43c6bc
cmp eax, 0x7e
je 0x43c6bc
cmp eax, 0x78
jne 0x43c6c5
xor esi, esi
inc esi
mov dword [0x4b0940], esi
mov eax, esi
pop esi
pop ecx
ret 4

Function at 0x43c6cc
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push ebp
push esi
push edi
xor edi, edi
mov ebp, Ordinal_4
cmp dword [0x4b0924], edi
jne 0x43c710
call ebx
test ebp, eax
je 0x43c706
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4b0920], eax
mov dword [0x4b0924], 1
mov eax, dword [0x4b0920]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x43c72c
push dword [esp + 0x14]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x43c767
mov eax, dword [0x4b092c]
test eax, eax
jne 0x43c75e
call ebx
test ebp, eax
je 0x43c749
push dword [0x47440c]
call dword [0x474408]
jmp 0x43c755
push dword [0x474404]
call dword [0x474400]
test eax, eax
je 0x43c767
mov dword [0x4b092c], eax
push dword [esp + 0x14]
push eax
call esi
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x43fb8a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x487010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4b0900]
test ebx, ebx
jne 0x43fbbc
push 0x190
mov ebx, 0x48e944
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [0x4b0900], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
and dword [ebp - 0x2c], 0
mov dword [0x48e93c], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 6]
mov dword [0x48e938], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x2c]
push ecx
push 0
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [0x48e940], esi
call sub.SocksCapExDLL32.dll_Ordinal_273
mov dword [0x48e92c], eax
lea eax, [ebp - 0x30]
push eax
push 0x40
push 4
push dword [0x48e940]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0xfffffffe
xor ecx, ebp
inc eax
pop ebx
call fcn.0045b700
leave
ret
Function at 0x444803
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x10
sub eax, 0x20
push esi
push edi
mov esi, ecx
je 0x4448e6
sub eax, 5
je 0x4448e2
dec eax
dec eax
je 0x4448d3
sub eax, 0x1a
je 0x4448a3
dec eax
dec eax
je 0x444883
sub eax, 0x28
je 0x44485f
sub eax, 6
jne 0x44498a
mov eax, dword [esi + 0x58]
mov edi, dword [esi]
push eax
mov eax, esi
call fcn.00443c43
push eax
mov ecx, esi
call dword [edi + 0x114]
jmp 0x44498a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x44498a
mov eax, dword [esi]
push 0
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0xd8]
jmp 0x444991
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x44498a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20c]
jmp 0x44498a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x44498a
mov ecx, esi
call sub.MFC42u.dll_CWnd::GetStyle
test al, 4
jne 0x44498a
push 0xffffffffffffffff
mov al, 1
mov ecx, esi
call fcn.00443c88
jmp 0x44498a
push 1
mov eax, dword [esi]
call dword [eax + 0x1b0]
jmp 0x444991
push 0
jmp 0x4448d5
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x44498a
mov eax, esi
call fcn.0041507c
test al, 4
je 0x44493f
mov ecx, esi
call sub.MFC42u.dll_CWnd::GetStyle
test eax, 0x1000
je 0x44498a
mov eax, esi
call fcn.00443c43
mov edi, eax
cmp edi, 0xffffffff
je 0x44498a
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x1a0]
mov edx, dword [esi]
test al, al
sete al
movzx eax, al
push eax
push edi
mov ecx, esi
call dword [edx + 0x1a4]
jmp 0x44498a
mov eax, esi
call fcn.00443c43
cmp eax, 0xffffffff
je 0x44498a
mov edi, dword [esi + 0x58]
cmp edi, 0xffffffff
je 0x44498a
lea eax, [esp + 8]
push eax
mov eax, esi
call fcn.00443c43
push eax
xor eax, eax
inc eax
call fcn.00443ca1
test eax, eax
je 0x44498a
push dword [esp + 0xc]
mov eax, dword [esi + 0x58]
push dword [esp + 0xc]
mov edi, dword [esi]
push eax
mov eax, esi
call fcn.00443c43
push eax
mov ecx, esi
call dword [edi + 0x110]
mov ecx, esi
call sub.MFC42u.dll_CWnd::Default
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x445070
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
mov edi, ecx
call esi
test ax, ax
jge 0x44508a
xor eax, eax
jmp 0x4450d8
push 0x10
call esi
test ax, ax
jl 0x445086
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov ecx, edi
call dword [eax + 0x118]
mov esi, eax
test esi, esi
je 0x445086
push dword [ebp + 0x14]
mov eax, dword [esi]
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [eax + 0x28]
test al, al
jne 0x445086
push dword [ebp + 0x18]
mov eax, dword [esi]
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x44547d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
push edi
lea ebx, [ebp - 8]
lea esi, [ebp - 4]
lea ecx, [ebp + 0xc]
call fcn.00443dea
mov esi, dword [ebp - 4]
cmp esi, 0xffffffff
jne 0x4454aa
mov ecx, edi
call sub.MFC42u.dll_CWnd::Default
jmp 0x445582
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call sub.MFC42u.dll_CWnd::FromHandle
cmp eax, edi
je 0x4454c1
mov ecx, edi
call sub.MFC42u.dll_CWnd::SetFocus
mov ebx, dword [ebp - 8]
mov eax, dword [edi]
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push ebx
push esi
call dword [eax + 0x1e8]
mov dword [ebp - 8], eax
cmp eax, 2
je 0x445568
mov eax, dword [edi]
push 0
push ebx
mov ecx, edi
call dword [eax + 0x10c]
mov ecx, edi
call sub.MFC42u.dll_CWnd::Default
cmp dword [edi + 0x58], ebx
je 0x44550e
mov eax, dword [edi]
push 0
push ebx
mov ecx, edi
call dword [eax + 0x10c]
and dword [ebp - 8], 0
mov eax, edi
call fcn.0041507c
test al, 0x20
jne 0x44555b
mov eax, edi
call fcn.00443c43
cmp esi, eax
je 0x44555b
push esi
mov ecx, edi
call fcn.00443c56
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
jl 0x44555b
push 0x10
call esi
test ax, ax
jl 0x44555b
push 0xffffffffffffffff
xor al, al
mov ecx, edi
call fcn.00443c88
push dword [ebp - 4]
mov al, 1
mov ecx, edi
call fcn.00443c88
mov eax, dword [edi]
push 1
push ebx
mov ecx, edi
call dword [eax + 0x10c]
cmp dword [ebp - 8], 0
je 0x445582
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 0xc]
mov ecx, edi
push ebx
push dword [ebp - 4]
call dword [eax + 0x110]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4497ee
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x4754f0
push dword [ebp + 8]
call sub.msvcrt.dll_fopen
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x44989a
mov eax, 0x80
push eax
xor edi, edi
mov ebx, eax
call sub.msvcrt.dll_malloc
mov esi, eax
pop ecx
test esi, esi
je 0x449891
cmp edi, ebx
jne 0x449846
or eax, 0xffffffff
xor edx, edx
div ebx
cmp eax, 2
jb 0x44988a
add ebx, ebx
push ebx
push esi
call sub.msvcrt.dll_realloc
pop ecx
pop ecx
test eax, eax
je 0x44988a
mov esi, eax
push dword [ebp - 4]
mov eax, ebx
sub eax, edi
push eax
lea eax, [esi + edi]
push 1
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
test eax, eax
je 0x449864
add edi, eax
jmp 0x449825
push dword [ebp - 4]
call sub.msvcrt.dll_feof
pop ecx
test eax, eax
je 0x44988a
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor eax, eax
pop ecx
mov dword [0x48f434], esi
inc eax
jmp 0x44989c
push esi
call sub.msvcrt.dll_free
pop ecx
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44a829
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x487010]
xor eax, esp
mov dword [esp + 0x70], eax
cmp dword [0x48ebe4], 0
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
je 0x44aa16
xor al, al
test edx, edx
jle 0x44a85f
mov al, byte [ecx]
shr al, 4
movzx eax, al
sub eax, 4
je 0x44a930
dec eax
dec eax
jne 0x44aa16
cmp dword [0x48ebc0], eax
je 0x44aa16
cmp edx, 0x28
jb 0x44aa16
cmp byte [ecx + 6], 0x11
jne 0x44aa16
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x5c]
call fcn.0044951b
pop ecx
pop ecx
test eax, eax
je 0x44aa16
mov ecx, dword [esp + 0x10]
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x14]
push eax
push dword [ebp + 8]
lea eax, [esp + 0x20]
call fcn.004497a5
add esp, 0xc
test eax, eax
je 0x44aa16
movzx esi, word [esp + 0x1a]
mov edi, dword [ebp + 8]
xor eax, eax
mov word [esp + 0x1a], ax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x60]
push eax
push edi
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
call fcn.004496a6
add esp, 0x14
cmp si, ax
jne 0x44aa16
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x60]
call fcn.00449d73
pop ecx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1a]
lea ecx, [esp + 0x70]
call fcn.00449d73
jmp 0x44a9d6
cmp edx, 0x14
jb 0x44aa16
cmp byte [ecx + 9], 0x11
jne 0x44aa16
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x14]
push eax
push edx
push ecx
lea ebx, [esp + 0x2c]
call fcn.00449465
add esp, 0x10
test eax, eax
je 0x44aa16
mov ecx, dword [esp + 0x10]
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x14]
push eax
push dword [ebp + 8]
lea eax, [esp + 0x20]
call fcn.004497a5
add esp, 0xc
test eax, eax
je 0x44aa16
push dword [esp + 0x2c]
movzx esi, word [esp + 0x1e]
push dword [esp + 0x2c]
mov edi, dword [ebp + 8]
push dword [esp + 0x18]
xor eax, eax
mov word [esp + 0x26], ax
lea eax, [esp + 0x20]
push eax
call fcn.0044959f
add esp, 0x10
cmp si, ax
jne 0x44aa16
push dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x3c]
call fcn.00449d4b
mov eax, dword [esp + 0x30]
pop ecx
push dword [esp + 0x16]
lea edx, [esp + 0x20]
call fcn.00449d4b
cmp edi, dword [0x48f4c0]
pop ecx
jg 0x44aa16
cmp dword [0x48ebe4], 0
je 0x44aa11
push edi
push dword [esp + 0x14]
lea esi, [esp + 0x24]
sub esp, 0x1c
push 7
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
sub esp, 0x1c
push 7
pop ecx
lea esi, [esp + 0x78]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0044d95e
add esp, 0x40
xor eax, eax
inc eax
jmp 0x44aa18
xor eax, eax
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045b700
mov esp, ebp
pop ebp
ret
Function at 0x455df8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, eax
mov al, byte [0x48f4fa]
test al, 4
jne 0x455e70
test al, 0x10
je 0x455e3f
mov eax, dword [0x48f9e4]
movzx ecx, word [eax]
movzx eax, word [eax + 2]
push ecx
push eax
movzx eax, word [0x48f9e0]
add eax, dword [0x48f9fc]
push 0x48f51c
push 0x48f534
push eax
push dword [0x48fa00]
push esi
call fcn.004509a8
add esp, 0x1c
pop esi
ret
test al, 2
je 0x455e70
push ebx
mov bl, byte [esi + 0x40]
push edi
call fcn.0044c610
mov edi, eax
xor ecx, ecx
cmp edi, ecx
jne 0x455e72
inc word [0x48fa74]
mov eax, dword [esi + 0x48]
cmp eax, ecx
je 0x455e6e
push 0xffffffffffffffff
push ecx
push dword [esi + 0x38]
call eax
add esp, 0xc
pop edi
pop ebx
pop esi
ret
mov al, byte [0x48f548]
mov byte [edi + 0x14], al
mov eax, dword [0x48f534]
cmp byte [0x48f548], 6
mov dword [edi], eax
jne 0x455eac
mov eax, dword [0x48f538]
mov dword [edi + 4], eax
mov eax, dword [0x48f53c]
mov dword [edi + 8], eax
mov eax, dword [0x48f540]
mov dword [edi + 0xc], eax
mov al, byte [0x48f544]
mov byte [edi + 0x10], al
jmp 0x455eb8
mov dword [edi + 0xc], ecx
mov dword [edi + 8], ecx
mov dword [edi + 4], ecx
mov byte [edi + 0x10], cl
mov al, byte [0x48f530]
mov byte [edi + 0x2c], al
mov eax, dword [0x48f51c]
cmp byte [0x48f530], 6
lea ebx, [edi + 0x18]
mov dword [ebx], eax
jne 0x455ef5
mov eax, dword [0x48f520]
mov dword [edi + 0x1c], eax
mov eax, dword [0x48f524]
mov dword [edi + 0x20], eax
mov eax, dword [0x48f528]
mov dword [edi + 0x24], eax
mov al, byte [0x48f52c]
mov byte [edi + 0x28], al
jmp 0x455f01
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x1c], ecx
mov byte [edi + 0x28], cl
mov ecx, dword [0x48f9fc]
push ebp
mov ebp, dword [0x48f9e4]
mov ax, word [ebp + 2]
mov word [edi + 0x46], ax
mov ax, word [ebp]
mov word [edi + 0x48], ax
lea eax, [ecx + 1]
mov dword [edi + 0x54], eax
mov dword [edi + 0x5c], eax
mov eax, dword [0x48c08c]
add eax, dword [0x48f4ec]
mov dword [edi + 0x3c], 3
mov dword [edi + 0x88], eax
mov dword [edi + 0x80], eax
mov dword [edi + 0x74], eax
mov dword [edi + 0x8c], eax
mov dword [0x48c08c], eax
dec ecx
mov dword [edi + 0x84], ecx
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov dword [edi + 0xac], esi
mov al, byte [esi + 0x31]
and al, 0xc
mov byte [edi + 0x31], al
mov al, byte [esi + 0x30]
mov byte [edi + 0x30], al
mov eax, dword [0x48f4e4]
mov dword [edi + 0x34], eax
push edi
mov dword [0x48f4e4], edi
mov byte [0x48f4e8], 1
call fcn.004572d4
movzx eax, word [ebp + 0xe]
pop ecx
mov word [edi + 0x90], ax
mov word [edi + 0x92], ax
pop ebp
test ebx, ebx
je 0x455fb7
cmp byte [edi + 0x2c], 6
jne 0x455fb7
push ebx
mov esi, edi
call fcn.00452cce
jmp 0x455fbd
push ebx
call fcn.004573d0
mov esi, eax
mov ax, word [edi + 0x62]
pop ecx
mov edx, ebx
call fcn.0044c929
push 0x12
mov esi, edi
mov word [edi + 0x62], ax
call fcn.0045028b
pop ecx
test al, al
je 0x455fea
push 0
call fcn.0044ba10
pop ecx
jmp 0x455e6e
mov eax, edi
pop edi
pop ebx
pop esi
jmp fcn.00450536
Function at 0x457ac9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
sub esp, 0x1c
push 7
pop ecx
lea esi, [ebx + 0x60]
mov edi, esp
lea edx, [ebx + 0x130]
rep movsd dword es:[edi], dword [esi]
call fcn.004579b2
mov eax, dword [ebx + 0x128]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x124]
add esp, 0x1c
cmp eax, 0xffffffff
jbe 0x457b05
or dword [ebp - 8], 0xffffffff
jmp 0x457b08
mov dword [ebp - 8], eax
xor eax, eax
lea esi, [ebx + 0x1c]
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [ebx + 0x134]
cmp dword [ebx + 0x10], ecx
je 0x457bfa
mov dword [ebx + 0x170], eax
mov eax, dword [edx]
mov dword [ebx + 0x174], eax
lea eax, [ebp - 8]
mov dword [ebx + 0x178], eax
mov eax, dword [ebx + 0x7c]
push 0x20
lea edx, [ebx + 0x150]
pop esi
xor edi, edi
dec eax
mov dword [ebx + 0x17c], 1
mov dword [ebx + 0x184], edx
mov dword [ebx + 0x180], esi
mov dword [ebx + 0x188], ecx
je 0x457b97
dec eax
jne 0x457bb8
push 8
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], esi
mov dword [edx + 4], 0x29
mov dword [edx + 8], 0x13
lea esi, [ebx + 0x80]
lea edi, [edx + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x20
movsd dword es:[edi], dword [esi]
pop edi
xor ecx, ecx
jmp 0x457bb8
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x14
pop edi
mov dword [edx + 4], ecx
mov dword [edx + 8], 0x13
mov dword [edx], edi
mov eax, dword [ebx + 0x80]
mov dword [edx + 0xc], eax
mov dword [ebx + 0x180], edi
cmp edi, ecx
jne 0x457bc8
mov dword [ebx + 0x184], ecx
push ecx
lea eax, [ebx + 0x1c]
push eax
push ecx
push ecx
lea eax, [ebx + 0x170]
push eax
push dword [ebx + 0xc]
call dword [ebx + 0x10]
cmp eax, 0xffffffff
jne 0x457c12
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x457c12
push 1
push dword [ebx + 4]
call dword [ebx + 8]
pop ecx
pop ecx
jmp 0x457c1c
push ecx
push esi
push dword [edx]
push eax
push ecx
push ecx
push 1
lea eax, [ebp - 8]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_WSASendTo]
jmp 0x457bdc
mov dword [ebx + 0x12c], 1
pop edi
pop esi
leave
ret
Function at 0x457c20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [esi + 0x27c]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x208]
cmp eax, 0xffffffff
jbe 0x457c40
or dword [ebp - 0xc], 0xffffffff
jmp 0x457c43
mov dword [ebp - 0xc], eax
push edi
xor eax, eax
lea edx, [esi + 0x18c]
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 0x14]
xor ecx, ecx
cmp eax, ecx
je 0x457ccb
push ebx
push ecx
lea eax, [esi + 0x2c4]
lea edi, [esi + 0x288]
mov dword [eax], edi
push edx
lea edi, [ebp - 0xc]
push ecx
mov dword [esi + 0x2cc], edi
xor edi, edi
push eax
push dword [esi + 0xc]
inc edi
lea ebx, [esi + 0x2a4]
mov dword [esi + 0x2c8], 0x1c
mov dword [esi + 0x2d0], edi
mov dword [esi + 0x2d8], ebx
mov dword [esi + 0x2d4], 0x20
mov dword [esi + 0x2dc], ecx
call dword [esi + 0x14]
pop ebx
cmp eax, 0xffffffff
jne 0x457cfc
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x457cfc
push edi
push dword [esi + 4]
call dword [esi + 8]
pop ecx
pop ecx
jmp 0x457d02
push ecx
push edx
lea eax, [esi + 0x284]
push eax
mov dword [eax], 0x1c
lea eax, [esi + 0x288]
push eax
lea eax, [ebp - 4]
push eax
push ecx
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0xc]
mov dword [ebp - 4], ecx
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
jmp 0x457cae
mov dword [esi + 0x280], edi
pop edi
leave
ret
Function at 0x457efe
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x487010]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [edi + 4], eax
mov eax, dword [ebp + 8]
dec eax
push 0
mov dword [edi + 8], 0x44d214
pop ebx
je 0x457f36
dec eax
je 0x457f32
xor eax, eax
jmp 0x457f39
push 0x17
jmp 0x457f38
push 2
pop eax
push 1
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
je 0x45802d
mov esi, dword [sym.imp.WS2_32.dll_WSAIoctl]
push ebx
push ebx
mov ecx, 0x754f
mov word [ebp - 0x14], cx
lea edx, [ebp - 0x30]
push edx
push 4
mov ecx, 0x43ca
mov word [ebp - 0x12], cx
lea ecx, [edi + 0x10]
push ecx
push 0x10
lea ecx, [ebp - 0x18]
push ecx
push 0xc8000006
push eax
mov dword [ebp - 0x18], 0xa441e712
mov byte [ebp - 0x10], 0x84
mov byte [ebp - 0xf], 0xa7
mov byte [ebp - 0xe], 0xd
mov byte [ebp - 0xd], 0xee
mov byte [ebp - 0xc], 0x44
mov byte [ebp - 0xb], 0xcf
mov byte [ebp - 0xa], 0x60
mov byte [ebp - 9], 0x6d
call esi
test eax, eax
je 0x457fb3
mov dword [edi + 0x10], ebx
push ebx
push ebx
mov eax, 0x6f1f
mov word [ebp - 0x24], ax
lea ecx, [ebp - 0x30]
push ecx
push 4
mov eax, 0x436b
mov word [ebp - 0x22], ax
lea eax, [edi + 0x14]
push eax
push 0x10
lea eax, [ebp - 0x28]
push eax
push 0xc8000006
push dword [edi + 0xc]
mov dword [ebp - 0x28], 0xf689d7c8
mov byte [ebp - 0x20], 0x8a
mov byte [ebp - 0x1f], 0x53
mov byte [ebp - 0x1e], 0xe5
mov byte [ebp - 0x1d], 0x4f
mov byte [ebp - 0x1c], 0xe3
mov byte [ebp - 0x1b], 0x51
mov byte [ebp - 0x1a], 0xc3
mov byte [ebp - 0x19], 0x22
call esi
test eax, eax
je 0x45800f
mov dword [edi + 0x14], ebx
mov eax, dword [edi]
mov eax, dword [eax + 0x30]
push ebx
push ebx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x458031
push dword [edi + 0xc]
call dword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
jmp 0x4580a9
mov ecx, dword [ebp + 8]
dec ecx
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x2c], 1
je 0x458050
dec ecx
jne 0x458060
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 0x13
push 0x29
jmp 0x458059
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 0x13
push ebx
push eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov ecx, dword [edi]
push 0x457d7a
lea esi, [edi + 0x1c]
mov eax, edi
mov dword [edi + 0x18], ebx
call fcn.0044f7a9
mov ecx, dword [edi]
lea esi, [edi + 0x18c]
mov eax, edi
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x90], ebx
mov dword [esp], 0x457ded
call fcn.0044f7a9
xor eax, eax
pop ecx
mov dword [edi + 0x1cc], ebx
mov dword [edi + 0x1d0], ebx
mov dword [edi + 0x204], ebx
inc eax
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045b700
leave
ret
Function at 0x45817e
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x487010]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push dword [eax + 0xc]
mov dword [ebp - 0x30], 0x1c
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x4581f1
mov eax, dword [ebp - 0x30]
sub esp, 0x20
push 8
pop ecx
mov dword [ebp - 0x28], eax
lea esi, [ebp - 0x28]
mov edi, esp
lea ebx, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
call fcn.00458e97
xor eax, eax
inc eax
add esp, 0x20
cmp dword [ebp - 0x4c], eax
jne 0x4581e5
mov cx, word [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
mov word [edx], cx
jmp 0x4581f3
cmp dword [ebp - 0x4c], 2
jne 0x4581f1
mov cx, word [ebp - 0x38]
jmp 0x4581dd
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045b700
leave
ret