joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003d10
Capabilities:
Query environment variable

Disassembly:
push 0x60
push 0x1001508
call fcn.01004a70
mov edi, 0x94
mov eax, edi
call fcn.01004bd0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x100ba44], ecx
mov eax, dword [esi + 4]
mov dword [0x100ba50], eax
mov edx, dword [esi + 8]
mov dword [0x100ba54], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x100ba48], esi
cmp ecx, 2
je 0x1003b9c
or esi, 0x8000
mov dword [0x100ba48], esi
shl eax, 8
add eax, edx
mov dword [0x100ba4c], eax
cmp word [0x1000000], 0x5a4d
jne 0x1003bd8
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1003bd8
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1003bf1
cmp ecx, 0x20b
je 0x1003bde
and dword [ebp - 0x1c], 0
jmp 0x1003c05
cmp dword [eax + 0x84], 0xe
jbe 0x1003bd8
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1003bff
cmp dword [eax + 0x74], 0xe
jbe 0x1003bd8
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01004a11
pop ecx
test eax, eax
jne 0x1003c32
cmp dword [0x100ba2c], 1
jne 0x1003c1f
call fcn.010041ed
push 0x1c
call fcn.01004000
push 0xff
call fcn.01003e5f
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.01004841
test eax, eax
jge 0x1003c47
push 0x1b
call fcn.01003b0d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100d0d0], eax
call fcn.01004714
mov dword [0x100ba24], eax
call fcn.0100466b
test eax, eax
jge 0x1003c6d
push 8
call fcn.01003b0d
pop ecx
call fcn.01004411
test eax, eax
jge 0x1003c7e
push 9
call fcn.01003b0d
pop ecx
call fcn.01003eb9
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1003c91
push eax
call fcn.01003b0d
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.010043a3
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1003cb3
movzx eax, word [ebp - 0x40]
jmp 0x1003cb6
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.0100380d
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1003cd7
push esi
call fcn.01003f99
call fcn.01003fd1
jmp 0x1003d09
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.01004aab
ret
Function at 0x1006322
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [0x100cfa4], 3
push esi
mov esi, dword [ebp + 8]
jne 0x100631e
cmp esi, dword [0x100cd50]
ja 0x100631e
push esi
call fcn.01006908
test eax, eax
pop ecx
jne 0x1006341
test esi, esi
jne 0x1006323
inc esi
cmp dword [0x100cfa4], 1
je 0x1006332
add esi, 0xf
and esi, 0xfffffff0
push esi
push 0
push dword [0x100cfa0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
pop esi
pop ebp
ret
Function at 0x100901f
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100b080]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
cmp eax, edx
push esi
push edi
mov dword [ebp - 0x14], 0x404e
mov dword [ebx], edx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
jbe 0x100904b
mov dword [ebp - 0x1c], eax
mov esi, ebx
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
call fcn.01008f59
push ebx
call fcn.01008f59
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.01008ef2
push ebx
call fcn.01008f59
mov eax, dword [ebp - 0x18]
movsx eax, byte [eax]
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.01008ef2
add esp, 0x1c
inc dword [ebp - 0x18]
dec dword [ebp - 0x1c]
jne 0x1008fff
xor edx, edx
cmp dword [ebx + 8], edx
jne 0x100907f
mov edi, dword [ebx + 8]
mov ecx, dword [ebx + 4]
add dword [ebp - 0x14], 0xfff0
mov eax, ecx
shr eax, 0x10
mov edi, eax
mov eax, dword [ebx]
mov esi, eax
shr esi, 0x10
shl ecx, 0x10
or esi, ecx
shl eax, 0x10
cmp edi, edx
mov dword [ebx + 4], esi
mov dword [ebx], eax
je 0x1009053
mov dword [ebx + 8], edi
mov esi, 0x8000
jmp 0x1009094
push ebx
call fcn.01008f59
add dword [ebp - 0x14], 0xffff
pop ecx
test dword [ebx + 8], esi
je 0x1009086
mov ax, word [ebp - 0x14]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov word [ebx + 0xa], ax
pop ebx
call fcn.010039ea
leave
ret
Function at 0x10001300
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10074d88]
mov dword [ebp - 4], eax
jmp 0x10001319
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10001336
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10001310
mov esp, ebp
pop ebp
ret

Function at 0x10001340
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10074d98], eax
je 0x1000135e
mov eax, 0x10dd
jmp 0x1000143f
mov eax, dword [0x10074da8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100013dc
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100013ba
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100013ba
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.100014b0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10001366
mov dword [0x10074da8], 0
call fcn.10001450
mov ecx, dword [0x10074da4]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x10001429
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x100013f4
mov dword [0x10074da4], 0
mov dword [0x10074d98], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100019b0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x100019c5
xor eax, eax
jmp 0x10001a3a
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x100019f2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x10001a35
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x10001a33
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x10001a2f
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x10001a33
xor eax, eax
jmp 0x10001a3a
jmp 0x100019e9
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x100023c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10002490
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000247c
cmp dword [ebp - 4], 0x50000000
jb 0x100023fc
cmp dword [ebp - 4], 0x80000000
ja 0x100023fc
mov dword [ebp - 4], 0x80010000
jmp 0x100023d5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10002422
jmp 0x1000247c
cmp dword [ebp - 0x10], 0x10000
jne 0x10002465
cmp dword [ebp - 0x14], 0x10000
jb 0x10002465
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10002458
mov eax, dword [ebp - 0x24]
jmp 0x1000247e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10002477
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.10002490
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100023d5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100024c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10002590
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10002584
cmp dword [ebp - 4], 0x50000000
jb 0x10002501
cmp dword [ebp - 4], 0x80000000
ja 0x10002501
mov dword [ebp - 4], 0x4fff0000
jmp 0x100024da
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10002527
jmp 0x10002584
cmp dword [ebp - 0x10], 0x10000
jne 0x1000256a
cmp dword [ebp - 0x14], 0x10000
jb 0x1000256a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1000255d
mov eax, dword [ebp - 0x24]
jmp 0x10002586
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000257f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.10002590
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100024da
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100025c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10074d98], eax
je 0x100025e5
mov eax, 0x10dd
jmp 0x1000277d
cmp dword [0x10074d9c], 0
je 0x100025f8
mov eax, dword [0x10074d9c]
jmp 0x1000277d
cmp dword [ebp + 8], 0
jne 0x10002608
mov eax, 6
jmp 0x1000277d
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10002631
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x10074d9c], ecx
mov edx, dword [ebp + 8]
mov dword [0x10074da0], edx
mov eax, dword [ebp - 0xc]
jmp 0x1000277d
push 0x18
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1000268a
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x10074d9c], ecx
cmp dword [ebp - 0x18], 0
je 0x10002679
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x10074da0], ecx
mov eax, dword [ebp - 0xc]
jmp 0x1000277d
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10001000
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10001000
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0
je 0x100026ca
cmp dword [ebp - 8], 0x1e
jbe 0x100026e6
mov dword [ebp - 0xc], 9
cmp dword [0x10074d90], 0
je 0x100026e1
jmp 0x1000265a
jmp 0x10002651
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1000270d
mov dword [ebp - 0xc], 9
cmp dword [0x10074d90], 0
je 0x10002708
jmp 0x1000265a
jmp 0x10002651
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000273a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x10002651
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x10074da8]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x10074da8], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x100030b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x10074020]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10003102
mov eax, dword [esp]
cmp al, 2
jne 0x100030fc
shr eax, 8
cmp al, 2
jne 0x100030fc
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.10060d08
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.10060d08
add esp, 0x194
ret
Function at 0x1000e280
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1000e2b2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x1000e450
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x10074020]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x2e8], 0
push edi
je case.default.0x1000e4b0
test eax, eax
je case.default.0x1000e4b0
mov eax, dword [eax + 0x9c]
test eax, eax
je case.default.0x1000e4b0
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x1000e4b0
jmp dword [edx*4 + 0x1000e5cc]
mov ecx, str.Header
mov edx, str.from
jmp 0x1000e4cd
mov ecx, str.Header
mov edx, 0x100688d4
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.10012fe0
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000e4f0
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x1000e545
mov ecx, dword [esi + 0x134]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x1000e5b0
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x1000e573
mov ecx, dword [esi + 0x134]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x1000e5b0
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x100688b0
call sub.MSVCR120.dll_fwrite
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call sub.MSVCR120.dll_fwrite
add esp, 0x20
jmp case.default.0x1000e4b0
test ebx, ebx
js 0x1000e5ae
cmp ebx, 2
jg 0x1000e5ae
mov eax, dword [esi + 0x130]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x100688b0]
push 2
push ecx
call sub.MSVCR120.dll_fwrite
mov edx, dword [esi + 0x130]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call sub.MSVCR120.dll_fwrite
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10060d08
add esp, 0xa4
ret
Function at 0x1000e670
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x10074020]
xor eax, esp
mov dword [esp], eax
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
lea ebx, [esi + 0x5d4]
push 0x4000
push ebx
call fcn.10012f80
mov eax, dword [esi + 0x138]
add esp, 0x10
test eax, eax
je 0x1000e6d0
cmp dword [esi + 0x8600], 0
jne 0x1000e6d0
push ebx
push 0x100688f0
push 0x100
push eax
call fcn.10012fe0
add esp, 0x10
mov dword [esi + 0x8600], 1
cmp dword [esi + 0x334], 0
je 0x1000e757
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000e6e0
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3fff
jae 0x1000e704
mov byte [esi + edi + 0x5d4], 0xa
inc edi
mov byte [esi + edi + 0x5d4], cl
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x1000e72e
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push 0
push esi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp]
xor ecx, esp
call fcn.10060d08
pop ecx
ret
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x100688b0
call sub.MSVCR120.dll_fwrite
mov ecx, dword [esi + 0x130]
push ecx
push 1
push edi
push ebx
call sub.MSVCR120.dll_fwrite
add esp, 0x20
pop edi
mov ecx, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.10060d08
pop ecx
ret
Function at 0x1000e770
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xb8
mov eax, dword [0x10074020]
xor eax, esp
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0xc4]
push ebx
mov ebx, dword [esp + 0xc4]
push esi
mov esi, dword [ebx]
push edi
lea eax, [esp + 0xd4]
push eax
push ecx
call fcn.10013ab0
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
jne 0x1000e7cd
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.10060d08
add esp, 0xb8
ret
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000e7d0
sub eax, edx
mov ecx, eax
mov dword [esp + 0xc], edi
push ebp
mov edx, dword [esp + 0xcc]
xor eax, eax
cmp edx, dword [ebx + 0x158]
lea edx, [esp + 0x18]
push edx
sete al
push ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x24], 0
mov edx, dword [ebx + eax*4 + 0x174]
push eax
push ebx
call edx
mov ebp, eax
xor ecx, ecx
add esp, 0x14
cmp ebp, ecx
jge 0x1000e836
mov eax, dword [esp + 0x18]
cmp eax, ecx
je 0x1000e919
cmp eax, 0x51
jne 0x1000e913
xor ebp, ebp
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x334], ecx
je 0x1000e8ce
cmp dword [esi + 0x2e8], ecx
je 0x1000e8af
mov eax, dword [ebx + 0x9c]
cmp eax, ecx
je 0x1000e8af
push eax
push 0x100688d4
push str.Data
push str.__s__s__s_
lea eax, [esp + 0x34]
push 0xa0
push eax
call fcn.10012fe0
lea eax, [esp + 0x3c]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000e881
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x1000e8e5
mov ecx, dword [esi + 0x134]
push ecx
push edi
lea edx, [esp + 0x2c]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x1000e8ce
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x1000e8ce
mov ecx, dword [esi + 0x134]
mov edx, dword [esp + 0x10]
push ecx
push ebp
push edx
push 4
push esi
call eax
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ebp, ecx
je 0x1000e921
sub ecx, ebp
add dword [esp + 0x10], ebp
jmp 0x1000e7e0
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x100688b0
call sub.MSVCR120.dll_fwrite
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [esp + 0x3c]
push edi
push edx
call sub.MSVCR120.dll_fwrite
add esp, 0x20
jmp 0x1000e8af
mov dword [esp + 0x14], eax
jmp 0x1000e921
mov dword [esp + 0x14], 0x37
push edi
call dword [0x10074008]
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0x18]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10060d08
add esp, 0xb8
ret
Function at 0x1000e950
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x1000e9cd
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x1000e9a4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.10014720
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.1000e670
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x8604], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x10010cf0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x10074020]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
cmp dword [esi + 0x46c], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10010d44
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.1000e5e0
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10060d08
add esp, 0x18
ret
mov edx, dword [esi + 0x470]
push edx
mov dword [esp + 0xc], 1
call fcn.100294a0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x474]
push eax
call fcn.100294a0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10010dbd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.1000e5e0
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10060d08
add esp, 0x18
ret