joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e570
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov esi, eax
xor eax, eax
test esi, esi
je 0x41e615
cmp word [esi], ax
je 0x41e615
push 0x40
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.005296a0
add esp, 0xc
xor eax, eax
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push esi
mov ecx, 1
push 0
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], cx
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x41e5f7
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41e608
push eax
call edi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41e612
push eax
call edi
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41e620
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555870
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5ad880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41e670
test al, 0x10
je 0x41e670
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push 0x5c
push eax
call fcn.00526da8
add esp, 8
test eax, eax
jne 0x41e686
or edi, 0xffffffff
jmp 0x41e68c
sub eax, dword [esi]
sar eax, 1
mov edi, eax
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00407620
add eax, 0x10
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x41e752
push edi
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0041f620
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0041bde0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e6ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 8]
push ecx
call fcn.0041e620
add esp, 4
test eax, eax
je 0x41e73d
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x41e72a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jmp 0x41e769
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e775
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41ea50
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 4], al
mov word [ebp - 3], ax
mov byte [ebp - 1], al
mov eax, dword [ebp + 8]
jae 0x41ea6e
lea eax, [ebp + 8]
push esi
push edi
push 3
push eax
lea eax, [ebp - 4]
push 4
push eax
call fcn.00526fd6
add esp, 0x10
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
cmp dword [ebp + 0x1c], 0x10
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
jb 0x41eaaf
mov edx, dword [ebp + 8]
push edx
call fcn.004302fd
add esp, 4
mov edx, edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41eac0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555198
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5ad880]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], esi
mov edx, dword [ebp - 0x40]
mov ecx, esi
shr edx, cl
test dl, 1
je 0x41ebd1
lea edx, [ebp - 0x18]
lea eax, [esi + 0x41]
mov ecx, 0x3a
mov dword [ebp - 0x16], ebx
push edx
mov word [ebp - 0x18], ax
mov word [ebp - 0x16], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x41eb41
cmp eax, 3
je 0x41eb41
cmp eax, 6
jne 0x41ebd1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x41eb80
lea edi, [eax + eax]
mov eax, edi
call fcn.0052c650
mov esi, esp
cmp esi, ebx
je 0x41eb80
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
push ecx
push ebx
push 3
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x41eb82
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x41eb94
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.00406a70
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.0041f7d0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0x10
jb 0x41ebce
mov edx, dword [ebp - 0x34]
push edx
call fcn.004302fd
add esp, 4
mov esi, dword [ebp - 0x38]
inc esi
mov dword [ebp - 0x38], esi
cmp esi, 0x1a
jl 0x41eb01
mov eax, 1
lea esp, [ebp - 0x50]
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.005232d4
mov esp, ebp
pop ebp
ret
Function at 0x41ffd0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x5ad880]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x31
lea eax, [ebp - 0x37]
push 0
push eax
mov byte [ebp - 0x38], 0
call fcn.005296a0
add esp, 0xc
lea ecx, [ebp - 0x1c8]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x420019
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x42008f
push 0x32
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
mov dword [ebp - 0x1cc], edx
test ebx, ebx
je 0x420083
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
test edi, edi
je 0x42005f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x420063
xor eax, eax
jmp 0x420077
lea eax, [esi + esi]
call fcn.0052c650
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0041be50
push eax
push 0x10
push ebx
call fcn.005249d8
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x1cc]
lea esp, [ebp - 0x1d4]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005232d4
mov esp, ebp
pop ebp
ret

Function at 0x4200b0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
mov dword [ebp - 4], 4
call edi
cmp eax, 0x6f
jne 0x4200e6
mov ecx, dword [ebp - 4]
push ecx
call fcn.00524431
add esp, 4
lea edx, [ebp - 4]
mov esi, eax
push edx
push esi
call edi
test esi, esi
je 0x42012d
movzx eax, byte [esi + 0x199]
movzx ecx, byte [esi + 0x198]
movzx edx, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push ecx
movzx ecx, byte [esi + 0x195]
push edx
movzx edx, byte [esi + 0x194]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push str._0.2X_0.2X_0.2X_0.2X_0.2X_0.2X
push 0x64
push eax
call fcn.00523591
add esp, 0x24
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420300
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5ad880]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov dword [ebp - 0x234], 0
test edi, edi
jne 0x420335
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005232d4
mov esp, ebp
pop ebp
ret
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x42036a
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x42037c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005232d4
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ecx, edi
lea eax, [ebp - 0x20c]
jmp 0x420390
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4203b6
test dx, dx
je 0x4203b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4203b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x420390
xor eax, eax
jmp 0x4203bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4203ed
lea ecx, [ebp - 0x230]
push ecx
push esi
call ebx
test eax, eax
jne 0x420383
mov edi, dword [ebp - 0x234]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop ebx
pop esi
mov eax, edi
xor ecx, ebp
pop edi
call fcn.005232d4
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x228]
jmp 0x4203d3
Function at 0x420800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554de4
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x5ad880]
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 eax, dword [ebp + 8]
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x490], edi
mov dword [ebp - 4], edi
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
call eax
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x420857
lea eax, [ebp + 0xc]
push 0x5876f0
push eax
call fcn.0052770f
mov ebx, eax
add esp, 8
cmp ebx, edi
jne 0x420949
lea ecx, [ebp - 0x46c]
push str.Cannot_read_file__
push ecx
lea ebx, [ebp + 0xc]
call fcn.00420aa0
push eax
mov edx, 0x5876f4
lea esi, [ebp - 0x48c]
mov byte [ebp - 4], 1
call fcn.0041a860
add esp, 0xc
xor ebx, ebx
mov esi, 0xf
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x42c], bl
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x48c]
mov byte [ebp - 4], 3
push edx
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x430], 1
call fcn.004066b0
cmp dword [ebp - 0x478], 0x10
jb 0x4208ef
mov eax, dword [ebp - 0x48c]
push eax
call fcn.004302fd
add esp, 4
mov dword [ebp - 0x478], esi
mov dword [ebp - 0x47c], ebx
mov byte [ebp - 0x48c], bl
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x430]
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x42c]
mov dword [ebp - 0x450], ecx
push edx
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x43c], ebx
mov byte [ebp - 0x44c], bl
call fcn.004066b0
push 0x5a139c
lea eax, [ebp - 0x450]
push eax
call fcn.00528f9c
push ebx
push 0x400
lea ecx, [ebp - 0x410]
push 1
push ecx
call fcn.00527970
add esp, 0x10
cmp eax, edi
je 0x420990
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
push eax
lea eax, [ebp - 0x410]
push eax
mov ecx, esi
call edx
push ebx
push 0x400
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.00527970
add esp, 0x10
cmp eax, edi
jne 0x420964
push ebx
call fcn.005279fa
mov edx, dword [esi]
mov edi, dword [ebp - 0x470]
mov eax, dword [edx]
add esp, 4
push edi
mov ecx, esi
call eax
cmp dword [ebp + 0x20], 0x10
jb 0x4209ba
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004302fd
add esp, 4
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 - 0x10]
xor ecx, ebp
call fcn.005232d4
mov esp, ebp
pop ebp
ret 0x20
Function at 0x4249d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553898
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5ad880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.004302c3
add esp, 4
cmp eax, ebx
je 0x424ab4
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.004302c3
add esp, 4
cmp eax, ebx
je 0x424a90
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
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
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.0052336b
push 0x5a10fc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.00528f9c
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.0052336b
push 0x5a10fc
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.00528f9c
int3

Function at 0x4280e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
mov eax, 3
mov dword [esi + 0x40], eax
mov edx, 4
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.004302f2
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x38], 0
xor edi, edi
lea esp, [esp]
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0x428170
push 0
push 0
mov dword [eax + 0x10], edi
mov dword [eax + 4], esi
call fcn.005246d8
add esp, 0x18
test eax, eax
je 0x428161
mov edx, dword [esi + 0x3c]
mov dword [edx + edi*4], eax
inc edi
cmp edi, 3
jl 0x428120
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x429300
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555c99
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x5ad880]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1ac], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.CIocpService.0
push 0x18
mov dword [esi + 0x10], edi
call fcn.004302c3
add esp, 4
cmp eax, edi
je 0x4294cc
mov dword [esi + 0xc], eax
mov dword [eax], eax
mov eax, dword [esi + 0xc]
mov dword [eax + 4], eax
mov eax, dword [esi + 0xc]
mov dword [eax + 8], eax
mov eax, dword [esi + 0xc]
mov byte [eax + 0x14], 1
mov ecx, dword [esi + 0xc]
mov byte [ecx + 0x15], 1
mov byte [ebp - 4], 1
push 0x18
mov dword [esi + 0x20], edi
call fcn.004302c3
add esp, 4
cmp eax, edi
je 0x429499
mov dword [esi + 0x1c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 8], eax
mov edx, dword [esi + 0x1c]
mov byte [edx + 0x14], 1
mov eax, dword [esi + 0x1c]
mov byte [eax + 0x15], 1
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x28]
push eax
call ebx
mov dword [esi + 0x40], edi
lea eax, [esi + 0x44]
push eax
call ebx
mov dword [esi + 0x5c], edi
lea eax, [esi + 0x60]
push eax
call ebx
mov dword [esi + 0x78], edi
lea eax, [esi + 0x80]
push eax
call ebx
mov dword [esi + 0x98], edi
push 1
lea ebx, [esi + 0xd4]
push ebx
mov byte [ebp - 4], 6
call fcn.00401e20
push 0x20
mov byte [ebp - 4], 7
call fcn.004302c3
add esp, 4
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 8
cmp eax, edi
je 0x429412
push 0xffffffffffffffff
push eax
call fcn.0041de80
jmp 0x429414
xor eax, eax
mov dword [ebx + 4], eax
mov ecx, dword [eax + 0x1c]
mov dword [ebx + 8], ecx
lea edx, [ebp - 0x1a0]
push edx
mov dword [esi + 0xfc], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edi
push 0x202
mov dword [esi + 0x10c], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [esi + 0xf0], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 4], edi
mov dword [esi + 0xe4], 0xffffffff
mov dword [esi + 0x9c], 0x2710
mov dword [esi + 0xf4], edi
mov dword [esi + 0xe0], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005232d4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 0x1a8], edi
call fcn.0052336b
push 0x5a10fc
lea ecx, [ebp - 0x1c4]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00528f9c
lea edx, [ebp - 0x1a4]
push edx
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 0x1a4], edi
call fcn.0052336b
push 0x5a10fc
lea eax, [ebp - 0x1b8]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00528f9c
int3
Function at 0x429910
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
sub esp, 0x28
push esi
push edi
mov esi, ecx
test eax, eax
jne 0x42993f
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x20]
lea edx, [ecx + ecx + 1]
mov dword [esi + 0xf0], edx
jmp 0x429945
mov dword [esi + 0xf0], eax
mov eax, dword [esi + 0xf0]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004302f2
add esp, 4
mov dword [esi + 0xf8], eax
test eax, eax
jne 0x42998f
mov eax, dword [esi]
mov ecx, dword [eax + 0x20]
push str.WorkThread_Handle_Array_Creation_Fail_n
push esi
call ecx
add esp, 8
mov ecx, esi
call fcn.00429720
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 4], eax
test eax, eax
jne 0x4299cc
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateIoCompletionPort_failed_to_create_I_O_completion_port:__d_n
mov edx, dword [edi + 0x20]
push esi
call edx
add esp, 0xc
mov ecx, esi
call fcn.00429720
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
xor edi, edi
cmp dword [esi + 0xf0], edi
jle 0x429a05
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x429cc0
push 0
push 0
call fcn.005246d8
add esp, 0x18
test eax, eax
je 0x429a17
mov ecx, dword [esi + 0xf8]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [esi + 0xf0]
jl 0x4299d6
call fcn.00429a90
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateThread_failed_to_create_worker_thread:__d_n
jmp 0x4299b2
Function at 0x42bf70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554740
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5ad880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.005233f0
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.004066b0
mov dword [esi], vtable.boost::thread_resource_error.0
mov dword [ebp - 4], 1
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x42c002
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x42ce00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554b68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5ad880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.005233f0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.004066b0
mov dword [esi + 0x30], vtable.boost::exception.0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov eax, esi
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 0x42d9c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42d9dc
test al, 0x10
je 0x42d9dc
mov al, 1
pop edi
pop ebp
ret
push esi
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42d9e2
sub esi, ecx
lea eax, [esi - 1]
test eax, eax
js 0x42d9fc
cmp byte [eax + edi], 0x5c
je 0x42d9fc
dec esi
dec eax
jns 0x42d9f2
test esi, esi
jg 0x42da06
pop esi
xor al, al
pop edi
pop ebp
ret
push ebx
dec esi
lea ebx, [esi + 1]
push ebx
call fcn.004302f2
push ebx
mov edi, eax
push 0
push edi
call fcn.005296a0
push esi
mov esi, dword [ebp + 8]
push esi
push edi
call fcn.0052bff0
push edi
xor bl, bl
call fcn.0042d9c0
add esp, 0x20
test al, al
je 0x42da44
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne bl
test edi, edi
je 0x42da51
push edi
call fcn.004302fd
add esp, 4
mov al, bl
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x42ea10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 1
xor edi, edi
push edi
push edi
push edi
push ebx
push 2
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42ea3a
pop edi
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push esi
call edi
push 4
lea ecx, [ebp - 4]
push ecx
push 0x1002
push 0xffff
push esi
mov dword [ebp - 4], 0
call edi
cmp ebx, 1
jne 0x42ea8b
push 4
lea ecx, [ebp - 8]
push ecx
push 0x80
push 0xffff
push esi
mov dword [ebp - 8], ebx
call edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret