joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456d60
Capabilities:
Access the windows event log

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
shr eax, 0x18
sub eax, 0
je 0x456d86
sub eax, 1
je 0x456d7f
sub eax, 1
jne 0x456d86
mov eax, 1
jmp 0x456d8b
mov eax, 2
jmp 0x456d8b
mov eax, 4
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 1
push 0
push ecx
push 0
push eax
mov eax, dword [0x4ffe64]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
xor eax, eax
ret

Function at 0x458770
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4cebab
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4fb164]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x458804
push 8
call fcn.004a2180
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 0
test esi, esi
je 0x4587c3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], edi
jmp 0x4587c5
xor esi, esi
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [edi]
cmp dword [eax], 0xc00000fd
jne 0x45881d
push 0
push 0
push esi
push fcn.00458150
push 0x19000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x458804
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
push esi
call fcn.00458150
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x459a60
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 1
mov ebx, ecx
push eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebx + 0xa0]
mov edi, dword [ecx]
lea eax, [ebx + 0x9c]
mov edx, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], edx
jmp 0x459aa4
mov edi, dword [esp + 0x14]
lea ecx, [ebx + 0x9c]
cmp eax, ecx
jne 0x459c1a
cmp edi, dword [esp + 0x2c]
je 0x459c24
test eax, eax
je 0x459c1a
cmp edi, dword [eax + 4]
je 0x459c1f
mov eax, dword [edi + 0x10]
movzx ecx, word [eax + 4]
push ecx
mov eax, ebx
call fcn.00459c30
mov edx, dword [edi + 0x10]
mov esi, eax
movzx eax, word [edx + 6]
push eax
mov eax, ebx
call fcn.00459c30
test esi, esi
mov edi, eax
je 0x459c05
test edi, edi
je 0x459c05
mov eax, dword [esi + 8]
add eax, dword [esi]
lea ebx, [esp + 0x30]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
mov esi, dword [esp + 0xc]
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
push eax
push ecx
call fcn.0045a2c0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [edi + 8]
add eax, dword [edi]
mov dword [esp + 0x1c], edx
cdq
sub eax, edx
mov dword [esp + 0x18], ecx
mov ecx, eax
mov eax, dword [edi + 0xc]
add eax, dword [edi + 4]
sar ecx, 1
cdq
sub eax, edx
sar eax, 1
push eax
push ecx
lea ebx, [esp + 0x40]
call fcn.0045a2c0
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x10]
mov eax, dword [edx + 9]
lea ebx, [eax + eax*2]
mov eax, dword [esp + 0x18]
add eax, ecx
cdq
sub eax, edx
mov edi, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esi + ecx]
cdq
sub eax, edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x24], esi
mov esi, eax
sar edi, 1
sar esi, 1
cmp byte [edx + 0xbb], 0
lea ebx, [ebx*4 + 0x4fe9e0]
je 0x459bd8
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
cmp byte [eax + 8], 0
je 0x459bc1
mov eax, dword [eax]
push eax
push str._02dP
jmp 0x459bc9
mov ecx, dword [eax]
push ecx
push str._02d
push 0
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.00468540
add esp, 0x14
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
mov ecx, dword [ebx + 8]
call fcn.004689a0
mov ebx, dword [esp + 0x24]
add esp, 0x18
lea edx, [esp + 0x10]
call fcn.0045cc00
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x459aa0
call fcn.0045ca70
call fcn.0045ca00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4601e0
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x504
mov eax, dword [0x4fb164]
xor eax, esp
mov dword [esp + 0x500], eax
push ebp
mov ebp, dword [esp + 0x50c]
push esi
push edi
push 0xfe
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.004a6f40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
mov eax, esi
call fcn.004602f0
push eax
lea ecx, [esp + 0x10]
push 0xff
push ecx
call fcn.004a470d
add esp, 0xc
mov eax, dword [esp + 0x518]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
mov edi, eax
test edi, edi
jne 0x4602be
push 0x3ff
push eax
lea ecx, [esp + 0x115]
push ecx
mov byte [esp + 0x118], al
call fcn.004a6f40
lea edx, [esp + 0x18]
push edx
movzx eax, si
push eax
push str.Cannot_find_proper_font__LangID_:_0x_X__FontName_:__s___please_contact_to_Joymax
lea ecx, [esp + 0x124]
push 0x400
push ecx
call fcn.004a470d
add esp, 0x20
push 0x30
push str.Error
lea edx, [esp + 0x114]
push edx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push edi
push 0x30
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x50c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004a2094
add esp, 0x504
ret

Function at 0x4661d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x46625c
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4661f0
sub eax, edx
add eax, 1
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov eax, ebx
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x466220
sub eax, edi
lea ecx, [eax + 1]
cmp ecx, 0x7fffffff
ja 0x466241
mov eax, ebx
call fcn.00402ce0
test eax, eax
je 0x466246
call fcn.0046e510
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ecx
ret
Function at 0x466d50
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov edi, ecx
mov ebx, eax
mov eax, dword [edi + 0xb4]
push 0
push eax
call esi
mov eax, dword [ebx + 0x14]
push 5
push eax
mov dword [edi + 0xb4], eax
call esi
mov ecx, dword [edi + 0x14]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
mov esi, dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call esi
push 2
push eax
call esi
push 2
push eax
call esi
cmp ebx, dword [edi + 0xc0]
mov ebx, dword [sym.imp.USER32.dll_CheckMenuItem]
mov esi, eax
jne 0x466dc2
push 8
push 0xbb9
push esi
call ebx
push 0
push 0xbba
push esi
call ebx
call fcn.00466bb0
pop edi
pop esi
pop ebx
ret
push 0
push 0xbb9
push esi
call ebx
push 8
push 0xbba
push esi
call ebx
call fcn.00466bb0
pop edi
pop esi
pop ebx
ret

Function at 0x466de0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, dword [ebp + 0xa8]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebp + 0xa8]
mov dword [ecx + 4], ecx
cmp eax, dword [ebp + 0xa8]
mov dword [ebp + 0xac], 0
je 0x466e29
mov esi, dword [eax]
push eax
call fcn.004a20a3
add esp, 4
cmp esi, dword [ebp + 0xa8]
mov eax, esi
jne 0x466e14
mov eax, dword [ebp + 0x94]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp + 0x9c]
mov ebx, dword [ecx]
lea esi, [ebp + 0x98]
mov edx, ecx
mov dword [esp + 0x14], edx
lea esp, [esp]
cmp esi, esi
jne 0x466ed0
cmp ebx, dword [esp + 0x14]
je 0x466e83
cmp ebx, dword [esi + 4]
je 0x466e7e
mov edi, dword [ebx + 8]
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
cmp ebx, dword [esi + 4]
je 0x466e7e
mov ebx, dword [ebx]
jmp 0x466e50
jmp fcn.00467eb0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esi + 4]
mov dword [ecx + 4], ecx
cmp eax, dword [esi + 4]
mov dword [esi + 8], 0
je 0x466eb2
lea esp, [esp]
mov edi, dword [eax]
push eax
call fcn.004a20a3
add esp, 4
cmp edi, dword [esi + 4]
mov eax, edi
jne 0x466ea0
mov eax, dword [ebp + 0x90]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, ebp
call fcn.0045fa40
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
jmp 0x467f20
push 0xffffffffffffffff
push 0x4d0a68
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4fb164]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
push 0x18
push str.invalid_list_T__argument
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.00402d90
mov dword [esp + 0x50], 0
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x24]
call fcn.004025e0
push 0x4e7d7c
lea ecx, [esp + 0x24]
push ecx
call fcn.004a634b
int3
Function at 0x46f9d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [edx]
push esi
mov ecx, 0x20
push edi
lea esp, [esp]
mov edi, eax
shr edi, 2
xor edi, eax
shr edi, 2
xor edi, eax
shr edi, 1
xor edi, eax
shr edi, 1
xor edi, eax
shr edi, 1
mov esi, eax
ror esi, 1
xor edi, eax
and esi, 0xfffffffe
and edi, 1
or esi, edi
sub ecx, 1
mov eax, esi
jne 0x46f9e0
pop edi
mov dword [edx], eax
pop esi
ret

Function at 0x46fe00
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
cmp dword [esi + 4], 0xffffffff
mov dword [esi + 8], eax
jne 0x46fe33
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x46fe33
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, esi
call fcn.0046fde0
xor eax, eax
ret
mov eax, 1
ret
Function at 0x470370
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x4d5cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x4fb164]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
cmp edi, esi
jne 0x4703b6
mov eax, 0x8009
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
lea ecx, [edi + 0x10]
cmp ecx, esi
jne 0x4703c8
call fcn.0046e510
mov ebp, dword [esp + 0x1c]
jmp 0x4703e6
mov ebp, ecx
mov dword [esp + 0x1c], ebp
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 4]
push 0xffffffffffffffff
mov dword [esp + 0x28], esi
call eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], esi
mov ecx, dword [edi + 0x140]
cmp ecx, esi
je 0x470446
cmp dword [0x500ec4], esi
je 0x470446
push 1
mov dword [esp + 0x14], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push esi
lea eax, [esp + 0x18]
push eax
call edx
mov ecx, dword [esp + 0x10]
cmp ecx, esi
je 0x470446
mov eax, dword [0x500ec4]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x4c]
call eax
mov ecx, dword [edi + 0x140]
push 1
mov dword [esp + 0x14], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push esi
lea eax, [esp + 0x18]
push eax
call edx
mov ecx, dword [esp + 0x10]
cmp ecx, esi
jne 0x470417
cmp dword [edi + 8], 1
jne 0x4704c3
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x4704bc
cmp dword [edi + 0xc], esi
je 0x470487
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [edi + 4]
push esi
push esi
lea eax, [esp + 0x20]
push eax
push 4
push esi
push esi
push esi
push 0x4004667f
push ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
jmp 0x4704ab
push 4
lea edx, [esp + 0x14]
push edx
push 0x80
push 0xffff
push eax
mov word [esp + 0x24], 1
mov word [esp + 0x26], si
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0xffffffff
cmp dword [0x500ec8], esi
jne 0x4704d0
call fcn.004700d0
mov dword [esp + 0x30], 0xffffffff
cmp ebp, esi
jne 0x4704e1
call fcn.0046e510
cmp dword [esp + 0x24], esi
je 0x4704fc
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x24], eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret

Function at 0x4707a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ecx
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [ecx + 4]
lea eax, [esp]
push eax
push esi
push ecx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, esi
pop ecx
ret
Function at 0x4713d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
sub eax, 0
je 0x471401
sub eax, 1
jne 0x47140b
mov ecx, dword [ebx + 0x98]
cmp ecx, dword [ebx + 0x9c]
lea eax, [ebx + 0x60]
jne 0x4713fa
mov eax, 6
pop esi
pop ecx
ret
call fcn.0046f7b0
jmp 0x47140b
movzx edx, word [esi + 0x103e]
mov dword [esi + 0x24], edx
push ebp
push edi
lea ebp, [ebx + 0x14c]
push ebp
xor edi, edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esi + 0x20]
mov edx, dword [ebx + 4]
push edi
push esi
push edi
lea eax, [esp + 0x18]
push eax
push ecx
add esi, 0x24
push esi
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x471495
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x471453
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
cmp eax, 0x2733
je 0x471479
cmp eax, 8
je 0x471479
cmp eax, 0x2747
je 0x471479
push ebp
mov edi, 0x8002
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
push eax
push str.WSASend_____NERR_TOO_MANY_OUTSTANDING:__d
push 0
call fcn.004797a0
add esp, 0xc
push ebp
mov edi, 0x8005
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret

Function at 0x471af0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [ebx + 0xdc]
mov ecx, dword [ebx + 0xe0]
sub esp, 8
cmp eax, ecx
push ebp
push esi
lea esi, [ebx + 0xa4]
jne 0x471b12
xor ebp, ebp
mov dword [esi + 0x38], ebp
jmp 0x471b2d
sub eax, ecx
push edi
mov edi, eax
mov eax, dword [esi + 0x34]
push edi
add ecx, eax
push ecx
push eax
call fcn.004a52a0
add esp, 0xc
mov dword [esi + 0x38], edi
xor ebp, ebp
pop edi
mov eax, esi
mov dword [esi + 0x3c], ebp
call fcn.0046f7b0
mov ecx, dword [ebx + 0xc4]
push ebp
push esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 4]
push ecx
lea edx, [ebx + 0xc8]
push edx
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
pop esi
pop ebp
jne 0x471b9c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x471b9c
cmp eax, 0x2733
je 0x471b93
cmp eax, 8
je 0x471b93
cmp eax, 0x2747
je 0x471b93
mov eax, 0x8002
add esp, 8
ret
mov eax, 0x8005
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x475d30
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
cmp dword [esi + 4], 0xffffffff
mov byte [esi + 0xa8], 1
jne 0x475d75
push 1
push 0
push 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x475d75
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
pop esi
xor eax, eax
pop ebp
ret 4
xor eax, eax
test bp, bp
push edi
lea edi, [esi + 0xb8]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov word [edi], 2
jbe 0x475db3
mov ecx, dword [esi + 4]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push ebp
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 4]
push 0x10
push edi
push edx
mov word [esi + 0xba], ax
mov dword [esi + 0xbc], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
pop edi
jne 0x475deb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
xor eax, eax
pop ebp
ret 4
call fcn.00476040
test eax, eax
je 0x475d6e
mov eax, esi
call fcn.00476070
pop esi
mov eax, 1
pop ebp
ret 4

Function at 0x476ac0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
cmp byte [0x543ec8], 0
jne 0x476b22
lea eax, [esp]
push eax
push 1
mov byte [0x543ec8], 1
call fcn.00476a80
add esp, 8
test al, al
je 0x476af9
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [0x543ed4], ecx
mov dword [0x543ed8], edx
lea eax, [esp]
push eax
push reloc.WS2_32.dll_accept
call fcn.00476a80
add esp, 8
test al, al
je 0x476b22
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [0x543edc], ecx
mov dword [0x543ee0], edx
mov edx, esi
sar edx, 5
cmp edx, 3
jbe 0x476b3d
push str.cap_invalid
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
add esp, 0x10
ret
mov ecx, esi
and ecx, 0x1f
mov eax, 1
shl eax, cl
and eax, dword [edx*4 + 0x543ed4]
neg eax
sbb eax, eax
neg eax
add esp, 0x10
ret

Function at 0x4793e0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov dword [edx], ecx
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
add esp, 0x24
ret
Function at 0x479930
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d5a88
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4fb164]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4fb164]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
lea ecx, [eax + 0x360]
mov dword [esp + 0x18], esi
call fcn.00477ab0
xor ebx, ebx
cmp eax, ebx
je 0x479ab5
cmp esi, ebx
je 0x479ab5
mov ecx, dword [eax + 0x28]
cmp ecx, ebx
je 0x479ab5
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x58], ebx
lea esi, [esp + 0x1c]
call fcn.004707a0
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x4799c8
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.00402d90
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x479a2a
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 0x280
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a1db9
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x479aa4
lea ecx, [esp + 0x14]
push ecx
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
mov edi, dword [esp + 0x10]
cmp edi, ebx
je 0x479a9b
mov eax, 6
cmp dword [edi + 0x190], eax
jne 0x479a91
cmp dword [edi + 0x1a0], eax
jne 0x479a91
lea esi, [edi + 0x1ac]
lea ecx, [ecx]
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x479a5f
lea eax, [esp + 0x30]
lea ecx, [esi + 4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x479a82
cmp dl, bl
je 0x479a7e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x479a82
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x479a62
xor eax, eax
jmp 0x479a87
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x479ad7
mov esi, dword [esi]
cmp esi, ebx
jne 0x479a50
mov edi, dword [edi]
cmp edi, ebx
jne 0x479a32
mov edi, dword [esp + 0x10]
push edi
call fcn.004a217b
add esp, 4
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00402ed0
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.004a2094
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x18]
push 6
add edi, 0x194
push edi
push edx
call fcn.00476b90
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call fcn.004a217b
add esp, 4
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x44], 0x10
jb 0x479b16
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004a20a3
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov eax, 1
jmp 0x479ab7
Function at 0x481390
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x4fb164]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push 0x10
push eax
push 0
push 0x10
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x18], 0x52
mov byte [esp + 0x19], 0x45
mov byte [esp + 0x1a], 0x51
mov byte [esp + 0x1b], 0
mov dword [esp + 0x24], edx
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004a2094
add esp, 0x14
ret

Function at 0x4813f0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4fb164]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push 0x10
push eax
push 0
push 0x10
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x18], 0x41
mov byte [esp + 0x19], 0x43
mov byte [esp + 0x1a], 0x4b
mov byte [esp + 0x1b], 0
mov dword [esp + 0x24], edx
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004a2094
add esp, 0x1c
ret

Function at 0x4817c0
Capabilities:
Resume thread

Disassembly:
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4817c8
ret
cmp dword [edi + 0x10], 0
push ebx
push ebp
lea ebp, [edi + 0x10]
je 0x481808
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4817e6
pop ebp
xor eax, eax
pop ebx
ret
cmp eax, 1
jbe 0x4817ff
push esi
lea esi, [eax - 1]
test esi, esi
jbe 0x4817fe
mov eax, dword [edi + 0xc]
push eax
call ebx
sub esi, 1
jne 0x4817f3
pop esi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop ebp
mov eax, 1
pop ebx
ret