joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c563
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
push esi
mov esi, ecx
jb 0x44c576
mov edx, dword [edx]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x44c58f
and dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
jmp 0x44c5a4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, esi
call fcn.00401bca
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44fd99
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5ca1c8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x40], eax
jb 0x44fdbd
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44fdd2
xor al, al
jmp 0x44fe83
call dword [sym.imp.IPHLPAPI.DLL_IcmpCreateFile]
mov dword [ebp - 0x44], eax
cmp eax, 0xffffffff
je 0x44fdcb
xor eax, eax
xor ecx, ecx
inc eax
push 0x1c
pop edx
mov dword [ebp - 0x30], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055fe67
and dword [ebp - 0x3c], 0
lea edi, [ebp - 0x24]
and dword [ebp - 0x38], 0
mov ebx, eax
pop ecx
push 8
pop ecx
mov eax, 0x30303030
mov byte [ebp - 0x3c], 1
push 0x1c
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x44]
pop edx
mov byte [ebp - 0x25], 1
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x34]
mov eax, ecx
dec ecx
mov dword [ebp - 0x34], ecx
test eax, eax
je 0x44fe72
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x44fe72
push 0xbb8
push edx
push ebx
lea eax, [ebp - 0x3c]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push esi
push edi
call dword [sym.imp.IPHLPAPI.DLL_IcmpSendEcho]
test eax, eax
je 0x44fe94
mov ecx, dword [ebp - 0x40]
push ebx
call fcn.0043ec9e
cmp dword [ebx], esi
jne 0x44fe66
mov byte [ebp - 0x25], 0
inc byte [ebp - 0x3c]
cmp byte [ebp - 0x25], 0
mov edx, dword [ebp - 0x2c]
jne 0x44fe23
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
pop ecx
push edi
call dword [sym.imp.IPHLPAPI.DLL_IcmpCloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fedc
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 4], 0x2af9
jne 0x44fe66
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0x30]
xor ecx, ecx
push 0x1c
inc eax
pop edx
add dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055fe67
pop ecx
pop ecx
mov ebx, eax
jmp 0x44fe69
Function at 0x450cec
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push eax
push eax
lea edi, [esi + 0x58]
push edi
push 0x465f41
push eax
mov dword [edi + 0x3c], esi
mov dword [edi + 0x40], 0x450fff
push eax
mov byte [edi], al
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x450d9d
mov dword [edi + 4], eax
mov edx, 0xfffe
mov ecx, dword [esi + 0xa8]
lea eax, [ecx - 1]
cmp eax, edx
ja 0x450d35
mov dword [esi + 0x2c], ecx
mov ecx, dword [esi + 0xb4]
lea eax, [ecx - 1]
cmp eax, edx
ja 0x450d45
mov dword [esi + 0x48], ecx
lea eax, [esi + 0x20]
mov ecx, 0x450ea0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], esi
mov dword [esi + 0x54], ecx
mov ecx, eax
mov dword [esi + 0x50], esi
call fcn.004662ec
test al, al
je 0x450d86
lea ecx, [esi + 0x3c]
call fcn.004662ec
test al, al
je 0x450d86
mov eax, dword [esi + 0x2c]
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 0xb4], eax
mov al, 1
jmp 0x450d9f
lea ecx, [esi + 0x20]
call fcn.00466322
lea ecx, [esi + 0x3c]
call fcn.00466322
mov ecx, edi
call fcn.00465ef0
xor al, al
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push 8
mov eax, 0x56e719
call fcn.0056357c
mov ebx, ecx
push 0x4000
call fcn.0055fe67
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
mov edi, dword [ebx]
test esi, esi
je 0x45330f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0x4000
push esi
push dword [edi]
mov dword [edi + 0x1c], eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
jmp 0x453312
or edi, 0xffffffff
test edi, edi
js 0x45336b
je 0x45335e
jle 0x453345
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x10c]
test ecx, ecx
je 0x453339
push dword [ebp + 8]
lea eax, [edi + esi]
push eax
push esi
push dword [ecx + 4]
call fcn.0046564c
jmp 0x453342
push edi
push esi
mov ecx, eax
call fcn.00462c6b
add dword [ebp - 0x10], edi
cmp edi, 0x4000
jge 0x4532ec
mov eax, dword [ebx + 4]
cmp byte [eax + 0x3c], 0
je 0x453396
cmp dword [eax + 0x6c], 0xffffffff
je 0x4532ec
jmp 0x453396
mov ecx, dword [ebx]
and dword [ebp - 0x10], 0
call fcn.00465d77
jmp 0x453396
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x453396
mov eax, dword [ebx]
mov dword [ebp - 0x10], edi
mov byte [eax + 0x23], 1
mov eax, dword [ebx + 4]
mov byte [ebx + 0x20], 1
mov eax, dword [eax + 0xf8]
test eax, eax
je 0x453396
mov byte [eax + 0x27], 1
push dword [ebp + 8]
mov ecx, dword [ebx + 4]
push dword [ebp - 0x10]
call fcn.00464587
test al, al
setne bl
test esi, esi
je 0x4533b5
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
pop ecx
mov al, bl
call fcn.0056354a
ret 4
Function at 0x4533bf
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x10
mov edi, ecx
pop esi
mov ecx, dword [edi + 4]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00464cf4
test al, al
je 0x453432
xor ebx, ebx
cmp dword [ebp - 4], ebx
jle 0x453425
dec esi
mov dword [ebp - 0xc], esi
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push dword [ebp - 4]
mov dword [esi + 0x1c], eax
push dword [ebp - 8]
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, eax
test ecx, ecx
js 0x45344e
mov eax, dword [ebp - 4]
add ebx, ecx
add dword [ebp - 8], ecx
sub eax, ecx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 4], eax
test esi, esi
jle 0x453425
test eax, eax
jg 0x4533e8
mov ecx, dword [edi + 4]
push ebx
call fcn.00464df3
test esi, esi
jg 0x4533cd
test esi, esi
jg 0x453474
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 0xf4]
call fcn.00474c10
test al, al
je 0x4534ab
mov byte [edi + 0x28], 1
jmp 0x4534ab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x453465
mov eax, dword [edi]
mov byte [eax + 0x23], 1
mov byte [edi + 0x20], 1
test ebx, ebx
jle 0x4534ab
mov ecx, dword [edi + 4]
push ebx
call fcn.00464df3
jmp 0x4534ab
mov esi, dword [edi + 4]
mov ecx, dword [esi + 0xf4]
call fcn.00474c10
test al, al
je 0x453492
mov eax, dword [edi]
mov byte [eax + 0x23], 1
mov byte [edi + 0x20], 1
jmp 0x4534a4
cmp dword [esi + 0xf0], 3
jne 0x4534ab
cmp byte [esi + 0xec], 0
je 0x4534ab
mov ecx, dword [edi]
call fcn.00465d94
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4534b6
Capabilities:
Encode data using base64

Disassembly:
push 0x18
mov eax, 0x56beab
call fcn.0056357c
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
test eax, eax
jne 0x4534e6
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], ecx
mov byte [ebx], cl
jmp 0x4535e5
add eax, 2
push 3
pop ecx
cdq
idiv ecx
lea ecx, [ebp - 0x24]
shl eax, 2
push eax
call fcn.0044c8d2
mov eax, dword [ebp + 8]
push 3
cdq
pop ecx
idiv ecx
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
test eax, eax
jle 0x453572
push ecx
mov ebx, eax
pop edx
movzx ecx, byte [edi]
shr ecx, 2
mov al, byte [ecx + 0x5898f0]
mov byte [esi], al
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, edx
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + 0x5898f0]
mov byte [esi + 1], al
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + 0x5898f0]
mov byte [esi + 2], al
movzx eax, byte [edi + 2]
add edi, edx
and eax, 0x3f
mov al, byte [eax + 0x5898f0]
mov byte [esi + 3], al
add esi, 4
dec ebx
jne 0x453516
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
cmp edx, 1
jne 0x45358d
movzx eax, byte [edi]
shr eax, 2
mov word [esi + 1], 0x3d41
mov al, byte [eax + 0x5898f0]
mov byte [esi], al
jmp 0x4535cc
cmp edx, 2
jne 0x4535d0
movzx eax, byte [edi]
shr eax, 2
push 3
mov al, byte [eax + 0x5898f0]
mov byte [esi], al
movzx ecx, byte [edi]
pop eax
and ecx, eax
movzx eax, byte [edi + 1]
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + 0x5898f0]
mov byte [esi + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
mov al, byte [eax*4 + 0x5898f0]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x24]
call fcn.0044e4f1
lea ecx, [ebp - 0x24]
call fcn.00408df6
mov eax, ebx
call fcn.0056354a
ret
Function at 0x4548b8
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], ecx
push esi
push edi
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
sub edx, 0xc
push dword [ecx + 8]
add ecx, 0xc
call fcn.00534d21
pop ecx
test al, al
je 0x454956
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], ebx
test byte [eax + 1], 2
je 0x454915
lea esi, [ebx + 0x10]
lea edi, [ebx + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 2]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 8]
mov ax, word [eax + 6]
mov word [ebx + 0x18], ax
mov byte [ebx + 0x44], 1
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + 0xc]
mov dword [ebx], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 4], eax
mov ecx, dword [ebx + 8]
mov ax, word [ecx + 0x14]
mov word [ebp - 0x14], ax
mov al, byte [ecx + 0x16]
mov byte [ebp - 0x11], al
mov al, byte [ecx + 0x17]
mov byte [ebp - 0x12], al
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ecx + 0x1c]
mov ecx, dword [ebp - 8]
mov dword [ebx + 8], eax
lea eax, [ebp - 0x18]
add dword [ebx + 0xc], 0xffffffe4
push eax
call fcn.0045495f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x456a7a
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5ca1c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x50], 0
je 0x456a9c
mov al, 1
jmp 0x456bda
lea ecx, [ebp - 0x15]
call fcn.00441ab1
push 1
xor ebx, ebx
push ebx
push ebx
push 0x11
push 2
pop eax
push eax
push eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
cmp edi, 0xffffffff
je 0x456bd8
push 1
lea eax, [ebp - 0x15]
mov byte [ebp - 0x15], 1
push eax
push 0xfffffffffffffffb
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 1
lea eax, [ebp - 0x15]
push eax
push 0xffffff7f
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 1
lea eax, [ebp - 0x15]
push eax
push 0x20
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esi + 0x34]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ecx
mov eax, dword [ecx]
push 2
mov dword [ebp - 0x20], eax
pop eax
push ebx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x456b80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2740
je 0x456b57
cmp eax, 0x2726
jne 0x456b77
cmp dword [ebp - 0x20], 0xffff
jge 0x456b77
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
inc eax
add ecx, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ecx
cmp eax, 2
jl 0x456b0e
jmp 0x456b8c
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x456bd8
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x44], edi
cmp eax, 2
je 0x456b77
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x24]
push 4
push eax
push 0x1001
push 0xffff
push dword [esi + 0x44]
mov dword [ebp - 0x24], 0x10000
call ebx
cmp eax, 0xffffffff
je 0x456bcd
push 4
lea eax, [ebp - 0x24]
push eax
push 0x1002
push 0xffff
push dword [esi + 0x44]
call ebx
cmp dword [esi + 0x44], 0xffffffff
mov byte [esi + 0x50], 1
setne bl
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fedc
mov esp, ebp
pop ebp
ret
Function at 0x456beb
Capabilities:
Send data
Send data on socket

Disassembly:
push 0x44
mov eax, 0x56ed0a
call fcn.0056361b
mov ebx, ecx
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov ecx, dword [ebx + 0x40]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
call fcn.004476bb
mov esi, eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov dword [ebx + 0x3c], esi
push 7
pop ecx
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 0x40]
lea edi, [ebp - 0x27]
mov ecx, dword [eax + 0xf0]
movzx edx, word [eax + 0x28]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x2e], esi
lea esi, [ebx + 0x20]
mov dword [ebp - 0x32], ecx
mov ecx, dword [ebp - 0x4c]
mov ax, word [eax]
mov word [ebp - 0x34], ax
mov word [ebp - 0x2a], dx
mov ax, word [ecx]
movsd dword es:[edi], dword [esi]
mov word [ebp - 0x44], ax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movzx eax, word [eax]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x16], 0
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x42], ax
lea eax, [ebp - 0x44]
push eax
push 0
push 0x1f
lea eax, [ebp - 0x34]
push eax
push dword [ebx + 0x44]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x456c9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0056356d
ret 0xc
Function at 0x456cad
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ca1c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x40], ebx
je 0x456da2
call fcn.00456a7a
test al, al
je 0x456da2
mov eax, dword [esi + 0x40]
push 6
add eax, 0x36
mov byte [esi + 0x58], bl
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push 6
push eax
mov word [ebp - 8], bx
call dword [sym.imp.MSVCR120.dll_memcpy_s]
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, byte [ebp - 7]
push eax
movzx eax, byte [ebp - 8]
push eax
movzx eax, byte [ebp - 9]
push eax
movzx eax, byte [ebp - 0xa]
push eax
movzx eax, byte [ebp - 0xb]
push eax
movzx eax, byte [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push str._02x__02x__02x__02x__02x__02x
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
push 0x12
lea eax, [ebp - 0x20]
push eax
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.MSVCR120.dll_strncpy]
add esp, 0x3c
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov edi, eax
test edi, edi
je 0x456d6d
push 1
push edi
push dword [esi + 0x44]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x456d66
mov dword [esi + 0x54], edi
jmp 0x456d6d
push edi
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
push ebx
push ebx
push esi
push 0x456e7a
push ebx
push ebx
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x456da2
lea edx, [esi + 0x5c]
mov dword [esi + 0x4c], eax
push edx
call fcn.0045715d
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push ecx
mov ecx, esi
call fcn.00456e22
mov al, 1
jmp 0x456da4
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fedc
mov esp, ebp
pop ebp
ret
Function at 0x456e89
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x114c
call fcn.00560590
mov eax, dword [0x5ca1c8]
xor eax, esp
mov dword [esp + 0x1148], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x58], 0
jne 0x457091
lea ebx, [esi + 0x54]
mov edi, 0x800
cmp dword [ebx], 0
je 0x456fa7
push 0
push 0xffffffffffffffff
push 0
push ebx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp byte [esi + 0x58], 0
mov edi, eax
jne 0x457091
cmp edi, 0xc0
je 0x45708b
cmp edi, 0xffffffff
je 0x45708b
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
test edi, edi
jne 0x45707c
push 0x7ff
lea eax, [esp + 0x155]
mov byte [esp + 0x154], 0
push edi
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x10], 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push edi
mov edi, 0x800
lea eax, [esp + 0x15c]
push edi
push eax
push dword [esi + 0x44]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ecx, eax
mov dword [esp + 0xc], ecx
lea eax, [ecx - 1]
cmp eax, 0x7fe
ja 0x457081
cmp ecx, edi
jae 0x4570b1
push dword [esp + 0x2a]
mov byte [esp + ecx + 0x154], 0
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x15c]
push eax
mov ecx, esi
call fcn.0045729d
jmp 0x457081
mov eax, dword [esi + 0x44]
and dword [esp + 0x20], 0
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x20]
push eax
push 0
push 0
lea eax, [esp + 0x54]
mov dword [esp + 0x30], 0x64
push eax
push 1
mov dword [esp + 0x5c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x457081
test eax, eax
jle 0x457081
lea eax, [esp + 0x48]
push eax
push dword [esi + 0x44]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x457081
push 0x7ff
lea eax, [esp + 0x955]
mov byte [esp + 0x954], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x14], 0x10
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push edi
lea eax, [esp + 0x960]
push eax
push dword [esi + 0x44]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ecx, eax
mov dword [esp + 0x1c], ecx
lea eax, [ecx - 1]
cmp eax, 0x7fe
ja 0x457081
cmp ecx, edi
jae 0x4570b1
lea eax, [esp + 0x3a]
mov byte [esp + ecx + 0x950], 0
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x95c]
jmp 0x456f9a
mov edi, 0x800
cmp byte [esi + 0x58], 0
je 0x456ebe
cmp byte [esi + 0x58], 0
je 0x457099
mov byte [esi + 0x58], 0
xor eax, eax
jmp 0x45709c
xor eax, eax
inc eax
mov ecx, dword [esp + 0x1154]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055fedc
mov esp, ebp
pop ebp
ret
call fcn.005608a3
int3
Function at 0x4582c5
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56f154
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5ca1c8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
lea eax, [edx - 1]
cmp eax, 0xb3
ja 0x458342
mov eax, dword [edx*4 + 0x5873a8]
test eax, eax
jle 0x458342
push dword [ebp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00458124
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call fcn.0044d7e2
lea ecx, [esp + 0x18]
call fcn.0044de5b
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
call fcn.0044d7b2
lea ecx, [esp + 0xc]
call fcn.0044de5b
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45b9ca
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
xor ebx, ebx
or dword [eax], 0xffffffff
inc ebx
mov eax, dword [ebp + 0x10]
push edi
push ebx
mov dword [ebp - 4], ecx
mov dword [eax], ecx
lea eax, [ebp - 4]
push eax
push ecx
call esi
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x1c]
inc eax
push eax
call fcn.0044c8d2
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 4]
push ebx
push eax
push edi
call esi
test eax, eax
jne 0x45ba9b
mov ecx, dword [edi]
xor esi, esi
and dword [ebp - 0xc], esi
or eax, 0xffffffff
or edx, 0xffffffff
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
test ecx, ecx
jle 0x45ba9b
lea ecx, [edi + 0x28]
cmp dword [ebp + 8], 0xffffffff
je 0x45ba53
cmp dword [ebp + 8], 0
jbe 0x45ba53
mov edi, dword [ecx - 0x24]
cmp edi, 0xffffffff
je 0x45ba53
test edi, edi
je 0x45ba53
mov eax, dword [ecx - 0x20]
and eax, dword [ebp + 8]
cmp eax, edi
je 0x45ba84
mov eax, dword [ebp - 8]
cmp dword [ecx - 0x24], 0
jne 0x45ba73
cmp dword [ecx - 0x20], 0
jne 0x45ba73
cmp eax, 0xffffffff
je 0x45ba68
cmp dword [ecx], eax
jae 0x45ba73
mov eax, dword [ecx]
mov edx, dword [ecx - 0x14]
mov esi, dword [ecx - 0x18]
mov dword [ebp - 8], eax
mov edi, dword [ebp - 0xc]
add ecx, 0x38
inc edi
mov dword [ebp - 0xc], edi
cmp edi, dword [ebp - 0x10]
jl 0x45ba2e
jmp 0x45ba8a
mov edx, dword [ecx - 0x14]
mov esi, dword [ecx - 0x18]
cmp edx, 0xffffffff
je 0x45ba9b
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x45ba9d
xor bl, bl
lea ecx, [ebp - 0x1c]
call fcn.00408df6
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc