joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418700
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519858
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x580b30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x238], ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x23c], esi
mov word [esi], ax
push 0x206
lea edx, [ebp - 0x216]
mov dword [ebp - 4], ebx
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x238], 1
mov word [ebp - 0x218], cx
call fcn.004d87e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jl 0x4187b6
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418796
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, esi
call fcn.0040a6a0
jmp 0x41882f
lea edx, [ebp - 0x2e8]
push edx
call fcn.00402bd0
push edi
push ecx
lea eax, [ebp - 0x2d8]
push str.SHGetFolderPath___returned_error_code:
push eax
mov dword [ebp - 4], 1
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00411d90
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x2e8]
call fcn.00402c70
push eax
push 1
mov byte [ebp - 4], 2
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x220], 8
jb 0x418821
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00469e1a
add esp, 4
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], bl
call fcn.00401820
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.004d31b7
mov esp, ebp
pop ebp
ret
Function at 0x4195d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51abc0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x580b30]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x580b30]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
push 0x14
xor ebx, ebx
xor eax, eax
mov esi, 7
push 0x5356e8
lea ecx, [esp + 0x6c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], ax
call fcn.0040acb0
lea ecx, [esp + 0x64]
lea edi, [esp + 0x1c]
mov dword [esp + 0x90], ebx
call fcn.00419250
mov edi, 8
mov byte [esp + 0x90], 2
cmp dword [esp + 0x78], edi
jb 0x41966b
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00469e1a
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x20]
je 0x419793
jmp 0x419685
mov esi, 7
xor edx, edx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], dx
xor ecx, ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], cx
lea edx, [esp + 0x48]
mov byte [esp + 0x90], 4
push edx
mov edx, dword [eax]
lea ecx, [esp + 0x30]
call fcn.00418cb0
mov esi, dword [esp + 0x5c]
add esp, 4
mov edx, esi
cmp esi, 6
jb 0x4196ce
mov edx, 6
mov ecx, dword [esp + 0x48]
cmp dword [esp + 0x5c], edi
jae 0x4196dc
lea ecx, [esp + 0x48]
mov eax, str.SYSTEM
cmp edx, ebx
jbe 0x41970a
jmp 0x4196f0
mov di, word [ecx]
cmp di, word [eax]
jne 0x4197c5
add ecx, 2
add eax, 2
dec edx
jne 0x4196f0
mov edi, 8
cmp esi, 6
jb 0x419735
xor eax, eax
cmp esi, 6
setne al
cmp eax, ebx
jne 0x419735
mov edx, dword [esp + 0x3c]
push 0xc
push str.NT_AUTHORITY
push edx
push ebx
lea ecx, [esp + 0x3c]
call fcn.00403410
test eax, eax
je 0x419739
inc dword [esp + 0x14]
cmp dword [esp + 0x40], edi
jb 0x41974c
mov eax, dword [esp + 0x2c]
push eax
call fcn.00469e1a
add esp, 4
mov byte [esp + 0x90], 2
xor ecx, ecx
mov word [esp + 0x2c], cx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 7
cmp dword [esp + 0x5c], edi
jb 0x41977a
mov edx, dword [esp + 0x48]
push edx
call fcn.00469e1a
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x20]
jne 0x419680
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4197a0
push eax
call fcn.00469e1a
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret
sbb eax, eax
and eax, 0xfffffffe
inc eax
cmp eax, ebx
je 0x419705
mov edi, 8
jmp 0x419717
Function at 0x41bdb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51584b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x580b30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
push 0x41d2a0
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], 0x583a20
mov dword [ebp - 0x10], 0
call fcn.0041f410
mov dword [ebx], eax
lea esi, [ebx + 4]
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], 2
mov byte [esi + 0x20], al
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x24], 2
mov dword [esi + 0x28], eax
mov dword [ebp - 4], eax
mov edx, dword [ebx]
add edx, 0x14
push edx
call fcn.0041f7f0
mov eax, ebx
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
Function at 0x41c920
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
call fcn.004be240
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
cmp esi, 0xffffffff
jne 0x41c93f
mov esi, 0x2719
jmp 0x41c976
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp + 0xc]
push 4
push ecx
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.004be240
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
test esi, esi
jne 0x41c983
call fcn.004be240
mov ecx, esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x41c995
lea edx, [ebp - 8]
push edx
mov ecx, str.set_option
call fcn.0040b110
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x41e2e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [esi], 0x40
push ebx
mov ebx, dword [ebp + 0x18]
push edi
jne 0x41e2ff
mov edi, 0x2745
call fcn.004be240
mov dword [esi], edi
mov dword [esi + 4], eax
xor eax, eax
cmp dword [esi], eax
jne 0x41e3ce
cmp dword [ebp + 0x14], eax
je 0x41e36b
cmp ebx, eax
je 0x41e36b
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x10]
push edx
push ecx
push ecx
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSWSOCK.dll_GetAcceptExSockaddrs]
mov edi, dword [ebp - 4]
cmp edi, dword [ebx]
jbe 0x41e356
mov edi, 0x2726
call fcn.004be240
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x41e369
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
push edi
push ecx
push edx
call fcn.004d8300
add esp, 0xc
mov dword [ebx], edi
xor eax, eax
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
cmp edi, 0xffffffff
jne 0x41e38e
mov edi, 0x2719
call fcn.004be240
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea edx, [ebp - 0x14]
push edx
push 0x700b
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.004be240
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], ebx
test edi, edi
jne 0x41e3ce
call fcn.004be240
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f380
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x58c4fc]
push ebx
mov ebx, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41f3bc
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41f3bc
mov eax, dword [ecx]
test eax, eax
je 0x41f3bc
mov dword [ecx], 0
mov cl, byte [eax]
movzx edx, cl
cmp edx, ebx
jae 0x41f3db
push eax
call fcn.00469e1a
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.00469def
add esp, 4
cmp ebx, 0xff
ja 0x41f3d9
movzx ecx, bl
mov byte [eax + ebx], cl
pop ebx
pop ebp
ret
xor ecx, ecx
mov byte [eax + ebx], cl
pop ebx
pop ebp
ret

Function at 0x41ff40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cc08
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x580b30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
xor bl, bl
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
add esi, 0x3c
mov dword [ebp - 0x10], 4
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x41ffbb
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [esi + 0x18]
lea ecx, [eax + edx*8]
mov eax, dword [ecx]
mov edx, dword [esi]
cmp eax, edx
jne 0x41ffa3
mov eax, edx
jmp 0x41ffbd
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x41ffbb
lea esp, [esp]
cmp dword [eax + 8], edi
je 0x41ffbd
mov eax, dword [eax]
cmp eax, ecx
jne 0x41ffb0
mov eax, dword [esi]
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea edx, [esi - 4]
push edx
call fcn.0041fec0
test al, al
jne 0x41ffd7
test bl, bl
je 0x41ffd9
mov bl, 1
add esi, 0x24
dec dword [ebp - 0x10]
jne 0x41ff84
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x14]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b2f0
test bl, bl
je 0x420056
lea ecx, [ebp + 0xb]
mov byte [ebp + 0xb], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 1
call fcn.004be240
mov esi, dword [esi + 0x34]
xor ebx, ebx
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
push ebx
lea edx, [ebp + 0xc]
push edx
push 1
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call fcn.004be240
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x420046
cmp eax, 0x4d2
jne 0x42004b
call fcn.004be240
cmp esi, ebx
jne 0x420058
call fcn.004be240
jmp 0x420058
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
mov edi, esi
cmp esi, ebx
je 0x42008f
lea eax, [esi + 0x14]
mov esi, dword [eax]
mov dword [eax], ebx
mov dword [ebp - 0x1c], ebx
call fcn.004be240
mov edx, dword [edi + 0x18]
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push edi
push ebx
mov dword [ebp - 0x18], eax
call edx
add esp, 0x10
mov edi, esi
cmp esi, ebx
jne 0x420068
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
Function at 0x4200b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
je 0x4201b0
cmp byte [ebp + 0xc], bl
je 0x420119
mov ebx, dword [ebp + 8]
test byte [ebx], 8
je 0x420119
xor eax, eax
mov dword [esp + 0xc], eax
call fcn.004be240
or byte [ebx], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea edx, [esp + 0x10]
push edx
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.004be240
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x420119
call fcn.004be240
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.004be240
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
test ebx, ebx
je 0x4201b0
call fcn.004be240
cmp dword [esi + 4], eax
jne 0x420158
cmp dword [esi], 0x2733
je 0x42016a
call fcn.004be240
cmp dword [esi + 4], eax
jne 0x4201ac
cmp dword [esi], 0x4d5
jne 0x4201ac
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push edi
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 8]
and byte [eax], 0xfc
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.004be240
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x4201bc
xor edi, edi
call fcn.004be240
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4203c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [esi + 4], edi
test edi, edi
jne 0x420417
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov dword [esp + 0x10], ebx
call fcn.004be240
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x420417
lea eax, [esp + 0x10]
push eax
mov ecx, str.thread.entry_event
call fcn.0040b110
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], eax
mov dword [esi + 8], eax
cmp dword [ebx + 8], 0
jne 0x420469
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x10], ebx
call fcn.004be240
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x420466
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.thread.exit_event
call fcn.0040b110
mov ebx, dword [ebp + 8]
lea edx, [esp + 0xc]
push edx
push 0
push esi
push 0x420340
push 0
push 0
mov dword [esp + 0x24], 0
call fcn.004d57cb
add esp, 0x18
mov dword [ebx + 4], eax
test eax, eax
jne 0x4204e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
test edi, edi
je 0x4204b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4204be
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x10], esi
call fcn.004be240
mov dword [esp + 0x14], eax
test esi, esi
je 0x4204e2
lea eax, [esp + 0x10]
push eax
mov ecx, str.thread
call fcn.0040b110
test edi, edi
je 0x4204f6
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x420c60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517300
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x580b30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x420cc0
mov eax, esi
call fcn.00420950
xor esi, esi
call fcn.004be240
mov dword [edi + 4], eax
mov dword [edi], esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov edx, dword [0x58c4fc]
lea ecx, [ebp - 0x10]
push edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x58c4fc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004209e0
test eax, eax
je 0x420d12
cmp ebx, 0xffffffff
je 0x420d06
inc ebx
push edi
mov ecx, esi
call fcn.004209e0
test eax, eax
jne 0x420d00
mov edx, dword [ebp - 0x14]
mov eax, dword [0x58c4fc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x420d32
push eax
call fcn.00469e1a
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x420f20
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 8]
push edx
push 2
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x58c144
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
test eax, eax
je 0x420f6d
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
push edx
push method.boost::serialization::typeid_system::extended_type_info_typeid_arg.virtual_16
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret
Function at 0x421320
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515a7f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x580b30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
call fcn.00421190
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
lea eax, [esi + 0x38]
mov byte [ebp - 4], 3
push eax
mov dword [esi + 0x34], edi
call fcn.00421240
mov ebx, eax
call fcn.004be240
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
cmp ebx, edi
je 0x4213b1
lea ecx, [ebp - 0x18]
push ecx
mov ecx, str.mutex
call fcn.0040b110
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
cmp eax, 0xffffffff
jb 0x4213c9
or eax, 0xffffffff
push eax
push edi
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
cmp eax, edi
jne 0x421400
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.004be240
mov dword [ebp - 0x14], eax
cmp ebx, edi
je 0x421400
lea edx, [ebp - 0x18]
push edx
mov ecx, str.iocp
call fcn.0040b110
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 0xc
Function at 0x4225b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515a18
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x580b30]
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
push 0x20
xor eax, eax
mov edi, 7
xor esi, esi
push str.SYSTEMCurrentControlSetControl
lea ecx, [ebp - 0x48]
mov ebx, 0x7530
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
call fcn.0040acb0
mov dword [ebp - 4], esi
xor ecx, ecx
push 0x13
mov word [ebp - 0x2c], cx
push str.ServicesPipeTimeout
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
call fcn.0040acb0
mov eax, dword [ebp - 0x48]
mov edi, 8
cmp dword [ebp - 0x34], edi
jae 0x422630
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x50]
push edx
push 0x20019
push esi
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42267b
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x4c], esi
cmp dword [ebp - 0x18], edi
jae 0x42265f
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x4c]
push edx
push esi
push esi
push eax
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42267b
mov ebx, dword [ebp - 0x4c]
cmp dword [ebp - 0x18], edi
jb 0x42268c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00469e1a
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], edi
jb 0x4226ad
mov eax, dword [ebp - 0x48]
push eax
call fcn.00469e1a
add esp, 4
mov eax, ebx
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.004d31b7
mov esp, ebp
pop ebp
ret
Function at 0x42ab80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51d208
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x580b30]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
sub esp, 8
mov esi, esp
mov ebx, 0x42ade0
mov dword [esp + 0x1c], esp
call fcn.0042b850
mov edx, dword [0x58a2d4]
xor eax, eax
push eax
mov eax, dword [0x58a2d8]
movzx ecx, byte [eax]
movzx eax, byte [edx]
push ebx
push ecx
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0042bb20
add esp, 0x1c
mov dword [esp + 0x38], 0
lea ecx, [edi + 0x54]
mov edx, 0x100000
push eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 8]
lea edx, [esp + 0x18]
push edx
add edi, 0xc
push edi
push ecx
call fcn.0042c3b0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x28]
test eax, eax
je 0x42ac4c
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x42ac4c
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42ac4c
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42b930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51584b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x580b30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
push 0x42ca90
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], 0x583ff8
mov dword [ebp - 0x10], 0
call fcn.0041f410
mov dword [ebx], eax
lea esi, [ebx + 4]
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], 2
mov byte [esi + 0x20], al
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x24], 2
mov dword [esi + 0x28], eax
mov dword [ebp - 4], eax
mov edx, dword [ebx]
add edx, 0x14
push edx
call fcn.0041f7f0
mov eax, ebx
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