joyce8/EMBER2024-capa huggingface dataset:
Function at 0x15059a7
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret

Function at 0x1508003
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
test eax, eax
je 0x150801c
xor eax, eax
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x150808b
push ebx
push 0x1512e88
call dword [sym.imp.Kernel32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x150808a
push esi
push 0x1512e68
push ebx
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1508089
call fcn.01507e20
cmp eax, 0xffffffff
je 0x1508089
push eax
push 1
push 1
call esi
mov esi, eax
test esi, esi
jne 0x1508074
push 0x1512e5c
push ebx
call dword [sym.imp.Kernel32.dll_GetProcAddress]
test eax, eax
je 0x1508089
push esi
call eax
push 0x1512e48
push ebx
call dword [sym.imp.Kernel32.dll_GetProcAddress]
test eax, eax
je 0x1508089
push 0
push esi
call eax
pop esi
pop ebx
leave
ret

Function at 0x1509b21
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ebp, esp
push ebx
push ebx
push ecx
push 0x1509b5d
push dword fs:[0]
mov dword fs:[0], esp
mov ebx, 0
mov eax, 1
invalid

Function at 0x1509baa
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
and dword [ebp - 0xc], 0
push 0x1512e88
call dword [sym.imp.Kernel32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1509bcb
jmp 0x1509c40
push 0x1512e5c
push dword [ebp - 4]
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1509be4
jmp 0x1509c40
push ebx
push ecx
push edx
push 0x1509c28
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
pop dword fs:[0]
add esp, 4
cmp ebx, 0x564d5868
sete byte [ebp - 0xc]
pop edx
pop ecx
pop ebx
jmp 0x1509c35
cmp dword [ebp - 0xc], 1
jne 0x1509c40
push 0
call dword [ebp - 8]
pop ebx
leave
ret

Function at 0x1509fe3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x150a000
shr eax, 1
xor eax, 0xedb88320
jmp 0x150a002
shr eax, 1
dec edx
test edx, edx
jg 0x1509ff3
mov dword [ebp + ecx*4 - 0x400], eax
inc ecx
cmp ecx, 0x100
jl 0x1509fee
or eax, 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x150a042
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
dec dword [ebp + 0xc]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [ebp + edx*4 - 0x400]
inc ecx
cmp dword [ebp + 0xc], 0
jne 0x150a023
not eax
leave
ret
Function at 0x150a21a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push edi
push 0x1512e88
call dword [sym.imp.Kernel32.dll_LoadLibraryA]
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x150a362
push 0x1513404
push ebx
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x150a362
push 0x15133f8
push ebx
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x150a362
push 0x15133ec
push ebx
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x150a362
push 0x15133e0
push ebx
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x150a362
push 0x1512f50
push ebx
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x150a362
push 0x1512e5c
push ebx
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x150a362
push esi
push 0x15133d4
push ebx
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x150a361
call fcn.01509f98
push 0x104
lea ecx, [ebp - 0x120]
push ecx
push eax
call dword [ebp - 4]
test eax, eax
je 0x150a361
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
lea eax, [ebp - 0x120]
push eax
call dword [ebp - 0x14]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x150a361
push edi
push ebx
call dword [ebp - 0x18]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x150a361
push eax
push edi
call esi
mov esi, eax
cmp esi, edi
je 0x150a361
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
push esi
push ebx
call dword [ebp - 8]
push ebx
call dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push dword [ebp - 4]
add eax, esi
mov ebx, dword [eax]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
push esi
mov dword [esi + eax], edi
call fcn.01509fe3
pop ecx
pop ecx
cmp eax, ebx
je 0x150a361
push edi
call dword [ebp - 0x10]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x150a561
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
push 0x1512e88
call dword [sym.imp.Kernel32.dll_LoadLibraryA]
mov esi, eax
push 0x1513454
push esi
call dword [sym.imp.Kernel32.dll_GetProcAddress]
push 0x1512e08
push esi
mov edi, eax
call dword [sym.imp.Kernel32.dll_GetProcAddress]
push 0x1513440
push esi
mov ebx, eax
call dword [sym.imp.Kernel32.dll_GetProcAddress]
push 0x1513430
push esi
call dword [sym.imp.Kernel32.dll_GetProcAddress]
push 0x1512f50
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.015077f9
push eax
xor esi, esi
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.0150771d
add esp, 0x10
call ebx
push eax
lea eax, [ebp - 0x6c]
push 0x1513420
push eax
call fcn.01507a38
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push esi
push esi
call edi
push dword [ebp + 8]
mov esi, eax
call fcn.01502221
push esi
call dword [ebp - 4]
push esi
call dword [ebp - 8]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x150a60c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
jne 0x150a627
xor eax, eax
jmp 0x150a7b6
push ebx
push edi
push 0x10
call fcn.015076e0
mov edi, dword [ebp + 8]
mov ebx, eax
push edi
mov dword [ebp - 4], ebx
call fcn.0150a3e0
pop ecx
pop ecx
test eax, eax
jne 0x150a6a5
mov eax, dword [0x150ef28]
inc eax
push eax
call fcn.015076e0
push dword [0x150ef28]
mov edi, eax
push 0x150ef2c
push edi
call fcn.015076f8
mov eax, dword [0x150f32c]
inc eax
push eax
call fcn.015076e0
push dword [0x150f32c]
mov ebx, eax
push 0x150f330
push ebx
call fcn.015076f8
push esi
push ebx
push edi
push esi
push esi
call fcn.0150e6a3
push dword [ebp - 4]
call fcn.015076ed
push edi
call fcn.015076ed
push ebx
call fcn.015076ed
add esp, 0x40
jmp 0x150a710
mov al, byte [0x1513b1c]
test al, 2
je 0x150a72b
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push 1
push edi
mov dword [ebp - 4], 0x1513b28
call fcn.01502263
cmp eax, 1
je 0x150a717
push edi
call fcn.01502221
mov eax, dword [0x150fb34]
inc eax
push eax
call fcn.015076e0
push dword [0x150fb34]
mov edi, eax
push 0x150fb38
push edi
call fcn.015076f8
push esi
push edi
push 0x1513418
push esi
push esi
call fcn.0150e6a3
push edi
call fcn.015076ed
push ebx
call fcn.015076ed
add esp, 0x2c
xor eax, eax
jmp 0x150a7b4
xor eax, eax
mov ecx, dword [ebp - 4]
mov dl, byte [ebp + eax - 0x18]
cmp dl, byte [ecx + eax]
jne 0x150a6d4
inc eax
cmp eax, 8
jl 0x150a719
mov al, byte [0x1513b1c]
test al, 1
je 0x150a77b
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x12
push edi
call fcn.01502263
cmp eax, 1
je 0x150a75c
push edi
call fcn.01502221
push ebx
call fcn.015076ed
pop ecx
jmp 0x150a710
mov dword [ebp - 4], 0x1513b20
xor eax, eax
mov ecx, dword [ebp - 4]
mov dl, byte [ebp + eax - 0x10]
cmp dl, byte [ecx + eax]
jne 0x150a6d4
inc eax
cmp eax, 8
jl 0x150a765
mov edi, 0x1513b38
sub edi, ebx
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov al, byte [ebp + eax - 0x10]
lea ecx, [esi + ebx]
xor al, byte [edi + ecx]
inc esi
cmp esi, 0xf
mov byte [ecx], al
jle 0x150a782
push dword [ebp + 0xc]
call fcn.0150a561
push 0x10
push ebx
push dword [ebp + 0xc]
call fcn.015076f8
xor eax, eax
add esp, 0x10
inc eax
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x8502650
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6c284fee
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x575180
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11f000]
push edi
jmp 0x57519a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5751a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x575190
mov eax, 1
add ebx, ebx
jne 0x5751b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5751c4
jne 0x5751e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5751e3
dec eax
add ebx, ebx
jne 0x5751d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5751a8
add ebx, ebx
jne 0x5751df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x575235
xor ecx, ecx
sub eax, 3
jb 0x5751fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57526a
sar eax, 1
mov ebp, eax
jmp 0x575206
add ebx, ebx
jne 0x575206
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5751d4
inc ecx
add ebx, ebx
jne 0x575214
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5751d4
add ebx, ebx
jne 0x575221
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x575216
jne 0x575232
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x575216
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x575254
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x575246
jmp 0x575196
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x575254
add edi, ecx
jmp 0x575196
pop esi
mov edi, esi
mov ecx, 0x404d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x575272
cmp byte [edi], 0x11
jne 0x575272
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 al, bl
loop 0x575277
lea edi, [esi + 0x16e000]
mov eax, dword [edi]
or eax, eax
je 0x5752ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x210740]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2108bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5752a4
mov ecx, edi
jns 0x5752d3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2108c0]
or eax, eax
je 0x5752e9
mov dword [ebx], eax
add ebx, 4
jmp 0x5752c1
call dword [esi + 0x2108d0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x575320
cmp al, 0xef
ja 0x575313
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5752f5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x575302
mov ebp, dword [esi + 0x2108c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x575354
sub esp, 0xffffff80
jmp 0x429ab7
Function at 0x6fb370
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 0x6fb38e
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 0x724074
push ecx
mov edi, eax
call fcn.0070f198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6fb3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0070f02e
push esi
call fcn.0070efb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x6fe850
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 0x6fe8ae
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 0x729720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6fe8ba
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.0070f1e1
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 0x6fe8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x729720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6fe92a
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.00710082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x6fe957
mov word [eax], si
add eax, 2
push eax
call fcn.00710030
add esp, 4
jmp 0x6fe959
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 0x6fe8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6fe8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6ff0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x724458
push ecx
call fcn.0070f1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0070f1e1
add esp, 0x10
jmp 0x6ff0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0070f20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0070edff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.006ff050
mov eax, dword [0x729728]
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 0x6ff13b
push esi
call fcn.006fefb0
add esp, 4
mov dword [0x729728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x6ff14c
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.006feff0
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 0x702440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x7024b7
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 0x70248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x702471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x70247e
add edx, ecx
cmp ebx, edx
jb 0x70248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x702467
xor ecx, ecx
jmp 0x7024a2
test eax, eax
jne 0x702492
xor ecx, ecx
jmp 0x7024a2
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.007023c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x7028f0
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 0x702921
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 0x702946
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 0x70296e
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 0x702993
push ecx
push esi
call fcn.007024c0
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 0x703c00
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 0x703c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x703c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x703c38
add edx, eax
cmp ebx, edx
jb 0x703c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x703c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x703c50
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 0x703c70
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 0x703cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x703c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x703ca8
add edx, ecx
cmp ebx, edx
jb 0x703cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x703c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x703f60
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.00710145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x703ffb
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 0x703fdd
lea eax, [esp + 0x18]
push eax
jmp 0x703fe2
push 0x729720
call fcn.0070ffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x703fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x703f40
push 4
push ecx
push eax
call fcn.0071043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x704310
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.00710145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x7043ab
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 0x70438d
lea eax, [esp + 0x18]
push eax
jmp 0x704392
push 0x729720
call fcn.0070ffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x704360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x703f40
push 4
push ecx
push eax
call fcn.0071043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x705f20
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 0x705fd7
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 0x705fcf
push ebx
push edi
push 0x729770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x705fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x729770
push esi
call ebx
test eax, eax
je 0x705fae
mov ebp, 3
cmp dword [0x729774], ebp
jne 0x705faa
push 0x3e8
call edi
push 0x729770
push esi
call ebx
test eax, eax
jne 0x705f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x705fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x705fbb
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