joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f0a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f098
mov eax, 1
add ebx, ebx
jne 0x40f0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f0b0
jne 0x40f0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0b0
xor ecx, ecx
sub eax, 3
jb 0x40f0e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f152
mov ebp, eax
add ebx, ebx
jne 0x40f0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f11c
inc ecx
add ebx, ebx
jne 0x40f108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0fd
jne 0x40f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f13c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f12d
jmp 0x40f09e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f13c
add edi, ecx
jmp 0x40f09e
pop esi
mov edi, esi
mov ecx, 0x265
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f15a
cmp byte [edi], 2
jne 0x40f15a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40f15f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f1ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f18c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf068]
or eax, eax
je 0x40f1c8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f1a9
call dword [esi + 0xf06c]
popal
jmp 0x40354a

Function at 0x40381c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x408008], 0x8088405
inc edx
mov dword [ebx + 0x408008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x401010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
mov dword [ebp - 0xc], eax
push edi
lea edi, [edx - 1]
test edx, edx
je 0x401077
mov edx, 1
lea ecx, [edi + eax]
sub edx, eax
mov dword [ebp - 4], ecx
push ebx
mov dword [ebp - 8], edx
push esi
lea eax, [edx + ecx]
mov esi, edi
xor edx, edx
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov bl, byte [edx + eax]
xor edx, edx
mov eax, edi
xor bl, byte [ecx]
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, edi
and ecx, 7
not bl
rol bl, cl
dec edi
mov ecx, dword [ebp - 4]
mov byte [ecx], bl
mov al, byte [edx + eax]
mov edx, dword [ebp - 8]
xor al, bl
mov byte [ecx], al
dec ecx
mov dword [ebp - 4], ecx
test esi, esi
jne 0x401035
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4e6efc
Capabilities:
Encode data using xor

Disassembly:
dec esi
movsd dword es:[edi], dword [esi]
stc
and eax, 0x7d2840fa
mov dh, 0x33
push es
dec edi
out dx, eax
sbb eax, 0x79d3c39d
call 0xb6f850e3
or ebp, dword [eax]
pushfd
and ebx, ebx
std
pop ss
stosd dword es:[edi], eax
loope 0x4e6e7e
mov esp, 0xef46f736
jle 0x4e6e80
sbb eax, 0x902e4b26
test dword [0xb3c85b16], eax
invalid
fcomp st(6)
leave
cmp al, al
mov dh, 0x18
shr byte [ebx], cl
xor eax, 0xf6a18233
mov eax, 0x8b39df2e
pop es
fisub word [ecx - 0xd793479]
pop ebx
xchg byte [edi - 0x63], bh
mov dword [0xc63bb7ea], eax
add eax, 0x4e07db14
sar byte [ecx - 0x3b], 0x6a
loope 0x4e6ed2
jo 0x4e6f65
push eax
retf
push ss
stosd dword es:[edi], eax
arpl bx, bx
pop ss
not esi
dec eax
xor eax, 0xc8800d33
sti
mov edx, 0x9727df53
jle 0x4e6e98
call 0xf8bb47d7
je 0x4e6f64
cmp al, 0x96
mov ch, 0x62
jno 0x4e6ec9
std
mov dl, 0xbe
cmp esi, esp
lds ebp, [edx - 0x304d246c]
outsb dx, byte [esi]
sbb eax, 0xf7568a5a
sub dword [edx + 0x25], ebx
mov dl, 0x79
inc edx
outsd dx, dword [esi]
inc esp
clc
idiv byte [ebx + 0x6a761026]
push es
jns 0x4e6f24
stosb byte es:[edi], al
xchg esp, eax
invalid
imul esi, edi, 0x5ba9ddcd
jp 0x4e6f6d
lahf
mov al, 0x7b
xchg edi, eax
cmp ebx, dword [edx + 0x424476a5]
fild dword [ebx + edi*4 + 0x71]
lodsd eax, dword [esi]
aas
dec esp
aaa
cld
push ss
mov dl, 0x48
xchg esi, eax
test eax, 0x235679b1
salc
push esi
and edx, esi
cmpsd dword [esi], dword es:[edi]
dec esi
cmp dword [ecx - 0xd], 0xffffffb3
wait
or ebp, dword [edx + 0x32907360]
lds edx, [eax + ebx*8]
cld
mov word [ebx], si
xchg ebp, eax
fstp dword [esp + esi*2 - 0x40]
push ss
sub dh, dl
cli
ret 0x78ab

Function at 0x57001c
Capabilities:
Encode data using xor

Disassembly:
mov esp, 0xc45aac8c
sub bh, ah
sub al, 0xf7
fdiv qword [edi - 0xe8ba5a0]
pushal
pop edx
je 0x570011
mov word [edx + ebx*2 + 0x2ce728c4], gs
neg esp
mov bh, 0x60
pushal
pushal
pop edx
je 0x570011
mov edi, 0x32ff09b8
add al, 0x90
xchg edi, eax
mov cl, 0xae
cmp al, 0x65
sbb al, 0x64
xchg esp, eax
bound ecx, qword [eax + 0x63]
inc eax
lcall 0x5268, 0x80dacc4d
jns 0x570012
xor ebp, dword [ebp - 0xb67cd5f]
lcall 0xb0bc, 0x975e94ea
stosb byte es:[edi], al
adc byte [ebx - 0x66], 0x8f
push ebp
out 0xb3, eax
out dx, eax
push es
xor bl, byte [eax - 0x6b15650c]
pop esi
xchg edi, eax
mov esp, 0x5380aab0
lcall 0x6ef, 0xb3e7558f
pop es
mov word [ecx + 0x672c814f], gs
clc
fnsave dword [eax - 0x40]
not dword [ecx + edx*4 - 0x3b2520b7]
pop esi
ror dword [esi + 0x10], 0x79
fiadd dword [ecx]
fild qword [edx - 0x4e7a1b49]
adc dl, ah
imul edx, dword [esi - 0x1e25ca37], 0xffffffb5
test dword [edx - 0x2bfa73e9], ecx
push cs
push edi
push eax
push edi
fimul dword [esi + 0x6654574b]
push esp
adc al, byte [esi - 0x75967e16]
fiadd dword [edx - 0x80d7bb8]
or eax, 0xbac2fa42
loopne 0x57003f
ret 0xc7a4
Function at 0x63d97f
Capabilities:
Encode data using xor

Disassembly:
dec esp
invalid
lodsb al, byte [esi]
sbb dh, byte [ebx]
jp 0x63d924
stc
neg byte ds:[ebp - 0x685be1e]
push edx
and cl, byte [ebx]
or eax, 0x1432fa25
mov ds, word [edx + eax + 0x797834df]
ror byte [edx + ecx*2 + 0x27], 0xc
pop esi
cmc
mov byte [0x88bc894a], al
ficom dword [eax - 0x171103b3]
xor bh, al
or ch, byte [eax]
loop 0x63da16
sub dword [eax], esi
retf 0x7690
or ch, byte [ebp + 0x7d1a6cb7]
or bh, byte [edi + esi + 0x5d]
cmp dword [edi + ebp*4 + 0x53458dac], 0xc
cli
pop ds
stosb byte es:[edi], al
and edx, dword es:[0xbd7b0c06]
packsswb mm3, qword [eax]
xlatb
sbb al, byte [eax - 0x66]
and esp, esp
jmp 0x63da8d
inc esp
mov edi, 0xbea344a
and al, 0x5b
sbb al, 0xf2
dec ebp
add ecx, esp
cli
inc ecx
rcr esp, 2
sbb dword [ebx - 0x378158e3], 0x5714ef0e
invalid
Function at 0x4011f0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
not esi
not eax
mov edi, 0x85
dec edi
sub esi, 0x87
not eax
bswap edx
not edx
rcr ebx, 0x72
inc eax
sub edi, 0xa1
inc edx
not eax
mov esi, 0x2d
bswap ebx
bswap esi
not esi
ror edx, 0x33
imul eax
sub ebx, 0x25
inc ebx
not ebx
rcr esi, 0x61
dec ebx
ror esi, 0xfa
not ebx
sub eax, 0x64
inc ebx
neg eax
add ebx, 0x99
rcl edi, 0xa5
imul eax
and edi, 0x66
not eax
and eax, 0xc0
neg edi
imul eax
rcr edx, 0xaf
inc esi
mov ebx, 0xf0
neg edx
ror edx, 0xb6
sub edx, 0x7e
dec ebx
inc ebx
ror eax, 0xd0
inc eax
rcr eax, 0xdb
rol eax, 0x8c
ror eax, 0x7f
xor ecx, ecx
xor edi, edi
neg edi
inc edx
inc edx
rol ebx, 0x67
bswap edx
neg eax
sbb ebx, 0x3b
mov esi, 0xe
bswap ebx
or edx, 0xf8
sbb esi, 0xb2
mov eax, 0xbc
and ebx, 0x9b
neg esi
sub ebx, 0x27
neg edi
neg edi
ror ebx, 0xdf
inc edx
sbb edx, 0xac
not ebx
ror eax, 0xb5
rcr ebx, 0x24
inc edi
ror ebx, 0xe7
not edi
imul edi
bswap eax
rcr esi, 0xee
sbb eax, 0x34
add edx, 0xd
sub eax, 0x86
not edx
or esi, 0x78
add eax, 0x23
imul edx
imul edi
imul ebx
bswap edx
sbb ebx, 0x11
add edi, 0x9e
bswap esi
mov eax, 0x46
neg ebx
sub edi, 0x73
neg eax
neg edx
neg esi
bswap esi
imul esi
mov ecx, dword [ebp + 0xc]
rcr ebx, 0x59
rol eax, 0xeb
add edx, 0xc
dec esi
neg eax
rcr edi, 0xd1
add ebx, 0x10
inc esi
inc ebx
and eax, 0x30
rcl edi, 0xd1
neg edi
rcl edi, 0x41
imul eax
and eax, 0xd5
neg eax
mov ebx, 0x64
not esi
add edi, 0xc0
sbb ebx, 0x70
bswap edi
sub edi, 0x3b
ror eax, 0x1c
rcl ebx, 0x28
bswap eax
inc ebx
or edx, 0xdc
bswap esi
rcl edi, 0xda
inc edi
inc edi
bswap edx
not edx
neg ebx
rcl ebx, 0x90
and edx, 0x66
sbb edx, 0x5d
dec ebx
and esi, 0x78
inc edx
ror ebx, 0x6a
not edx
rcl edx, 0xf1
sub eax, 0x3d
imul edx
not eax
rcl edi, 0x12
neg edi
bswap edi
mov ebx, 0x2e
mov edi, dword [ebp + 8]
mov eax, eax
xor esi, esi
xor ebx, ebx
not byte [edi]
xor esi, eax
mov eax, ebx
mov eax, esi
xor eax, esi
xor ebx, ebx
xor eax, ebx
xor ebx, ebx
mov esi, ebx
mov ebx, ebx
add byte [edi], 0x87
mov esi, ebx
xor ebx, ebx
xor esi, ebx
mov esi, esi
mov esi, ebx
xor ebx, eax
mov eax, ebx
mov esi, eax
mov esi, ebx
sub byte [edi], 0x54
mov eax, ebx
xor esi, ebx
mov eax, ebx
xor ebx, eax
mov eax, eax
mov ebx, ebx
mov eax, eax
mov eax, esi
xor esi, esi
imul byte [edi]
inc edi
loop 0x401397
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x67596d71
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xe373616
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x496370
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 0x49638e
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 0x4bf074
push ecx
mov edi, eax
call fcn.004aa198
mov esi, eax
add esp, 8
test esi, esi
jne 0x4963cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.004aa02e
push esi
call fcn.004a9fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x499850
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 0x4998ae
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 0x4c4720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x4998ba
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.004aa1e1
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 0x4998ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x4c4720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x49992a
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.004ab082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x499957
mov word [eax], si
add eax, 2
push eax
call fcn.004ab030
add esp, 4
jmp 0x499959
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 0x4998ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x4998b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x49a0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x4bf458
push ecx
call fcn.004aa1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.004aa1e1
add esp, 0x10
jmp 0x49a0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004aa20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.004a9dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0049a050
mov eax, dword [0x4c4728]
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 0x49a13b
push esi
call fcn.00499fb0
add esp, 4
mov dword [0x4c4728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x49a14c
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.00499ff0
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 0x49d440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x49d4b7
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 0x49d48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x49d471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x49d47e
add edx, ecx
cmp ebx, edx
jb 0x49d48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x49d467
xor ecx, ecx
jmp 0x49d4a2
test eax, eax
jne 0x49d492
xor ecx, ecx
jmp 0x49d4a2
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.0049d3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x49d8f0
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 0x49d921
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 0x49d946
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 0x49d96e
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 0x49d993
push ecx
push esi
call fcn.0049d4c0
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 0x49ec00
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 0x49ec4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x49ec2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x49ec38
add edx, eax
cmp ebx, edx
jb 0x49ec46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x49ec21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x49ec50
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 0x49ec70
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 0x49ecb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x49ec9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x49eca8
add edx, ecx
cmp ebx, edx
jb 0x49ecb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x49ec91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x49ef60
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.004ab145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x49effb
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 0x49efdd
lea eax, [esp + 0x18]
push eax
jmp 0x49efe2
push 0x4c4720
call fcn.004aafd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x49efb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x49ef40
push 4
push ecx
push eax
call fcn.004ab43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x49f310
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.004ab145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x49f3ab
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 0x49f38d
lea eax, [esp + 0x18]
push eax
jmp 0x49f392
push 0x4c4720
call fcn.004aafd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x49f360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x49ef40
push 4
push ecx
push eax
call fcn.004ab43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x4a0f20
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 0x4a0fd7
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 0x4a0fcf
push ebx
push edi
push 0x4c4770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x4a0fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x4c4770
push esi
call ebx
test eax, eax
je 0x4a0fae
mov ebp, 3
cmp dword [0x4c4774], ebp
jne 0x4a0faa
push 0x3e8
call edi
push 0x4c4770
push esi
call ebx
test eax, eax
jne 0x4a0f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x4a0fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x4a0fbb
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 0x4a4e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4ba8f0
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 0x4a4ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.004a17a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x4a4e61
mov edx, dword [eax]
jmp 0x4a4e63
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.004a3050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x4a4ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4a4ebf
cmp esi, edi
je 0x4a4ebf
mov ecx, esi
call fcn.0049ca00
push esi
call fcn.004aa1c8
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.004a1990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x4a4ef5
mov eax, dword [eax]
jmp 0x4a4ef7
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.004a0640
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 0x4a4f25
mov eax, dword [eax]
jmp 0x4a4f27
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 0x4a4f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4a4f76
cmp esi, edi
je 0x4a4f76
mov eax, dword [esi]
cmp eax, edi
je 0x4a4f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4a4f6d
push eax
call fcn.004aa1c8
add esp, 4
push esi
call fcn.004aa1c8
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