joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c6aac
Capabilities:
Encode data using xor

Disassembly:
lodsb al, byte [esi]
sar byte [0xd3a97ab6], 0x45
invalid
int3
std
sub eax, 0xe399d58b
loop 0x5c68ea
leave
mov esp, 0xcf6a33f5
jno 0x5c6999
add dword [0xc99631b5], edi
pop ebp
nop
inc edx
mov ebp, 0x5ef8349e
jmp 0x319cd703
call 0x321a6a33
jl 0x5c6944
push esi
mov dword [ebp - 0x42164837], edi
cmp byte [edx], cl
mov edi, ebp
fisubr dword gs:[ebp + edi*4 + 0x2e150df5]
adc esp, dword [ecx + 0x50]
out dx, eax
popal
mov eax, dword [0xcff17c22]
push ebx
jae 0x5c69ed
sub eax, 0x29c5e65f
cmc
out 0xc5, al
sub ebp, esi
std
inc ebp
jge 0x5c695b
pcmpeqd mm3, qword [eax]
xchg edi, eax
mov ah, 0x9a
pop ss
invalid
imul ebp
dec edi
invalid
insd dword es:[edi], dx
int1
popfd
stosb byte es:[edi], al
xchg bh, ch
and byte cs:[esi + esi*2 - 0x22], 0xc
loopne 0x5c6a1a
jne 0x5c6a70
mov byte [0xc36de83c], al
pop ds
cmp dword [ecx - 0x6c], edi
cmp al, byte [eax + 0xee7870f]
sal eax, 1
ljmp 0xb55f
lea ecx, [ebx + 0x41deb55f]
push cs
jo 0x5c69c2
test al, 0xa2
push ds
aas
push edi
dec edi
jl 0x5c6ab9
inc ebp
imul ebp, dword [esi + ebx*8 + 0x4d], 0xc4ad905e
and dword [ecx - 0xa0fc29f], ebp
sbb al, 0xec
mov ecx, 0x78164666
jne 0x5c6a5c
dec dword [ebx]
invalid
or edi, esi
jbe 0x5c6a0d
lds ecx, [esi]
pop edi
popal
retf 0x9f75
dec ebp
adc eax, eax
mov edi, 0xa97c8571
arpl word [esi + edx*2 - 0x58536574], si
lodsd eax, dword [esi]
sub eax, 0x1d7c2d46
iretd
jl 0x5c6a34
fmul qword [edx - 0x23]
push es
xor dl, byte [ebp + 0x4d]
invalid
daa
cmp dword [ebp - 0x39e68d0b], 0xae5dc742
inc ecx
lds edx, [esi + 0x18857881]
mov dh, 0x15
cwde
je 0x5c6b44
std
xor dword [ebp - 0x3b], eax
scasd eax, dword es:[edi]
adc byte gs:[ebp - 0x5bc1fa34], ah
sub dword es:[ecx + edx - 0x32], ebx
jo 0x5c6ad2
mov eax, 0x40980d15
fimul dword [esi + ebp*4 - 0x1d0a116a]
mov byte [0x14d29270], al
cmp eax, 0x8eeb6a26
jae 0x5c6b6c
xor eax, 0xd49a392e
dec ebx
dec ebp
inc esp
jge 0x5c6b42
xor ecx, dword [esi]
sbb cl, byte [esi + edx*4 + 0x2c]
nop
and al, byte [ebp + edx*8 + 0x35c1d265]
cmp al, 0xb7
out dx, al
sahf
popfd
cli
cmp al, 0x26
mov eax, dword [0xa62dc52c]
jmp 0x91bda1ad
aas
fld qword [0x18a5e300]
add eax, 0x18a5e300
xor byte [ebp + 0x35], cl
or dl, cl
lahf
push ebp
fcomp qword [edi + 0x54cc4a1d]
push ss
adc byte [esp + esi*2 - 0x74], bl
xor al, 0xa6
xor byte [0x9542d3ea], bh
retf 0x95cb
sub eax, 0xc5f22069
out 0x62, al
hlt
Function at 0x610f81
Capabilities:
Encode data using xor

Disassembly:
rcr ch, 1
rcr al, cl
xchg esp, eax
std
mov ah, 0x20
outsb dx, byte [esi]
and byte [eax + 0x40b28079], dl
in eax, dx
inc ebp
pop ecx
sub bh, byte [esi + ebx*4 - 0x75]
or dword [eax + 0x3f154003], esp
cmp eax, 0xb5832d67
add eax, ebp
push ds
sub esp, eax
adc dh, byte [ebx]
mov al, 0x41
mov al, 0x41
mov al, 0xb9
xor dword [esp + ecx*4 - 9], edx
mov ecx, 0xf78c5431
jns 0x61102f
add al, 0x5a
xor dword [eax*8 + 0x472c2af1], 0xcd9e88c8
leave
loopne 0x610fb0
cld
mov ebx, 0x12f99dff
pop ds
nop
jns 0x610feb
jno 0x610fa5
je 0x61103a
or ch, byte [ebx + 0xb]
pandn mm7, qword [esi - 0x395b5797]
jmp [ecx - 0x68]
pop ebx
mov dword [0x79e9a1d0], eax
xchg ebx, eax
rcl byte [0x404116b9]
pop esp
adc al, 0x9b
sbb ebp, dword [eax]
sub byte [ecx], bl
xor eax, 0x9f50e2db
xchg dword [ebp - 0x38], ebx
jnp 0x610fad
movsb byte es:[edi], byte [esi]
sub byte [ebx], 0x48
test eax, 0x5dd0d978
retf 0x78e8
push 0x55119034
aas
jo 0x611008
cmc
sbb ebx, eax
popal
or bh, byte [eax]
dec ebp
sbb dword [esp + ebx*2], edi
sbb byte [ecx - 0x2f], al
std
retf 0xfcbe

Function at 0x6174ed
Capabilities:
Encode data using xor

Disassembly:
test dword [edx], esp
xchg esp, eax
xchg esp, eax
aaa
sub byte [eax + 0x1c8acab5], ch
mov byte [0xd37476f7], al
test eax, 0xa1750a10
add eax, dword [eax - 0x393f68ad]
add esp, dword [ebp + ebp*4 - 0x50]
or byte [ecx + 2], bh
xchg ebp, eax
add byte [ecx - 0x3b61127c], dh
xor eax, 0x7cca24
je 0x61755a
sbb eax, 0xa350ec60
jl 0x617555
dec esp
mov ecx, 0x80bc81e9
ficomp word [edi + 0x11]
add byte [eax], ch
xchg ecx, eax
loop 0x617545
adc dword [eax], eax
sub byte [ecx - 0x5b54e81e], dl
stosd dword es:[edi], eax
movsb byte es:[edi], byte [esi]
push edx
dec eax
pop edx
das
jle 0x617537
dec eax
and esp, eax
pop ds
xor byte [edi + ebp*4 + 0x75], 0xd0
or al, 0x36
fcomp qword [eax + 0x3cf8bccc]
sti
clc
cmp al, 0xfb
mov ebx, 0x40f81ff9
wait
jns 0x61758e
mov al, byte [0xf780b152]
loop 0x6174e8
out dx, eax
or eax, 0x390a87c1
xor ah, dl
enter 0x4e59, 0xffffffffffffffd6
xchg dword [edx], ecx
cmp dword [edx], esi
loop 0x617528
pop ecx
dec esi
salc
sub byte [edi - 0x74], ah
sbb esp, ebx
stosb byte es:[edi], al
dec eax
int 0xca
inc ecx
invalid
push edi
invalid
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ed0
nop
mov ecx, 0x620f58ce
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x27cd4f3e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

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

Disassembly:
pushal
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xd321e1a
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x61d2777e
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40a006
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x40e220
call fcn.0040a8f2
push 1
call fcn.0040a300
pop ecx
test al, al
jne 0x409ebd
push 7
call fcn.0040a6b4
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040a2cb
mov byte [ebp - 0x24], al
mov eax, dword [0x41045c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x409eb6
test eax, eax
jne 0x409f27
mov dword [0x41045c], ecx
push 0x40c25c
push 0x40c244
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x409f0a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40a000
push 0x40c240
push 0x40c224
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x41045c], 2
jmp 0x409f2c
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040a46d
pop ecx
call fcn.0040a6a8
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x409f5c
push esi
call fcn.0040a3e3
pop ecx
test al, al
je 0x409f5c
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0040a8ec
call esi
call fcn.0040a6ae
mov esi, eax
cmp dword [esi], edi
je 0x409f7a
push esi
call fcn.0040a3e3
pop ecx
test al, al
je 0x409f7a
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.0040a7ca
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0040a7fd
test al, al
jne 0x409fa5
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x409fae
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040a48a
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40a000
call fcn.0040a937
ret
call fcn.00409d44
jmp 0x409e9e

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x494968f5
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0xff124a6
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x427f00
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.00427f8f
jae 0x427f0e
xor ecx, ecx
call fcn.00427f8f
jae 0x427f3d
xor eax, eax
call fcn.00427f8f
jae 0x427f4d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.00427f8f
adc al, al
jae 0x427f2f
jne 0x427f79
stosb byte es:[edi], al
jmp 0x427f11
call fcn.00427f9b
sub ecx, ebx
jne 0x427f56
call fcn.00427f99
jmp 0x427f75
lodsb al, byte [esi]
shr eax, 1
je 0x427f83
adc ecx, ecx
jmp 0x427f72
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00427f99
cmp eax, 0x7d00
jae 0x427f72
cmp ah, 5
jae 0x427f73
cmp eax, 0x7f
ja 0x427f74
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x427f11
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7210574c
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x105f42cf
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x854370
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 0x85438e
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 0x87d074
push ecx
mov edi, eax
call fcn.00868198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8543cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0086802e
push esi
call fcn.00867fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x857850
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 0x8578ae
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 0x882720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8578ba
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.008681e1
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 0x8578ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x882720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x85792a
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.00869082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x857957
mov word [eax], si
add eax, 2
push eax
call fcn.00869030
add esp, 4
jmp 0x857959
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 0x8578ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x8578b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x8580c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x87d458
push ecx
call fcn.008681e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.008681e1
add esp, 0x10
jmp 0x8580d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0086820b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00867dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00858050
mov eax, dword [0x882728]
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 0x85813b
push esi
call fcn.00857fb0
add esp, 4
mov dword [0x882728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x85814c
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.00857ff0
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 0x85b440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x85b4b7
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 0x85b48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x85b471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x85b47e
add edx, ecx
cmp ebx, edx
jb 0x85b48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x85b467
xor ecx, ecx
jmp 0x85b4a2
test eax, eax
jne 0x85b492
xor ecx, ecx
jmp 0x85b4a2
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.0085b3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x85b8f0
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 0x85b921
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 0x85b946
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 0x85b96e
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 0x85b993
push ecx
push esi
call fcn.0085b4c0
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 0x85cc00
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 0x85cc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x85cc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x85cc38
add edx, eax
cmp ebx, edx
jb 0x85cc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x85cc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x85cc50
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 0x85cc70
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 0x85ccb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x85cc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x85cca8
add edx, ecx
cmp ebx, edx
jb 0x85ccb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x85cc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x85cf60
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.00869145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x85cffb
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 0x85cfdd
lea eax, [esp + 0x18]
push eax
jmp 0x85cfe2
push 0x882720
call fcn.00868fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x85cfb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x85cf40
push 4
push ecx
push eax
call fcn.0086943f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x85d310
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.00869145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x85d3ab
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 0x85d38d
lea eax, [esp + 0x18]
push eax
jmp 0x85d392
push 0x882720
call fcn.00868fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x85d360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x85cf40
push 4
push ecx
push eax
call fcn.0086943f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x85ef20
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 0x85efd7
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 0x85efcf
push ebx
push edi
push 0x882770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x85efae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x882770
push esi
call ebx
test eax, eax
je 0x85efae
mov ebp, 3
cmp dword [0x882774], ebp
jne 0x85efaa
push 0x3e8
call edi
push 0x882770
push esi
call ebx
test eax, eax
jne 0x85ef8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x85efc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x85efbb
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