joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ec43
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov ebx, 0x20006
push eax
push ebx
xor edi, edi
push edi
push 0x40b798
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, 0x40377c
test eax, eax
jne 0x43ec88
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x40b800
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43ecb5
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x40b870
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43ece2
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43ece9
Capabilities:
Enumerate devices by category

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [0x443490]
cmp eax, 0x443490
je 0x43ed29
test byte [eax + 0x44], 2
je 0x43ed29
cmp byte [eax + 0x41], 7
jb 0x43ed29
push dword [eax + 0x3c]
mov edx, 0x40b8e8
push dword [eax + 0x38]
push 0xa
pop ecx
call fcn.0043bf01
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push 0x401510
push 1
push ebx
push 0x40b938
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x43edc4
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ebx
push ecx
mov dword [ebp - 8], ebx
mov esi, dword [eax]
push 0x40b928
push eax
mov ecx, dword [esi + 0xc]
call dword [0x446624]
call dword [esi + 0xc]
mov edi, eax
test edi, edi
js 0x43edad
cmp edi, 1
jne 0x43ed7c
mov edi, 0x80004005
jmp 0x43edad
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x446624]
call esi
mov edi, eax
test edi, edi
js 0x43edad
mov ecx, dword [ebp - 8]
call fcn.0043ef0d
mov edi, eax
test edi, edi
js 0x43eda8
cmp edi, 1
jne 0x43edad
mov edi, 0x80004002
mov eax, dword [ebp - 8]
test eax, eax
je 0x43edc4
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x446624]
call esi
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x43eddb
mov edx, dword [ecx]
push ecx
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x446624]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x440606
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
call fcn.00440156
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x44062e
mov eax, dword [0x443a98]
mov esi, dword [eax + 8]
test esi, esi
jne 0x44062e
mov eax, 0x80070057
jmp 0x4406a4
push edi
mov edi, dword [ebp + 8]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x440655
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x44066d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x440669
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x4406a3
jmp 0x44067a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
jne 0x440681
mov eax, 0x8000ffff
jmp 0x4406a3
and edi, 0xf
je 0x440694
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
lea ecx, [ecx + 2]
sub edi, 1
jne 0x440686
movzx eax, word [ecx]
push eax
lea eax, [ecx + 2]
mov ecx, ebx
push eax
call fcn.0043feb3
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x440a3b
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x445004], 0
jne 0x440ade
push esi
mov esi, 0x445648
xor eax, eax
push esi
push 0x200
push eax
push 0x40b9d0
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x440ad6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4043e0
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x440ad6
mov ecx, dword [ebp - 4]
push 0xc
mov ax, word [ecx + 0xa]
mov word [0x443568], ax
mov si, word [ecx + 8]
mov word [0x44356a], si
mov dx, word [ecx + 0xe]
mov word [0x44356c], dx
mov ax, word [ecx + 0xc]
pop ecx
mov word [0x44356e], ax
mov word [0x443560], cx
mov word [0x443562], si
mov word [0x443564], dx
mov word [0x443566], ax
mov byte [0x445004], 1
pop esi
mov eax, 0x443560
mov esp, ebp
pop ebp
ret

Function at 0x440f9b
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
lea eax, [ebx + edx]
cmp eax, ebx
sbb esi, esi
not esi
and esi, edx
jbe 0x440fea
movzx eax, byte [ebx]
push 0x100
cdq
xor edx, dword [edi + 4]
xor eax, dword [edi]
push 0x1b3
push edx
push eax
call fcn.00442340
mov ecx, dword [ebp - 4]
inc ebx
inc ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [ebp - 4], ecx
cmp ecx, esi
jb 0x440fbd
jmp 0x440fef
mov eax, dword [edi]
mov edx, dword [edi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x441960
Capabilities:
Terminate process

Disassembly:
call fcn.00442033
jmp 0x44196a
push 0x5c
push 0x4426e0
call fcn.004420ec
xor ebx, ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x445850
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4419bc
cmp eax, esi
jne 0x4419af
xor esi, esi
inc esi
mov edi, esi
jmp 0x4419bf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x441993
xor esi, esi
inc esi
cmp dword [0x445854], esi
jne 0x4419d1
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x441a0b
cmp dword [0x445854], ebx
jne 0x441a05
mov dword [0x445854], esi
push 0x4012cc
push 0x4012c0
call fcn.00441b3f
pop ecx
pop ecx
test eax, eax
je 0x441a0b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x441b39
mov dword [0x443684], esi
cmp dword [0x445854], esi
jne 0x441a2e
push 0x4012bc
push 0x401278
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x445854], 2
test edi, edi
jne 0x441a3b
xor eax, eax
mov ecx, 0x445850
xchg dword [ecx], eax
cmp dword [0x445858], 0
je 0x441a67
push 0x445858
call fcn.00441f40
pop ecx
test eax, eax
je 0x441a67
push ebx
push 2
push ebx
mov esi, dword [0x445858]
mov ecx, esi
call dword [0x446624]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x441ac5
test cl, cl
je 0x441a94
test edi, edi
jne 0x441ac5
test cl, cl
je 0x441a94
cmp cl, 0x20
ja 0x441a94
inc esi
mov dword [ebp - 0x20], esi
mov cl, byte [esi]
jmp 0x441a83
test byte [ebp - 0x40], 1
je 0x441aa0
movzx eax, word [ebp - 0x3c]
jmp 0x441aa3
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x443680], eax
cmp dword [0x443698], 0
jne 0x441b1e
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x441ad6
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x441ae9
inc esi
mov dword [ebp - 0x20], esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x441a74
cmp dword [0x443684], 0
jne 0x441b32
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x443680]
mov dword [ebp - 4], 0xfffffffe
call fcn.00442134
ret

Function at 0x441e44
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x442700
call fcn.004421fc
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x441ea4
cmp eax, 0xffffffff
je 0x441ea4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x441e9d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x441e9d
cmp edx, 0x10000000
jae 0x441e9d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x441e9a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00442241
ret 4
Function at 0x441ef0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x441f2e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x441f26
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x441f30
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x441f16
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x442000
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x442016
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x442031
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x4012a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [0x40d10c]
mov esi, eax
cmp esi, 0xffffffff
je 0x4012dc
push 0
push esi
call dword [0x40d104]
cmp eax, 0x1000
ja 0x4012e3
push esi
call dword [0x40d0b8]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0x1000
mov dword [ebp - 4], 0
call fcn.00403b93
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
push 0x1000
mov edi, eax
push edi
push esi
call dword [0x40d0e4]
test eax, eax
je 0x401365
cmp dword [ebp - 4], 0x1000
jne 0x401365
push esi
call dword [0x40d0b8]
mov edx, 0x5a4d
cmp dx, word [edi]
jne 0x401375
mov eax, dword [edi + 0x3c]
test eax, eax
js 0x401375
cmp eax, 0xf08
ja 0x401375
cmp dword [eax + edi], 0x4550
jne 0x401375
movzx esi, word [eax + edi + 0x5e]
shr esi, 6
not esi
push edi
mov ecx, 0x8664
and esi, 1
call fcn.004037c8
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.004037c8
add esp, 4
push esi
call dword [0x40d0b8]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403364
Capabilities:
Encode data using xor

Disassembly:
push 0x403c44
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 - 0x70d37aa6], dh
fisttp qword [ebx - 0x43f97bb6]
invalid
Function at 0x429800
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push 0xca62c1d6
push 0x8f1bbcdc
push 0x6ed9eba1
push 0x5a827999
push edx
call fcn.00429bb0
ret 0x18

Function at 0x429a90
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
and eax, 0xfffffff
imul eax, eax, 8
jo 0x429ab0
test ecx, 0x10000000
je 0x429aad
or eax, 0x80000000
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x429ac0
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
and eax, 0x3fffffff
imul eax, eax, 2
jo 0x429aea
test ecx, 0x40000000
je 0x429add
or eax, 0x80000000
test ecx, 0x80000000
je 0x429ae7
or al, 1
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]

Function at 0x429af0
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, esi
mov eax, esi
and ecx, 0x3ffffff
imul ecx, ecx, 0x20
jo 0x429b2e
and eax, 0xf8000000
cdq
and edx, 0x7ffffff
add eax, edx
sar eax, 0x1b
and eax, 0x1f
or ecx, eax
test esi, 0x4000000
pop esi
je 0x429b29
or ecx, 0x80000000
mov eax, ecx
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x429b40
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, eax
xor edx, ecx
jge 0x429b55
add eax, ecx
jo 0x429b66
ret 8
xor eax, 0x80000000
add eax, ecx
jo 0x429b66
xor eax, 0x80000000
ret 8
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop

Function at 0x429b70
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov ecx, ebx
mov eax, ebx
and ecx, 1
imul ecx, ecx, 0x40000000
jo 0x429ba7
and al, 0xfc
cdq
and edx, 3
add eax, edx
sar eax, 2
and eax, 0x3fffffff
or ecx, eax
test bl, 2
pop ebx
je 0x429ba2
or ecx, 0x80000000
mov eax, ecx
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
Function at 0xa71370
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 0xa7138e
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 0xa9a074
push ecx
mov edi, eax
call fcn.00a85198
mov esi, eax
add esp, 8
test esi, esi
jne 0xa713cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00a8502e
push esi
call fcn.00a84fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xa74850
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 0xa748ae
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 0xa9f720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa748ba
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.00a851e1
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 0xa748ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xa9f720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa7492a
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.00a86082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xa74957
mov word [eax], si
add eax, 2
push eax
call fcn.00a86030
add esp, 4
jmp 0xa74959
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 0xa748ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xa748b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xa750c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xa9a458
push ecx
call fcn.00a851e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00a851e1
add esp, 0x10
jmp 0xa750d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00a8520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00a84dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00a75050
mov eax, dword [0xa9f728]
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 0xa7513b
push esi
call fcn.00a74fb0
add esp, 4
mov dword [0xa9f728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xa7514c
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.00a74ff0
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 0xa78440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xa784b7
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 0xa7848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xa78471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xa7847e
add edx, ecx
cmp ebx, edx
jb 0xa7848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xa78467
xor ecx, ecx
jmp 0xa784a2
test eax, eax
jne 0xa78492
xor ecx, ecx
jmp 0xa784a2
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.00a783c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xa788f0
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 0xa78921
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 0xa78946
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 0xa7896e
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 0xa78993
push ecx
push esi
call fcn.00a784c0
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 0xa79c00
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 0xa79c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xa79c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xa79c38
add edx, eax
cmp ebx, edx
jb 0xa79c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xa79c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xa79c50
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 0xa79c70
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 0xa79cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xa79c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xa79ca8
add edx, ecx
cmp ebx, edx
jb 0xa79cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xa79c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xa79f60
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.00a86145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xa79ffb
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 0xa79fdd
lea eax, [esp + 0x18]
push eax
jmp 0xa79fe2
push 0xa9f720
call fcn.00a85fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xa79fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xa79f40
push 4
push ecx
push eax
call fcn.00a8643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xa7a310
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.00a86145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xa7a3ab
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 0xa7a38d
lea eax, [esp + 0x18]
push eax
jmp 0xa7a392
push 0xa9f720
call fcn.00a85fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xa7a360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xa79f40
push 4
push ecx
push eax
call fcn.00a8643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xa7bf20
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 0xa7bfd7
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 0xa7bfcf
push ebx
push edi
push 0xa9f770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xa7bfae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xa9f770
push esi
call ebx
test eax, eax
je 0xa7bfae
mov ebp, 3
cmp dword [0xa9f774], ebp
jne 0xa7bfaa
push 0x3e8
call edi
push 0xa9f770
push esi
call ebx
test eax, eax
jne 0xa7bf8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xa7bfc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xa7bfbb
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