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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ca10
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.00423340
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.00422280
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x30]
call fcn.00422010
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.00421cd0
lea ecx, [ebp - 0x4c]
call fcn.00419050
lea ecx, [ebp - 0x18]
call fcn.00421db0
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
fdiv qword [0x47ea68]
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 [0x47ea78]
fstp qword [ebp - 0x3c]
fld qword [0x47ea70]
fcomp qword [ebp - 0x3c]
fnstsw ax
test ah, 5
jp 0x422e71
fld qword [ebp - 0x3c]
fsub qword [0x47ea78]
fstp qword [ebp - 0x3c]
jmp 0x422e8d
fld qword [0x47ea70]
fcomp qword [ebp - 0x3c]
fnstsw ax
test ah, 0x41
jne 0x422e8d
fld qword [ebp - 0x3c]
fadd qword [0x47ea78]
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 [0x47ea28]
fnstsw ax
test ah, 0x44
jnp 0x422ed7
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x4c], 3
jne 0x422ed7
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x4c], 5
lea ecx, [ebp - 0x18]
call fcn.00419050
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00421ed0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00419050
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 0x469468
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.004041e0
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.004041e0
push 0xa
push 1
lea ecx, [esp + 0x20]
call fcn.004030e0
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.004041e0
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.0040dc00
xor al, al
jmp 0x429fd6
call fcn.0040dc00
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 0x469543
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.0040ccc0
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 0x431440
Capabilities:
Create directory

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
cmp dword [edi + 0x18], 0x10
jb 0x431451
mov eax, dword [edi + 4]
jmp 0x431454
lea eax, [edi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x431472
mov eax, dword [esp + 0xc]
mov dword [eax], 0
mov byte [eax + 4], 1
pop edi
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x4314af
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.00431280
add esp, 0xc
cmp dword [esp + 0x14], 3
jne 0x4314af
mov eax, dword [esp + 0x10]
pop esi
mov dword [eax], 0
mov byte [eax + 4], 0
pop edi
pop ecx
ret
mov eax, dword [esp + 0x10]
mov dword [eax], esi
pop esi
mov byte [eax + 4], 0
pop edi
pop ecx
ret

Function at 0x4314f7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48948c]
jne 0x431501
repz ret
jmp fcn.0043c3ba

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x435e4f
call fcn.0043c11f
mov dword [eax], esi
call fcn.0043c10c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00435bc7
add esp, 0x14
push 0x16
pop eax
jmp 0x435ea4
test dword [ebp + 0xc], 0xfffffff9
jne 0x435e2b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x435e7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043c132
pop ecx
call fcn.0043c10c
mov eax, dword [eax]
jmp 0x435ea4
test al, 0x10
jne 0x435ea2
test al, 1
je 0x435ea2
test byte [ebp + 0xc], 2
je 0x435ea2
call fcn.0043c11f
mov dword [eax], 5
call fcn.0043c10c
mov dword [eax], 0xd
jmp 0x435e73
xor eax, eax
pop esi
pop ebp
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 0x478f28
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 0x4501a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0xffffffff
jne 0x4501b7
or eax, 0xffffffff
jmp 0x4501e3
push 0x10
mov ecx, dword [ebp - 8]
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 - 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4501e3
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x4501f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0x10
push 0
mov eax, dword [ebp - 8]
add eax, 0x28
push eax
call fcn.00431a40
add esp, 0xc
mov ecx, dword [ebp - 8]
cmp dword [ecx + 8], 0xffffffff
jne 0x450219
xor al, al
jmp 0x450283
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x450230
xor al, al
jmp 0x450283
mov eax, 2
mov ecx, dword [ebp - 8]
mov word [ecx + 0x28], ax
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 8]
mov word [ecx + 0x2a], ax
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0xa]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x2c
push ecx
call fcn.004348d0
add esp, 0xc
push 8
push 0
mov edx, dword [ebp - 8]
add edx, 0x30
push edx
call fcn.00431a40
add esp, 0xc
mov al, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x4502f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + 8]
mov byte [eax + 0x14], cl
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x14]
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
push ecx
push 0x8004667e
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp - 4], 0
setge cl
mov byte [ebp - 9], cl
movzx edx, byte [ebp - 9]
test edx, edx
jne 0x45033c
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret 4

Function at 0x450350
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0xffffffff
je 0x450366
xor al, al
jmp 0x4503bc
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 8], 0xffffffff
je 0x4503a2
mov dword [ebp - 8], 1
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 8], 0xffffffff
setne cl
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x4503bc
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
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 0x4504b0
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 0x4508c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469db4
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.00450540
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 0x450943
jmp 0x4509f0
mov dword [ebp - 0x118], 0x100
mov dword [ebp - 0x120], 0
jmp 0x450968
mov ecx, dword [ebp - 0x120]
add ecx, 1
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x120]
cmp edx, dword [ebp - 0x11c]
jae 0x4509f0
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 0x4509e1
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x13c]
call fcn.0040cda0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00427af0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.0040dc00
mov dword [ebp - 0x118], 0x100
jmp 0x450959
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 0x450b80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469e21
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.00450540
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
mov ecx, dword [ebp + 0xc]
call fcn.0040c5a0
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 0x450c77
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.0040c5a0
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.0040cda0
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.0040c5e0
mov eax, dword [ebp - 0x44]
or eax, 1
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040dc00
mov eax, dword [ebp + 8]
jmp 0x450c8b
mov ecx, dword [ebp + 8]
call fcn.0040dd80
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 0x450cb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00450540
mov ecx, dword [ebp + 0xc]
call fcn.0041c300
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040c5a0
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.0040c5a0
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 0x450cfe
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.00450a10
mov esp, ebp
pop ebp
ret 8
Function at 0x452ae0
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 0x452b2b
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 0x452b2d
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x453210
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 0x453254
jmp 0x4532ca
call fcn.00466120
mov ecx, dword [ebp - 8]
add ecx, 0xd0
call fcn.00421d70
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 0x4532a5
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0x4531f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x114], eax
jmp 0x4532b0
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 4]
call fcn.00421bc0
mov eax, dword [ebp - 8]
mov byte [eax + 0x121], 1
mov ecx, dword [ebp - 8]
call fcn.00452fe0
mov ecx, dword [ebp - 8]
call fcn.00453040
mov esp, ebp
pop ebp
ret 4

Function at 0x457a40
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 0x457a93
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 0x457a8c
jmp 0x457a93
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