joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006a974
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x1006a9ba
call fcn.10055642
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1006a9ba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x1006a9fd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x1006a9e6
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x1006a9e6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x1006a9fa
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1007376f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.10055642
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100737a6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.10073391
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x100737fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x1007381e
cmp dword [edi + 0x54], 0
jne 0x1007381e
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.10055642
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.100737c5
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8
Function at 0x100773e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10139d20]
jne 0x100773f2
repz ret
jmp fcn.1008259c

Function at 0x100908b4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10081f42
xor ebx, ebx
cmp dword [0x10145148], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10090989
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x100908f4
xor eax, eax
jmp 0x10090a4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100908ed
push eax
call fcn.10081edf
mov dword [esp], 0x10107e90
push edi
mov dword [0x10145148], eax
call esi
push eax
call fcn.10081edf
mov dword [esp], 0x10107e7c
push edi
mov dword [0x1014514c], eax
call esi
push eax
call fcn.10081edf
mov dword [0x10145150], eax
lea eax, [ebp - 8]
push eax
call fcn.1007fd0a
test eax, eax
pop ecx
pop ecx
je 0x10090957
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10077860
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10090989
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10081edf
cmp eax, ebx
pop ecx
mov dword [0x10145158], eax
je 0x10090989
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10081edf
pop ecx
mov dword [0x10145154], eax
mov eax, dword [0x10145154]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x10090a02
cmp dword [0x10145158], esi
je 0x10090a02
push eax
call fcn.10081f4b
pop ecx
call eax
cmp eax, ebx
je 0x100909cf
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10145158]
call fcn.10081f4b
pop ecx
call eax
test eax, eax
je 0x100909cf
test byte [ebp - 0x18], 1
jne 0x10090a02
lea eax, [ebp - 0xc]
push eax
call fcn.1007fd41
test eax, eax
pop ecx
je 0x100909ea
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10077860
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x100909f9
or dword [ebp + 0x10], 0x200000
jmp 0x10090a33
or dword [ebp + 0x10], 0x40000
jmp 0x10090a33
mov eax, dword [0x1014514c]
cmp eax, esi
je 0x10090a33
push eax
call fcn.10081f4b
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10090a33
mov eax, dword [0x10145150]
cmp eax, esi
je 0x10090a33
push dword [ebp - 4]
push eax
call fcn.10081f4b
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10145148]
call fcn.10081f4b
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100a2e90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
cmp eax, edx
mov dword [esp + 0xc], edi
jb 0x100a2f20
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.1007a170
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x100a2eef
sub eax, ebp
jmp 0x100a2ef1
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x100a2ee0
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x100a2f10
sub eax, ebp
jmp 0x100a2f12
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x100a2f01
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x100a304f
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [esp + 0xc]
mov ebx, ecx
cmp ebx, edx
mov dword [esp + 0x10], eax
jbe 0x100a2f48
mov ebx, edx
test ebx, ebx
je 0x100a2f99
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x18]
cmp ecx, 1
jne 0x100a2f6b
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.100a4380
jmp 0x100a2f7d
cmp ecx, 2
jne 0x100a2f87
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push ebx
push edx
push eax
call fcn.100a12d0
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [edi]
push ebx
push ecx
push eax
call fcn.1007a170
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x100a2fc3
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x100a2fd7
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x100a2ea0
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x100a304f
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x100a301e
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x100a2ffe
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.10077be0
add esp, 0xc
add ebx, edi
pop edi
pop ebp
mov dword [esi + 0x16c0], ebx
pop ebx
add esp, 8
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x100a304f
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x100a3038
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.10077be0
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100b4a50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x100eeba3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x10139d20]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x101453fc
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x101453fc
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x1011e018
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.100b3d10
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x100b4be0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100eebf8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10139d20]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x28]
xor edi, edi
cmp ebp, edi
jne 0x100b4c22
push edi
push edi
push edi
push 2
call fcn.100b64e0
xor al, al
jmp 0x100b4dbf
mov esi, dword [ebx + 0x18]
cmp esi, edi
je 0x100b4c41
lea esp, [esp]
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, edi
jne 0x100b4c30
push 2
or eax, 0xffffffff
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
push edi
push ebp
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.1007df66
push ebp
call fcn.1007de71
push 0
push 0
push ebp
mov edi, eax
call fcn.1007df66
add esp, 0x1c
test edi, edi
jne 0x100b4c85
push edi
push edi
push edi
push 0xd
mov ecx, ebx
call fcn.100b64e0
xor al, al
jmp 0x100b4dbf
mov dword [esp + 0x14], 0x101453fc
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.100b3c70
lea eax, [edi + 1]
push eax
call fcn.10054d4d
push ebp
mov esi, eax
push 1
push edi
push esi
mov dword [esp + 0x3c], esi
mov byte [esi], 0
call fcn.1007dcbe
add esp, 0x14
cmp eax, 1
je 0x100b4cf5
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.100b64e0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x101453fc
je 0x100b4cee
push eax
call fcn.10054d78
add esp, 4
xor al, al
jmp 0x100b4dbf
mov ebp, dword [esp + 0x28]
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, esi
je 0x100b4d67
mov cl, byte [esi]
cmp cl, 0xa
jne 0x100b4d25
mov ecx, esi
sub ecx, eax
add ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.100b3e00
add esi, 1
mov eax, esi
jmp 0x100b4d62
cmp cl, 0xd
jne 0x100b4d5f
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x100b4d3d
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.100b3e00
push 1
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0xa
call fcn.100b3e00
cmp byte [esi + 1], 0xa
jne 0x100b4d1e
add esi, 2
mov eax, esi
jmp 0x100b4d62
add esi, 1
cmp byte [esi], 0
jne 0x100b4d05
sub esi, eax
je 0x100b4d76
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.100b3e00
push ebp
call fcn.10054d78
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push 0
add edx, 8
push edx
mov ecx, ebx
call eax
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
jne 0x100b4cde
cmp eax, 0x101453fc
je 0x100b4dbd
push eax
call fcn.10054d78
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x100b5160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100eec79
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10139d20]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x101453fc
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea edi, [esi + 0x2c]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [esp + 0x20], ebx
mov dword [edi], 0x101453fc
lea ebp, [esi + 0x30]
mov dword [ebp], 0x101453fc
mov dword [esi + 0x34], 0x101453fc
mov ecx, dword [esp + 0x28]
mov eax, ecx
lea edx, [eax + 1]
mov byte [esp + 0x20], 3
mov dword [esp + 0x28], edx
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x100b51f0
sub eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, edi
call fcn.100b3d10
mov edi, dword [esp + 0x2c]
mov eax, edi
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x100b5210
sub eax, ecx
push eax
push edi
mov ecx, ebp
call fcn.100b3d10
mov edx, dword [esp + 0x30]
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x100b5230
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x34]
call fcn.100b3d10
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x100b7e00
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x10139d20]
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 0x100b7e50
mov ax, word [esp]
cmp al, 2
jne 0x100b7e4a
cmp ah, al
jne 0x100b7e4a
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.100773e8
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.100773e8
add esp, 0x194
ret

Function at 0x100b8d60
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x100b8d82
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x100b8d76
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x100b8db2
cmp dword [esi + 8], 0
jne 0x100b8da5
mov ecx, dword [eax + 8]
push 0x100f6f28
push ecx
call fcn.1007d9cf
add esp, 8
test eax, eax
mov dword [esi + 8], eax
jne 0x100b8da5
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.1007dcbe
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100b8dd4
mov eax, dword [esi + 8]
test eax, eax
je 0x100b8dce
push eax
call fcn.10077db5
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x100c3a60
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 0x100c3a92
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 0x100c3be0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x100c3bfb
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x100c3c2f
cmp eax, 2
jg 0x100c3c2f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x1010fa80]
push 2
push edx
call fcn.10077f4b
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.10077f4b
add esp, 0x20
xor eax, eax
ret

Function at 0x100c3f40
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 + 0x130]
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
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x100c3fbd
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x100c3f94
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.100c7e40
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.100c3dc0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x856c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x100c4780
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x10139d20]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x19c], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x100c48bb
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x100c47fc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.100c7e40
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.100c3dc0
add esp, 0x18
jmp 0x100c48c4
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100c483c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.100c7e40
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.100c3dc0
add esp, 0x18
jmp 0x100c48c4
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.100c4740
test eax, eax
jne 0x100c487a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.100c7e40
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.100c3dc0
add esp, 0x18
jmp 0x100c48c4
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.100c4740
test eax, eax
jne 0x100c48bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.100c7e40
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.100c3dc0
add esp, 0x18
jmp 0x100c48c4
push ebp
call fcn.100c46e0
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100773e8
add esp, 0x10c
ret

Function at 0x100c48e0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x100c4923
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.100c7e40
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.100c3d30
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.100c3d30
add esp, 8
pop esi
pop ecx
ret

Function at 0x100c4940
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x100c4989
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x100c49a1
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x100c49b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x530]
cmp eax, 0xffffffff
je 0x100c4a09
mov ecx, dword [ecx + 0x524]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x100c4a09
mov ecx, dword [esp + 8]
test ecx, ecx
mov eax, dword [eax]
je 0x100c49dc
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
jne 0x100c4a00
push 2
push 1
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x100c4a05
or eax, 0xffffffff
pop esi
ret
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x100c6450
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x100c64f4
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x100c64c5
cmp word [ecx + 0xa], 4
jne 0x100c64c5
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x100c64c5
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.100c63e0
test eax, eax
mov dword [esi], eax
je 0x100c64e8
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x100c64a0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.1008a5d5
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x100c6504.11001
jmp dword [eax*4 + 0x100c6528]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x100c6d60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x10139d20]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x10145430], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x100c67b0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x100c6aa0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.100c6760
je 0x100c6dd2
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x1013b3c0]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.100773e8
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100c6ecf
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.10082e54
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.1008a564
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100c6e4d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x100c6e94
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.10082e54
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.1008a564
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x100c6ecb
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x100c6eff
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x100c6eff
add edi, 1
cmp edi, 3
jl 0x100c6e96
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x1013b3c0], edx
mov dword [0x1013b3c8], eax
mov dword [fcn.100c6760], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x1013b3c0]
xor ecx, esp
mov dword [0x10145430], 1
call fcn.100773e8
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x100c6ecb

Function at 0x100c7460
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.1007efee
add esp, 0x18
test eax, eax
je 0x100c7483
cmp eax, 0xffffffff
jne 0x100c7485
xor eax, eax
ret