joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409500
Capabilities:
Create raw socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42019c]
test eax, eax
jne 0x409538
mov eax, 0x18
mov ecx, 0x420184
call fcn.00409130
test eax, eax
jl 0x409529
je 0x409529
mov dword [0x42019c], eax
test eax, eax
mov byte [0x4201b0], 0
jle 0x4096b4
push ebx
push 0x7c
call fcn.004028e0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4096b3
push esi
push edi
push fcn.00408fb0
xor eax, eax
push 0x408e70
mov ecx, 0x1f
mov edi, ebx
push ebx
rep stosd dword es:[edi], eax
call fcn.004075c0
mov esi, dword [ebp + 8]
mov dword [ebx + 0x38], ebx
mov ecx, dword [0x41f2ec]
lea eax, [ebx + 0x30]
mov dword [eax + 4], ecx
mov dword [eax], 0x41f2e8
mov edx, dword [0x41f2ec]
mov dword [edx], eax
mov dword [0x41f2ec], eax
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
call fcn.004028e0
add esp, 0x10
test eax, eax
mov dword [ebx + 0x74], eax
je 0x409673
mov ecx, dword [esi + 0x2c]
mov esi, dword [esi + 0x44]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax + 0x2c]
mov dword [ebx + 0x78], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov dword [ebx + 0x3c], edx
mov edx, dword [ebp - 8]
movzx esi, word [edx]
mov dword [ebx + 0x40], esi
mov ecx, dword [ecx + 0x10]
mov dword [ebx + 0x44], ecx
movzx edx, word [edx + 2]
mov dword [ebx + 0x48], edx
mov ecx, dword [eax + 0x3c]
push ebx
inc ecx
lea edi, [ebx + 0x58]
push 0x4092f0
mov dword [eax + 0x3c], ecx
push edi
mov dword [ebx + 0x4c], eax
call fcn.004096c0
add esp, 0xc
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebx + 0x20], eax
je 0x409673
push eax
mov byte [ebx + 0x1c], 1
call fcn.00405670
mov eax, dword [0x41ff58]
add esp, 4
push 0
mov word [ebp - 0x18], 2
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
lea ecx, [ebp - 0x18]
mov word [ebp - 0x16], ax
mov edx, dword [ebx + 0x20]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x409673
mov eax, ebx
call fcn.004091e0
test eax, eax
jl 0x409673
push ebx
call fcn.004072b0
add esp, 4
test eax, eax
je 0x409683
push ebx
call fcn.00408fb0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x21
mov esi, ebx
call fcn.00410a90
mov edx, dword [0x4201a8]
imul edx, edx, 0x3e8
lea ecx, [ebx + 0x64]
mov eax, 0x420b58
call fcn.00408b70
push edi
call fcn.004096e0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4099d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov byte [ebp - 0x104], 0
xor eax, eax
mov ecx, 0x40
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.shfolder.dll
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x409a1c
push str.SHGetFolderPathA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x409a24
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x104]
push ecx
push 0
push 0
push 0x8023
push 0
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x409a1c
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409a50
sub eax, edx
mov edx, 0x103
sub edx, eax
push edx
push str.VMware
lea eax, [ebp - 0x104]
push 0x104
push eax
call fcn.004178c0
lea ecx, [ebp - 0x104]
push 0
push ecx
call fcn.00417e4f
add esp, 0x18
test eax, eax
je 0x409aa3
push 0
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x409a1c
lea ecx, [ebp - 0x104]
call fcn.00409990
test al, al
je 0x409a1c
lea eax, [ebp - 0x104]
push eax
call fcn.004179bf
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409ad0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
xor eax, eax
mov byte [ebp - 0x10c], 0
mov ecx, 0x40
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesVMware_NAT_ServiceParameters
push reloc.WS2_32.dll_bind
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
je 0x409b23
call fcn.004099d0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push esi
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10c]
push edx
push 0
push 0
push str.ConfigPath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409b84
call fcn.004099d0
mov esi, eax
test esi, esi
je 0x409b95
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409b54
mov ecx, dword [ebp - 4]
sub eax, edx
inc eax
push eax
push esi
push 1
push 0
push str.ConfigPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10c]
push edx
call fcn.004179bf
add esp, 4
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ad50
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 0x80
call fcn.004028e0
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
jne 0x40ad78
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push fcn.0040aa60
push 0x40a8f0
push esi
call fcn.004075c0
mov cx, word [ebp + 0xc]
lea eax, [esi + 0x48]
mov dword [eax], eax
mov dword [esi + 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x54], eax
mov dword [esi + 0x38], esi
mov dword [esi + 0x44], esi
mov word [esi + 0x58], cx
mov word [esi + 0x6c], bx
mov word [esi + 0x70], bx
mov word [esi + 0x6e], bx
mov dword [esi + 0x74], 0xffffffff
mov edx, dword [0x420b58]
mov dword [esi + 0x78], edx
mov byte [esi + 0x7c], bl
mov ecx, dword [0x41f314]
add esp, 0xc
lea eax, [esi + 0x30]
mov dword [eax + 4], ecx
mov dword [eax], 0x41f310
mov edx, dword [0x41f314]
push 0x11
mov edi, 2
push edi
mov dword [edx], eax
push edi
mov dword [0x41f314], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
je 0x40ae5b
push 4
push 0x41c630
push 0x20
push 0xffff
push eax
mov byte [esi + 0x1c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp + 0x10]
mov cx, word [ebp + 0x14]
push 0x10
lea edx, [ebp - 0x10]
mov word [ebp - 0x10], di
mov dword [ebp - 0xc], eax
mov word [ebp - 0xe], cx
mov eax, dword [esi + 0x20]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x40ae5b
mov edx, dword [esi + 0x20]
lea ecx, [esi + 0x5c]
push ecx
push edx
call fcn.00405620
push esi
call fcn.004072b0
add esp, 0xc
test eax, eax
je 0x40ae6d
mov edi, 1
push esi
call fcn.0040aa60
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x21
call fcn.00410a90
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov dx, word [edx + 4]
mov word [eax + 0x6c], dx
mov dx, word [ecx + 4]
mov word [eax + 0x70], dx
mov cx, word [ecx + 6]
mov edx, dword [eax + 0x74]
mov word [eax + 0x6e], cx
mov ecx, dword [esi + 0x28]
cmp edx, ecx
je 0x40af31
mov dword [eax + 0x74], ecx
mov edx, dword [ebp + 8]
mov cx, word [ebp + 0xc]
mov eax, dword [eax + 0x20]
push 0x10
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x10]
push edx
mov edx, dword [esi + 0x44]
push 0
mov word [ebp - 0xe], cx
mov ecx, dword [esi + 0x2c]
push ecx
push edx
push eax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x40af73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.0040fba0
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x40b5e0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0x58
call fcn.004028e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40b5fc
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0x40b510
push 0x40b540
push esi
call fcn.004075c0
mov eax, dword [ebp + 8]
mov cx, word [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x3c], eax
mov ax, word [ebp + 0x14]
mov word [esi + 0x40], cx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x54], 0x40b4f0
mov dword [esi + 0x50], 0
mov dword [esi + 0x44], edx
mov word [esi + 0x48], ax
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x38], esi
mov edx, dword [0x41f328]
add esp, 0xc
lea edi, [esi + 0x30]
mov dword [edi + 4], edx
mov dword [edi], 0x41f324
mov eax, dword [0x41f328]
push 6
push 1
mov dword [eax], edi
push 2
mov dword [0x41f328], edi
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
je 0x40b6e3
push eax
mov byte [esi + 0x1c], 1
call fcn.00405670
mov ecx, dword [esi + 0x20]
add esp, 4
push 4
push 0x41c6b4
push 4
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [0x41ff58]
mov ax, word [ebp + 0x1c]
push 0x10
lea ecx, [ebp - 0x10]
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], edx
mov word [ebp - 0xe], ax
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x40b6e3
mov eax, dword [esi + 0x20]
push 0x14
push eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x40b6e3
push esi
call fcn.004072b0
add esp, 4
test eax, eax
je 0x40b702
mov eax, dword [edi + 4]
mov edi, dword [edi]
mov dword [edi + 4], eax
push esi
mov dword [eax], edi
call dword [esi + 0x54]
push esi
call fcn.00402836
add esp, 8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x28
call fcn.00410a90
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d1f0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, eax
push edi
mov eax, 0x32
mov dword [esi + 0xd4], 0x1003
call fcn.00410a90
mov eax, dword [esi + 0x44]
cmp eax, dword [0x420c88]
mov word [ebp - 0x14], 2
mov dword [ebp - 0x10], eax
jne 0x40d22a
mov eax, dword [0x420c80]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x20]
mov cx, word [esi + 0x48]
push 0x10
lea edx, [ebp - 0x14]
push edx
push eax
mov word [ebp - 0x12], cx
call dword [sym.imp.WS2_32.dll_connect]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x14]
mov edi, eax
mov eax, dword [esi + 0x20]
push edx
push eax
mov dword [ebp - 4], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test edi, edi
mov ecx, dword [ebp - 0x10]
mov dx, word [ebp - 0x12]
mov dword [esi + 0x4c], ecx
mov word [esi + 0x50], dx
jne 0x40d2a2
push ebx
mov eax, 0x21
mov dword [esi + 0xd4], 3
call fcn.00410a90
lea eax, [esi + 0x104]
call fcn.0040c140
push 1
mov ebx, esi
call fcn.0040cd70
add esp, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x2733
je 0x40d2bf
call edi
cmp eax, 0x2748
je 0x40d2bf
call fcn.0040c950
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e470
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
test byte [eax + 4], 0x12
push edi
je 0x40e484
mov eax, 0x12
call fcn.0040e180
mov ecx, dword [esi + 0x5c]
mov eax, dword [esi + 0x50]
cmp ecx, eax
jae 0x40e4d4
mov edx, dword [esi + 0x4c]
push 0
sub eax, ecx
push eax
mov eax, dword [esi + 0x20]
add edx, ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x40e4d1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x2733
je 0x40e4c5
call edi
cmp eax, 0x2733
je 0x40e4c5
pop edi
or eax, 0xffffffff
pop esi
ret
mov edx, 0x12
call fcn.0040b720
jmp 0x40e4d4
add dword [esi + 0x5c], eax
mov ecx, dword [esi + 0x5c]
cmp ecx, dword [esi + 0x50]
jb 0x40e50e
lea edx, [esi + 0x4c]
push edx
call fcn.004107f0
mov eax, dword [esi + 0x60]
add esp, 4
test eax, eax
mov dword [esi + 0x5c], 0
je 0x40e504
push esi
call fcn.004075f0
add esp, 4
pop edi
xor eax, eax
pop esi
ret
mov edx, 0x21
call fcn.0040b720
pop edi
xor eax, eax
pop esi
ret

Function at 0x40e7e0
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0
push str.configport
push str.host
call fcn.0040a3a0
mov ebx, eax
add esp, 0xc
cmp ebx, 1
jb 0x40e8e1
cmp ebx, 0xffff
ja 0x40e8e1
push esi
push 0x34
call fcn.004028e0
mov esi, eax
add esp, 4
test esi, esi
je 0x40e8e0
push edi
push fcn.0040e7a0
xor eax, eax
push 0x40e6d0
mov ecx, 0xd
mov edi, esi
push esi
rep stosd dword es:[edi], eax
call fcn.004075c0
add esp, 0xc
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
pop edi
je 0x40e8c7
push eax
mov byte [esi + 0x1c], 1
call fcn.00405670
mov eax, dword [esi + 0x20]
add esp, 4
push 4
push 0x41c830
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [0x41ff58]
push ebx
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], ecx
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x10]
mov word [ebp - 0xe], ax
mov eax, dword [esi + 0x20]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x40e8c7
mov ecx, dword [esi + 0x20]
push 0xa
push ecx
call dword [sym.imp.WS2_32.dll_listen]
push esi
call fcn.004072b0
add esp, 4
test eax, eax
jge 0x40e8d6
push esi
call fcn.0040e7a0
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x28
call fcn.0040b720
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e9c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov al, byte [esi + 0x60]
test al, al
je 0x40e9db
mov ecx, dword [0x4209f8]
test ecx, ecx
jle 0x40ea5d
test al, al
push edi
je 0x40e9fc
mov eax, dword [0x4209fc]
mov edi, dword [eax*4 + 0x4209e8]
push 0x89
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
jmp 0x40ea03
mov edi, dword [esi + 0x54]
movzx eax, word [esi + 0x58]
push 0x10
mov word [ebp - 0xe], ax
mov eax, dword [esi + 0x64]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [esi + 0x20]
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], edi
mov edx, dword [eax + 0x2c]
mov eax, dword [eax + 0x44]
push 0
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
pop edi
jge 0x40ea5d
mov edx, dword [esi + 0x64]
push 0x2750
push edx
call fcn.0040fba0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi + 0x64]
push eax
call fcn.0040fba0
add esp, 8
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40f3b0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x40f3d4
mov eax, dword [0x4209f8]
test eax, eax
jg 0x40f3d4
call fcn.0040ed70
test eax, eax
jle 0x40f51c
push edi
push 0x68
call fcn.004028e0
mov edi, eax
add esp, 4
test edi, edi
je 0x40f51b
push esi
push 0x40e980
push 0x40f060
push edi
call fcn.004075c0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
mov dword [edi + 0x4c], edx
mov ecx, dword [eax + 0xc]
mov dx, word [ecx]
mov word [edi + 0x50], dx
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x10]
mov dword [edi + 0x54], edx
mov ecx, dword [eax + 0xc]
mov dx, word [ecx + 2]
add esp, 0xc
mov word [edi + 0x58], dx
mov byte [edi + 0x60], bl
mov ecx, dword [eax + 0x3c]
push 0x11
inc ecx
push 2
mov dword [eax + 0x3c], ecx
push 2
mov dword [edi + 0x64], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 0x20], eax
je 0x40f4ae
push eax
mov byte [edi + 0x1c], 1
call fcn.00405670
mov eax, dword [0x41ff58]
add esp, 4
push 0
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
lea ecx, [ebp - 0x10]
mov word [ebp - 0xe], ax
mov edx, dword [edi + 0x20]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x40f4ae
mov eax, dword [edi + 0x20]
mov esi, dword [edi + 0x64]
push eax
call fcn.0040ea70
add esp, 4
test eax, eax
jl 0x40f4ae
mov esi, edi
call fcn.0040e9c0
test eax, eax
jl 0x40f4ae
push edi
call fcn.004072b0
add esp, 4
test eax, eax
je 0x40f4dd
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x40f4bd
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [edi + 0x64]
test eax, eax
je 0x40f4cd
push eax
call fcn.00408b50
add esp, 4
push edi
call fcn.00402836
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x21
mov esi, edi
call fcn.00410a90
push edi
lea esi, [edi + 0x30]
push 0x40f1b0
push esi
call fcn.004096c0
mov ecx, dword [0x420b5c]
mov edx, dword [0x420a04]
mov dword [edi + 0x40], ecx
mov eax, dword [0x420b58]
add eax, edx
push esi
mov dword [edi + 0x3c], eax
call fcn.004096e0
add esp, 0x10
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f5f0
Capabilities:
Connect socket
Connect udp socket
Create raw socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
push 0x70
mov edi, eax
mov dword [ebp - 8], 1
call fcn.004028e0
mov esi, eax
add esp, 4
test esi, esi
je 0x40f77c
push fcn.0040eb90
push 0x40f530
push esi
call fcn.004075c0
mov eax, dword [0x41f368]
add esp, 0xc
test eax, eax
mov dword [esi + 0x38], esi
jle 0x40f667
cmp dword [0x41f360], 0x41f35c
jne 0x40f667
mov edx, dword [0x420b58]
mov ecx, dword [0x420b5c]
add edx, eax
push 0x420a08
mov dword [0x420a18], ecx
mov dword [0x420a14], edx
call fcn.004096e0
add esp, 4
mov ecx, dword [0x41f35c]
mov dword [esi + 0x30], ecx
mov cx, word [ebp + 0xc]
mov dword [esi + 0x34], 0x41f35c
mov edx, dword [0x41f35c]
lea eax, [esi + 0x30]
mov dword [edx + 4], eax
mov edx, dword [ebp + 0x10]
mov dword [0x41f35c], eax
mov eax, dword [ebp + 8]
push 0x22
mov dword [esi + 0x3c], eax
push edx
lea eax, [esi + 0x42]
push eax
mov word [esi + 0x40], cx
call fcn.00417860
mov ecx, dword [0x420b58]
add esp, 0xc
push 0
push 3
push 2
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x68], edi
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
je 0x40f773
push eax
mov byte [esi + 0x1c], 1
call fcn.00405670
add esp, 4
push 0
push 0
lea edx, [ebp - 4]
push edx
push 0x10
lea eax, [ebp - 0x28]
push eax
push 0x10
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x14], edi
mov edi, dword [sym.imp.WS2_32.dll_WSAIoctl]
mov word [ebp - 0x18], 2
mov word [ebp - 0x16], 0
mov edx, dword [esi + 0x20]
push 0xc8000014
push edx
call edi
cmp eax, 0xffffffff
je 0x40f773
cmp dword [ebp - 4], 0x10
jne 0x40f773
mov ecx, dword [esi + 0x20]
push 0x10
lea eax, [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x40f773
mov ecx, dword [esi + 0x20]
mov edx, dword [ebp - 0x24]
push 0x10
lea eax, [ebp - 0x18]
push eax
push ecx
mov dword [esi + 0x64], edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x40f773
push eax
push eax
lea edx, [ebp - 4]
push edx
push eax
push eax
push 4
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 1
mov ecx, dword [esi + 0x20]
push 0x98000001
push ecx
call edi
push esi
call fcn.004072b0
add esp, 4
test eax, eax
je 0x40f784
push esi
call fcn.0040eb90
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x21
call fcn.00410a90
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40fec0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov dword [ebp - 4], eax
cmp dword [esi + 0x24], 2
push edi
mov edi, dword [esi + 0xc]
mov dword [ebp - 8], edi
jge 0x40ffad
mov ecx, dword [esi + 0x2c]
add ecx, 0x88
push 0
push ecx
call fcn.00408b00
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x410031
mov ecx, dword [ebx + 0x44]
mov edx, dword [ebx + 0x48]
mov eax, 0x80
add ecx, eax
add edx, eax
mov dword [ebx + 0x44], ecx
mov ecx, dword [ebx + 0x4c]
mov eax, edx
cmp eax, ecx
mov dword [ebx + 0x48], edx
jbe 0x40ff46
push str.SkBuff_Reserve_over
push 0xbc
push str.c:ob_bora_19175_bora_apps_vmnat_skbuff.h
push str.BUG__s:_d:__s_n
push 0x41f3d0
call fcn.00413858
add esp, 0x14
mov byte [0], 0
mov edx, 8
mov eax, ebx
call fcn.00410ec0
mov byte [eax], 0
mov byte [eax + 1], 0
mov dx, word [edi + 4]
mov word [eax + 4], dx
mov cx, word [edi + 6]
mov word [eax + 6], cx
mov edx, dword [esi + 0x2c]
mov eax, ebx
call fcn.00410ec0
mov ecx, dword [esi + 0x2c]
mov esi, dword [esi + 0x44]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x420c88]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push eax
push edx
mov esi, ebx
call fcn.0040f910
push ebx
call fcn.00408b50
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x420a24]
test eax, eax
je 0x410031
mov eax, dword [ebp - 4]
mov si, word [edi + 6]
mov di, word [edi + 4]
mov ebx, dword [eax + 0x10]
mov ecx, eax
mov edx, dword [ecx + 0xc]
call fcn.0040fe30
test eax, eax
je 0x410031
mov edx, dword [ebp - 4]
mov ecx, dword [0x420a24]
mov esi, dword [ebp + 8]
mov word [ebp - 0x18], 2
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x28]
mov word [ebp - 0x16], 0
cmp dword [ecx + 0x30], eax
je 0x410001
mov dword [ecx + 0x30], eax
mov ecx, dword [0x420a24]
mov eax, dword [ebp - 8]
push 0x10
lea edx, [ebp - 0x18]
push edx
mov edx, dword [esi + 0x48]
push 0
sub edx, eax
push edx
push eax
mov eax, dword [ecx + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x410031
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.0040fba0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410510
Capabilities:
Create raw socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0x34
call fcn.004028e0
mov esi, eax
add esp, 4
test esi, esi
je 0x4105b3
push 0x4104e0
push 0x4103c0
push esi
call fcn.004075c0
add esp, 0xc
push 1
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
je 0x41059b
push eax
mov byte [esi + 0x1c], 1
mov dword [esi + 0x30], 0xffffffff
call fcn.00405670
mov eax, dword [0x41ff58]
add esp, 4
push 0x10
lea ecx, [ebp - 0x10]
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], eax
mov word [ebp - 0xe], 0
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x41059b
push esi
call fcn.004072b0
add esp, 4
test eax, eax
je 0x4105bb
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x4105aa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00402836
add esp, 4
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x21
call fcn.00410a90
mov dword [0x420a24], esi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [eax + 0x44]
mov eax, dword [eax + 0x20]
push 0x10
lea edx, [ebp - 0x10]
push edx
mov edx, dword [esi + 0x44]
push 0
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x2c]
push ecx
push edx
push eax
mov word [ebp - 0x10], 2
mov word [ebp - 0xe], 0x2f
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x410b57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.0040fba0
add esp, 8
mov esp, ebp
pop ebp
ret