joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b360
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov dword [esp], 0x28
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
call fcn.004a91f0
mov edi, eax
mov eax, dword [esp + 0x50]
test ebx, ebx
mov dword [eax], 0
je 0x40b49a
cmp dword [ebx], 0x2e
jne 0x40b454
mov ecx, dword [ebx + 8]
xor esi, esi
test ecx, ecx
je 0x40b443
mov ebp, 0xa
jmp 0x40b3d0
mov dword [edi + esi*4], edx
mov ebx, dword [ebx + 0xc]
mov esi, ecx
test ebx, ebx
je 0x40b440
cmp dword [ebx], 0x2e
jne 0x40b454
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x40b440
lea eax, [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov dword [esp], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
call fcn.0040abc0
test eax, eax
mov edx, eax
je 0x40b423
lea ecx, [esi + 1]
cmp ecx, ebp
jb 0x40b3b0
add ebp, 0xa
mov dword [esp + 0x18], eax
mov dword [esp], edi
lea eax, [ebp*4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 4], eax
call fcn.004a9270
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov edx, dword [esp + 0x18]
jmp 0x40b3b0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40b48e
mov eax, dword [esp + 0x50]
mov dword [eax], 1
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x40b3c0
lea esi, [esi]
shl esi, 2
mov dword [edi + esi], 0
add esp, 0x3c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x29
mov dword [esp + 4], 1
mov dword [esp], str.Unexpected_type_in_v3_arglist_demangling_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], edi
call fcn.004abfa8
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call fcn.004abfa8
xor eax, eax
jmp 0x40b486
xor esi, esi
jmp 0x40b443
Function at 0x411940
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x4c
cmp edx, 0x7f
jbe 0x4119f0
lea ebx, [esp + 0x40]
mov eax, edx
nop
lea esi, [esi]
sub ebx, 1
mov byte [ebx], al
shr eax, 8
test eax, eax
jne 0x411960
lea ebp, [esp + 0x40]
sub ebp, ebx
cmp ebp, 8
mov esi, ebp
ja 0x411a30
mov edx, dword [edi + 0xc]
mov eax, dword [edx + 4]
cmp eax, 0x1e9
ja 0x411aa0
lea ecx, [eax + 1]
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x80]
mov byte [edx + eax + 8], cl
lea eax, [edi + 0xc]
test ebp, ebp
mov dword [esp + 0x1c], eax
lea eax, [edi + 8]
je 0x411a07
mov ebp, eax
jmp 0x4119c5
lea ecx, [eax + 1]
mov dword [edx + 4], ecx
movzx ecx, byte [ebx]
mov byte [edx + eax + 8], cl
add ebx, 1
sub esi, 1
je 0x411a07
mov edx, dword [edi + 0xc]
mov eax, dword [edx + 4]
cmp eax, 0x1e9
jbe 0x4119b0
movzx ecx, byte [ebx]
mov edx, dword [esp + 0x1c]
mov eax, ebp
call fcn.00410a10
test eax, eax
jne 0x4119bd
xor eax, eax
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 4]
cmp eax, 0x1e9
ja 0x411a14
lea ebx, [eax + 1]
mov dword [ecx + 4], ebx
mov byte [ecx + eax + 8], dl
add esp, 0x4c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [edi + 0xc]
lea eax, [edi + 8]
mov ecx, edx
mov edx, ebx
call fcn.00410a10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x19
mov dword [esp + 4], 1
mov dword [esp], str.IEEE_numeric_overflow:_0x
mov dword [esp + 0x1c], edx
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], 0x4b92a5
add eax, 0x40
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0xa
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
add esp, 0x4c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp + 0x80]
lea edx, [edi + 0xc]
lea eax, [edi + 8]
call fcn.00410a10
test eax, eax
jne 0x41199b
xor eax, eax
jmp 0x4119e6

Function at 0x41ecf0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
test eax, eax
je 0x41ed70
mov dword [esp + 8], eax
mov dword [esp + 4], str._s:_supported_targets:
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
call fcn.0042c9f0
mov edi, eax
mov eax, dword [eax]
lea ebx, [edi + 4]
test eax, eax
je 0x41ed4e
lea esi, [esi]
lea edi, [edi]
add ebx, 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4ba853
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
mov eax, dword [ebx - 4]
test eax, eax
jne 0x41ed30
mov dword [esp + 4], esi
mov dword [esp], 0xa
call sub.msvcrt.dll_fputc
mov dword [esp + 0x20], edi
add esp, 0x10
pop ebx
pop esi
pop edi
jmp fcn.004abfa8
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x12
mov dword [esp + 4], 1
mov dword [esp], str.Supported_targets:
call sub.msvcrt.dll_fwrite
jmp 0x41ed16
Function at 0x41f2b0
Capabilities:
Create directory

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
call fcn.0041e820
mov dword [esp], eax
call sub.msvcrt.dll__mktemp
test eax, eax
je 0x41f2e0
mov dword [esp], eax
mov ebx, eax
call sub.msvcrt.dll__mkdir
test eax, eax
jne 0x41f2e0
add esp, 0x18
mov eax, ebx
pop ebx
ret
add esp, 0x18
xor eax, eax
pop ebx
ret

Function at 0x41f550
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
call fcn.00423da0
mov dword [esp], eax
call fcn.00423db0
mov ebp, eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov eax, dword [0x4e8a00]
mov dword [esp], eax
call sub.msvcrt.dll_fputs
mov eax, dword [esp + 0x34]
test eax, eax
je 0x41f650
test ebx, ebx
je 0x41f671
test edi, edi
je 0x41f650
mov eax, dword [edi]
test eax, eax
je 0x41f650
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.:_s__s_
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
test esi, esi
je 0x41f629
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4baac1
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
lea eax, [esp + 0x40]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], ebp
mov dword [esp + 4], str.:__s_n
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x4baabd
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x41f5e1
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.0041f460
mov ebx, eax
jmp 0x41f5af
Function at 0x4279e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
movzx edx, byte [ebx]
mov dword [esp + 0x14], eax
lea ebp, [ebx + 1]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
xor eax, eax
test edx, edx
je 0x427a2b
nop
lea esi, [esi]
mov ecx, edx
add ebp, 1
shl ecx, 0x11
add edx, ecx
add edx, eax
mov eax, edx
shr eax, 2
xor eax, edx
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x427a10
sub ebp, ebx
xor edx, edx
lea ecx, [ebp - 1]
add eax, ecx
mov dword [esp + 0x1c], ecx
shl ecx, 0x11
add eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, eax
mov eax, ecx
mov ebp, ecx
div dword [esi + 0xc]
mov eax, dword [esi]
mov edi, dword [eax + edx*4]
test edi, edi
jne 0x427a66
jmp 0x427a90
mov edi, dword [edi]
test edi, edi
je 0x427a90
cmp dword [edi + 8], ebp
jne 0x427a60
mov dword [esp + 4], ebx
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x427a60
mov eax, edi
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x14]
test edx, edx
je 0x427b44
mov eax, dword [esp + 0x18]
test eax, eax
je 0x427b40
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 8]
mov edi, edx
add edi, 1
mov dword [esp + 0x14], edi
jne 0x427b10
mov edx, dword [eax + 4]
mov ecx, 8
cmp edx, ecx
mov dword [esp + 0x18], edx
jae 0x427b25
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.004a87a0
mov edi, eax
test edi, edi
je 0x427b4b
mov eax, dword [esp + 0x14]
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], esi
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004277c0
add edx, 8
mov ecx, edx
and ecx, 0xfffffff8
je 0x427aca
mov edx, dword [eax + 4]
cmp edx, ecx
mov dword [esp + 0x18], edx
jb 0x427aca
mov edi, dword [eax]
lea edx, [edi + ecx]
mov dword [eax], edx
mov edx, dword [esp + 0x18]
sub edx, ecx
mov dword [eax + 4], edx
jmp 0x427ad8
mov edi, ebx
jmp 0x427af0
xor eax, eax
jmp 0x427a80
mov dword [esp], 6
call fcn.004240c0
xor eax, eax
jmp 0x427a80
Function at 0x42a760
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
test edx, edx
sete dl
test edi, edi
sete al
or dl, al
jne 0x42a8ca
mov eax, dword [esp + 0x50]
test eax, eax
je 0x42a8ca
mov dword [esp + 4], 0x4bbbd3
mov dword [esp], edi
call fcn.00425c90
test eax, eax
mov esi, eax
je 0x42a8f8
xor ebx, ebx
lea esi, [esi]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x2000
mov dword [esp + 4], 1
mov dword [esp], 0x4e42a0
call sub.msvcrt.dll_fread
test eax, eax
je 0x42a80c
add eax, 0x4e42a0
not ebx
cmp eax, 0x4e42a0
jbe 0x42a808
mov ecx, 0x4e42a0
mov esi, esi
lea edi, [edi]
mov edx, ebx
xor dl, byte [ecx]
add ecx, 1
shr ebx, 8
movzx edx, dl
xor ebx, dword [edx*4 + 0x4bbc60]
cmp eax, ecx
jne 0x42a7f0
not ebx
jmp 0x42a7b0
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call fcn.004a7db0
mov dword [esp], eax
mov dword [esp + 0x2c], eax
call sub.msvcrt.dll_strlen
lea esi, [eax + 4]
mov ebp, eax
and esi, 0xfffffffc
lea eax, [esi + 4]
mov dword [esp], eax
mov dword [esp + 0x28], eax
call fcn.00428230
mov edi, eax
xor eax, eax
test edi, edi
je 0x42a8c2
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], ebp
mov dword [esp], edi
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
lea edx, [edi + ebp]
mov ecx, esi
mov dword [esp + 4], 0
sub ecx, ebp
add esi, edi
mov dword [esp], edx
mov dword [esp + 8], ecx
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 4]
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [eax + 0x30]
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.0042b260
test eax, eax
je 0x42a8e0
mov eax, 1
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 5
call fcn.004240c0
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
mov dword [esp + 0x28], eax
call fcn.004abfa8
mov eax, dword [esp + 0x28]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 1
call fcn.004240c0
xor eax, eax
jmp 0x42a8c2

Function at 0x42c830
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test eax, eax
je 0x42c870
mov edi, str.default
mov ecx, 8
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x42c880
test ebx, ebx
je 0x42c8b0
and byte [ebx + 0x2b], 0xfb
call fcn.0042c730
test eax, eax
je 0x42c8b9
mov dword [ebx + 4], eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp], str.GNUTARGET
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x42c842
mov eax, dword [0x4b1b44]
test eax, eax
je 0x42c8a0
test ebx, ebx
je 0x42c866
mov dword [ebx + 4], eax
or byte [ebx + 0x2b], 4
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov eax, dword [0x4b1b4c]
mov eax, dword [eax]
jmp 0x42c889
call fcn.0042c730
test eax, eax
jne 0x42c866
xor eax, eax
jmp 0x42c866
Function at 0x4a85c0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x4e85ec]
test eax, eax
je 0x4a85d0
ret
push esi
push ebx
sub esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 8
test eax, eax
mov ebx, eax
jne 0x4a8604
mov eax, dword [0x4e85ec]
test eax, eax
je 0x4a8638
add esp, 0x14
pop ebx
pop esi
ret
mov dword [esp], eax
call fcn.004a91f0
mov dword [esp], ebx
mov dword [0x4e85ec], eax
mov dword [esp + 4], eax
call esi
sub esp, 8
test eax, eax
jne 0x4a85f5
mov eax, dword [0x4e85ec]
mov dword [esp], eax
call fcn.004abfa8
mov dword [0x4e85ec], 0
mov dword [esp], 0x4e22c8
call fcn.004a9320
mov dword [0x4e85ec], eax
jmp 0x4a85fe

Function at 0x4a9ba0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.004a9c00

Function at 0x4a9c00
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4e89c0]
test esi, esi
jle 0x4a9ced
mov edi, dword [0x4e89c4]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4a9c34
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4a9ce6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x4a9c20
mov dword [esp], eax
mov ebx, eax
call fcn.004aa520
test eax, eax
mov edi, eax
je 0x4a9d2a
lea ebx, [esi + esi*2]
mov esi, dword [0x4e89c4]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.004aa650
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4e89c4]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4a9d0a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4a9cdf
sub eax, 0x40
and eax, 0xffffffbf
je 0x4a9cdf
mov eax, dword [esp + 0x20]
add ebx, dword [0x4e89c4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x4a9cf4
add dword [0x4e89c0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x4a9c3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004a9ba0
mov eax, dword [0x4e89c4]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004a9ba0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004a9ba0
lea esi, [esi]
Function at 0x4aa190
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4e89d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4e89d0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4aa1e5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4aa1de
test esi, esi
je 0x4aa1de
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4aa1c0
mov dword [esp], 0x4e89d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401103
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ecx + 4]
push edi
lea esi, [ebp + 8]
mov edi, eax
push 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push dword [ecx]
movsd dword es:[edi], dword [esi]
call sub.WS2_32.dll_connect
neg eax
sbb al, al
pop edi
inc al
pop esi
pop ebp
ret 0x10

Function at 0x401180
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [ecx + 0x14], eax
xor eax, eax
push eax
push eax
push ecx
push 0x40119f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 1]
push edi
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
lea eax, [ebp - 1]
lea ecx, [ebp - 0x14]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
and dword [esi + 0x30], 0
push dword [esi + 0x34]
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov ebx, eax
push 0
push dword [esi + 0x34]
push ebx
push dword [esi]
call sub.WS2_32.dll_recv
mov edi, eax
test edi, edi
jle 0x401242
lea eax, [ebp - 1]
lea ecx, [ebp - 0x34]
push eax
push edi
push ebx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int__class_std::allocator_char__const__]
push eax
lea ecx, [ebp - 0x24]
call dword [0x40d2d4]
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x14]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
sub dword [esi + 0x30], edi
cmp dword [esi + 0x30], 0
jg 0x401242
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.0040127f
push ebx
call dword [sym.imp.MSVCRT.dll_free]
test edi, edi
pop ecx
jg 0x4011da
mov ecx, esi
call fcn.0040127b
test al, al
je 0x401262
push 1
mov ecx, esi
call fcn.0040172c
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401587
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
push 6
push 1
push 0
call sub.WS2_32.dll_socket
mov esi, eax
push 0x10
push 0x411178
push esi
call sub.WS2_32.dll_connect
test eax, eax
jne 0x4015ca
push esi
lea eax, [ebp + 0xc]
sub esp, 0x10
mov ecx, esp
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push dword [ebp + 8]
call fcn.004014a1
add esp, 0x18
cmp byte [ebp + 0x1c], 0
je 0x4015d3
push esi
call sub.WS2_32.dll_closesocket
or esi, 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4015e1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x38], bl
jne 0x401685
cmp byte [0x411a18], bl
push edi
mov edi, dword [ebp + 8]
je 0x401669
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 2]
push edi
push eax
movzx eax, word [ebp - 4]
push eax
lea ecx, [ebp - 0x30]
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
lea eax, [ebp + 0xb]
push str.KeepAlive_Enabled__Timeout:__i_seconds_n
push eax
push str._02i:_02i:_02i:_03i__INFO_
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0x18
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push ebx
push ebx
push esi
push 0x40177e
push ebx
push ebx
mov byte [esi + 0x38], 1
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
pop edi
jmp 0x401687
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x403c02
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x40c768
call fcn.0040c440
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
and dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x14], edi
mov esi, 0x411730
mov ecx, esi
call fcn.00403ce5
cmp edi, eax
jae 0x403c82
push edi
mov ecx, esi
call fcn.00403cfb
mov eax, dword [eax]
cmp eax, dword [ebp + 8]
jne 0x403c76
push edi
mov ecx, esi
call fcn.00403cfb
mov eax, dword [eax + 8]
push dword [eax]
call sub.WS2_32.dll_closesocket
push 0
push edi
mov ecx, esi
call fcn.00403cfb
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.00401b8b
lea ecx, [edi + edi*2]
lea eax, [eax + ecx*4]
push eax
mov ecx, esi
call fcn.00403d28
inc edi
mov dword [ebp - 0x14], edi
jmp 0x403c22
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret