joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push 2
push 0
push ebx
mov dword [ebp - 4], ecx
call fcn.00451cc7
add esp, 0xc
test eax, eax
je 0x405ad8
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push ebx
call fcn.00451bcf
mov esi, eax
add esp, 4
test esi, esi
jge 0x405af5
pop esi
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret 4
jne 0x405b01
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push esi
call fcn.0044f520
mov edi, eax
add esp, 4
test edi, edi
jne 0x405b1d
lea eax, [edi - 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push ebx
call fcn.00451cc7
push ebx
push esi
push 1
push edi
call fcn.00451a15
add esp, 0x1c
cmp eax, esi
je 0x405b4f
push edi
call fcn.00450ad2
add esp, 4
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00405900
push edi
mov esi, eax
call fcn.00450ad2
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406da0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 4], ax
lea edx, [ebp - 0x20]
mov eax, 0x414
push edx
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], ax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x40eae0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x40eaf9
lea eax, [esi + 0xd]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
xor edi, edi
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40eb03
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40f220
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c66b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x48d814]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 4], esi
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea edi, [ebp - 0x21c]
push edi
or eax, 0x2001f
push eax
push esi
push edx
push ecx
mov dword [ebp - 0x21c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x40f37f
mov ecx, dword [ebp - 0x218]
xor eax, eax
cmp ecx, esi
je 0x40f2ae
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], esi
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x214], esi
mov edi, eax
mov dword [ebp - 0x218], ecx
cmp eax, esi
jne 0x40f37f
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push esi
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x210]
push eax
push esi
push ecx
mov dword [ebp - 0x220], 0x100
call edi
test eax, eax
jne 0x40f350
lea ebx, [ebx]
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x218]
call fcn.0040f220
mov dword [ebp - 0x21c], eax
cmp eax, esi
jne 0x40f3c3
lea edx, [ebp - 0x22c]
push edx
mov edx, dword [ebp - 0x218]
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x210]
push ecx
push esi
push edx
mov dword [ebp - 0x220], 0x100
call edi
test eax, eax
je 0x40f300
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x40f367
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], esi
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebx]
push eax
push ecx
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x40f39d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], esi
mov eax, edi
mov dword [ebp - 0x214], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045075f
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x218]
cmp ecx, esi
je 0x40f39f
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x218], esi
jmp 0x40f39f
Function at 0x4116a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cb86
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x48d814]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], edx
mov dword [ebp - 0x418], edx
mov byte [ebp - 4], 1
push 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x41171d
call fcn.0040e900
mov edi, eax
jmp 0x411831
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x411736
call fcn.0040e900
jmp 0x411828
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x411754
call fcn.0040e900
jmp 0x411828
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x420], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4117a4
mov byte [ebp - 4], 0
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x411788
lea ecx, [ebp - 0x418]
call fcn.0040f1c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.0040f160
mov eax, 0x8007000e
jmp 0x411857
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x418]
call fcn.0040ff60
mov dword [ebp - 4], 1
jmp 0x4117dc
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x4117ed
mov edi, 0x8007000e
jmp 0x41182a
push edi
push eax
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x411806
call fcn.0040e900
jmp 0x411828
xor ecx, ecx
mov edx, dword [ebp - 0x418]
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
lea ecx, [ebp - 0x430]
call fcn.00411250
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x41184e
lea ecx, [ebp - 0x418]
call fcn.0040f1c0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045075f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413e40
Capabilities:
Delete file
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x48d814]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x47462c
lea edx, [ebp - 0x20c]
push edx
call edi
push esi
lea eax, [ebp - 0x20c]
push eax
call edi
movzx ecx, word [ebp + 8]
mov edx, dword [0x48f208]
push 0x47461c
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x413f64
mov eax, dword [0x48f208]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [0x48f208]
push esi
push ecx
mov dword [ebp - 0x210], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x413f64
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x80
lea edx, [ebp - 0x20c]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x413f64
mov edx, dword [ebp - 0x210]
push ebx
lea ecx, [ebp - 0x214]
push ecx
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413f4c
mov eax, dword [ebp - 0x210]
cmp dword [ebp - 0x214], eax
jne 0x413f4c
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x413f64
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0045075f
mov esp, ebp
pop ebp
ret

Function at 0x416e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416ea2
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x416e71
cmp eax, 2
jne 0x416e8c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x416e9c
test eax, eax
je 0x416e97
test al, 1
jne 0x416e8c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x416e9c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x417430
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
push edi
mov bl, 1
cmp cl, 0xc
jne 0x41748c
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0xc], eax
call edi
mov edx, dword [esi + 4]
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffffe
call edi
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push edi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
shr eax, 2
test al, 1
je 0x4174c6
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esi + 4]
push ecx
movzx edx, di
push edx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x28]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x4174f9
mov ecx, dword [esi + 4]
or byte [esi + 0x58], 2
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418270
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push esi
mov esi, ecx
jne 0x41830c
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi]
jne 0x4182aa
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push ecx
push eax
mov ecx, esi
call fcn.00418040
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov eax, 1
pop esi
pop ebp
ret 0x18
cmp eax, dword [esi + 0x3b4]
jne 0x4182da
push edi
mov edi, dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
add esi, 4
push esi
push 2
call edi
push esi
push 0
call edi
mov eax, dword [ebp + 0x18]
pop edi
mov dword [eax], 0
mov eax, 1
pop esi
pop ebp
ret 0x18
cmp eax, 5
jne 0x41830c
mov ecx, dword [esi - 0x24]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4182f9
mov edx, dword [esi - 0x24]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
pop esi
pop ebp
ret 0x18
xor eax, eax
pop esi
pop ebp
ret 0x18
Function at 0x4266c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4266dd
test al, 0x10
je 0x4266dd
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4270f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e86a
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x48d814]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x34], ebx
cmp dword [eax + 0x14], esi
jne 0x427130
mov al, 1
jmp 0x427273
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00427040
add esp, 8
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], 3
jb 0x427190
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x427152
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x427162
test al, 0x10
jne 0x427190
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x50]
push edx
call fcn.00426eb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push ecx
mov ebx, 1
push eax
mov dword [ebp - 0x34], ebx
call fcn.004076e0
add esp, 0x10
mov byte [ebp - 0x2d], 0
test al, al
je 0x427194
mov byte [ebp - 0x2d], 1
mov dword [ebp - 4], esi
test bl, 1
je 0x4271c4
and ebx, 0xfffffffe
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x38], 8
jb 0x4271b4
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00450138
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], ax
cmp byte [ebp - 0x2d], 0
je 0x4271ed
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x4271e3
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00450138
add esp, 4
xor edx, edx
mov word [ebp - 0x28], dx
mov al, 1
jmp 0x427269
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.00426eb0
mov byte [ebp - 4], 2
or ebx, 2
push eax
mov dword [ebp - 0x34], ebx
call fcn.004270f0
add esp, 0xc
test al, al
je 0x42722d
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x42721d
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 0x2d], 1
test eax, eax
jne 0x427231
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], esi
test bl, 2
je 0x427247
and ebx, 0xfffffffd
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x34], ebx
call fcn.00402020
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x427260
mov edx, dword [ebp - 0x28]
push edx
call fcn.00450138
add esp, 4
xor eax, eax
mov word [ebp - 0x28], ax
mov al, byte [ebp - 0x2d]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045075f
mov esp, ebp
pop ebp
ret
Function at 0x428ca0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46eb6b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x48d814]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x428d10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.create_socket_failed.__d
push 0xc8
call fcn.00426560
push eax
call fcn.00426520
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1c
call fcn.004508b4
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, eax
je 0x428d4e
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
push 0x40
mov dword [esi + 0x18], eax
call fcn.0044f520
add esp, 4
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edi
jmp 0x428d50
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 0x18]
mov edx, dword [ebx + 4]
push esi
lea eax, [ebp - 0x14]
push eax
push 0x20
push 0x20
push 0
push ecx
push edi
push edx
call dword [0x48ee08]
test eax, eax
jne 0x428dc9
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x3e5
je 0x428dc9
call ebx
push eax
push str.Error_at_AcceptEx.__d
push 0xc8
call fcn.00426560
push eax
call fcn.00426520
mov eax, dword [esi + 0x18]
push eax
call fcn.00450ad2
push esi
call fcn.00450138
add esp, 0x18
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x428de0
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
lea eax, [ebp - 0x28]
push eax
mov esi, ecx
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x14]
push str.Create_worker_threads...
push 0x190
lea ebx, [ebx + ebx + 2]
call fcn.00426560
push eax
call fcn.00426520
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x428e6e
mov edi, edi
push 0
push 0
push esi
push 0x428ad0
push 0
push 0
call fcn.004534cd
add esp, 0x18
test eax, eax
je 0x428e4b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esi + 0x60]
inc edi
cmp edi, ebx
jl 0x428e20
jmp 0x428e6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_I_O_thread_failed.__d
push 0xc8
call fcn.00426560
push eax
call fcn.00426520
add esp, 0x10
mov byte [ebp - 1], 0
mov ecx, dword [esi + 0x60]
push ecx
push str._d_worker_threads_created.
push 0x190
call fcn.00426560
push eax
call fcn.00426520
mov al, byte [ebp - 1]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428ea0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46eba6
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x48d814]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
xor ebx, ebx
or esi, 0xffffffff
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
cmp dword [ecx + 0xc], esi
je 0x428fef
mov ecx, dword [ebp + 8]
cmp ecx, ebx
jne 0x428f13
push 0x1c
call fcn.004508b4
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x428f0c
push ebx
push 0x2000
mov ecx, eax
call fcn.0042ae70
mov dword [ebp - 4], esi
jmp 0x428f18
xor eax, eax
mov dword [ebp - 4], esi
jmp 0x428f18
call fcn.0042aeb0
mov edi, eax
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x428f2e
mov eax, dword [eax + 4]
mov ecx, dword [edi + 0x18]
add ecx, eax
mov dword [ebp - 0x1c], ecx
jmp 0x428f31
mov dword [ebp - 0x1c], ebx
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x428f3d
mov eax, dword [eax + 8]
jmp 0x428f3f
xor eax, eax
sub eax, dword [edi + 0x18]
push 0x20
mov dword [ebp - 0x20], eax
call fcn.004508b4
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
cmp eax, ebx
je 0x428f7a
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov esi, eax
jmp 0x428f7c
xor esi, esi
mov dword [ebp - 4], 0xffffffff
push ebx
push esi
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push 1
lea ecx, [ebp - 0x20]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], edi
mov eax, dword [edx + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x429005
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x3e5
je 0x429005
mov ecx, edi
call fcn.0042ab40
push esi
call fcn.00450138
add esp, 4
call ebx
push eax
push str.WSARecv_failed.__d
push 0xc8
call fcn.00426560
push eax
call fcn.00426520
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
add esp, 0x10
call eax
xor al, al
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
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov al, 1
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
Function at 0x429030
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ebdb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x48d814]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], 1
call fcn.0042aeb0
mov edi, eax
mov eax, dword [edi + 4]
xor esi, esi
cmp eax, esi
je 0x429081
mov eax, dword [eax + 4]
mov ecx, dword [edi + 0x14]
add ecx, eax
mov dword [ebp - 0x20], ecx
jmp 0x429084
mov dword [ebp - 0x20], esi
mov edx, dword [edi + 0x18]
sub edx, dword [edi + 0x14]
mov dword [ebp - 0x24], edx
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x4290bb
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], 2
cmp ecx, esi
je 0x4290af
mov ecx, dword [ecx + 4]
mov edx, dword [eax + 0x14]
add edx, ecx
mov dword [ebp - 0x18], edx
jmp 0x4290b2
mov dword [ebp - 0x18], esi
mov ecx, dword [eax + 0x18]
sub ecx, dword [eax + 0x14]
mov dword [ebp - 0x1c], ecx
push 0x20
call fcn.004508b4
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x4290ea
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov dl, byte [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 0
push esi
push 0
lea eax, [ebp - 0x14]
push eax
mov byte [esi + 0x18], dl
push ecx
lea edx, [ebp - 0x24]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x14], 1
mov eax, dword [ebx + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x42917c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x42917c
mov ecx, edi
call fcn.0042ab40
push esi
call fcn.00450138
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSASend_failed.__d
push 0xc8
call fcn.00426560
push eax
call fcn.00426520
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
add esp, 0x10
mov ecx, ebx
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add ebx, 4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8