joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f0
mov eax, dword [0x423100]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x1a0], 0
call fcn.00406240
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push 0x422fe8
lea ecx, [ebp - 0x1cc]
push ecx
call fcn.00409bae
add esp, 0xc
mov word [ebp - 0x1d8], 0x101
lea edx, [ebp - 0x198]
push edx
mov ax, word [ebp - 0x1d8]
push eax
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x40610a
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x40622a
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x1a8], 0xffffffff
jne 0x406130
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x40622a
mov word [ebp - 0x1f0], 2
mov cx, word [ebp - 4]
push ecx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x1ee], ax
push str.127.0.0.1
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x1ec], eax
push 0x10
lea edx, [ebp - 0x1f0]
push edx
mov eax, dword [ebp - 0x1a8]
push eax
call sub.WSOCK32.dll_connect
test eax, eax
je 0x40617f
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x40622a
mov ecx, dword [0x422fe4]
push ecx
call fcn.0040790f
add esp, 4
mov dword [ebp - 0x1d4], eax
mov edx, dword [0x422fe4]
push edx
call fcn.0040790f
add esp, 4
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp + 8]
push eax
push 0x422ff8
mov ecx, dword [ebp - 0x1d4]
push ecx
call fcn.00409bae
add esp, 0xc
push 0
mov edx, dword [ebp - 0x1d4]
push edx
call fcn.00409db0
add esp, 4
push eax
mov eax, dword [ebp - 0x1d4]
push eax
mov ecx, dword [ebp - 0x1a8]
push ecx
call sub.WSOCK32.dll_send
push 0
mov edx, dword [0x422fe4]
push edx
mov eax, dword [ebp - 0x19c]
push eax
mov ecx, dword [ebp - 0x1a8]
push ecx
call sub.WSOCK32.dll_recv
mov edx, dword [ebp - 0x1d4]
push edx
call fcn.00407832
add esp, 4
mov eax, dword [ebp - 0x19c]
push eax
call fcn.00407832
add esp, 4
call sub.WSOCK32.dll_WSACleanup
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004079d2
mov esp, ebp
pop ebp
ret
Function at 0x406e00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x424280], 0
jne 0x406e1f
mov eax, dword [0x42427c]
push eax
call fcn.00406e90
add esp, 4
mov dword [0x424280], eax
mov ecx, dword [0x424280]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [0x424280]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
mov eax, dword [0x424280]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x424280]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
neg eax
sbb eax, eax
and eax, 4
add eax, 5
push eax
mov edx, dword [0x424280]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x424280]
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
pop ebp
ret

Function at 0x4079d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423100]
jne 0x4079dc
repz ret
jmp fcn.0040dbac
Function at 0x417914
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040c6cd
xor ebx, ebx
cmp dword [0x424d6c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4179e9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x417954
xor eax, eax
jmp 0x417aad
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41fd74
push edi
call esi
cmp eax, ebx
je 0x41794d
push eax
call fcn.0040c66a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x424d6c], eax
call esi
push eax
call fcn.0040c66a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x424d70], eax
call esi
push eax
call fcn.0040c66a
mov dword [0x424d74], eax
lea eax, [ebp - 8]
push eax
call fcn.00408104
test eax, eax
pop ecx
pop ecx
je 0x4179b7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040e72c
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4179e9
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040c66a
cmp eax, ebx
pop ecx
mov dword [0x424d7c], eax
je 0x4179e9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040c66a
pop ecx
mov dword [0x424d78], eax
mov eax, dword [0x424d78]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x417a62
cmp dword [0x424d7c], esi
je 0x417a62
push eax
call fcn.0040c6d6
pop ecx
call eax
cmp eax, ebx
je 0x417a2f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x424d7c]
call fcn.0040c6d6
pop ecx
call eax
test eax, eax
je 0x417a2f
test byte [ebp - 0x18], 1
jne 0x417a62
lea eax, [ebp - 0xc]
push eax
call fcn.0040813b
test eax, eax
pop ecx
je 0x417a4a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040e72c
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x417a59
or dword [ebp + 0x10], 0x200000
jmp 0x417a93
or dword [ebp + 0x10], 0x40000
jmp 0x417a93
mov eax, dword [0x424d70]
cmp eax, esi
je 0x417a93
push eax
call fcn.0040c6d6
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x417a93
mov eax, dword [0x424d74]
cmp eax, esi
je 0x417a93
push dword [ebp - 4]
push eax
call fcn.0040c6d6
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x424d6c]
call fcn.0040c6d6
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402410
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [0x409900]
cmp eax, ecx
jne 0x402441
mov ecx, dword [esp + 4]
push 0
push 0
push ecx
push 0x402280
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
ret

Function at 0x4024e0
Capabilities:
Parse pe header

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
cmp word [esi], 0x5a4d
je 0x4024f8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [esp + 0x10], edi
cmp dword [edi], 0x4550
je 0x402511
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
push 4
push 0x2000
push eax
push ecx
call dword [0x409d04]
mov ebp, eax
test ebp, ebp
jne 0x40254a
mov edx, dword [edi + 0x50]
push 4
push 0x2000
push edx
push eax
call dword [0x409d04]
mov ebp, eax
test ebp, ebp
jne 0x40254a
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x14
push 0
call dword [0x409d20]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
xor eax, eax
push 4
push 0x1000
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x50]
push eax
push ebp
call dword [0x409d04]
mov ecx, dword [edi + 0x54]
push 4
push 0x1000
push ecx
push ebp
call dword [0x409d04]
mov ecx, dword [esi + 0x3c]
mov edx, dword [edi + 0x54]
add ecx, edx
mov edi, eax
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push esi
push ecx
mov edx, dword [ecx + 0x3c]
add eax, edx
mov dword [ebx], eax
mov dword [eax + 0x34], ebp
call fcn.00402630
mov ecx, dword [esi + 0x34]
mov eax, ebp
add esp, 0xc
sub eax, ecx
je 0x4025d7
push eax
push ebx
call fcn.004027f0
add esp, 8
push ebx
call fcn.00402870
add esp, 4
test eax, eax
je 0x402610
push ebx
call fcn.00402710
mov eax, dword [ebx]
add esp, 4
mov eax, dword [eax + 0x28]
test eax, eax
je 0x402628
lea esi, [eax + ebp]
test esi, esi
je 0x402610
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 1
push ebp
call esi
test eax, eax
jne 0x402621
push ebx
call fcn.00402a50
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [ebx + 0x10], 1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
Function at 0x402630
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x402701
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x4026a3
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x4026df
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [0x409d04]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4026df
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [0x409d04]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x40265e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x402710
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
xor ecx, ecx
push edi
mov ebx, dword [eax]
mov dword [esp + 8], 0
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], 0
lea edi, [ecx + ebx + 0x18]
jbe 0x4027e8
push ebp
push esi
add edi, 0x24
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x402778
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4027c6
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov ebp, dword [edx*4 + 0x409644]
je 0x402792
or ebp, 0x200
mov esi, dword [edi - 0x14]
test esi, esi
jne 0x4027ab
test al, 0x40
je 0x4027a2
mov esi, dword [ebx + 0x20]
jmp 0x4027a9
test al, 0x80
je 0x4027c6
mov esi, dword [ebx + 0x24]
test esi, esi
jbe 0x4027c6
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x14]
push eax
push ebp
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
xor ecx, ecx
inc eax
mov ebx, dword [edx]
add edi, 0x28
mov dword [esp + 0x10], eax
mov cx, word [ebx + 6]
cmp eax, ecx
jl 0x40273d
pop esi
pop ebp
pop edi
pop ebx
add esp, 8
ret
Function at 0x402ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x403370
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, dword [esp + 0x48]
lea ecx, [esp + 0x24]
push esi
mov dword [esp + 0x44], 0
call sub.MFC42.DLL_CClientDC::CClientDC
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x48], 1
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x6e0032
push 1
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CPen::CPen
lea edx, [esp + 0xc]
lea ecx, [esp + 0x24]
push edx
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CDC::SelectObject_1
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 4]
push eax
call sub.MFC42.DLL_CBrush::CBrush
lea ecx, [esp + 4]
mov byte [esp + 0x40], 3
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
push 1
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CDC::SetBkMode
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [ecx + 5]
lea ecx, [edx + 0xa]
mov edx, dword [esp + 0x50]
mov esi, dword [edx - 8]
push esi
push edx
push eax
mov eax, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x34]
call dword [eax + 0x64]
mov dword [esp + 4], 0x4045c0
lea ecx, [esp + 4]
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, 0x4045ac
mov dword [esp + 0xc], 0x4045c0
mov dword [esp + 4], esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], esi
mov byte [esp + 0x40], 0
call fcn.00402f92
lea ecx, [esp + 0x50]
mov dword [esp + 0x40], 0xffffffff
call fcn.00402f3e
mov ecx, dword [esp + 0x38]
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret 0xc
Function at 0x457370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x45738e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x480074
push ecx
mov edi, eax
call fcn.0046b198
mov esi, eax
add esp, 8
test esi, esi
jne 0x4573cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0046b02e
push esi
call fcn.0046afb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x45a850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x45a8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x485720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x45a8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.0046b1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x45a8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x485720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x45a92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.0046c082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x45a957
mov word [eax], si
add eax, 2
push eax
call fcn.0046c030
add esp, 4
jmp 0x45a959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x45a8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x45a8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x45aff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x45b080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x45b0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x480458
push ecx
call fcn.0046b1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0046b1e1
add esp, 0x10
jmp 0x45b0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0046b20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0046adff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0045b050
mov eax, dword [0x485728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x45b13b
push esi
call fcn.0045afb0
add esp, 4
mov dword [0x485728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x45b14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.0045aff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x45e440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x45e4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x45e48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x45e471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x45e47e
add edx, ecx
cmp ebx, edx
jb 0x45e48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x45e467
xor ecx, ecx
jmp 0x45e4a2
test eax, eax
jne 0x45e492
xor ecx, ecx
jmp 0x45e4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.0045e3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x45e8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45e921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x45e946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x45e96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x45e993
push ecx
push esi
call fcn.0045e4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x45fc00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x45fc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x45fc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x45fc38
add edx, eax
cmp ebx, edx
jb 0x45fc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x45fc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x45fc50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x45fc70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x45fcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x45fc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x45fca8
add edx, ecx
cmp ebx, edx
jb 0x45fcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x45fc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x45ff60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.0046c145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x45fffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x45ffdd
lea eax, [esp + 0x18]
push eax
jmp 0x45ffe2
push 0x485720
call fcn.0046bfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x45ffb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x45ff40
push 4
push ecx
push eax
call fcn.0046c43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x460310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.0046c145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x4603ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x46038d
lea eax, [esp + 0x18]
push eax
jmp 0x460392
push 0x485720
call fcn.0046bfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x460360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x45ff40
push 4
push ecx
push eax
call fcn.0046c43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x461f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0x461fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x461fcf
push ebx
push edi
push 0x485770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x461fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x485770
push esi
call ebx
test eax, eax
je 0x461fae
mov ebp, 3
cmp dword [0x485774], ebp
jne 0x461faa
push 0x3e8
call edi
push 0x485770
push esi
call ebx
test eax, eax
jne 0x461f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x461fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x461fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret