joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438c90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
call fcn.00437969
test al, al
jne 0x438ca7
xor al, al
jmp 0x438d92
inc dword [esi + 0x1c]
mov dword [ebp - 4], 0x43
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
imul eax, ecx
imul eax, eax, 0x23
push 0x13
pop ecx
sub ecx, eax
add ecx, dword [ebp - 4]
push 0x1a
add ecx, dword [ebp - 4]
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
imul eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
imul eax, ecx
imul eax, eax, 0x4a
add eax, dword [ebp - 4]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
sub eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ecx
sub ecx, eax
add ecx, dword [ebp - 4]
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
imul eax, eax, 0x25
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
add dword [ebp - 4], 0x2f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
imul eax, eax, 0x55
imul ecx, ecx, 0x45
sub eax, ecx
mov ecx, dword [ebp - 4]
sub eax, ecx
add eax, dword [ebp - 4]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
imul eax, eax, 0x14
sub ecx, eax
mov eax, dword [ebp - 4]
sub ecx, eax
cmp dword [esi + 0x14], 0
mov dword [ebp - 4], ecx
jne 0x438ca0
push dword [esi + 0x10]
and dword [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push 0x438b55
call fcn.004405a9
mov dword [esi + 0x14], eax
mov dword [ebp - 4], 0x60
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push dword [esi + 0x14]
sub eax, ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
cmp dword [esi + 0x14], eax
setne al
pop esi
leave
ret
Function at 0x43d634
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x458f4e
call fcn.00453a9e
mov ebx, ecx
mov eax, dword [ebx + 0x14]
mov esi, edx
mov dword [ebp - 0x50], esi
cmp eax, 8
jb 0x43d651
mov ecx, dword [ebx]
test ecx, ecx
je 0x43d662
cmp eax, 8
jb 0x43d65e
mov eax, dword [ebx]
jmp 0x43d667
mov eax, ebx
jmp 0x43d667
mov eax, dword [str._vDMsV]
push eax
lea eax, [ebp - 0x2c]
call fcn.004054fa
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0xfde9
lea edx, [ebp - 0x48]
call fcn.0044d635
pop ecx
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x43d695
mov eax, dword [eax]
push ecx
push eax
push dword [0x47e23c]
push dword [0x47e238]
push 0
call fcn.0043e92e
add esp, 0x14
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.0040508f
or dword [ebp - 4], 0xffffffff
push 1
lea esi, [ebp - 0x2c]
call fcn.004053d3
mov eax, dword [0x47e8e0]
push eax
mov esi, eax
call fcn.0041286e
pop ecx
push esi
push 6
mov edi, eax
pop eax
mov ecx, ebx
call fcn.00405964
test eax, eax
jne 0x43d6ed
xor al, al
jmp 0x43d7ad
cmp dword [ebx + 0x14], 8
jb 0x43d6f5
mov ebx, dword [ebx]
push 0x80
push 2
pop esi
push esi
push 0
push 0x40000000
push ebx
call fcn.00440931
mov edi, eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], esi
cmp edi, 0xffffffff
jne 0x43d745
call fcn.0043f1f9
call dword [eax + 0x4c]
push eax
push dword [0x47e230]
push dword [0x47e22c]
push 1
call fcn.0043e92e
or dword [ebp - 4], edi
add esp, 0x10
call fcn.0043f1f9
push edi
call dword [eax + 0x44]
jmp 0x43d6e6
mov esi, dword [ebp - 0x50]
mov eax, dword [esi + 0x10]
and dword [ebp - 0x4c], 0
test eax, eax
je 0x43d791
cmp dword [esi + 0x14], 0x10
jb 0x43d75d
mov ecx, dword [esi]
jmp 0x43d75f
mov ecx, esi
push 0
lea edx, [ebp - 0x4c]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43d791
call fcn.0043f1f9
call dword [eax + 0x4c]
push eax
push dword [0x47e240]
push dword [0x47e22c]
push 1
call fcn.0043e92e
add esp, 0x10
mov eax, dword [ebp - 0x4c]
cmp eax, dword [esi + 0x10]
sete bl
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x43d7ab
call fcn.0043f1f9
push edi
call dword [eax + 0x44]
mov al, bl
call fcn.00453b21
ret
Function at 0x442431
Capabilities:
Resume thread

Disassembly:
push 0x30
mov eax, 0x457d14
call fcn.00453a35
mov ebx, dword [ebp + 8]
xor eax, eax
lea esi, [ebx + 0x10]
push esi
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edi, [esi + 0x18]
lea esi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [ebp - 4], 0
lea eax, [ebx + 8]
push eax
call fcn.00413581
pop ecx
call fcn.00440b5c
push ebx
push 0x442184
mov dword [ebx], eax
call fcn.004405a9
mov dword [ebx + 4], eax
mov dword [ebp - 0x14], 0x21
mov dword [ebp - 0x2c], 0x29
mov dword [ebp - 0x10], 0x39
mov dword [ebp - 0x28], 0x13
push 0x1f
pop esi
mov dword [ebp - 0x18], esi
mov dword [ebp + 8], 0x2f
mov dword [ebp - 0x24], 0x24
mov dword [ebp - 0x20], 0x52
mov dword [ebp - 0x1c], 0xd
mov eax, dword [ebp - 0x18]
sub eax, 0x53
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 8]
sub eax, 0x60
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push 0xffffffffffffffbd
pop ecx
sub ecx, eax
add ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
jle 0x44252a
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
lea eax, [eax + ecx + 0xd]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x28], eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 0x10], 0x4c
mov dword [ebp + 8], esi
mov dword [ebp - 0x28], 0x22
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
imul eax, ecx
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x30
sub eax, ecx
mov ecx, dword [ebp - 0x10]
sub eax, ecx
mov ecx, dword [ebp - 0x28]
sub eax, ecx
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx + 0x4b]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp eax, ecx
jne 0x44258b
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x57
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
imul eax, ecx
mov dword [ebp + 8], eax
mov eax, ebx
call fcn.00453b0d
ret 4

Function at 0x442595
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4425a2
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x44259f
mov eax, dword [eax + ecx + 0x98]
test eax, eax
je 0x44259f
add eax, ecx
ret
Function at 0x44a859
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x458c3d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x47d084]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x47d084]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x1c]
push eax
mov dword [esp + 0x18], eax
call fcn.00440be6
xor esi, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x10], 7
add dword [esp + 0x10], 0xffffffb6
add dword [esp + 0x10], 0x3f
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x18], 0xffffffff
jne 0x44a916
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
cmp byte [eax + 0xc0], 0
jne 0x44a8e7
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
cmp dword [eax + 0xa8], esi
je 0x44a8e7
mov ebx, 0x8000ffff
jmp 0x44a8e9
xor ebx, ebx
or dword [esp + 0x60], 0xffffffff
push edi
call fcn.00440b7a
mov eax, ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00410fce
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
push dword [0x47e798]
push esi
call fcn.0043e92e
add esp, 0xc
push dword [0x47e784]
lea eax, [esp + 0x1c]
call fcn.00404b4a
xor eax, eax
push eax
push dword [ebp + 8]
mov byte [esp + 0x68], 1
push dword [edi + 0x18]
call fcn.00440915
test eax, eax
setne al
test al, al
je 0x44a982
mov eax, dword [str.NYOUFY_]
push eax
mov esi, eax
call fcn.004131b0
pop ecx
mov ecx, esi
lea esi, [esp + 0x18]
call fcn.00404ae1
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
test al, al
jne 0x44aa3e
call fcn.0043f1f9
call dword [eax + 0x4c]
test eax, eax
jle 0x44a998
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebx + 8]
mov dword [ecx + 0x15c], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
add eax, 0x98
push eax
mov ecx, 0xfde9
lea edx, [esp + 0x38]
call fcn.0044d635
pop ecx
mov byte [esp + 0x60], 2
cmp dword [eax + 0x14], 0x10
jb 0x44a9ca
mov eax, dword [eax]
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [esp + 0x18]
jae 0x44a9d9
lea ecx, [esp + 0x18]
push eax
push dword [ebp + 8]
mov eax, dword [ebx + 8]
push dword [eax + 0x15c]
mov eax, dword [ebx]
push ecx
push dword [0x47e7a0]
mov ecx, ebx
call dword [eax + 8]
mov eax, dword [eax + 0xb8]
or eax, 1
push eax
call fcn.0043e92e
add esp, 0x18
push 1
xor edi, edi
lea esi, [esp + 0x38]
mov byte [esp + 0x64], 1
call fcn.0040508f
mov edi, ebx
call fcn.004486a4
mov eax, dword [ebx + 8]
mov ebx, dword [eax + 0x15c]
push 1
xor edi, edi
lea esi, [esp + 0x1c]
call fcn.0040508f
mov edi, dword [esp + 0x14]
jmp 0x44a8e9
push 1
xor edi, edi
lea esi, [esp + 0x1c]
call fcn.0040508f
xor ebx, ebx
jmp 0x44aa35
Function at 0x53a370
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 0x53a38e
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 0x563074
push ecx
mov edi, eax
call fcn.0054e198
mov esi, eax
add esp, 8
test esi, esi
jne 0x53a3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0054e02e
push esi
call fcn.0054dfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x53d850
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 0x53d8ae
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 0x568720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x53d8ba
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.0054e1e1
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 0x53d8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x568720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x53d92a
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.0054f082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x53d957
mov word [eax], si
add eax, 2
push eax
call fcn.0054f030
add esp, 4
jmp 0x53d959
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 0x53d8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x53d8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x53e0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x563458
push ecx
call fcn.0054e1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0054e1e1
add esp, 0x10
jmp 0x53e0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0054e20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0054ddff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0053e050
mov eax, dword [0x568728]
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 0x53e13b
push esi
call fcn.0053dfb0
add esp, 4
mov dword [0x568728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x53e14c
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.0053dff0
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 0x541440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5414b7
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 0x54148e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x541471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x54147e
add edx, ecx
cmp ebx, edx
jb 0x54148a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x541467
xor ecx, ecx
jmp 0x5414a2
test eax, eax
jne 0x541492
xor ecx, ecx
jmp 0x5414a2
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.005413c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5418f0
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 0x541921
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 0x541946
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 0x54196e
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 0x541993
push ecx
push esi
call fcn.005414c0
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 0x542c00
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 0x542c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x542c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x542c38
add edx, eax
cmp ebx, edx
jb 0x542c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x542c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x542c50
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 0x542c70
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 0x542cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x542c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x542ca8
add edx, ecx
cmp ebx, edx
jb 0x542cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x542c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x542f60
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.0054f145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x542ffb
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 0x542fdd
lea eax, [esp + 0x18]
push eax
jmp 0x542fe2
push 0x568720
call fcn.0054efd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x542fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x542f40
push 4
push ecx
push eax
call fcn.0054f43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x543310
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.0054f145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5433ab
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 0x54338d
lea eax, [esp + 0x18]
push eax
jmp 0x543392
push 0x568720
call fcn.0054efd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x543360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x542f40
push 4
push ecx
push eax
call fcn.0054f43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x544f20
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 0x544fd7
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 0x544fcf
push ebx
push edi
push 0x568770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x544fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x568770
push esi
call ebx
test eax, eax
je 0x544fae
mov ebp, 3
cmp dword [0x568774], ebp
jne 0x544faa
push 0x3e8
call edi
push 0x568770
push esi
call ebx
test eax, eax
jne 0x544f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x544fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x544fbb
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 0x548e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x55e8f0
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 0x548ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.005457a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x548e61
mov edx, dword [eax]
jmp 0x548e63
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.00547050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x548ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x548ebf
cmp esi, edi
je 0x548ebf
mov ecx, esi
call fcn.00540a00
push esi
call fcn.0054e1c8
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.00545990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x548ef5
mov eax, dword [eax]
jmp 0x548ef7
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.00544640
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 0x548f25
mov eax, dword [eax]
jmp 0x548f27
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 0x548f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x548f76
cmp esi, edi
je 0x548f76
mov eax, dword [esi]
cmp eax, edi
je 0x548f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x548f6d
push eax
call fcn.0054e1c8
add esp, 4
push esi
call fcn.0054e1c8
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