joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ed2e
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041ffd0
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.0041169e
mov esi, eax
test esi, esi
je 0x41ed86
movzx ecx, word [esi]
push ecx
jmp 0x41ed71
add esi, 2
movzx eax, word [esi]
push eax
call fcn.004117ba
test al, al
jne 0x41ed6a
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
leave
ret 4
Function at 0x6fc4aa8b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x7057e018]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x7057e018]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x6fc4aad6
jmp 0x6fc4ab01
jmp 0x6fc4ab2c
jmp 0x6fc4ab57
jmp 0x6fc4ab82
jmp 0x6fc4abad
jmp 0x6fc4abd8
jmp 0x6fc4ac03
jmp 0x6fc4ac2e
jmp 0x6fc4ac59
jmp 0x6fc4ac84
jmp 0x6fc4acaf
jmp 0x6fc4acda
mov dword [ebp - 0x14], 0
jmp 0x6fc4ad0c
jmp 0x6fc4ad37
jmp 0x6fc4ad62
jmp 0x6fc4ad8d
jmp 0x6fc4adb8
jmp 0x6fc4ade3
jmp 0x6fc4ae0e
jmp 0x6fc4ae39
jmp 0x6fc4ae64
jmp 0x6fc4ae8f
jmp 0x6fc4aeba
jmp 0x6fc4aee5
jmp 0x6fc4af10
mov dword [ebp - 0x18], 0
jmp 0x6fc4af42
jmp 0x6fc4af6d
jmp 0x6fc4af98
jmp 0x6fc4afc3
jmp 0x6fc4afee
jmp 0x6fc4b019
jmp 0x6fc4b044
jmp 0x6fc4b06f
jmp 0x6fc4b09a
jmp 0x6fc4b0c5
jmp 0x6fc4b0f0
jmp 0x6fc4b11b
jmp 0x6fc4b146
mov dword [ebp - 0x10], 0
jmp 0x6fc4b178
jmp 0x6fc4b1a3
jmp 0x6fc4b1ce
jmp 0x6fc4b1f9
jmp 0x6fc4b224
jmp 0x6fc4b24f
jmp 0x6fc4b27a
jmp 0x6fc4b2a5
jmp 0x6fc4b2d0
jmp 0x6fc4b2fb
jmp 0x6fc4b326
jmp 0x6fc4b351
jmp 0x6fc4b37c
mov dword [ebp - 0x10], 0
jmp 0x6fc4bebb
jmp 0x6fc4b3b3
jmp 0x6fc4b3de
jmp 0x6fc4b409
jmp 0x6fc4b434
jmp 0x6fc4b45f
jmp 0x6fc4b48a
jmp 0x6fc4b4b5
jmp 0x6fc4b4e0
jmp 0x6fc4b50b
jmp 0x6fc4b536
jmp 0x6fc4b561
jmp 0x6fc4b58c
jmp 0x6fc4b5b7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [0x7057e014]
add eax, edx
mov dword [ebp - 0x14], eax
jmp 0x6fc4b5f3
jmp 0x6fc4b61e
jmp 0x6fc4b649
jmp 0x6fc4b674
jmp 0x6fc4b69f
jmp 0x6fc4b6ca
jmp 0x6fc4b6f5
jmp 0x6fc4b720
jmp 0x6fc4b74b
jmp 0x6fc4b776
jmp 0x6fc4b7a1
jmp 0x6fc4b7cc
jmp 0x6fc4b7f7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [0x7057e01c]
add eax, edx
mov dword [ebp - 0x18], eax
jmp 0x6fc4b833
jmp 0x6fc4b85e
jmp 0x6fc4b889
jmp 0x6fc4b8b4
jmp 0x6fc4b8df
jmp 0x6fc4b90a
jmp 0x6fc4b935
jmp 0x6fc4b960
jmp 0x6fc4b98b
jmp 0x6fc4b9b6
jmp 0x6fc4b9e1
jmp 0x6fc4ba0c
jmp 0x6fc4ba37
mov eax, dword [0x7057e008]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [esp], edx
call eax
jmp 0x6fc4ba80
jmp 0x6fc4baab
jmp 0x6fc4bad6
jmp 0x6fc4bb01
jmp 0x6fc4bb2c
jmp 0x6fc4bb57
jmp 0x6fc4bb82
jmp 0x6fc4bbad
jmp 0x6fc4bbd8
jmp 0x6fc4bc03
jmp 0x6fc4bc2e
jmp 0x6fc4bc59
jmp 0x6fc4bc84
add dword [ebp - 0xc], 0x28
jmp 0x6fc4bcb3
jmp 0x6fc4bcde
jmp 0x6fc4bd09
jmp 0x6fc4bd34
jmp 0x6fc4bd5f
jmp 0x6fc4bd8a
jmp 0x6fc4bdb5
jmp 0x6fc4bde0
jmp 0x6fc4be0b
jmp 0x6fc4be36
jmp 0x6fc4be61
jmp 0x6fc4be8c
jmp 0x6fc4beb7
add dword [ebp - 0x10], 1
mov eax, dword [0x7057e018]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
ja 0x6fc4b388
nop
leave
ret
Function at 0x4041e0
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14c4
call fcn.00409fa0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x47f368]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x47f36c]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], edx
call fcn.004041d0
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x47f370]
mov edx, dword [0x47f374]
add edi, 0x23f
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x486afc]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x40426c
mov dword [0x486af8], 0xedeb2e40
jmp 0x404287
cmp eax, 0x3eb
jne 0x404287
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x486588], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x486afc], 0x9e6
mov dword [0x486af4], 0xf4ea3dee
jne 0x4042c0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x486afc], 0x213
jne 0x404370
push 0
lea eax, [ebp - 0x4c4]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
lea ecx, [ebp - 0xcc4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x14c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea ecx, [ebp - 0x8c4]
push ecx
push 0
push 0x403ec8
push 0x403f14
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub ebx, dword [ebp - 4]
cmp dword [0x486afc], 0xc
jne 0x404384
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov edx, ebx
shr edx, 5
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov eax, ebx
shl eax, 4
add eax, dword [ebp - 0x1c]
lea ecx, [edi + ebx]
xor eax, ecx
xor eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x404240
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4043d0
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Get thread local storage value
Read pipe
Set environment variable
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.00409fa0
mov eax, dword [0x486afc]
mov ecx, dword [0x48658c]
shr eax, 3
test eax, eax
jbe 0x4044ec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x486afc], 0x959
jne 0x4044d2
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 4]
push ecx
call fcn.004041e0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404410
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406f10
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47e5f8]
jne 0x406f1a
repz ret
jmp fcn.0040bbae

Function at 0x40b7d5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408b84
and dword [ebp - 4], 0
cmp dword [0x484578], 0
mov ebx, eax
jne 0x40b886
push 0x401c3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b937
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401c30
push edi
call esi
test eax, eax
je 0x40b937
push eax
call fcn.00408b12
mov dword [esp], 0x401c20
push edi
mov dword [0x484578], eax
call esi
push eax
call fcn.00408b12
mov dword [esp], 0x401c0c
push edi
mov dword [0x48457c], eax
call esi
push eax
call fcn.00408b12
mov dword [esp], 0x401bf0
push edi
mov dword [0x484580], eax
call esi
push eax
call fcn.00408b12
pop ecx
mov dword [0x484588], eax
test eax, eax
je 0x40b886
push 0x401bd8
push edi
call esi
push eax
call fcn.00408b12
pop ecx
mov dword [0x484584], eax
mov eax, dword [0x484584]
cmp eax, ebx
je 0x40b8de
cmp dword [0x484588], ebx
je 0x40b8de
push eax
call fcn.00408b8d
push dword [0x484588]
mov esi, eax
call fcn.00408b8d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b8de
test edi, edi
je 0x40b8de
call esi
test eax, eax
je 0x40b8d5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b8d5
test byte [ebp - 0xc], 1
jne 0x40b8de
or dword [ebp + 0x10], 0x200000
jmp 0x40b917
mov eax, dword [0x48457c]
cmp eax, ebx
je 0x40b917
push eax
call fcn.00408b8d
pop ecx
test eax, eax
je 0x40b917
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b917
mov eax, dword [0x484580]
cmp eax, ebx
je 0x40b917
push eax
call fcn.00408b8d
pop ecx
test eax, eax
je 0x40b917
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x484578]
call fcn.00408b8d
pop ecx
test eax, eax
je 0x40b937
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b939
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f573
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f5b2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f5b2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f5b2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f5b2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f5b2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x431790
Capabilities:
Parse pe header

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

Function at 0x8003b3f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043b4], 0x30
mov dword [0x80043bc], 0x8003351
mov dword [0x80043b8], 2
mov dword [0x80043c0], 0
mov dword [0x80043c4], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b82
mov dword [0x80043c8], eax
mov dword [0x80043dc], 0x80041e0
mov dword [0x80043d4], 0xf
mov dword [0x8004102], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043cc], eax
mov dword [0x80043e0], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x800410a], ebp
mov dword [0x80043d0], eax
push 0x80043b4
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004434], eax
push 0
push dword [0x8004102]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x800442c], eax
push 1
push dword [0x800442c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x800442c]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c40
xor edi, edi
lea ebx, [0x80043e4]
jmp 0x8003c58
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c4a
jmp 0x8003c6c
mov eax, dword [0x80043ec]
call fcn.08002ae4
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x3eed309b
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x2b97c7a
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x5f0370
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 0x5f038e
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 0x619074
push ecx
mov edi, eax
call fcn.00604198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5f03cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0060402e
push esi
call fcn.00603fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x5f3850
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 0x5f38ae
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 0x61e720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5f38ba
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.006041e1
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 0x5f38ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x61e720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5f392a
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.00605082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x5f3957
mov word [eax], si
add eax, 2
push eax
call fcn.00605030
add esp, 4
jmp 0x5f3959
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 0x5f38ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5f38b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5f40c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x619458
push ecx
call fcn.006041e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006041e1
add esp, 0x10
jmp 0x5f40d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0060420b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00603dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.005f4050
mov eax, dword [0x61e728]
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 0x5f413b
push esi
call fcn.005f3fb0
add esp, 4
mov dword [0x61e728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x5f414c
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.005f3ff0
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 0x5f7440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5f74b7
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 0x5f748e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5f7471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5f747e
add edx, ecx
cmp ebx, edx
jb 0x5f748a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5f7467
xor ecx, ecx
jmp 0x5f74a2
test eax, eax
jne 0x5f7492
xor ecx, ecx
jmp 0x5f74a2
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.005f73c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5f78f0
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 0x5f7921
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 0x5f7946
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 0x5f796e
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 0x5f7993
push ecx
push esi
call fcn.005f74c0
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 0x5f8c00
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 0x5f8c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x5f8c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x5f8c38
add edx, eax
cmp ebx, edx
jb 0x5f8c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x5f8c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x5f8c50
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 0x5f8c70
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 0x5f8cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5f8c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5f8ca8
add edx, ecx
cmp ebx, edx
jb 0x5f8cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5f8c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x5f8f60
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.00605145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5f8ffb
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 0x5f8fdd
lea eax, [esp + 0x18]
push eax
jmp 0x5f8fe2
push 0x61e720
call fcn.00604fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x5f8fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x5f8f40
push 4
push ecx
push eax
call fcn.0060543f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x5f9310
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.00605145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5f93ab
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 0x5f938d
lea eax, [esp + 0x18]
push eax
jmp 0x5f9392
push 0x61e720
call fcn.00604fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x5f9360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x5f8f40
push 4
push ecx
push eax
call fcn.0060543f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x5faf20
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 0x5fafd7
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 0x5fafcf
push ebx
push edi
push 0x61e770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x5fafae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x61e770
push esi
call ebx
test eax, eax
je 0x5fafae
mov ebp, 3
cmp dword [0x61e774], ebp
jne 0x5fafaa
push 0x3e8
call edi
push 0x61e770
push esi
call ebx
test eax, eax
jne 0x5faf8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x5fafc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x5fafbb
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