joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dc2bb
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x536b02
call fcn.00506ba4
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x10], eax
mov dword [eax + 0x598], ebx
cmp dword [edi + 4], ebx
jne 0x4dc355
lea eax, [ebp - 0xa8]
push eax
call fcn.004dbed0
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0049a05b
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.0049f47f
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004b7e63
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00499c13
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00496c9f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.004964f7
test bl, bl
je 0x4dc392
mov eax, dword [edi + 0x10]
add eax, 0x588
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [edi + 0x10]
call fcn.004dc401
test al, al
je 0x4dc3a5
push 0x543e4c
jmp 0x4dc3aa
push str.yyyy_MM_dd
push 0
push 0x1032
push dword [edi + 4]
call esi
mov eax, dword [edi + 0x10]
mov ebx, 0x588
add eax, ebx
push 0x10
push eax
lea eax, [edi + 0x1a]
push eax
call fcn.00505ee0
mov eax, dword [edi + 0x10]
add esp, 0xc
add eax, ebx
push eax
push 0
push 0x1002
push dword [edi + 4]
call esi
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.00506b53
ret 4

Function at 0x4dc932
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x58d700]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4dc95e
xor eax, eax
jmp 0x4dc9db
push 0xfe
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.00506530
add esp, 0xc
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4dc95a
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.00505ee0
mov ecx, dword [ebp - 0x298]
add esp, 0xc
movzx eax, cl
shl eax, 8
movzx ecx, ch
add eax, ecx
movzx ecx, byte [ebp - 0x296]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x295]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005019be
mov esp, ebp
pop ebp
ret
Function at 0x4dcad8
Capabilities:
Hide graphical window

Disassembly:
push 0xa4
mov eax, 0x536b35
call fcn.00506ba4
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x590], ebx
cmp dword [edi + 4], ebx
jne 0x4dcb95
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 8
push eax
mov dword [ebp - 0x9c], 0x800
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x4dcb6d
lea eax, [ebp - 0xb0]
mov ecx, edi
push eax
call fcn.004dc6b7
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xb0]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40030000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0049a05b
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.0049f47f
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004b7e63
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00499c13
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00496c9f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.004964f7
test bl, bl
je 0x4dcbd1
call fcn.004dc932
mov ecx, dword [edi + 0x10]
mov dword [ecx + 0x588], eax
mov eax, dword [edi + 0x10]
push dword [eax + 0x588]
push 0
push 0x465
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.00506b53
ret 4

Function at 0x4de830
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bc322

Function at 0x4de839
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp method.DuiLib::CMenuUI.virtual_324
Function at 0x4df7d5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x58d700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push edi
and dword [ebx + 0x770], 0
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x76c], ecx
mov dword [ebx + 0x774], eax
test ecx, ecx
jne 0x4df83d
call fcn.004df5b8
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test esi, esi
je 0x4df83d
call fcn.004df5b8
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
lea esi, [ebx + 0x10]
call fcn.004df5b8
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [ebx + 0x76c]
test ecx, ecx
jne 0x4df85a
mov ecx, edi
jmp 0x4df861
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0049a05b
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.004963ab
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
mov ecx, ebx
push 0x88
movsd dword es:[edi], dword [esi]
push SysReAllocString
push 0
push dword [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0049f47f
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x4df8a4
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x4df89f
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005019be
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4e54cb
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x58d700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, dword [ebp + 0xc]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov esi, eax
cmp edi, 0x21
jb 0x4e5519
cmp edi, 0x28
jbe 0x4e5513
lea eax, [edi - 0x2d]
cmp eax, 1
ja 0x4e5519
or esi, 0x100
cmp dword [ebp + 0x10], 0
je 0x4e5525
or esi, 0x1000000
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00506530
add esp, 0xc
shl esi, 0x10
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.004963f4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005019be
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e581f
Capabilities:
Hide graphical window

Disassembly:
push 0x98
mov eax, 0x537457
call fcn.00506ba4
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x4e592f
lea eax, [ebp - 0xa4]
push eax
call fcn.004e4fb5
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0xa4]
xor eax, eax
push eax
sub esp, 0x10
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
push 0x40000080
push eax
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0049a05b
push eax
mov ecx, ebx
call fcn.0049f47f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4e592f
mov esi, dword [ebx + 0x10]
mov ecx, esi
call fcn.004b7e63
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00499c13
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
movzx eax, word [ecx + 0x7a6]
push eax
movzx eax, word [ecx + 0x7a4]
mov ecx, ebx
push eax
call fcn.004e5d5a
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call fcn.004e5319
mov ecx, dword [ebx + 0x10]
and dword [ebp - 4], 0
add ecx, 0x1cc
push eax
call fcn.00496570
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004964f7
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10c]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebx + 0x18], 1
call fcn.00506b53
ret 4
Function at 0x4ea890
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ea8a0

Function at 0x4eab20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4eab2c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004eab40
Function at 0x524d89
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58d700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.005112d0
mov dword [ebp - 0x14], eax
cmp dword [0x5941b4], esi
jne 0x524e7c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x524e09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x524f5c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x524f5c
push 0x55fe80
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x524f5c
push eax
call ebx
push 0x55fe8c
push edi
mov dword [0x5941b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x55fe9c
push edi
mov dword [0x5941b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5941bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5941c4], eax
test eax, eax
je 0x524e79
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5941c0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x524ea1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x524e94
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x524eb6
push 4
pop eax
jmp 0x524f5e
cmp dword [ebp - 0x14], esi
je 0x524eb6
push dword [0x5941b4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x524e9b
mov eax, dword [0x5941c0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x524f14
cmp dword [0x5941c4], edi
je 0x524f14
push eax
call ebx
push dword [0x5941c4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x524f14
test eax, eax
je 0x524f14
call ecx
test eax, eax
je 0x524f09
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x524f09
test byte [ebp - 8], 1
jne 0x524f14
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x524f44
mov eax, dword [0x5941b8]
cmp eax, edi
je 0x524f41
push eax
call ebx
test eax, eax
je 0x524f41
call eax
mov esi, eax
test esi, esi
je 0x524f41
mov eax, dword [0x5941bc]
cmp eax, edi
je 0x524f41
push eax
call ebx
test eax, eax
je 0x524f41
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5941b4]
call ebx
test eax, eax
je 0x524f5c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x524f5e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005019be
mov esp, ebp
pop ebp
ret
Function at 0x10001010
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x1006cbfc]
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 0x10001062
mov eax, dword [esp]
cmp al, 2
jne 0x1000105c
shr eax, 8
cmp al, 2
jne 0x1000105c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.1005aa0a
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.1005aa0a
add esp, 0x194
ret
Function at 0x1000c1a0
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 0x1000c1d2
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 0x1000c370
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x1006cbfc]
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.0x1000c3d0
test eax, eax
je case.default.0x1000c3d0
mov eax, dword [eax + 0x9c]
test eax, eax
je case.default.0x1000c3d0
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x1000c3d0
jmp dword [edx*4 + 0x1000c4ec]
mov ecx, str.Header
mov edx, str.from
jmp 0x1000c3ed
mov ecx, str.Header
mov edx, 0x1005e404
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.10010f00
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000c410
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x1000c465
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 0x1000c4d0
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x1000c493
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 0x1000c4d0
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x1005e3e0
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.0x1000c3d0
test ebx, ebx
js 0x1000c4ce
cmp ebx, 2
jg 0x1000c4ce
mov eax, dword [esi + 0x130]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x1005e3e0]
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.1005aa0a
add esp, 0xa4
ret
Function at 0x1000c590
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x1006cbfc]
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.10010ea0
mov eax, dword [esi + 0x138]
add esp, 0x10
test eax, eax
je 0x1000c5f0
cmp dword [esi + 0x8600], 0
jne 0x1000c5f0
push ebx
push 0x1005e420
push 0x100
push eax
call fcn.10010f00
add esp, 0x10
mov dword [esi + 0x8600], 1
cmp dword [esi + 0x334], 0
je 0x1000c677
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000c600
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3fff
jae 0x1000c624
mov byte [esi + edi + 0x5d4], 0xa
inc edi
mov byte [esi + edi + 0x5d4], cl
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x1000c64e
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.1005aa0a
pop ecx
ret
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x1005e3e0
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.1005aa0a
pop ecx
ret
Function at 0x1000c690
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xb8
mov eax, dword [0x1006cbfc]
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.100119d0
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
jne 0x1000c6ed
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.1005aa0a
add esp, 0xb8
ret
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000c6f0
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 0x1000c756
mov eax, dword [esp + 0x18]
cmp eax, ecx
je 0x1000c839
cmp eax, 0x51
jne 0x1000c833
xor ebp, ebp
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x334], ecx
je 0x1000c7ee
cmp dword [esi + 0x2e8], ecx
je 0x1000c7cf
mov eax, dword [ebx + 0x9c]
cmp eax, ecx
je 0x1000c7cf
push eax
push 0x1005e404
push str.Data
push str.__s__s__s_
lea eax, [esp + 0x34]
push 0xa0
push eax
call fcn.10010f00
lea eax, [esp + 0x3c]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000c7a1
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x1000c805
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 0x1000c7ee
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x1000c7ee
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 0x1000c841
sub ecx, ebp
add dword [esp + 0x10], ebp
jmp 0x1000c700
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x1005e3e0
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 0x1000c7cf
mov dword [esp + 0x14], eax
jmp 0x1000c841
mov dword [esp + 0x14], 0x37
push edi
call dword [0x1006cbe4]
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.1005aa0a
add esp, 0xb8
ret
Function at 0x1000c870
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 0x1000c8ed
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x1000c8c4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.10012660
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.1000c590
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 0x1000ec10
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x1006cbfc]
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 0x1000ec64
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.1000c500
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1005aa0a
add esp, 0x18
ret
mov edx, dword [esi + 0x470]
push edx
mov dword [esp + 0xc], 1
call fcn.100273e0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x474]
push eax
call fcn.100273e0
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 0x1000ecdd
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.1000c500
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1005aa0a
add esp, 0x18
ret