joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413198
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x165a1c0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x413274
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x413289
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x413248
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x4131e0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x4131f0
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x41323b
test edx, edx
jne 0x41322e
test ecx, ecx
je 0x4131d8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x413298
cmp eax, 8
je 0x4131d8
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x4131ca
call fcn.004129a8
mov eax, dword [0x165a1c0]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jns 0x4131bc
call fcn.00412e08
mov eax, dword [0x165a1c0]
jmp 0x4131bc
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00413108
cmp eax, 7
jne 0x413233
mov eax, dword [0x165a1c0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x4132eb
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x413316
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x4132f7
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.004129a8
mov eax, dword [0x165a1c0]
jmp 0x4132c9
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4132da
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4132da
call fcn.00412e08
mov eax, dword [0x165a1c0]
jmp 0x4132d0
Function at 0x413578
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x165a1c0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x41360c
mov esi, dword [eax + 0x2c]
test esi, esi
js 0x413628
mov ebx, dword [eax + 0x2c]
test ebx, ebx
jne 0x413648
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x413600
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00413108
cmp eax, 7
jne 0x4136c7
mov eax, dword [0x165a1c0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x41369e
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x4136b8
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x413678
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00413328
jmp 0x4135bd
call fcn.004129a8
mov eax, dword [0x165a1c0]
mov esi, dword [eax + 0x2c]
test esi, esi
jns 0x413598
lea esi, [esi]
call fcn.00412e08
mov eax, dword [0x165a1c0]
mov ebx, dword [eax + 0x2c]
test ebx, ebx
je 0x4135a3
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x4135a6
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4135ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4135ef
call fcn.004129a8
mov eax, dword [0x165a1c0]
mov edx, dword [eax + 0x2c]
test edx, edx
jns 0x4135e1
nop
lea esi, [esi]
call fcn.00412e08
mov eax, dword [0x165a1c0]
jmp 0x4135e1
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x4136d8
Capabilities:
Get thread local storage value
Set thread local storage value

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 esi, dword [edi + 0xc]
test esi, esi
je 0x41376a
mov eax, dword [0x165a1c0]
test eax, eax
je 0x41375e
mov ebx, dword [eax + 0x2c]
test ebx, ebx
js 0x4137d9
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x41377f
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00413328
cmp eax, 7
jne 0x4137f7
mov eax, dword [0x165a1c0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x4137ca
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x4137e8
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x4137ab
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.004129a8
mov eax, dword [0x165a1c0]
jmp 0x4136fa
mov dword [esp], edi
call fcn.00413198
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x41370f
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x41374d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41374d
call fcn.004129a8
mov eax, dword [0x165a1c0]
jmp 0x413738
call fcn.00412e08
mov eax, dword [0x165a1c0]
jmp 0x413705
call fcn.00412e08
mov eax, dword [0x165a1c0]
jmp 0x413743
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x4139a8
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x4139d8
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0041ae60
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x41aeb0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov word [ebp - 6], ax
cmp word [ebp - 6], 0
jne 0x41aed9
mov dword [ebp - 0x10], 0
jmp 0x41af7b
mov eax, dword [ebp + 0xc]
mov word [eax], 2
mov ebx, dword [ebp + 0xc]
movzx eax, word [ebp - 6]
mov dword [esp], eax
call sub.WS2_32.DLL_htons
sub esp, 4
mov word [ebx + 2], ax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.WS2_32.DLL_inet_addr
sub esp, 4
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0xffffffff
je 0x41af1d
mov dword [ebp - 0x10], 1
jmp 0x41af7b
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.WS2_32.DLL_gethostbyname
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41af50
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.Resove_name__s_error_
call fcn.00403dce
mov dword [ebp - 0x10], 0
jmp 0x41af7b
mov edx, dword [ebp + 0xc]
add edx, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0xffffffff
je 0x41af74
mov dword [ebp - 0x10], 1
jmp 0x41af7b
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 4]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0xa
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jge 0x41b100
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
sub eax, edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1a0]
mov dword [esp], eax
call sub.WS2_32.DLL_send
sub esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jns 0x41b0a9
mov eax, dword [ebp + 8]
mov dword [eax + 0x220], 0
mov dword [esp], str.Send_date_failed_
call fcn.00403dce
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jne 0x41b0a0
jmp 0x41b030
mov dword [ebp - 0x14], 0xffffffff
jmp 0x41b106
cmp dword [ebp - 8], 0
jne 0x41b0f3
mov dword [esp], 0x64
call sub.KERNEL32.dll_Sleep
sub esp, 4
lea eax, [ebp - 0xc]
dec dword [eax]
cmp dword [ebp - 0xc], 0
jns 0x41b0f3
mov eax, dword [ebp + 8]
mov dword [eax + 0x220], 0
mov dword [esp], str.Send_date_failed_
call fcn.00403dce
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0xffffffff
jmp 0x41b106
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
add dword [eax], edx
jmp 0x41b030
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
leave
ret
Function at 0x41b10c
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 8], 0x10
mov eax, dword [ebp + 8]
add eax, 0x20c
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1a0]
mov dword [esp], eax
call sub.WS2_32.DLL_connect
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x41b161
mov eax, dword [ebp + 8]
mov dword [eax + 0x220], 0
mov dword [esp], str.Connect_to_remote_failed_
call fcn.00403dce
mov dword [ebp - 4], 0
jmp 0x41b168
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax], 0
jg 0x41b1de
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x2800
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 8
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1a0]
mov dword [esp], eax
call sub.WS2_32.DLL_recv
sub esp, 0x10
mov dword [ebx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax], 0
jg 0x41b1ce
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41b1ff
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 8
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
dec dword [eax]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [eax + 4]
inc dword [eax + 4]
movzx eax, byte [edx]
mov byte [ecx], al
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x41b208
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0xa
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jge 0x41b3b7
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
sub edx, eax
mov eax, edx
mov dword [ebp - 0x28], eax
cdq
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
cmp eax, dword [edx + 0x19c]
jl 0x41b281
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
cmp eax, dword [edx + 0x19c]
jg 0x41b273
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp eax, dword [edx + 0x198]
jbe 0x41b281
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x198]
mov dword [ebp - 0x20], eax
jmp 0x41b28e
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
sub edx, eax
mov eax, edx
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [esp + 8], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1a0]
mov dword [esp], eax
call sub.WS2_32.DLL_recv
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jns 0x41b2e9
mov eax, dword [ebp + 8]
mov dword [eax + 0x220], 0
mov dword [esp], str.Send_date_failed_
call fcn.00403dce
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0xffffffff
jmp 0x41b3bd
cmp dword [ebp - 0x10], 0
jne 0x41b336
mov dword [esp], 0x64
call sub.KERNEL32.dll_Sleep
sub esp, 4
lea eax, [ebp - 0x14]
dec dword [eax]
cmp dword [ebp - 0x14], 0
jns 0x41b336
mov eax, dword [ebp + 8]
mov dword [eax + 0x220], 0
mov dword [esp], str.Send_date_failed_
call fcn.00403dce
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0xffffffff
jmp 0x41b3bd
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
add dword [eax], edx
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov ebx, eax
sar ebx, 0x1f
mov eax, dword [edx + 0x198]
mov edx, dword [edx + 0x19c]
sub eax, ecx
sbb edx, ebx
mov dword [esi + 0x198], eax
mov dword [esi + 0x19c], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x19c], 0
jg 0x41b21e
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x19c], 0
js 0x41b39c
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x198], 0
ja 0x41b21e
mov dword [esp + 4], 0x7fffffff
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0041ae90
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x41b3c8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0xa
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jge 0x41b577
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
sub edx, eax
mov eax, edx
mov dword [ebp - 0x28], eax
cdq
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
cmp eax, dword [edx + 0x19c]
jl 0x41b441
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
cmp eax, dword [edx + 0x19c]
jg 0x41b433
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp eax, dword [edx + 0x198]
jbe 0x41b441
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x198]
mov dword [ebp - 0x20], eax
jmp 0x41b44e
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
sub edx, eax
mov eax, edx
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [esp + 8], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1a0]
mov dword [esp], eax
call sub.WS2_32.DLL_send
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jns 0x41b4a9
mov eax, dword [ebp + 8]
mov dword [eax + 0x220], 0
mov dword [esp], str.Send_date_failed_
call fcn.00403dce
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0xffffffff
jmp 0x41b57d
cmp dword [ebp - 0x10], 0
jne 0x41b4f6
mov dword [esp], 0x64
call sub.KERNEL32.dll_Sleep
sub esp, 4
lea eax, [ebp - 0x14]
dec dword [eax]
cmp dword [ebp - 0x14], 0
jns 0x41b4f6
mov eax, dword [ebp + 8]
mov dword [eax + 0x220], 0
mov dword [esp], str.Send_date_failed_
call fcn.00403dce
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0xffffffff
jmp 0x41b57d
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
add dword [eax], edx
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov ebx, eax
sar ebx, 0x1f
mov eax, dword [edx + 0x198]
mov edx, dword [edx + 0x19c]
sub eax, ecx
sbb edx, ebx
mov dword [esi + 0x198], eax
mov dword [esi + 0x19c], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x19c], 0
jg 0x41b3de
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x19c], 0
js 0x41b55c
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x198], 0
ja 0x41b3de
mov dword [esp + 4], 0x7fffffff
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0041ae90
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x41b588
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x44e383
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1a0]
mov dword [esp], eax
call sub.WS2_32.DLL_send
sub esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x41b5e5
mov eax, dword [ebp + 8]
mov dword [eax + 0x220], 0
mov dword [esp], str.Send_over_failed_
call fcn.00403dce
mov dword [ebp - 8], 0xffffffff
jmp 0x41b5eb
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
leave
ret
Function at 0x41b5f0
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [eax + 0x220], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x198], 0x7fffffff
mov dword [eax + 0x19c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x194], 0
mov esi, dword [ebp + 8]
mov dword [esp], 0x2808
call fcn.00409898
mov ebx, eax
mov edx, ebx
mov eax, 0x2808
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.msvcrt.dll_memset
mov dword [esi], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, 4
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sub.WS2_32.DLL_WSAStartup
sub esp, 8
mov dword [ebx + 0x194], eax
mov eax, dword [ebx + 0x194]
test eax, eax
je 0x41b6cd
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x194]
mov dword [esp + 4], eax
mov dword [esp], str.WSAStartup_failed_with_error__d_n
call sub.msvcrt.dll_printf
mov dword [esp], 4
call fcn.00409608
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x194]
mov dword [edx], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x45879c
mov dword [esp], edx
call fcn.00409518
mov ebx, dword [ebp + 8]
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.DLL_socket
sub esp, 0xc
mov dword [ebx + 0x1a0], eax
mov eax, dword [ebx + 0x1a0]
cmp eax, 0xffffffff
jne 0x41b73b
mov dword [esp], str.Create_socket_failed_
call fcn.00403dce
mov dword [esp], 4
call fcn.00409608
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x194]
mov dword [eax], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x45879c
mov dword [esp], eax
call fcn.00409518
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
add eax, 0x20c
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
add eax, 0x224
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
add eax, 0x20c
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0041aeb0
test eax, eax
jne 0x41b7df
mov dword [esp], str.Create_socket_failed_
call fcn.00403dce
mov dword [esp], 4
call fcn.00409608
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x194]
mov dword [eax], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x45879c
mov dword [esp], eax
call fcn.00409518
mov eax, dword [ebp + 8]
mov dword [eax + 0x220], 1
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x20e]
mov dword [esp], eax
call sub.WS2_32.DLL_ntohs
sub esp, 4
movzx eax, ax
mov dword [ebx + 0x1a4], eax
mov eax, dword [ebp + 8]
add eax, 0x210
mov eax, dword [eax]
mov dword [esp], eax
call sub.WS2_32.DLL_inet_ntoa
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
add eax, 0x1a8
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp + 8]
mov dword [eax + 0x21c], 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x41b9d8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [0x44d1d4]
test eax, eax
je 0x41bae2
movzx eax, byte [0x44d1ec]
test al, al
jne 0x41bad3
mov eax, dword [0x44d1dc]
mov esi, dword [0x44d1d8]
cmp esi, eax
jbe 0x41ba29
mov ecx, dword [0x44d1f0]
lea esi, [esi]
add eax, eax
lea edx, [ecx + 1]
cmp esi, eax
mov ecx, edx
ja 0x41ba18
mov dword [0x44d1f0], edx
lea eax, [esi + esi + 2]
xor edi, edi
mov dword [esp], eax
call fcn.00409898
movzx ebx, word [0x44d1dc]
mov dword [0x44d214], eax
mov edx, eax
mov esi, dword [0x44d1d8]
xor ecx, ecx
lea esi, [esi]
lea edi, [edi]
cmp ecx, ebx
jbe 0x41ba68
lea eax, [ebx + ebx]
movzx ebx, ax
lea eax, [edi + 1]
movzx edi, ax
mov word [edx], di
lea eax, [ecx + 1]
movzx ecx, ax
add edx, 2
cmp ecx, esi
jbe 0x41ba58
mov eax, dword [0x44d1f0]
shl eax, 4
mov dword [esp], eax
call fcn.00409898
mov dword [0x44d204], eax
mov ecx, dword [0x16597c0]
test ecx, ecx
jne 0x41bb3c
xor esi, esi
cmp esi, dword [0x44d1f0]
jae 0x41bad3
lea esi, [esi]
mov dword [esp], 4
mov eax, dword [0x44d204]
mov ebx, esi
shl ebx, 4
inc esi
add ebx, eax
call fcn.00409898
mov dword [ebx], eax
mov eax, dword [ebx]
mov dword [eax], 0
cmp esi, dword [0x44d1f0]
jb 0x41baa8
mov byte [0x44d208], 1
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.GLIBCXX_FORCE_NEW
mov eax, 8
mov edi, 0xff0
mov dword [0x44d1d4], eax
mov eax, pe_nt_image_headers32
mov esi, 0x1000
mov dword [0x44d1d8], eax
mov ebx, 0xa
mov eax, 8
mov dword [0x44d1dc], eax
mov dword [0x44d1e0], edi
mov dword [0x44d1e4], esi
mov dword [0x44d1e8], ebx
call sub.msvcrt.dll_getenv
test eax, eax
setne al
mov byte [0x44d1ec], al
jmp 0x41b9f5
mov eax, dword [0x44d1e4]
mov ebx, 1
shl eax, 3
mov dword [esp], eax
call fcn.00409898
cmp dword [0x44d1e4], 1
mov dword [0x44d1f8], eax
jmp 0x41bb84
mov edx, dword [0x44d1f8]
lea eax, [ebx*8]
mov ecx, dword [0x44d1f8]
lea edx, [eax + edx]
add eax, ecx
mov dword [edx - 4], ebx
inc ebx
cmp dword [0x44d1e4], ebx
mov dword [edx - 8], eax
ja 0x41bb5f
mov eax, dword [0x44d1f8]
xor edx, edx
mov dword [eax + ebx*8 - 8], edx
mov eax, dword [0x44d1f8]
mov dword [eax + ebx*8 - 4], ebx
mov dword [esp], 0x44d1fc
call fcn.00413a98
mov dword [esp], 0x44d1f4
mov eax, 0x41bdb8
mov dword [esp + 4], eax
call fcn.004139a8
mov dword [ebp - 0x10], 0
mov esi, dword [0x44d1e4]
xor eax, eax
inc esi
cmp eax, dword [0x44d1f0]
jae 0x41bad3
lea edi, [esi*4]
lea esi, [esi]
lea edi, [edi]
mov dword [esp], edi
mov edx, dword [ebp - 0x10]
mov eax, dword [0x44d204]
shl edx, 4
lea ebx, [edx + eax]
call fcn.00409898
mov dword [ebx], eax
mov dword [esp], edi
call fcn.00409898
mov dword [ebx + 4], eax
mov dword [esp], edi
call fcn.00409898
mov dword [ebx + 8], eax
mov dword [esp], 8
call fcn.00409898
mov dword [ebx + 0xc], eax
mov dword [esp], eax
call fcn.00413a98
xor edx, edx
jmp 0x41bc56
mov eax, dword [ebx]
mov dword [eax + edx*4], 0
mov eax, dword [ebx + 4]
mov dword [eax + edx*4], 0
mov eax, dword [ebx + 8]
mov dword [eax + edx*4], 0
inc edx
cmp edx, esi
jb 0x41bc38
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x44d1f0]
jb 0x41bbe8
jmp 0x41bad3