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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x269d000]
push edi
or ebp, 0xffffffff
jmp 0x2acf302
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x2acf309
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x2acf2f8
mov eax, 1
add ebx, ebx
jne 0x2acf31b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x2acf32c
jne 0x2acf34b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x2acf34b
dec eax
add ebx, ebx
jne 0x2acf338
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x2acf310
add ebx, ebx
jne 0x2acf347
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x2acf39d
xor ecx, ecx
sub eax, 3
jb 0x2acf363
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x2acf3d2
sar eax, 1
mov ebp, eax
jmp 0x2acf36e
add ebx, ebx
jne 0x2acf36e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x2acf33c
inc ecx
add ebx, ebx
jne 0x2acf37c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x2acf33c
add ebx, ebx
jne 0x2acf389
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x2acf37e
jne 0x2acf39a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x2acf37e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x2acf3bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x2acf3ae
jmp 0x2acf2fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x2acf3bc
add edi, ecx
jmp 0x2acf2fe
pop esi
mov edi, esi
mov ecx, 0x524
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x2acf3da
cmp byte [edi], 0x2e
jne 0x2acf3da
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 0x2acf3df
lea edi, [esi + 0x26cd000]
mov eax, dword [edi]
or eax, eax
je 0x2acf44e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x26f1160]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x26f11d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x2acf40c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x26f11dc]
or eax, eax
je 0x2acf448
mov dword [ebx], eax
add ebx, 4
jmp 0x2acf429
call dword [esi + 0x26f11d8]
mov ebp, dword [esi + 0x26f11e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x2acf482
sub esp, 0xffffff80
jmp 0x4052c8
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x9662e92
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
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
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x2e5d1e4e
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x40137c
Capabilities:
Encode data using xor

Disassembly:
push 0x40b610
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx], ah
sti
mov dl, 0xac
or eax, 0x88439265
jns 0x4013f4
push esp
pop eax
jmp 0x40140f
add byte [eax], al
add byte [eax], al
dec esp
xor dword [eax], eax
adc al, dl
add byte [edx - 0x5d70f7ad], bl
inc ebx
mov edi, 0xa5f34b04
je 0x40142d
cmp byte [edx + 0x33], dh
lahf
outsb dx, byte [esi]
popfd
out dx, eax
into
dec ecx
mov bh, 0x3f
int 0x4d
adc dword [edi + 0x41], esi
ljmp 0x6699
xor ebx, dword [ecx - 0x48ee309a]
or al, 0
stosb byte es:[edi], al
add byte [eax - 0x2d], ah
xchg ebx, eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
loopne 0x4013c8
add byte [eax], al
leave
popfd
add byte [eax], al
add byte [0x32317a00], al
imul eax, dword [bx + si], 0x12010d
dec ebp
outsd dx, dword [esi]
outsb dx, byte [esi]
jns 0x401460
inc ecx
je 0x4014b7
jb 0x4014a6
arpl word [edi + ebp*2 + 0x72], si
and byte [esi + 0x34], dl
add byte [ecx], bl
add dword [eax], eax
inc edx
add byte [ecx], ah
lodsd eax, dword [esi]
xchg esp, eax
add byte [eax], al
insb byte es:[edi], dx
je 0x40145a
add byte [ebp - 0xffff6c], ah
fdivr st(7)
loopne 0x401464
adc byte [edx + 0x46], cl
dec ecx
inc esi
add byte [ecx], al
add dword [ecx], eax
add byte [eax], cl
dec eax
add byte [eax], al
invalid
sbb byte [edx], bl
sbb eax, 0x1f1f1f1d
adc edx, dword [edi]
and ah, byte [edx]
push ds
and al, 0x1c
push ds
pop ds
push ds
invalid

Function at 0x438ca6
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
and eax, eax
mov ebx, ebx
add eax, ebx
call fcn.00438cd7
dec ebx
xor dword [esi], ecx
push 0xc1705267
pop eax
inc eax
inc esi
mov ebx, ebx
and eax, ebx
cmp esi, edx
jne fcn.00438ca6
inc eax
ret
Function at 0x68c01e60
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
movzx esi, word [eax + 0x264]
mov edi, dword [eax + 0x468]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x258]
test eax, eax
jne 0x68c01f31
test byte [ebx + 0x1a], 1
jne 0x68c01f40
mov dword [ebx + 0x258], 1
mov edx, dword [ebx + 0x450]
mov dword [ebx + 0x454], 0
lea eax, [ebx + 0x454]
mov dword [ebx + 0x458], 0
mov dword [ebx + 0x45c], 0
mov dword [ebx + 0x460], 0
mov dword [ebx + 0x464], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x68c01f20
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x3e5
je 0x68c01f20
add esp, 0x30
mov eax, ebx
mov edx, 1
pop ebx
pop esi
pop edi
jmp fcn.68c01dc0
mov eax, dword [0x68c0b008]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
sub esp, 4
add esp, 0x30
pop ebx
pop esi
pop edi
ret
lea edx, [esp + 0x2c]
mov eax, ebx
call fcn.68c01ae0
jmp 0x68c01e94
Function at 0x68c040b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
imul eax, eax, 0x508
sub esp, 0x2c
movzx ebp, word [eax + 0x68c060d0]
movzx edi, word [eax + 0x68c060dc]
xor eax, eax
mov ecx, ebp
xor ecx, edi
movzx ecx, cx
lea esi, [esi]
nop
mov edx, dword [eax*8 + 0x68c09ba0]
test edx, ecx
jne 0x68c041b0
add eax, 1
cmp eax, 0xe
jne 0x68c040e0
imul edi, ebx, 0x508
lea eax, [edi + 0x68c060a0]
movzx edx, byte [eax + 0x32]
cmp dl, 0x1e
mov byte [esp + 0x1f], dl
seta cl
cmp byte [eax + 0x3e], 0x1e
mov ebp, ecx
mov edx, ebp
seta cl
cmp dl, cl
je 0x68c04168
movzx edx, byte [esp + 0x1f]
xor ecx, ecx
mov byte [esi + 6], bl
mov dword [esi], 0x5806
mov byte [esi + 7], 0
cmp dl, 0x1f
setb cl
xor ebx, ebx
add ecx, 1
mov word [esi + 4], cx
mov byte [eax + 0x3e], dl
add edi, 0x68c060a0
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, ebx
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx edx, byte [eax + 0x33]
cmp dl, 0x1e
mov byte [esp + 0x1f], dl
seta cl
cmp byte [eax + 0x3f], 0x1e
mov ebp, ecx
mov edx, ebp
seta cl
cmp dl, cl
je 0x68c04200
movzx edx, byte [esp + 0x1f]
xor ecx, ecx
mov dword [esi], 0x5807
mov byte [esi + 6], bl
mov byte [esi + 7], 0
cmp dl, 0x1f
setb cl
add ecx, 1
mov word [esi + 4], cx
mov byte [eax + 0x3f], dl
xor ebx, ebx
jmp 0x68c04146
movzx eax, word [eax*8 + 0x68c09ba4]
test ebp, edx
je 0x68c041f0
or edx, edi
mov ecx, 1
imul edi, ebx, 0x508
mov word [esi], ax
xor eax, eax
mov word [esi + 2], ax
mov word [esi + 4], cx
mov word [edi + 0x68c060dc], dx
mov byte [esi + 6], bl
xor ebx, ebx
mov byte [esi + 7], 0
jmp 0x68c04146
not edx
mov ecx, 2
and edx, edi
jmp 0x68c041c3
lea eax, [edi + 0x68c060e2]
mov dword [esp + 0xc], 0x5820
mov edx, esi
mov dword [esp + 8], eax
lea eax, [edi + 0x68c060e0]
mov dword [esp + 4], eax
lea eax, [edi + 0x68c060d6]
mov dword [esp], eax
lea ecx, [edi + 0x68c060d4]
mov eax, ebx
call fcn.68c03e90
test eax, eax
je 0x68c041a9
lea eax, [edi + 0x68c060e6]
mov dword [esp + 0xc], 0x5830
mov edx, esi
mov dword [esp + 8], eax
lea eax, [edi + 0x68c060e4]
mov dword [esp + 4], eax
lea eax, [edi + 0x68c060da]
mov dword [esp], eax
lea ecx, [edi + 0x68c060d8]
mov eax, ebx
call fcn.68c03e90
mov ebx, eax
jmp 0x68c04146

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x40896c
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
dec edi
call fcn.00408996
xor dword [ecx], ebx
add edx, edx
add edi, 0x3940f71e
add ecx, 1
sub edi, edi
or edi, edx
cmp ecx, eax
jne fcn.0040896c
sub edx, edx
ret
Function at 0x747370
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 0x74738e
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 0x770074
push ecx
mov edi, eax
call fcn.0075b198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7473cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0075b02e
push esi
call fcn.0075afb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x74a850
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 0x74a8ae
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 0x775720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x74a8ba
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.0075b1e1
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 0x74a8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x775720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x74a92a
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.0075c082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x74a957
mov word [eax], si
add eax, 2
push eax
call fcn.0075c030
add esp, 4
jmp 0x74a959
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 0x74a8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x74a8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x74b0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x770458
push ecx
call fcn.0075b1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0075b1e1
add esp, 0x10
jmp 0x74b0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0075b20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0075adff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0074b050
mov eax, dword [0x775728]
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 0x74b13b
push esi
call fcn.0074afb0
add esp, 4
mov dword [0x775728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x74b14c
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.0074aff0
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 0x74e440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x74e4b7
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 0x74e48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x74e471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x74e47e
add edx, ecx
cmp ebx, edx
jb 0x74e48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x74e467
xor ecx, ecx
jmp 0x74e4a2
test eax, eax
jne 0x74e492
xor ecx, ecx
jmp 0x74e4a2
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.0074e3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x74e8f0
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 0x74e921
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 0x74e946
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 0x74e96e
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 0x74e993
push ecx
push esi
call fcn.0074e4c0
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 0x74fc00
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 0x74fc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x74fc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x74fc38
add edx, eax
cmp ebx, edx
jb 0x74fc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x74fc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x74fc50
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 0x74fc70
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 0x74fcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x74fc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x74fca8
add edx, ecx
cmp ebx, edx
jb 0x74fcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x74fc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x74ff60
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.0075c145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x74fffb
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 0x74ffdd
lea eax, [esp + 0x18]
push eax
jmp 0x74ffe2
push 0x775720
call fcn.0075bfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x74ffb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x74ff40
push 4
push ecx
push eax
call fcn.0075c43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x750310
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.0075c145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x7503ab
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 0x75038d
lea eax, [esp + 0x18]
push eax
jmp 0x750392
push 0x775720
call fcn.0075bfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x750360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x74ff40
push 4
push ecx
push eax
call fcn.0075c43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x751f20
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 0x751fd7
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 0x751fcf
push ebx
push edi
push 0x775770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x751fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x775770
push esi
call ebx
test eax, eax
je 0x751fae
mov ebp, 3
cmp dword [0x775774], ebp
jne 0x751faa
push 0x3e8
call edi
push 0x775770
push esi
call ebx
test eax, eax
jne 0x751f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x751fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x751fbb
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