joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457820
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4919d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00484655
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00489cf4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048b253
test eax, eax
je 0x45793c
mov ecx, dword [esp + 0x3c]
call fcn.00489d21
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x457900
push edi
mov ecx, esi
call fcn.00487387
mov ecx, esi
call fcn.00457aa0
cmp dword [esp + 0x38], 1
jne 0x457935
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004874c2
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x45a360
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45a393
push esi
call fcn.0045d450
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45a38c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45a419
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45a402
mov eax, dword [esi + 8]
test eax, eax
je 0x45a3b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45a3fe
cmp eax, 2
je 0x45a402
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45a3aa
cmp eax, 3
je 0x45a3dd
cmp eax, 1
jne 0x45a3aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45a3aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45a3aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045a440
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45a428
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045a440
add esp, 4
pop esi
ret

Function at 0x466300
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x466366
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x466366
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x466347
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4666f0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x466728
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x467400
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x467449
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4678c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491ed0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00467470
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004674f0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004674f0
lea ecx, [esi + 0xc]
call fcn.00483032
lea ecx, [esi + 0x10]
call fcn.00483032
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00468a80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00468a80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00468a80
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004830a7
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004830a7
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x46a4b0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x46a553
test eax, eax
jbe 0x46a553
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x46a553
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46a4fe
xor esi, esi
jmp 0x46a504
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46a52f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0046c010
add esi, eax
push esi
mov ebx, esi
call fcn.0046c010
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x46a510
pop ebp
test edi, edi
pop edi
jne 0x46a553
test ebx, ebx
je 0x46a553
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00473090
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x46a695
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46a7ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46a7ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.00484aa7
mov esi, eax
test esi, esi
je 0x46a7ad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46a7ad
mov ecx, esi
call fcn.0046a600
cmp edi, eax
jge 0x46a7ad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x46a733
mov dword [esp + 0x34], 1
jmp 0x46a78e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46a7ad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00468e80
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x46df70
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x4df73c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x46df83
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x46dfc4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x4df7e4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x46dff6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x46dffa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x46dfeb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x46e018
mov bl, byte [esp + ecx + 0x4c]
jmp 0x46e01c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x46e00d
xor ecx, ecx
mov eax, 0x4df74c
xor ebx, ebx
mov bl, byte [ecx + 0x4df7f4]
cmp byte [esp + ebx + 0x14], 0
je 0x46e047
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x4df80c]
cmp byte [esp + ebx + 0x14], 0
je 0x46e05e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x46e02e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x46dfb7
lea edx, [esp + 0x84]
push edx
call fcn.0046e0a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x48544b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x485483
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00483502
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004834da
jmp 0x48548f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x486b3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x486b7e
call fcn.0048c8f9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x486b7e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x486b75
xor eax, eax
jmp 0x486b86
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00486b8c
pop edi
pop esi
pop ebx
ret 4

Function at 0x48ce29
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 0x48ce57
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48ce75
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048cd8f
jmp 0x48ce75
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48ce75
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048cd8f
test edi, edi
mov eax, edi
jne 0x48ce5f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401850
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 4], esi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
test eax, eax
jle 0x401888
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x4018a0
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x4018d0
sub esp, 8
push ebx
lea eax, [esi + 0x3c]
push eax
call fcn.00401770
add esp, 0x10
mov dword [ebp + 8], ebx
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov esp, ebp
pop ebp
jmp fcn.004092c0
sub esp, 8
push ebx
lea eax, [esi + 0x3c]
push eax
call fcn.00401770
mov dword [esp], ebx
call fcn.004092c0
mov ebx, dword [ebp - 8]
add esp, 0x10
mov dword [ebp + 8], esi
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
jmp fcn.00407950
push 0
push eax
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [esi + 8]
push eax
call sub.WS2_32.DLL_send
test eax, eax
jle 0x401878
mov edx, dword [ebx + 0x20]
cmp edx, eax
je 0x401888
add dword [ebx + 0x1c], eax
sub edx, eax
mov dword [ebx + 0x20], edx
jmp 0x401878
Function at 0x4046f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x30
push 0
mov edi, dword [ebp + 8]
push 1
push 2
call sub.WS2_32.DLL_socket
mov esi, eax
mov dword [edi + 8], eax
test esi, esi
pop eax
js 0x4047a1
sub esp, 0xc
push esi
lea ebx, [ebp - 0x10]
call fcn.00409510
mov dword [esp], 4
push ebx
push 4
push 0xffff
push esi
mov dword [ebp - 0x10], 1
call sub.WS2_32.DLL_setsockopt
mov dword [ebp - 0x10], 1
push 4
push ebx
push 0x100
push 0xffff
push esi
call sub.WS2_32.DLL_setsockopt
mov word [ebp - 0x20], 2
mov ebx, dword [edi + 0x18]
push 0xffffff00
call sub.WS2_32.DLL_htonl
and ebx, eax
add esp, 0xc
cmp ebx, dword [0x413430]
je 0x4047b0
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x20]
sub esp, 4
push 0x10
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push eax
push esi
call sub.WS2_32.DLL_connect
sub esp, 8
mov esi, eax
push edi
call fcn.004073e0
add esp, 0x10
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 0x18]
sub esp, 0xc
push eax
call sub.WS2_32.DLL_ntohl
and eax, 0xff
add esp, 0xc
cmp eax, 3
je 0x4047d3
mov eax, dword [0x413520]
mov dword [ebp - 0x1c], eax
jmp 0x40477d
call fcn.00408fb0
mov dword [ebp - 0x1c], eax
jmp 0x40477d

Function at 0x4048a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [ebp + 8]
cmp word [ebx + 8], 5
ja case.default.0x4048b5
movzx eax, word [ebx + 8]
jmp dword [eax*4 + 0x411600]
sub esp, 0xc
mov word [ebx + 8], 0
push ebx
call fcn.004047e0
add esp, 0x10
mov ebx, eax
lea esi, [esi]
lea edi, [edi]
test ebx, ebx
je 0x404928
cmp word [ebx + 8], 8
jg 0x4048f7
mov dword [ebp + 8], ebx
mov ebx, dword [ebp - 4]
leave
jmp fcn.00406460
mov ecx, dword [ebx + 0x48]
sub esp, 0xc
push ecx
call fcn.00407420
add esp, 0x10
mov dword [ebp + 8], ebx
mov ebx, dword [ebp - 4]
leave
jmp fcn.00406460
mov word [ebx + 8], 8
jmp 0x4048e4
mov word [ebx + 8], 6
jmp 0x4048e4
mov ebx, dword [ebp - 4]
leave
lea esi, [esi]
ret
Function at 0x404a80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 0x10
test byte [esi + 0x29], 2
jne 0x404acd
call fcn.00407f50
test eax, eax
mov esi, eax
je 0x404c0c
sub esp, 0xc
push eax
call fcn.00404a40
add esp, 0x10
test eax, eax
js 0x404c48
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov dword [esi + 0x1c], eax
movzx eax, word [edx + 0x22]
mov word [esi + 0x22], ax
sub esp, 8
push 0
mov ebx, dword [esi + 0x2c]
push ebx
call fcn.00402220
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call sub.WS2_32.DLL_accept
pop edx
test eax, eax
mov edi, eax
js 0x404c31
sub esp, 0xc
push eax
lea ebx, [ebp - 0x14]
call fcn.00409510
mov dword [ebp - 0x14], 1
mov dword [esp], 4
push ebx
push 4
push 0xffff
push edi
call sub.WS2_32.DLL_setsockopt
mov dword [ebp - 0x14], 1
push 4
push ebx
push 0x100
push 0xffff
push edi
call sub.WS2_32.DLL_setsockopt
mov dword [ebp - 0x14], 1
push 4
push ebx
push 1
push 6
push edi
call sub.WS2_32.DLL_setsockopt
movzx eax, word [ebp - 0x22]
mov word [esi + 0x20], ax
mov eax, dword [ebp - 0x20]
add esp, 0xc
test eax, eax
mov dword [esi + 0x18], eax
jne 0x404be0
mov eax, dword [0x413410]
mov dword [esi + 0x18], eax
mov edx, dword [ebp + 8]
test byte [edx + 0x29], 2
jne 0x404bf1
sub esp, 0xc
mov dword [esi + 8], edi
push esi
call fcn.00403c20
mov ebx, dword [esi + 0x2c]
mov byte [esi + 0x24], al
mov dword [esp], ebx
call fcn.00403ba0
inc dword [0x4132b0]
mov word [ebx + 8], 2
mov word [ebx + 0xe], 0x96
mov eax, dword [0x413450]
mov dword [ebx + 0x60], eax
add dword [0x413450], 0xfa00
mov eax, dword [ebx + 0x60]
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x4c], eax
mov dword [esp], ebx
call fcn.00406460
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, dword [0x413520]
je 0x404b68
mov edx, dword [ebp + 8]
test byte [edx + 0x29], 2
je 0x404b79
mov eax, dword [esi + 8]
sub esp, 0xc
push eax
call sub.WS2_32.DLL_closesocket
mov dword [esi + 0x28], 1
add esp, 0xc
jmp 0x404b79
sub esp, 4
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 8]
push esi
call sub.WS2_32.DLL_accept
sub esp, 8
push eax
call sub.WS2_32.DLL_closesocket
add esp, 0xc
jmp 0x404bd1
mov eax, dword [esi + 0x2c]
sub esp, 0xc
push eax
call fcn.004047e0
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push esi
call fcn.0040cb90
add esp, 0x10
jmp 0x404bd1
Function at 0x405d60
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov dword [ebp - 0xc], 0x10
mov dword [ebp - 0x10], 1
call fcn.00407f50
test eax, eax
mov ebx, eax
je 0x405e8d
sub esp, 4
push 0
push 2
push 2
call sub.WS2_32.DLL_socket
lea esi, [ebp - 0x20]
mov dword [ebx + 8], eax
sub esp, 4
mov eax, dword [0x413580]
add eax, 0x3a980
mov dword [ebx + 0x30], eax
push 0x4131b0
push ebx
call fcn.00409490
mov eax, dword [ebp + 8]
add esp, 0xc
mov word [ebp - 0x20], 2
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0xc]
push eax
push esi
mov ecx, dword [ebx + 8]
push ecx
call sub.WS2_32.DLL_bind
pop edx
test eax, eax
js 0x405e7d
sub esp, 0xc
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0xffff
mov eax, dword [ebx + 8]
push eax
call sub.WS2_32.DLL_setsockopt
push 4
push 0x411640
push 0x1002
push 0xffff
mov eax, dword [ebx + 8]
push eax
call sub.WS2_32.DLL_setsockopt
lea eax, [ebp - 0xc]
sub esp, 8
push eax
push esi
mov esi, dword [ebx + 8]
push esi
call sub.WS2_32.DLL_getsockname
movzx eax, word [ebp - 0x1e]
mov word [ebx + 0x20], ax
mov eax, dword [ebp - 0x1c]
add esp, 0x14
test eax, eax
jne 0x405e70
mov eax, dword [0x413410]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x10]
mov word [ebx + 0x22], ax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x1c], eax
cmp dword [ebp + 0x14], 0x200
je 0x405e5d
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x28], 4
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
cmp eax, dword [0x413520]
je 0x405e38
mov dword [ebx + 0x18], eax
jmp 0x405e40
sub esp, 0xc
push ebx
xor ebx, ebx
call fcn.00405d30
add esp, 0x10
jmp 0x405e64
sub esp, 0xc
push 0
call fcn.0040cb90
add esp, 0x10
jmp 0x405e64

Function at 0x405ea0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x14
mov esi, dword [ebp + 8]
push 0
push 2
push 2
call sub.WS2_32.DLL_socket
mov dword [esi + 8], eax
cmp eax, 0xffffffff
mov edx, eax
pop ecx
je 0x405f23
sub esp, 4
mov word [ebp - 0x18], 2
lea eax, [ebp - 0x18]
mov word [ebp - 0x16], 0
mov dword [ebp - 0x14], 0
push 0x10
push eax
push edx
call sub.WS2_32.DLL_bind
pop edx
test eax, eax
js 0x405f30
sub esp, 0xc
push 4
push 0x411640
push 0x1002
push 0xffff
mov eax, dword [esi + 8]
push eax
call sub.WS2_32.DLL_setsockopt
mov eax, dword [0x413580]
add eax, 0x3a980
mov dword [esi + 0x30], eax
sub esp, 0xc
push 0x4131b0
push esi
call fcn.00409490
add esp, 0x20
mov eax, dword [esi + 8]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
call sub.WS2_32.DLL_WSAGetLastError
sub esp, 0xc
mov ebx, eax
mov eax, dword [esi + 8]
push eax
call sub.WS2_32.DLL_closesocket
mov dword [esi + 8], 0xffffffff
push ebx
call sub.WS2_32.DLL_WSASetLastError
mov eax, dword [esi + 8]
add esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x406f20
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov ebx, dword [edi + 0x1c]
movzx eax, word [ebx + 2]
inc dword [0x413290]
cmp eax, 7
jg 0x406f63
inc dword [0x413294]
sub esp, 0xc
push edi
call fcn.004092c0
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
sub esp, 8
mov ecx, dword [edi + 0x1c]
sub dword [edi + 0x20], edx
mov esi, edx
add esi, ecx
mov dword [edi + 0x1c], esi
push eax
push edi
call fcn.00407150
add esp, 0x10
test eax, eax
jne 0x4070c5
mov eax, dword [ebp + 0xc]
add dword [edi + 0x20], eax
sub dword [edi + 0x1c], eax
cmp byte [esi], 0x11
ja 0x4070d0
movsx ecx, byte [esi]
mov eax, 1
shl eax, cl
test eax, 0x23838
jne 0x4070db
test ah, 1
je 0x4070d0
mov byte [esi], 0
movzx eax, word [ebx + 2]
mov edx, dword [ebp + 0xc]
add eax, edx
mov word [ebx + 2], ax
mov eax, dword [ebx + 0x10]
cmp eax, dword [0x413410]
je 0x4070f2
call fcn.00407f50
test eax, eax
mov esi, eax
je 0x406f4a
sub esp, 0xc
push eax
call fcn.00405ea0
add esp, 0x10
inc eax
je 0x407103
mov dword [esi + 0xc], edi
sub esp, 0xc
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x18], eax
push 7
call sub.WS2_32.DLL_htons
mov word [esi + 0x20], ax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x1c], eax
push 9
call sub.WS2_32.DLL_htons
mov word [esi + 0x22], ax
movzx eax, byte [ebx + 1]
mov byte [esi + 0x26], 1
mov dword [esi + 0x28], 4
mov byte [esi + 0x24], al
mov word [ebp - 0x1c], 2
mov ebx, dword [esi + 0x18]
push 0xffffff00
call sub.WS2_32.DLL_htonl
and ebx, eax
add esp, 0xc
cmp ebx, dword [0x413430]
je 0x40711c
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x20]
sub esp, 8
push 0x10
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x1c]
push eax
push 0
sub esp, 8
push str.This_is_a_psuedo_PING_packet_used_by_Slirp_to_emulate_ICMP_ECHO_REQUEST_packets._n
call sub.ntdll.dll_strlen
add esp, 0xc
push eax
push str.This_is_a_psuedo_PING_packet_used_by_Slirp_to_emulate_ICMP_ECHO_REQUEST_packets._n
mov ebx, dword [esi + 8]
push ebx
call sub.WS2_32.DLL_sendto
pop edx
inc eax
pop ecx
jne 0x406f56
call sub.WS2_32.DLL_WSAGetLastError
sub esp, 0xc
push eax
call sub.msvcrt.dll_strerror
mov dword [esp], eax
push 0
push 0
push 3
push edi
call fcn.00406d30
add esp, 0x14
push esi
call fcn.00405d30
add esp, 0x10
jmp 0x406f56
inc dword [0x413298]
jmp 0x406f4a
inc dword [0x4132a0]
jmp 0x406f4a
sub esp, 0xc
push edi
inc dword [0x41329c]
call fcn.004092c0
add esp, 0x10
jmp 0x406f56
sub esp, 0xc
push edi
call fcn.00406c50
add esp, 0x10
jmp 0x406f56
sub esp, 0xc
push esi
call fcn.00407eb0
mov dword [esp], edi
call fcn.004092c0
add esp, 0x10
jmp 0x406f56
mov eax, dword [esi + 0x18]
sub esp, 0xc
push eax
call sub.WS2_32.DLL_ntohl
and eax, 0xff
add esp, 0xc
cmp eax, 3
je 0x407142
mov eax, dword [0x413520]
mov dword [ebp - 0x18], eax
jmp 0x40705d
call fcn.00408fb0
mov dword [ebp - 0x18], eax
jmp 0x40705d