joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422ce0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cd90
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x48948c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x50]
add ecx, 0x30
call fcn.004232c0
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x28], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x24], edx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x20], ecx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 1
push ecx
fld dword [ebp + 0x14]
fstp dword [esp]
push ecx
fld dword [ebp + 0x10]
fstp dword [esp]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.00422200
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x30]
call fcn.00421f90
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
call fcn.00421c50
lea ecx, [ebp - 0x4c]
call fcn.00418fb0
lea ecx, [ebp - 0x18]
call fcn.00421d30
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
fdiv qword [0x47eab0]
fstp dword [ebp - 0x44]
mov ecx, dword [ebp - 0x50]
fld dword [ecx + 0x54]
fstp dword [ebp - 0x10]
mov edx, dword [ebp - 0x50]
fld dword [edx + 0x58]
fstp dword [ebp - 0x40]
mov eax, dword [ebp - 0x50]
fld dword [ebp + 0x18]
fstp dword [eax + 0x54]
mov ecx, dword [ebp - 0x50]
fld dword [ecx + 0x54]
fsub dword [ebp - 0x10]
fdiv qword [0x47eac0]
fstp qword [ebp - 0x3c]
fld qword [0x47eab8]
fcomp qword [ebp - 0x3c]
fnstsw ax
test ah, 5
jp 0x422df1
fld qword [ebp - 0x3c]
fsub qword [0x47eac0]
fstp qword [ebp - 0x3c]
jmp 0x422e0d
fld qword [0x47eab8]
fcomp qword [ebp - 0x3c]
fnstsw ax
test ah, 0x41
jne 0x422e0d
fld qword [ebp - 0x3c]
fadd qword [0x47eac0]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fstp dword [ebp - 0x5c]
fld dword [ebp - 0x5c]
fdiv dword [ebp - 0x44]
mov edx, dword [ebp - 0x50]
fstp dword [edx + 0x58]
mov eax, dword [ebp - 0x50]
fld dword [eax + 0x58]
fsub dword [ebp - 0x40]
fdiv dword [ebp - 0x44]
mov ecx, dword [ebp - 0x50]
fstp dword [ecx + 0x5c]
mov edx, dword [ebp - 0x50]
fld dword [edx + 0x5c]
fcomp qword [0x47ea70]
fnstsw ax
test ah, 0x44
jnp 0x422e57
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x4c], 3
jne 0x422e57
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x4c], 5
lea ecx, [ebp - 0x18]
call fcn.00418fb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00421e50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00418fb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x429df0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x469798
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x48948c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48948c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
xor edi, edi
cmp ebp, edi
mov ebx, ecx
mov dword [esp + 0x14], ebx
jne 0x429e43
push edi
push edi
push edi
push 2
call fcn.0042bdf0
xor al, al
jmp 0x429fd6
mov esi, dword [ebx + 0x1c]
cmp esi, edi
je 0x429e61
lea ebx, [ebx]
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x44]
push 1
call edx
cmp esi, edi
jne 0x429e50
push 2
or eax, 0xffffffff
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
push edi
push ebp
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
call fcn.0043612d
push ebp
call fcn.00439d4f
xor esi, esi
push esi
push esi
push ebp
mov edi, eax
call fcn.0043612d
add esp, 0x1c
cmp edi, esi
jg 0x429ea5
push esi
push esi
push esi
push 0xd
mov ecx, ebx
call fcn.0042bdf0
xor al, al
jmp 0x429fd6
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], esi
mov byte [esp + 0x1c], 0
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], esi
call fcn.004297b0
lea eax, [edi + 1]
push eax
call fcn.00430800
push ebp
push 1
mov ebx, eax
push edi
push ebx
mov byte [ebx], 0
call fcn.00439b95
add esp, 0x14
cmp eax, 1
je 0x429f19
push ebx
call fcn.00431aba
mov ecx, dword [esp + 0x18]
add esp, 4
push 0
push 0
push 0
push 2
call fcn.0042bdf0
cmp dword [esp + 0x30], 0x10
jb 0x429f12
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00431644
add esp, 4
xor al, al
jmp 0x429fd6
mov byte [ebx + edi], 0
cmp byte [ebx], 0
mov eax, ebx
mov esi, ebx
je 0x429f80
mov cl, byte [esi]
cmp cl, 0xa
jne 0x429f46
mov edx, esi
sub edx, eax
add edx, 1
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.004041a0
add esi, 1
mov eax, esi
jmp 0x429f7b
cmp cl, 0xd
jne 0x429f78
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x429f5e
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004041a0
push 0xa
push 1
lea ecx, [esp + 0x20]
call fcn.004030c0
cmp byte [esi + 1], 0xa
jne 0x429f3f
add esi, 2
mov eax, esi
jmp 0x429f7b
add esi, 1
cmp byte [esi], 0
jne 0x429f26
sub esi, eax
je 0x429f8f
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.004041a0
push ebx
call fcn.00431aba
mov eax, dword [esp + 0x20]
add esp, 4
cmp dword [esp + 0x30], 0x10
jae 0x429fa7
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x14]
mov edx, dword [esi]
mov edx, dword [edx + 8]
push ecx
push 0
push eax
mov ecx, esi
call edx
cmp byte [esi + 0x48], 0
lea ecx, [esp + 0x18]
je 0x429fcf
call fcn.0040dc10
xor al, al
jmp 0x429fd6
call fcn.0040dc10
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004314f7
add esp, 0x30
ret 8
Function at 0x42a310
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x469873
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48948c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
call fcn.0042e100
xor ebx, ebx
or eax, 0xffffffff
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
lea ebp, [edi + 0x24]
mov dword [edi + 0x10], ebx
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], 1
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], ebx
lea esi, [edi + 0x48]
mov ecx, esi
mov dword [esp + 0x20], ebx
mov dword [edi], vtable.TiXmlElement.0
call fcn.0042e100
or eax, 0xffffffff
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov dword [esi], vtable.TiXmlAttribute.0
mov dword [esi + 0x2c], ebx
mov eax, 0xf
mov dword [esi + 0x30], eax
mov byte [esi + 0x1c], bl
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], ebx
mov byte [esi + 0x38], bl
mov dword [esi + 0x14], ebx
mov dword [esi + 0x54], esi
mov dword [esi + 0x50], esi
mov esi, dword [esp + 0x28]
mov eax, esi
mov byte [esp + 0x20], 1
mov dword [edi + 0x20], ebx
mov dword [edi + 0x1c], ebx
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x42a3d0
sub eax, ecx
push eax
push esi
mov ecx, ebp
call fcn.0040cca0
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x431280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x43128f
mov eax, dword [eax + 4]
jmp 0x431292
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4312df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
je 0x4312ce
cmp eax, 3
je 0x4312ce
cmp eax, 0x7b
je 0x4312ce
cmp eax, 0x57
je 0x4312ce
cmp eax, 0x35
je 0x4312ce
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [esp + 4]
mov dword [ecx], 0
mov dword [eax], 1
ret
mov ecx, dword [esp + 0xc]
test al, 0x10
mov dword [ecx], 0
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x431301
mov dword [esp + 8], 2
mov edx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], edx
ret
Function at 0x44bff8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043c532
and dword [ebp - 4], 0
cmp dword [0x48d0a8], 0
mov ebx, eax
jne 0x44c0a9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44c15a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x478f48
push edi
call esi
test eax, eax
je 0x44c15a
push eax
call fcn.0043c4c0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48d0a8], eax
call esi
push eax
call fcn.0043c4c0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x48d0ac], eax
call esi
push eax
call fcn.0043c4c0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48d0b0], eax
call esi
push eax
call fcn.0043c4c0
pop ecx
mov dword [0x48d0b8], eax
test eax, eax
je 0x44c0a9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043c4c0
pop ecx
mov dword [0x48d0b4], eax
mov eax, dword [0x48d0b4]
cmp eax, ebx
je 0x44c101
cmp dword [0x48d0b8], ebx
je 0x44c101
push eax
call fcn.0043c53b
push dword [0x48d0b8]
mov esi, eax
call fcn.0043c53b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44c101
test edi, edi
je 0x44c101
call esi
test eax, eax
je 0x44c0f8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44c0f8
test byte [ebp - 0xc], 1
jne 0x44c101
or dword [ebp + 0x10], 0x200000
jmp 0x44c13a
mov eax, dword [0x48d0ac]
cmp eax, ebx
je 0x44c13a
push eax
call fcn.0043c53b
pop ecx
test eax, eax
je 0x44c13a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44c13a
mov eax, dword [0x48d0b0]
cmp eax, ebx
je 0x44c13a
push eax
call fcn.0043c53b
pop ecx
test eax, eax
je 0x44c13a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48d0a8]
call fcn.0043c53b
pop ecx
test eax, eax
je 0x44c15a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44c15c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x450110
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0xffffffff
jne 0x450134
push str.INVALID_SOCKET
call fcn.00437f10
add esp, 4
or eax, 0xffffffff
jmp 0x450192
mov dword [ebp - 4], 0x10
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00431a40
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x28
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x450188
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x38], 1
jmp 0x45018f
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x38], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x450400
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x48948c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1a0], ecx
mov eax, dword [ebp - 0x1a0]
mov dword [eax], vtable.ofxUDPManager.0
movzx ecx, byte [0x48d427]
test ecx, ecx
jne 0x450458
mov edx, 0x202
mov word [ebp - 0x19c], dx
lea eax, [ebp - 0x198]
push eax
movzx ecx, word [ebp - 0x19c]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov byte [0x48d427], 1
mov edx, dword [ebp - 0x1a0]
mov dword [edx + 8], 0xffffffff
mov eax, dword [ebp - 0x1a0]
mov dword [eax + 0xc], 0xffff
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx + 4], 0xffffffff
mov edx, dword [ebp - 0x1a0]
mov byte [edx + 0x38], 0
mov eax, dword [ebp - 0x1a0]
mov byte [eax + 0x14], 1
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004314f7
mov esp, ebp
pop ebp
ret

Function at 0x450bd0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x48948c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.00431a40
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004314f7
mov esp, ebp
pop ebp
ret

Function at 0x450fe0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a0e4
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x48948c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x140], ecx
mov ecx, dword [ebp - 0x140]
call fcn.00450c60
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x10], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea ecx, [ebp - 0x11c]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x140]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x451063
jmp 0x451110
mov dword [ebp - 0x118], 0x100
mov dword [ebp - 0x120], 0
jmp 0x451088
mov ecx, dword [ebp - 0x120]
add ecx, 1
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x120]
cmp edx, dword [ebp - 0x11c]
jae 0x451110
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x451101
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x13c]
call fcn.0040cd80
mov dword [ebp - 4], 0
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00427ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.0040dc10
mov dword [ebp - 0x118], 0x100
jmp 0x451079
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004314f7
mov esp, ebp
pop ebp
ret 4
Function at 0x4512a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a151
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x48948c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x48]
call fcn.00450c60
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
mov ecx, dword [ebp + 0xc]
call fcn.0040c580
push eax
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x14], 0
jbe 0x451397
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
call fcn.00430800
add esp, 4
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.0040c580
push eax
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x14]
mov byte [ecx], 0
mov edx, dword [ebp - 0x38]
push edx
lea ecx, [ebp - 0x34]
call fcn.0040cd80
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00431aba
add esp, 4
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040c5c0
mov eax, dword [ebp - 0x44]
or eax, 1
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040dc10
mov eax, dword [ebp + 8]
jmp 0x4513ab
mov ecx, dword [ebp + 8]
call fcn.0040dd90
mov ecx, dword [ebp - 0x44]
or ecx, 1
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004314f7
mov esp, ebp
pop ebp
ret 8

Function at 0x4513d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00450c60
mov ecx, dword [ebp + 0xc]
call fcn.0041c1a0
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040c580
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.0040c580
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x45141e
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.00451130
mov esp, ebp
pop ebp
ret 8
Function at 0x453200
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
push 0
push 0
push 6
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x45324b
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004348d0
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov al, 1
jmp 0x45324d
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x453930
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push str.cursorMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x11c], eax
push str.objectMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edx, dword [ebp - 8]
mov dword [edx + 0x118], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x453974
jmp 0x4539ea
call fcn.00466a00
mov ecx, dword [ebp - 8]
add ecx, 0xd0
call fcn.00421cf0
mov ecx, dword [ebp - 8]
mov dl, byte [ebp + 8]
mov byte [ecx + 0x120], dl
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x120]
test ecx, ecx
jne 0x4539c5
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0x453910
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x114], eax
jmp 0x4539d0
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 4]
call fcn.00421b40
mov eax, dword [ebp - 8]
mov byte [eax + 0x121], 1
mov ecx, dword [ebp - 8]
call fcn.00453700
mov ecx, dword [ebp - 8]
call fcn.00453760
mov esp, ebp
pop ebp
ret 4

Function at 0x458160
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x48948c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1a0], ecx
push 0x48d434
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x4581b3
lea eax, [ebp - 0x198]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x4581ac
jmp 0x4581b3
mov byte [0x48d426], 1
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004314f7
mov esp, ebp
pop ebp
ret
Function at 0x458290
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x48948c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 2
jne 0x4582f2
push 0x10
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.00431a40
add esp, 0xc
mov ecx, 2
mov word [ebp - 0x14], cx
push 4
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.004348d0
add esp, 0xc
push 2
push 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0x10
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov eax, dword [ebp + 0x10]
jmp 0x458344
cmp dword [ebp + 8], 0x17
jne 0x458342
push 0x1c
push 0
lea ecx, [ebp - 0x30]
push ecx
call fcn.00431a40
add esp, 0xc
mov edx, 0x17
mov word [ebp - 0x30], dx
push 0x10
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004348d0
add esp, 0xc
push 2
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0x1c
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov eax, dword [ebp + 0x10]
jmp 0x458344
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004314f7
mov esp, ebp
pop ebp
ret

Function at 0x458400
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a1b9
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x48948c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
mov cl, byte [ebp + 8]
mov byte [eax + 0x4c], cl
mov dword [ebp - 0x14], 0xffffffff
movzx edx, byte [ebp + 8]
neg edx
sbb edx, edx
add edx, 1
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x10]
push eax
push 0x8004667e
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x54]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x45846c
mov dword [ebp - 0x14], 0xffffffff
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4584b7
push str.Socket::blocking:_ioctl_error
lea ecx, [ebp - 0x54]
call fcn.0040cd80
mov dword [ebp - 4], 0
call fcn.00458240
push eax
lea eax, [ebp - 0x54]
push eax
push 0xa
lea ecx, [ebp - 0x38]
call fcn.004190d0
push 0x48231c
lea ecx, [ebp - 0x38]
push ecx
call fcn.00439440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0040dc10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4584d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a1dc
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x48948c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x14]
push eax
push 0x4004667f
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x54]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x458563
push str.Socket::nextReadSize:_error_ioctl
lea ecx, [ebp - 0x54]
call fcn.0040cd80
mov dword [ebp - 4], 0
call fcn.00458240
push eax
lea eax, [ebp - 0x54]
push eax
push 0xa
lea ecx, [ebp - 0x38]
call fcn.004190d0
push 0x48231c
lea ecx, [ebp - 0x38]
push ecx
call fcn.00439440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0040dc10
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret