joyce8/EMBER2024-capa huggingface dataset:
Function at 0x628e30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [esp + 8]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x628e69
call fcn.007261ee
cmp dword [eax], 0
je 0x628e5f
call fcn.007261ee
mov eax, dword [eax]
mov dword [esi + 0x14], eax
pop esi
ret
mov eax, 1
mov dword [esi + 0x14], eax
pop esi
ret
lea ecx, [esp + 8]
push ecx
push 0x8004667e
push eax
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x10]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
call fcn.00628dd0
test eax, eax
je 0x628ea5
call fcn.007261ee
mov eax, dword [eax]
jmp 0x628ea7
xor eax, eax
mov dword [esi + 0x14], eax
cmp dword [0x8a03ec], 2
jl 0x628eef
mov eax, dword [0x8a03f0]
test eax, eax
jne 0x628ec9
call fcn.0072fac4
add eax, 0x40
mov dword [0x8a03f0], eax
push str..HttpServermongoose.c:2669
push str.__20s
push eax
call fcn.0072b89e
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push ecx
push edx
push esi
push str._p_sock__d_err__d
call fcn.00625d90
add esp, 0x1c
pop esi
ret

Function at 0x628fe0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub esp, 0xc
movzx ecx, word [edi]
push esi
push eax
push ebx
push ecx
mov dword [esp + 0x10], 0x10
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x62907d
push 4
lea edx, [esp + 0xc]
push edx
push 0xfffffffffffffffb
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x629073
mov eax, dword [esp + 4]
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x629073
cmp ebx, 2
je 0x629046
push SysReAllocString
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x629073
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push esi
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea edx, [esp + 4]
push edx
push edi
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, esi
pop esi
add esp, 0xc
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0xc
ret
Function at 0x6290b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0x5dc
call fcn.00724cfe
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x629105
cmp dword [0x8a03ec], 4
jl 0x6290ff
mov eax, dword [0x8a03f0]
test eax, eax
jne 0x6290e2
call fcn.0072fac4
add eax, 0x40
mov dword [0x8a03f0], eax
push str..HttpServermongoose.c:2930
push str.__20s
push eax
call fcn.0072b89e
push str.Out_of_memory
call fcn.00625d90
add esp, 0x10
mov eax, 0xfffffff4
ret
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
push ecx
push edx
push 0
push 0x5dc
push eax
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
jg 0x62917e
cmp dword [0x8a03ec], 4
jl 0x629173
mov eax, dword [0x8a03f0]
test eax, eax
jne 0x629147
call fcn.0072fac4
add eax, 0x40
mov dword [0x8a03f0], eax
push str..HttpServermongoose.c:2935
push str.__20s
push eax
call fcn.0072b89e
call fcn.007261ee
mov ecx, dword [eax]
push ecx
call fcn.00730b57
push eax
push edi
push str._p_recvfrom:__s
call fcn.00625d90
add esp, 0x1c
mov edx, dword [ebx]
push edx
call fcn.007238ab
add esp, 4
mov eax, esi
pop esi
ret

Function at 0x629190
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
mov eax, 0x2008
call fcn.00725f60
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x2004], eax
mov ecx, dword [edi + 0xc]
push esi
push 0
push 0x2004
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
push 0
push 1
lea edx, [esp + 0x10]
mov esi, eax
mov eax, dword [edi + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp dword [0x8a03ec], 4
jl 0x629211
mov eax, dword [0x8a03f0]
test eax, eax
jne 0x6291f3
call fcn.0072fac4
add eax, 0x40
mov dword [0x8a03f0], eax
push str..HttpServermongoose.c:3073
push str.__20s
push eax
call fcn.0072b89e
push esi
push str.read__d_from_ctl_socket
call fcn.00625d90
add esp, 0x14
cmp esi, 4
jl 0x629240
cmp dword [esp + 4], 0
je 0x629240
mov esi, dword [edi]
test esi, esi
je 0x629240
lea ecx, [esp + 8]
push ecx
push 0
push esi
call dword [esp + 0x10]
add esp, 0xc
test esi, esi
jne 0x62923a
mov esi, dword [edi]
jmp 0x62923c
mov esi, dword [esi]
test esi, esi
jne 0x629223
mov ecx, dword [esp + 0x2008]
pop esi
xor ecx, esp
call fcn.0071fe0b
add esp, 0x2008
ret
Function at 0x6299d0
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x60
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x70]
mov ebx, ecx
push esi
mov esi, edx
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
mov dword [esp + 0x1c], 0xc3d2e1f0
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
cmp ebx, eax
jbe 0x629a43
push edi
mov edi, dword [esp + 0x74]
sub edi, esi
mov eax, dword [edi + esi]
mov ecx, dword [esi]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00628050
add esp, 0xc
add esi, 4
sub ebx, 1
jne 0x629a26
pop edi
lea eax, [esp + 0xc]
push eax
push ebp
call fcn.006280f0
mov ecx, dword [esp + 0x70]
add esp, 8
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0071fe0b
add esp, 0x60
ret
Function at 0x62d320
Capabilities:
Resolve function by parsing pe exports
Send data
Send data on socket
Send http request

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
test byte [esi + 0x78], 2
push edi
je 0x62d3bf
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x38]
push 0x10
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 0x10]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp dword [0x8a03ec], 4
mov edi, eax
jl 0x62d3b5
mov eax, dword [0x8a03f0]
test eax, eax
jne 0x62d36b
call fcn.0072fac4
add eax, 0x40
mov dword [0x8a03f0], eax
push str..HttpServermongoose.c:2822
push str.__20s
push eax
call fcn.0072b89e
add esp, 0xc
call fcn.007261ee
movzx ecx, word [esi + 0x1a]
push ecx
mov ebx, eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [esi + 0x1c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebx]
mov edx, dword [esi + 0x10]
push eax
push ecx
push edi
push edx
push esi
push str._p__d__d__d__s:_hu
call fcn.00625d90
add esp, 0x1c
test edi, edi
jle 0x62d46f
jmp 0x62d438
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x10]
push 0
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp dword [0x8a03ec], 4
mov edi, eax
jl 0x62d417
mov eax, dword [0x8a03f0]
test eax, eax
jne 0x62d3f4
call fcn.0072fac4
add eax, 0x40
mov dword [0x8a03f0], eax
push str..HttpServermongoose.c:2853
push str.__20s
push eax
call fcn.0072b89e
mov edx, dword [esi + 0x10]
push edx
push edi
push esi
push str._p__d_bytes_____d
call fcn.00625d90
add esp, 0x1c
test edi, edi
jge 0x62d434
mov eax, edi
call fcn.00628dd0
test eax, eax
je 0x62d432
or dword [esi + 0x78], 0x800
pop edi
pop esi
pop ebx
pop ecx
ret
test edi, edi
jle 0x62d46f
test edi, edi
jbe 0x62d457
mov eax, dword [esi + 0x3c]
cmp edi, eax
ja 0x62d457
mov ecx, dword [esi + 0x38]
sub eax, edi
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.00724f50
add esp, 0xc
sub dword [esi + 0x3c], edi
lea ecx, [esp + 0xc]
push ecx
push 0
mov ebx, 4
mov dword [esp + 0x14], edi
call fcn.0062c590
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x62d480
Capabilities:
Receive data
Receive data on socket

Disassembly:
push edi
push 0x400
call fcn.00724cfe
mov edi, eax
add esp, 4
test edi, edi
jne 0x62d4d6
cmp dword [0x8a03ec], 4
jl 0x62d57d
mov eax, dword [0x8a03f0]
test eax, eax
jne 0x62d4b7
call fcn.0072fac4
add eax, 0x40
mov dword [0x8a03f0], eax
push str..HttpServermongoose.c:2879
push str.__20s
push eax
call fcn.0072b89e
push 0x80be30
call fcn.00625d90
add esp, 0x10
pop edi
ret
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
jae 0x62d4e4
xor eax, eax
jmp 0x62d4f2
sub eax, ecx
cmp eax, 0x400
jbe 0x62d4f2
mov eax, 0x400
push ebx
push 0
push eax
mov eax, dword [esi + 0x10]
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp dword [0x8a03ec], 4
mov ebx, eax
jl 0x62d545
mov eax, dword [0x8a03f0]
test eax, eax
jne 0x62d522
call fcn.0072fac4
add eax, 0x40
mov dword [0x8a03f0], eax
push str..HttpServermongoose.c:2910
push str.__20s
push eax
call fcn.0072b89e
mov ecx, dword [esi + 0x10]
push ecx
push ebx
push esi
push str._p__d_bytes__PLAIN______d
call fcn.00625d90
add esp, 0x1c
test ebx, ebx
jle 0x62d553
push ebx
mov eax, esi
call fcn.0062cd00
jmp 0x62d559
push edi
call fcn.007238ab
add esp, 4
test ebx, ebx
jne 0x62d56a
or dword [esi + 0x78], 0x400
pop ebx
pop edi
ret
mov eax, ebx
call fcn.00628dd0
test eax, eax
je 0x62d57c
or dword [esi + 0x78], 0x800
pop ebx
pop edi
ret

Function at 0x62d650
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
lea eax, [esp + 8]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov edi, dword [esp + 0x10]
mov dword [edi + 0x10], esi
cmp dword [0x8a03ec], 4
jl 0x62d6c0
mov eax, dword [0x8a03f0]
test eax, eax
jne 0x62d6a1
call fcn.0072fac4
add eax, 0x40
mov dword [0x8a03f0], eax
push str..HttpServermongoose.c:3089
push str.__20s
push eax
call fcn.0072b89e
push esi
push edi
push str._p__d
call fcn.00625d90
add esp, 0x18
pop edi
pop esi
pop ecx
ret
Function at 0x62d6d0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
xor eax, eax
push esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, 2
push 0
mov dword [esp + 0x14], 0x10
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x7f000001
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [esp + 0x30]
mov ebp, dword [sym.imp.WS2_32.dll_socket]
push 0
push ebx
push 2
mov dword [esp + 0x24], eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x62d849
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x62d849
cmp ebx, 1
jne 0x62d77d
push ebx
push edi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x62d849
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x62d849
push eax
push ebx
push 2
call ebp
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x62d857
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.WS2_32.dll_connect]
push edx
lea ecx, [esp + 0x18]
push ecx
push eax
call ebp
test eax, eax
jne 0x62d849
cmp ebx, 2
jne 0x62d7f3
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x62d849
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push edi
call ebp
test eax, eax
jne 0x62d849
mov eax, edi
jmp 0x62d804
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x62d849
mov eax, dword [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push eax
call ebp
mov ecx, dword [esi + 4]
push 0
push 1
push ecx
call ebp
cmp ebx, 1
jne 0x62d831
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x18
ret
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x62d857
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x62d866
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
je 0x62d872
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x24]
pop edi
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0071fe0b
add esp, 0x18
ret
Function at 0x62e310
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
cmp dword [0x8a03ec], 4
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
push edi
jl 0x62e362
mov eax, dword [0x8a03f0]
test eax, eax
jne 0x62e342
call fcn.0072fac4
add eax, 0x40
mov dword [0x8a03f0], eax
push str..HttpServermongoose.c:4192
push str.__20s
push eax
call fcn.0072b89e
push ebx
push ebp
push esi
push str._p__d__d
call fcn.00625d90
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.0062e220
mov ecx, dword [esp + 0x2c]
push ebx
push ecx
push esi
call fcn.0062cc50
mov edi, dword [esp + 0x24]
add esp, 0x14
test edi, edi
je 0x62e3ac
mov edx, dword [esi + 0x3c]
xor eax, eax
sub edx, edi
je 0x62e3ac
lea ecx, [ecx]
mov ecx, dword [esi + 0x38]
add ecx, edi
mov edx, eax
add ecx, eax
and edx, 3
mov dl, byte [esp + edx + 0x14]
xor byte [ecx], dl
mov ecx, dword [esi + 0x3c]
inc eax
sub ecx, edi
cmp eax, ecx
jb 0x62e390
cmp ebp, 8
jne 0x62e3b8
or dword [esi + 0x78], 0x400
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x62e580
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1008
call fcn.00725f60
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x1004], eax
push ebx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0x5c], 0
push edi
mov dword [esp + 0x10], esi
jne 0x62e5be
push 0x38
push 1
call fcn.0072a32c
add esp, 8
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], 0x629820
mov esi, dword [esi + 0x5c]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov ebp, dword [esi + 0x14]
mov edi, dword [esi + 0x1c]
sub ecx, eax
mov eax, ebx
sbb eax, ebp
xor edx, edx
cmp edi, 1
jne 0x62e66c
mov edi, dword [esp + 0x10]
mov edi, dword [edi + 0x3c]
cmp edi, 0x1000
jae 0x62e5f7
mov edx, 0x1000
sub edx, edi
test eax, eax
jl 0x62e607
jg 0x62e601
test ecx, ecx
jbe 0x62e607
cmp edx, ecx
jbe 0x62e607
mov edx, ecx
test edx, edx
je 0x62e725
cmp ebp, ebx
jg 0x62e655
jl 0x62e61d
mov eax, dword [esi + 8]
cmp dword [esi + 0x10], eax
jae 0x62e655
mov eax, dword [esi]
push eax
push edx
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.0072ae9c
mov edi, eax
add esp, 0x10
test edi, edi
jbe 0x62e655
mov eax, dword [esp + 0x10]
push edi
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0062cc50
add esp, 0xc
add dword [esi + 0x10], edi
adc dword [esi + 0x14], 0
jmp 0x62e725
cmp dword [esi + 0x18], 0
jne 0x62e6e6
mov eax, dword [esp + 0x10]
or dword [eax + 0x78], 0x400
jmp 0x62e6e6
cmp edi, 2
jne 0x62e710
mov ebp, dword [esp + 0x10]
lea ebx, [ebp + 0x2c]
test eax, eax
jg 0x62e68a
jl 0x62e686
test ecx, ecx
ja 0x62e68a
xor ecx, ecx
jmp 0x62e69b
mov edi, dword [ebx + 4]
xor edx, edx
cmp eax, edx
jg 0x62e699
jl 0x62e69b
cmp ecx, edi
jb 0x62e69b
mov ecx, edi
mov edx, dword [esi]
mov eax, dword [ebx]
push edx
push ecx
push 1
push eax
call fcn.0072b81c
mov edi, eax
add esp, 0x10
test edi, edi
jbe 0x62e6c5
push edi
push ebx
call fcn.00626a70
add esp, 8
add dword [esi + 0x10], edi
adc dword [esi + 0x14], 0
test edi, edi
je 0x62e6d9
mov ecx, dword [esi + 0x14]
cmp ecx, dword [esi + 0xc]
jl 0x62e725
jg 0x62e6d9
mov edx, dword [esi + 0x10]
cmp edx, dword [esi + 8]
jb 0x62e725
cmp dword [esi + 0x18], 0
jne 0x62e6e6
or dword [ebp + 0x78], 0x400
mov eax, dword [esi]
test eax, eax
je 0x62e6f5
push eax
call fcn.0072ab63
add esp, 4
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
jmp 0x62e725
mov esi, dword [esi + 0x20]
test esi, esi
je 0x62e725
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.0062d2d0
add esp, 8
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0071fe0b
add esp, 0x1008
ret
Function at 0x62e740
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, eax
cmp dword [esi + 0x5c], 0
push edi
jne 0x62e765
push 0x38
push 1
call fcn.0072a32c
add esp, 8
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], 0x629820
mov eax, dword [esi + 0x5c]
mov edi, dword [eax + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
push ecx
sub edx, edi
push edx
lea ebx, [edi + eax]
mov dword [esp + 0x28], 0
mov ebp, edi
call fcn.00629a70
mov ebx, eax
add esp, 0xc
test ebx, ebx
jbe 0x62e8cf
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [edi + eax]
push ecx
call fcn.00724f50
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
add edi, eax
add esp, 0xc
add ebp, ebx
mov dword [edx + 0x2b8], edi
test eax, eax
je 0x62e7fb
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
push ecx
sub edx, ebp
push edx
lea ebx, [eax + ebp]
call fcn.00629a70
mov ebx, eax
add esp, 0xc
test ebx, ebx
ja 0x62e7a3
jmp 0x62e803
mov dword [esp + 0x1c], 1
cmp ebp, edi
jbe 0x62e8cf
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
sub eax, ebp
push eax
lea edx, [ebx + ebp]
lea ecx, [edi + ebx]
push edx
push ecx
mov dword [esp + 0x24], eax
call fcn.00724f50
mov ecx, edi
sub ecx, ebp
mov eax, ebp
sub eax, edi
push eax
add ecx, ebx
add ecx, dword [esp + 0x3c]
push 0
push ecx
call fcn.007202b0
mov eax, dword [esp + 0x2c]
mov edx, edi
sub edx, ebp
add dword [esi + 0x30], edx
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], 0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x64]
and dword [esi + 0x78], 0xffffdfff
push eax
push ecx
mov ebx, 0x66
call fcn.0062c590
add esp, 0x20
test dword [esi + 0x78], 0x2000
je 0x62e8b3
mov ebx, dword [esp + 0x28]
push edi
push 0
push ebx
call fcn.007202b0
mov edx, dword [esp + 0x24]
push edx
lea eax, [edi + ebx]
push eax
push ebx
call fcn.00724f50
sub dword [esi + 0x30], edi
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
add esp, 0x18
xor ecx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [edx + 0x2b8], ecx
jmp 0x62e8b9
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp dword [esp + 0x1c], ecx
je 0x62e8cf
mov eax, dword [eax + 0x28]
mov ecx, dword [esp + 0x24]
sub eax, ebp
add eax, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x633ae0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
mov edx, dword [edi + 0x10]
push esi
mov esi, dword [eax + 0x20]
xor eax, eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov word [esp + 0x31], ax
mov byte [esp + 0x33], al
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
mov byte [esp + 0x2c], 0x25
mov dword [esp + 0x14], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [esp + 0x12]
push eax
mov byte [esp + 0x25], 0
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push 0x80ae18
lea ecx, [esp + 0x29]
push 0x13
push ecx
call fcn.007201d8
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push esi
call fcn.0062b410
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x633bb4
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00626ad0
add esp, 8
test eax, eax
je 0x633bc6
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
call fcn.0062b410
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x633b85
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0071fe0b
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push ecx
xor eax, eax
push eax
push 0x12d
push edi
call fcn.006325f0
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
sub edx, eax
mov eax, dword [esp + 0x1c]
dec edx
push edx
push eax
push ecx
push str.Content_Length:_0_r_nLocation:__.s_.s_r_n_r_n
push edi
call fcn.00631600
mov ecx, dword [esp + 0x5c]
add esp, 0x28
pop esi
xor ecx, esp
mov eax, 1
call fcn.0071fe0b
mov esp, ebp
pop ebp
ret

Function at 0x634a20
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x190], eax
xor eax, eax
push esi
mov esi, dword [esp + 0x19c]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], eax
or eax, 0xffffffff
lea ecx, [esp + 4]
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1a0]
push ecx
push 0x202
mov dword [esi + 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
push esi
call fcn.00631d80
add esp, 4
cmp dword [0x8a03ec], 4
jl 0x634aeb
mov eax, dword [0x8a03f0]
test eax, eax
jne 0x634a91
call fcn.0072fac4
add eax, 0x40
mov dword [0x8a03f0], eax
push str..HttpServermongoose.c:1719
push str.__20s
push eax
call fcn.0072b89e
push 0x80d7c4
call fcn.00625d90
add esp, 0x10
cmp dword [0x8a03ec], 4
jl 0x634aeb
mov eax, dword [0x8a03f0]
test eax, eax
jne 0x634acd
call fcn.0072fac4
add eax, 0x40
mov dword [0x8a03f0], eax
push str..HttpServermongoose.c:1720
push str.__20s
push eax
call fcn.0072b89e
push esi
push str.init_mgr_p
call fcn.00625d90
add esp, 0x14
mov ecx, dword [esp + 0x194]
pop esi
xor ecx, esp
call fcn.0071fe0b
add esp, 0x194
ret