joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418078
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00416224
mov eax, dword [ebp - 0x21c]
call fcn.00416224
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x418217
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0041623c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004162c8
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x418118
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x41812a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x418115
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4181e3
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x418153
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00417bc8
cmp dword [ebp - 0x220], 0
je 0x41818b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00417f6c
pop ecx
mov ebx, eax
jmp 0x4181e3
push ebp
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004177a4
mov eax, dword [ebp - 0x224]
call fcn.00417f6c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4181d6
cmp byte [0x4479d0], 0
jne 0x4181d6
push ebp
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004177a4
mov eax, dword [ebp - 0x228]
call fcn.00417f6c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4181e3
push ebp
call fcn.0041801c
pop ecx
mov ebx, eax
test bl, bl
je 0x4181f9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00416424
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41821e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00416234
ret

Function at 0x4186b4
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4187a0
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x445758], 1
jae 0x418849
call fcn.004116dc
call fcn.00414230
call fcn.0041738c
mov byte [0x43b73c], 2
mov dword [0x444e7c], 0x43a2e2
mov dword [0x444e80], 0x43a2f4
mov byte [0x444ec2], 2
call fcn.004186b4
mov dword [0x444ec4], eax
mov dword [0x444e68], 0x416e48
call fcn.00414cb0
mov word [0x444ecc], 0xd7b0
mov word [0x44519c], 0xd7b0
mov word [0x44546c], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x444eb4], eax
call fcn.00412828
mov dword [0x444eb0], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x445740], eax
mov dword [0x445744], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x444ea8], eax
call fcn.004186c8
ret
Function at 0x436d64
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x448790], 0
jne 0x436de5
cmp dword [0x4487b0], 0
jne 0x436d94
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4487b0], eax
test eax, eax
jne 0x436d94
push str.GetEnvironmentStrings_failed
call fcn.004364dc
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4487b0]
jmp 0x436da8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0042e7d8
pop ecx
mov edi, eax
test eax, eax
jne 0x436da0
lea edi, [ebp + 1]
push edi
call fcn.0042d934
pop ecx
mov ebx, eax
mov dword [0x448794], ebx
test ebx, ebx
jne 0x436dd2
xor eax, eax
jmp 0x436ea5
push edi
mov edx, dword [0x4487b0]
push edx
push ebx
call fcn.0042e470
add esp, 0xc
jmp 0x436e07
xor esi, esi
mov ebx, dword [0x448790]
jmp 0x436dff
push eax
call fcn.0042e7d8
pop ecx
test eax, eax
jne 0x436dfb
dec esi
inc esi
add ebx, 4
mov eax, ebx
mov eax, dword [eax]
test eax, eax
jne 0x436def
lea ebx, [esi + 4]
push 4
mov dword [0x448798], ebx
inc ebx
push ebx
call fcn.0042d898
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x436e27
xor eax, eax
jmp 0x436ea5
cmp dword [0x448790], 0
jne 0x436e56
xor esi, esi
mov ebx, dword [0x448794]
mov ebp, dword [esp]
jmp 0x436e47
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0042e7d8
pop ecx
mov edi, eax
test eax, eax
jne 0x436e3d
jmp 0x436e87
xor esi, esi
mov ebx, dword [0x448790]
mov edi, dword [esp]
jmp 0x436e7f
push eax
call fcn.0042e7d8
pop ecx
test eax, eax
je 0x436e74
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x436e78
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, ebx
mov eax, dword [eax]
test eax, eax
jne 0x436e63
mov eax, dword [0x448790]
test eax, eax
je 0x436e97
push eax
call fcn.0042d944
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x448790], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x100ee6a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x101d0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0100edff
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x100eedd
cmp dword [ebp - 0x94], 5
jb 0x100eefe
jmp 0x100eefa
cmp dword [ebp - 0x88], 1
jne 0x100eefe
cmp dword [ebp - 0x94], 4
ja 0x100eefa
jne 0x100eefe
cmp dword [ebp - 0x90], 0
jbe 0x100eefe
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1002f74
call fcn.01007cc4
test eax, eax
jge 0x100ef1f
mov byte [0x101d590], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100f3ef
leave
ret
Function at 0x100f2f0
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x101a8b0
call fcn.0100f55c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x101da7c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100f0ab
cmp eax, esi
jne 0x100f09e
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100f0ae
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100f085
xor esi, esi
inc esi
mov eax, dword [0x101da78]
cmp eax, esi
jne 0x100f0c1
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100f0f0
mov eax, dword [0x101da78]
test eax, eax
jne 0x100f0ea
mov dword [0x101da78], esi
push 0x1001410
push 0x1001404
call fcn.0100efe7
pop ecx
pop ecx
test eax, eax
je 0x100f0f0
jmp 0x100f214
mov dword [0x101d730], esi
mov eax, dword [0x101da78]
cmp eax, esi
jne 0x100f114
push 0x1001400
push 0x10013e8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101da78], 2
cmp dword [ebp - 0x20], ebx
jne 0x100f121
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x101da88], ebx
je 0x100f142
push 0x101da88
call fcn.0100f989
pop ecx
test eax, eax
je 0x100f142
push ebx
push 2
push ebx
call dword [0x101da88]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100f214
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100f1ac
cmp cx, bx
je 0x100f167
cmp dword [ebp - 0x1c], ebx
jne 0x100f1ac
movzx ecx, word [eax]
cmp cx, bx
je 0x100f17c
cmp cx, 0x20
ja 0x100f17c
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100f167
test byte [ebp - 0x40], 1
je 0x100f188
movzx ecx, word [ebp - 0x3c]
jmp 0x100f18b
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x101d72c], eax
cmp dword [0x101d720], ebx
jne 0x100f1f1
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100f1bd
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100f151
cmp dword [0x101d730], ebx
jne 0x100f1ff
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101d72c]
jmp 0x100f220
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100f5a1
ret
call fcn.0100fad6
jmp 0x100f048
Function at 0x101146b
Capabilities:
Inspect load icon resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x10032cc
lea ecx, [ebp - 0xc]
call fcn.010108a6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, eax
test esi, esi
jne 0x10114d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10114af
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10114d9
test byte [eax + 0x1c], 4
je 0x10114d9
push dword [ebp - 4]
push 0x10030f8
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010049d7
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10114e5
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
lea ecx, [ebp - 0xc]
call fcn.010108ed
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x101793f
Capabilities:
Query environment variable

Disassembly:
push 0x218
mov eax, 0x1019b3c
call fcn.0100f477
mov esi, dword [ebp + 8]
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
push 0x10044f4
lea ecx, [ebp - 0x224]
call fcn.010108a6
and dword [ebp - 4], 0
test esi, esi
jne 0x10179c6
mov ecx, 0x80070057
mov dword [ebp - 0x21c], ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x10179a7
test byte [eax + 0x1c], 4
je 0x10179a7
push ecx
push 0x100442c
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013007
mov esi, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.010108ed
mov eax, esi
call fcn.0100f509
ret 4
and dword [esi], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x10044bc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1017a2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10179f8
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10179a7
test byte [eax + 0x1c], 4
je 0x10179a7
push dword [ebp - 0x21c]
push 0x100442c
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010049d7
jmp 0x10179a7
lea eax, [ebp - 0x21c]
push eax
push 2
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.01011cfd
mov dword [esi], eax
jmp 0x10179a7
Function at 0x9c7370
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 0x9c738e
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 0x9f0074
push ecx
mov edi, eax
call fcn.009db198
mov esi, eax
add esp, 8
test esi, esi
jne 0x9c73cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.009db02e
push esi
call fcn.009dafb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x9ca850
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 0x9ca8ae
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 0x9f5720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9ca8ba
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.009db1e1
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 0x9ca8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x9f5720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9ca92a
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.009dc082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x9ca957
mov word [eax], si
add eax, 2
push eax
call fcn.009dc030
add esp, 4
jmp 0x9ca959
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 0x9ca8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x9ca8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x9cb0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x9f0458
push ecx
call fcn.009db1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.009db1e1
add esp, 0x10
jmp 0x9cb0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.009db20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.009dadff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.009cb050
mov eax, dword [0x9f5728]
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 0x9cb13b
push esi
call fcn.009cafb0
add esp, 4
mov dword [0x9f5728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x9cb14c
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.009caff0
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 0x9ce440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x9ce4b7
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 0x9ce48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x9ce471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x9ce47e
add edx, ecx
cmp ebx, edx
jb 0x9ce48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x9ce467
xor ecx, ecx
jmp 0x9ce4a2
test eax, eax
jne 0x9ce492
xor ecx, ecx
jmp 0x9ce4a2
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.009ce3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x9ce8f0
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 0x9ce921
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 0x9ce946
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 0x9ce96e
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 0x9ce993
push ecx
push esi
call fcn.009ce4c0
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 0x9cfc00
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 0x9cfc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x9cfc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x9cfc38
add edx, eax
cmp ebx, edx
jb 0x9cfc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x9cfc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x9cfc50
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 0x9cfc70
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 0x9cfcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x9cfc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x9cfca8
add edx, ecx
cmp ebx, edx
jb 0x9cfcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x9cfc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x9cff60
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.009dc145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x9cfffb
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 0x9cffdd
lea eax, [esp + 0x18]
push eax
jmp 0x9cffe2
push 0x9f5720
call fcn.009dbfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x9cffb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x9cff40
push 4
push ecx
push eax
call fcn.009dc43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x9d0310
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.009dc145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x9d03ab
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 0x9d038d
lea eax, [esp + 0x18]
push eax
jmp 0x9d0392
push 0x9f5720
call fcn.009dbfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x9d0360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x9cff40
push 4
push ecx
push eax
call fcn.009dc43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x9d1f20
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 0x9d1fd7
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 0x9d1fcf
push ebx
push edi
push 0x9f5770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x9d1fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x9f5770
push esi
call ebx
test eax, eax
je 0x9d1fae
mov ebp, 3
cmp dword [0x9f5774], ebp
jne 0x9d1faa
push 0x3e8
call edi
push 0x9f5770
push esi
call ebx
test eax, eax
jne 0x9d1f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x9d1fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x9d1fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret
Function at 0x9d5e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x9eb8f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x9d5ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.009d27a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x9d5e61
mov edx, dword [eax]
jmp 0x9d5e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.009d4050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x9d5ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x9d5ebf
cmp esi, edi
je 0x9d5ebf
mov ecx, esi
call fcn.009cda00
push esi
call fcn.009db1c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.009d2990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x9d5ef5
mov eax, dword [eax]
jmp 0x9d5ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.009d1640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x9d5f25
mov eax, dword [eax]
jmp 0x9d5f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x9d5f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x9d5f76
cmp esi, edi
je 0x9d5f76
mov eax, dword [esi]
cmp eax, edi
je 0x9d5f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x9d5f6d
push eax
call fcn.009db1c8
add esp, 4
push esi
call fcn.009db1c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret