joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013eb
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push esi
mov esi, eax
push esi
call fcn.004012e9
test eax, eax
jne 0x401401
inc eax
jmp 0x401496
push ebp
push edi
push 0xf003f
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebp
jne 0x40142d
push ebp
add esi, 0x30
push esi
push str._PCFILTER__Couldnt_open_service_manager
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x401494
push ebx
push 0x10020
lea ebx, [esi + 0x30]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebp
jne 0x401455
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
push ebx
push str._PCFILTER__Couldnt_open_service
push ebp
jmp 0x40148b
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
push edi
call esi
test ebp, ebp
je 0x401481
xor eax, eax
inc eax
jmp 0x401493
push 0
push ebx
push str._PCFILTER__Service_could_not_be_deleted
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x1c
ret

Function at 0x40149b
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x454b30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
mov esi, ecx
call fcn.00415d0e
xor edi, edi
add esp, 0xc
cmp dword [esi + 0x254], edi
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
je 0x40150f
add esi, 0x30
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x40151c
push edi
lea eax, [ebp - 0x208]
push eax
push edi
push 1
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x40151c
lea eax, [ebp - 0x204]
push eax
call fcn.00416219
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041618f
leave
ret
Function at 0x401604
Capabilities:
Enumerate process modules

Disassembly:
push ebp
lea ebp, [esp - 0x290]
mov eax, 0x1224
call fcn.004183b0
mov eax, dword [0x454b30]
xor eax, ebp
mov dword [ebp + 0x28c], eax
mov eax, dword [ebp + 0x298]
mov dword [ebp + 0x7c], eax
lea eax, [ebp + 0x74]
push eax
push 0x1000
lea eax, [ebp - 0xf94]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x40172a
push ebx
push esi
push edi
mov edi, dword [ebp + 0x74]
shr edi, 2
push 0
pop ebx
je 0x401725
xor esi, esi
push 0x206
lea eax, [ebp + 0x86]
push esi
push eax
mov word [ebp + 0x84], si
call fcn.00416500
add esp, 0xc
push dword [ebp + ebx*4 - 0xf94]
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4016bb
lea eax, [ebp + 0x6c]
push eax
push 4
lea eax, [ebp + 0x78]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4016bb
push 0x104
lea eax, [ebp + 0x84]
push eax
push dword [ebp + 0x78]
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x84]
push eax
lea ecx, [ebp + 0x80]
call fcn.00408b28
cmp dword [ebp + 0x7c], 0
je 0x40170e
mov ecx, dword [ebp + 0x80]
cmp dword [ecx - 0xc], 0
jl 0x401714
push dword [ebp + 0x7c]
push ecx
call fcn.0041587f
test eax, eax
pop ecx
pop ecx
je 0x40170e
mov ecx, dword [ebp + 0x80]
sub eax, ecx
sar eax, 1
js 0x401714
add ecx, 0xfffffff0
call fcn.0040795b
xor eax, eax
inc eax
jmp 0x401727
mov ecx, dword [ebp + 0x80]
add ecx, 0xfffffff0
call fcn.0040795b
inc ebx
cmp ebx, edi
jb 0x40165b
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x28c]
xor ecx, ebp
call fcn.0041618f
add ebp, 0x290
leave
ret

Function at 0x40173f
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x454b30]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
mov eax, dword [ebp + 0x1bc]
push ebx
push esi
mov esi, 0x22c
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00416500
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [ebp - 0x7c]
push eax
push ebx
mov dword [ebp - 0x7c], esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4017af
push dword [ebp - 0x80]
lea eax, [ebp - 0x58]
push eax
call fcn.0041693c
test eax, eax
pop ecx
pop ecx
je 0x4017b5
lea eax, [ebp - 0x7c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401793
jmp 0x4017d7
push dword [ebp - 0x74]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1b0]
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0041618f
add ebp, 0x1b4
leave
ret
Function at 0x4017f1
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x428ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x454b30]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x454b30]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
push 0x258
call fcn.00408c63
xor edi, edi
cmp eax, edi
pop ecx
je 0x401849
mov esi, eax
call section..text
push 0x206
lea eax, [esp + 0x2a]
push edi
push eax
mov word [esp + 0x30], di
call fcn.00416500
add esp, 0xc
push edi
push 0x26
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.JiransoftPCFILTERPCFILTERTray.exe
lea ecx, [esp + 0x24]
call fcn.00408b28
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
mov dword [esp + 0x248], edi
call fcn.00404740
pop ecx
pop ecx
mov byte [esp + 0x240], 2
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040795b
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x1c], edi
push str.PCFILTERTray.exe
call fcn.00401604
test eax, eax
pop ecx
jne 0x40193f
call fcn.0040375e
xor esi, esi
push 1
push str.start
push dword [esp + 0x1c]
call fcn.00402902
test eax, eax
jne 0x4018ef
push 0x1f4
inc esi
call ebx
cmp esi, 5
jl 0x4018cc
jmp 0x40193f
call fcn.0040a2a2
push eax
lea ecx, [esp + 0x1c]
call fcn.00407975
lea eax, [esp + 0x18]
push str._PCFILTER__PCFILTERService_:_Run__First_PCFILTERTray
push eax
mov byte [esp + 0x248], 3
call fcn.00408205
mov esi, dword [esp + 0x20]
push esi
mov ecx, 0x459688
call fcn.0040149b
add esp, 0xc
lea ecx, [esi - 0x10]
mov dword [esp + 0x1c], 1
mov byte [esp + 0x240], 2
call fcn.0040795b
push 0x3e8
call ebx
cmp dword [esp + 0x1c], edi
je 0x4018b6
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
mov dword [0x45962c], edi
call fcn.0040795b
xor eax, eax
inc eax
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0041618f
mov esp, ebp
pop ebp
ret
Function at 0x40267b
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x4285d9
call fcn.00416d94
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 2
call fcn.004081e7
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
mov edi, dword [ebp + 8]
push eax
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x402718
mov eax, dword [ebp - 0x10]
mov esi, dword [eax - 0xc]
push 0
lea ecx, [ebp - 0x10]
call fcn.004080da
lea ecx, [esi + esi]
push ecx
push eax
xor esi, esi
inc esi
push esi
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040795b
lea ecx, [edi - 0x10]
call fcn.0040795b
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040795b
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040795b
mov eax, esi
call fcn.00416e6c
ret 0xc
xor esi, esi
jmp 0x4026e5

Function at 0x40271c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x402775
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
inc esi
lea ecx, [edi - 0x10]
call fcn.0040795b
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040795b
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
xor esi, esi
jmp 0x40275a
Function at 0x402779
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x454b30]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x42867e
call fcn.00416d94
lea eax, [ebp + 0x21c]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 2
call fcn.004081e7
xor edi, edi
push 0x206
lea eax, [ebp + 2]
push edi
mov byte [ebp - 4], 3
push eax
mov word [ebp], di
call fcn.00416500
mov esi, dword [ebp + 0x214]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x402833
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0x218]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40281c
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.004080b5
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00407f3d
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040795b
lea ecx, [esi - 0x10]
call fcn.0040795b
mov ecx, dword [ebp + 0x218]
add ecx, 0xfffffff0
call fcn.0040795b
mov ecx, dword [ebp + 0x21c]
add ecx, 0xfffffff0
call fcn.0040795b
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0041618f
add ebp, 0x20c
leave
ret 0xc

Function at 0x402889
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4028fe
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4028d2
mov esi, dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor esi, esi
inc esi
lea ecx, [edi - 0x10]
call fcn.0040795b
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040795b
pop edi
mov eax, esi
pop esi
leave
ret 0xc
xor esi, esi
jmp 0x4028e3
Function at 0x403bd2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x454b30]
xor eax, ebp
mov dword [ebp + 0x98], eax
push esi
push edi
mov esi, 0x114
push esi
xor edi, edi
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.00416500
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor esi, esi
cmp dword [ebp - 0x78], 6
jne 0x403c27
push str.Kernel32.dll
inc esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
or dword [ebp - 0x80], 0xffffffff
test esi, esi
je 0x403c51
test edi, edi
je 0x403c6c
push 0x44c944
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403c61
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0xa4]
call eax
jmp 0x403c61
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0xa4]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test edi, edi
je 0x403c6c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 0x98]
mov eax, dword [ebp - 0x80]
pop edi
xor ecx, ebp
pop esi
call fcn.0041618f
add ebp, 0x9c
leave
ret 4
Function at 0x404475
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x454b30]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
push ebx
push esi
mov esi, dword [ebp + 0x1ac]
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push esi
mov ebx, 0x459688
mov dword [ebp - 0x78], eax
call fcn.00401206
mov esi, 0x44ce58
lea edi, [ebp + 0x198]
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x198]
push eax
mov eax, dword [ebp - 0x78]
mov dword [0x4598dc], 1
movsw word es:[edi], word [esi]
call fcn.004010bd
mov edi, eax
test edi, edi
pop ecx
je 0x404526
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.UnregServer
push edi
call esi
test eax, eax
je 0x404589
push str.RegServer
push edi
call esi
test eax, eax
je 0x4045bb
push str.Service
push edi
call esi
test eax, eax
je 0x4045c5
lea eax, [ebp + 0x198]
push eax
mov eax, edi
call fcn.004010bd
mov edi, eax
test edi, edi
pop ecx
jne 0x4044e1
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x74]
push ecx
xor eax, eax
mov edi, 0x20019
push edi
push eax
push str.AppID
push SysReAllocString
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], eax
call esi
test eax, eax
jne 0x404563
lea ecx, [ebp - 0x7c]
call fcn.00407046
mov edx, dword [ebp - 0x74]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x7c], edx
je 0x4045c9
mov esi, eax
lea ecx, [ebp - 0x7c]
call fcn.00407046
mov eax, esi
mov ecx, dword [ebp + 0x1a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041618f
add ebp, 0x1a4
leave
ret 0x10
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, esi
jl 0x40456f
mov eax, dword [0x459688]
push esi
push esi
push 0x64
push ebx
call dword [eax + 0x20]
mov eax, ebx
call fcn.004013eb
mov eax, ebx
call fcn.00408237
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x40456f
push 0
push ebx
call fcn.004010fe
jmp 0x40456f
push 1
jmp 0x4045bd
lea eax, [ebp - 0x78]
push eax
push edi
push ecx
push str.A3CD040A_E706_4836_B7D3_3B364C7BD9F8
push edx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
call esi
mov esi, eax
test esi, esi
jne 0x4045f7
lea ecx, [ebp - 0x74]
call fcn.00407046
mov esi, eax
test esi, esi
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], eax
je 0x404604
lea ecx, [ebp - 0x74]
call fcn.00407046
jmp 0x404565
lea eax, [ebp - 0x74]
push eax
lea edi, [ebp - 0x80]
lea esi, [ebp - 0x70]
mov dword [ebp - 0x80], 0x104
call fcn.004079b3
and dword [0x4598dc], 0
test eax, eax
jne 0x40462f
mov dword [0x4598dc], 1
mov edi, ebx
call fcn.0040152a
mov esi, dword [0x4598c8]
jmp 0x4045f7
Function at 0x405ce9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x454b30]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x4284b0
call fcn.00416dc7
mov eax, dword [ebp + 0x414]
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x14], eax
call dword [0x455ee4]
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 0x410]
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esi
mov dword [ebp], esi
push 2
push esi
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x405d58
call fcn.004059ce
mov esi, eax
jmp 0x405e75
push dword [ebp - 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x405d73
call fcn.004059ce
jmp 0x405e6a
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x405d69
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x14], edi
jae 0x405dde
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x405daa
lea eax, [ebp]
call fcn.00405e8e
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.004059b5
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0041618f
add ebp, 0x408
leave
ret 0xc
push 2
push eax
mov byte [ebp - 4], 2
call fcn.00405e97
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x405dff
push eax
lea eax, [ebp]
push eax
call fcn.00406e5b
jmp 0x405e05
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x405e28
mov ebx, dword [ebp]
cmp ebx, esi
jne 0x405e36
mov esi, 0x8007000e
jmp 0x405e6c
call dword [0x455ee4]
push edi
push ebx
push edi
push dword [ebp - 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x405d69
mov ecx, dword [ebp]
push dword [ebp + 0x418]
mov word [ecx + eax*2], si
mov ecx, dword [ebp]
lea edx, [ebp - 0x28]
call fcn.00405edc
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x405daf
lea eax, [ebp]
call fcn.00405e8e
jmp 0x405daf
Function at 0x406e04
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x406e17
push 0x80004005
call fcn.0040799a
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x406e1e
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x406f0d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x454b30]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x218]
push edx
push 0x2001f
xor esi, esi
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x406f72
lea ecx, [ebp - 0x210]
call fcn.00407046
cmp eax, esi
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x210], ecx
je 0x406f92
lea ecx, [ebp - 0x210]
mov esi, eax
call fcn.00407046
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041618f
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
jmp 0x406fe3
lea eax, [ebp - 0x20c]
push eax
call fcn.00406f0d
cmp eax, esi
jne 0x406f72
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x210]
je 0x406fb4
call fcn.00407046
push dword [ebp - 0x21c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x406f72

Function at 0x4079b3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp edi, ebx
jne 0x4079c8
push 0x80004005
call fcn.0040799a
push edi
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ebx
push str.LocalService
push dword [eax]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, ebx
je 0x407a22
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x407a1f
cmp dword [ebp - 4], ebx
jbe 0x407a1c
cmp dword [ebp - 4], 2
jbe 0x407a27
cmp dword [ebp - 4], 7
jne 0x407a1c
test cl, 1
jne 0x407a1c
shr ecx, 1
cmp ecx, 1
jb 0x407a1c
cmp word [esi + ecx*2 - 2], bx
jne 0x407a1c
cmp ecx, 1
jbe 0x407a22
cmp word [esi + ecx*2 - 4], bx
je 0x407a22
push 0xd
pop eax
mov word [esi], bx
pop ebx
leave
ret 4
test cl, 1
jne 0x407a1c
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jmp 0x407a1a
Function at 0x4089f8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x408a0b
push 0x80004005
call fcn.0040799a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 1
push 0
push dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebp
ret 0xc

Function at 0x41618f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454b30]
jne 0x416199
repz ret
jmp fcn.0041bbe0

Function at 0x418426
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x454cc0]
je 0x418441
inc edi
cmp edi, 0x17
jb 0x418432
cmp edi, 0x17
jae 0x4185c1
push ebp
push 3
call fcn.00420176
cmp eax, 1
pop ecx
je 0x41858d
push 3
call fcn.00420176
test eax, eax
pop ecx
jne 0x418475
cmp dword [0x454b00], 1
je 0x41858d
cmp ebx, 0xfc
je 0x4185c0
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x457ff0
push ebp
call fcn.0041a384
add esp, 0xc
test eax, eax
je 0x4184ab
push esi
push esi
push esi
push esi
push esi
call fcn.00415f79
add esp, 0x14
push 0x104
mov esi, 0x458009
push esi
push 0
mov byte [0x45810d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4184ef
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041a384
add esp, 0xc
test eax, eax
je 0x4184ef
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00415f79
add esp, 0x14
push esi
call fcn.00416720
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x418534
push esi
call fcn.00416720
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x458304
push 0x449fac
sub ecx, eax
push ecx
push eax
call fcn.004200c3
add esp, 0x14
test eax, eax
je 0x418534
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00415f79
add esp, 0x14
jmp 0x418536
xor esi, esi
push 0x449fa8
push ebx
push ebp
call fcn.00420052
add esp, 0xc
test eax, eax
je 0x418556
push esi
push esi
push esi
push esi
push esi
call fcn.00415f79
add esp, 0x14
push dword [edi*8 + 0x454cc4]
push ebx
push ebp
call fcn.00420052
add esp, 0xc
test eax, eax
je 0x418578
push esi
push esi
push esi
push esi
push esi
call fcn.00415f79
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041fe95
add esp, 0xc
jmp 0x4185c0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4185c0
cmp ebp, 0xffffffff
je 0x4185c0
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x454cc4]
push dword [esi]
call fcn.00416720
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret