joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bdac0
Capabilities:
Hash data using fnv

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
mov edx, ecx
push ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], edx
cmp ebx, ebp
je 0x100bdc49
mov eax, dword [edx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebx + 9]
push esi
push edi
mov edi, dword [edx + 0x14]
mov esi, ebx
xor ecx, eax
mov dword [esp + 0x24], edi
movzx eax, byte [ebx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [edx + 0x20]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [esp + 0x14], ecx
lea eax, [edi + eax*8]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 0x10]
call fcn.100bb590
push edi
call fcn.10091982
mov edx, dword [esp + 0x1c]
add esp, 4
dec dword [edx + 0xc]
cmp ebx, dword [esp + 0x20]
je 0x100bdb92
cmp esi, ebp
jne 0x100bdb41
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x2c]
jne 0x100bdc3e
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [ecx], esi
mov dword [eax], esi
mov dword [esi + 4], eax
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp eax, dword [esp + 0x2c]
jne 0x100bdba8
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
jmp 0x100bdbac
mov eax, dword [esp + 0x30]
mov dword [ecx + 4], eax
cmp esi, ebp
je 0x100bdc3e
nop word [eax + eax]
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
movzx eax, byte [esi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [edx + 0x20]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [esp + 0x24]
lea eax, [ecx + eax*8]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
nop word [eax + eax]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 0x10]
call fcn.100bb590
push edi
call fcn.10091982
mov edx, dword [esp + 0x1c]
add esp, 4
dec dword [edx + 0xc]
cmp ebx, dword [esp + 0x20]
je 0x100bdc53
cmp esi, ebp
jne 0x100bdc10
mov eax, dword [esp + 0x2c]
mov dword [eax], esi
mov eax, dword [esp + 0x30]
pop edi
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x18
ret 8
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
mov dword [eax], ebx
mov dword [eax + 4], ebx
cmp esi, ebp
jne 0x100bdbc0
mov eax, dword [esp + 0x30]
pop edi
mov dword [eax], esi
mov dword [esi + 4], eax
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x100be380
Capabilities:
Hash data using fnv

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor edx, eax
movzx eax, byte [esi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [esi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
lea eax, [esp + 0xc]
imul ebx, ecx, 0x1000193
mov ecx, edi
push ebx
push esi
push eax
call fcn.100bb900
mov esi, dword [eax + 4]
test esi, esi
je 0x100be432
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x14]
and ecx, ebx
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], esi
jne 0x100be3fb
cmp eax, esi
jne 0x100be3f3
mov eax, dword [edi + 8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x100be403
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x100be403
cmp eax, esi
jne 0x100be403
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
dec dword [edi + 0xc]
mov eax, dword [esi + 4]
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
lea ecx, [esi + 0x10]
call fcn.100bb590
push esi
call fcn.10091982
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x100c2b40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100c2b64
xor eax, eax
jmp 0x100c2be4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100c2b7b
xor eax, eax
jmp 0x100c2be4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x100c2bc7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x100c2bc7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x100c2b9e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x100c2bd3
xor eax, eax
jmp 0x100c2be4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x100c2be1
xor eax, eax
jmp 0x100c2be4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x100c73e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x101170e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], ecx
push str.Unspecified_error.
call fcn.100c2bf0
add esp, 4
push 0x44
push 0
lea eax, [ebp - 0x470]
push eax
call fcn.10088fa0
add esp, 0xc
mov dword [ebp - 0x470], 0x44
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x41c], ecx
mov dx, word [0x10100894]
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.10088fa0
add esp, 0xc
push 0x101015bc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call fcn.100a2b05
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x418]
add ecx, 0x74
call fcn.100c23a0
push eax
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.100a2b05
add esp, 0xc
push 0x101015c0
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.100a2b05
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.100a2b05
add esp, 0xc
push 0x101015c8
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.100a2b05
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x414]
push ecx
call fcn.10088fa0
add esp, 0xc
mov ecx, dword [ebp - 0x418]
add ecx, 0x74
call fcn.10024da0
push eax
push 0x104
lea edx, [ebp - 0x414]
push edx
call fcn.1000fa40
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x470]
push edx
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x418]
add ecx, 0x74
call fcn.10024da0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x424], 0
je 0x100c758d
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x424], 0
cmp dword [ebp - 0x42c], 0
jne 0x100c75aa
push str.Error_creating_CrashReport_process.
call fcn.100c2bf0
add esp, 4
mov eax, 1
jmp 0x100c75fe
cmp dword [ebp + 0xc], 0
je 0x100c75c5
push 0xffffffffffffffff
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax + 0xc0]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x10], 0
je 0x100c75d8
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x428]
mov dword [edx], eax
jmp 0x100c75ef
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x428], 0
push str.Success.
call fcn.100c2bf0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008511a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100c9bf0
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ee18d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x101170e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.100c18f0
mov byte [ebp - 4], 1
push 0
push 0x3a
lea ecx, [ebp + 8]
call fcn.100c9d80
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x100c9c46
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x5c
lea ecx, [ebp + 8]
call fcn.100c9d80
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x100c9c71
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.100c5050
jmp 0x100c9ca6
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp + 8]
call fcn.100c7610
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.100c5050
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.100c1ae0
push 0
lea ecx, [ebp - 0x14]
call fcn.10024da0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x100c9cf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100c9cf4
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.100c1ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100c1ae0
mov eax, dword [ebp - 0x2c]
jmp 0x100c9d70
lea ecx, [ebp - 0x14]
call fcn.10024da0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
and edx, 0x10
jne 0x100c9d35
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.100c1ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100c1ae0
mov eax, dword [ebp - 0x34]
jmp 0x100c9d70
cmp dword [ebp - 0x10], 0xffffffff
jne 0x100c9d3d
jmp 0x100c9d4b
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x100c9c4c
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.100c1ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100c1ae0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x100ca170
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ee295
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x101170e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.100c18f0
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp + 0xc]
call fcn.10024da0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x100ca289
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0
lea ecx, [ebp + 0xc]
call fcn.10024da0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100ca289
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0x10101ce4
mov edx, dword [ebp - 0x24]
push edx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
shr ecx, 0x10
and ecx, 0xffff
mov word [ebp - 0x1c], cx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
and eax, 0xffff
mov word [ebp - 0x18], ax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x14]
shr edx, 0x10
and edx, 0xffff
mov word [ebp - 0x14], dx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x14]
and ecx, 0xffff
mov word [ebp - 0x10], cx
movzx edx, word [ebp - 0x10]
push edx
movzx eax, word [ebp - 0x14]
push eax
movzx ecx, word [ebp - 0x18]
push ecx
movzx edx, word [ebp - 0x1c]
push edx
push 0x10101ce8
lea eax, [ebp - 0x28]
push eax
call fcn.100c6230
add esp, 0x18
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.100c44a0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.100c1ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.100c1ae0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x100ca2e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ee2d0
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x101170e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
call fcn.100c21a0
push 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x100ca33e
mov eax, 1
jmp 0x100ca38c
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x228]
call fcn.100c1870
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x224]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.100c5050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.100c1ae0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008511a
mov esp, ebp
pop ebp
ret

Function at 0x100cac20
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ee39d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x101170e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.100c18f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.100cac00
mov eax, dword [ebp - 0x10]
xor ecx, ecx
xor edx, edx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov dword [edx + 8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x100cad40
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
xor edx, edx
div dword [ecx + 8]
mov eax, dword [ebp + 8]
sub eax, edx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
push 6
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x18
call fcn.100cad10
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x100cb730
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, ecx
push esi
push edi
mov esi, ebp
cmp dword [ebp + 0x14], 0x10
jb 0x100cb746
mov esi, dword [ebp]
mov edi, dword [ebp + 0x10]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x100cb765
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x100cb754
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0xc]
and ecx, edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x1c], edx
mov edi, dword [eax + ecx*8 + 4]
cmp edi, edx
je 0x100cb829
mov eax, dword [eax + ecx*8]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
nop word [eax + eax]
cmp dword [edi + 0x1c], 0x10
lea edx, [edi + 8]
jb 0x100cb79c
mov edx, dword [edi + 8]
cmp dword [ebp + 0x14], 0x10
mov eax, ebp
jb 0x100cb7a7
mov eax, dword [ebp]
cmp ebx, dword [edi + 0x18]
jne 0x100cb803
mov esi, ebx
sub esi, 4
jb 0x100cb7c4
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x100cb7c9
add eax, 4
add edx, 4
sub esi, 4
jae 0x100cb7b3
cmp esi, 0xfffffffc
je 0x100cb7fd
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x100cb7f6
cmp esi, 0xfffffffd
je 0x100cb7fd
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x100cb7f6
cmp esi, 0xfffffffe
je 0x100cb7fd
mov cl, byte [eax + 2]
cmp cl, byte [edx + 2]
jne 0x100cb7f6
cmp esi, 0xffffffff
je 0x100cb7fd
mov al, byte [eax + 3]
cmp al, byte [edx + 3]
je 0x100cb7fd
sbb eax, eax
or eax, 1
jmp 0x100cb7ff
xor eax, eax
test eax, eax
je 0x100cb80e
cmp edi, dword [esp + 0x10]
je 0x100cb825
mov edi, dword [edi + 4]
jmp 0x100cb790
mov eax, dword [esp + 0x18]
test edi, edi
mov edx, dword [esp + 0x1c]
cmove edi, edx
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
xor edi, edi
test edi, edi
cmove edi, edx
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x100ce490
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
cmp esi, 0xffffffff
jne 0x100ce4ac
mov ebx, 0x2719
call fcn.100d1380
mov dword [esp + 0xc], eax
jmp 0x100ce4f1
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
push dword [esp + 0x1c]
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.100d1380
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [esp + 0x10], esi
test edi, edi
mov dword [esp + 0xc], ebx
pop edi
jne 0x100ce4f5
xor ebx, ebx
mov dword [esp + 0xc], 0x10117038
mov dword [esp + 8], ebx
pop esi
test ebx, ebx
pop ebx
jne 0x100ce501
add esp, 8
ret 4
push str.set_option
lea eax, [esp + 4]
push eax
call fcn.100d0ff0
int3
Function at 0x100ceb10
Capabilities:
Initialize winsock library

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x194
push 0xffffffffffffffff
push 0x100ee83c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x101170e4]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov eax, 1
lock xadd dword [0x10120e88], eax
inc eax
mov ebx, 0x10120e8c
cmp eax, 1
jne 0x100ceb77
lea eax, [ebp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [ebx], eax
xor edi, edi
lock xadd dword [ebx], edi
test edi, edi
jne 0x100cebd6
push 0x20
mov dword [ebp - 4], edi
call fcn.10084db4
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x100ceba6
push 0xffffffffffffffff
push edi
push esi
mov ecx, eax
call fcn.100cd5c0
jmp 0x100ceba8
xor eax, eax
mov dword [esi + 4], eax
mov ecx, dword [eax + 0x1c]
mov eax, esi
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.1008511a
lea esp, [ebp + 0x194]
pop ebp
ret
call fcn.100d1380
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push str.winsock
push eax
mov dword [ebp - 0x18], edi
call fcn.100d0ff0
int3

Function at 0x100cfa20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [ecx + 4]
mov ecx, dword [eax]
add ecx, 4
jmp fcn.100d1f60
Function at 0x100cfb30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ee8f4
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x101170e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ecx]
lea esi, [ebp - 0x44]
mov dword [ebp - 0x44], vtable.std::_Func_impl_no_alloc_class__lambda_253fe8cb0c619b72a1a2804ad3db7d39___void___.0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x20], esi
xor ebx, ebx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], ebx
jbe 0x100cfc32
nop dword [eax]
push 0x28
call fcn.10084db4
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
test esi, esi
je 0x100cfbb2
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x100cfbb4
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
jmp 0x100cfbb4
xor esi, esi
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
push 0
push esi
push 0x100cdb00
push 0
push 0
call fcn.10091e83
mov edx, eax
add esp, 0x18
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x100cfc59
mov ecx, dword [edi + 0x9c]
mov byte [ebp - 4], 4
cmp ecx, dword [edi + 0xa0]
je 0x100cfc07
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ecx], edx
mov dword [ecx + 4], eax
add dword [edi + 0x9c], 8
jmp 0x100cfc17
lea eax, [ebp - 0x1c]
push eax
push ecx
lea ecx, [edi + 0x98]
call fcn.100cd980
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
jne 0x100cfc67
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x100cfb80
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x100cfc45
mov edx, dword [esi]
lea eax, [ebp - 0x44]
cmp esi, eax
mov ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [ebp - 0x18], 0
call fcn.10086850
call fcn.10094088
int3

Function at 0x100cfef0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push dword [0x10120e84]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 8]
test eax, eax
je 0x100cff2f
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100cff2f
mov eax, dword [ecx]
test eax, eax
je 0x100cff2f
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x100cff26
mov byte [eax + ebx], dl
pop ebx
ret
push eax
call fcn.10085d24
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.10084db4
add esp, 4
movzx ecx, bl
xor edx, edx
cmp ebx, 0xff
cmova ecx, edx
mov byte [eax + ebx], cl
pop ebx
ret