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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402154
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push 0x4202e8
lea ecx, [ebp - 0x18c]
push ecx
call fcn.004114cb
add esp, 0xc
lea edx, [ebp - 0x18c]
push edx
call fcn.0040166a
add esp, 4
jmp 0x402233
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x190], 0
jne 0x4021ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x194], eax
mov edx, dword [ebp - 0x194]
push edx
push 0x420310
lea eax, [ebp - 0x318]
push eax
call fcn.004114cb
add esp, 0xc
lea ecx, [ebp - 0x318]
push ecx
call fcn.0040166a
add esp, 4
jmp 0x402229
lea edx, [ebp - 0x334]
push edx
push 1
mov eax, dword [ebp - 0x190]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4021e6
mov ecx, dword [ebp - 0x190]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x402235
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x338]
push eax
push str.ControlService_failed__error_code___d
lea ecx, [ebp - 0x4bc]
push ecx
call fcn.004114cb
add esp, 0xc
lea edx, [ebp - 0x4bc]
push edx
call fcn.0040166a
add esp, 4
mov eax, dword [ebp - 0x190]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402239
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40228f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push 0x42035c
lea ecx, [ebp - 0x18c]
push ecx
call fcn.004114cb
add esp, 0xc
lea edx, [ebp - 0x18c]
push edx
call fcn.0040166a
add esp, 4
jmp 0x40236d
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x190], 0
jne 0x4022e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x194], eax
mov edx, dword [ebp - 0x194]
push edx
push 0x420384
lea eax, [ebp - 0x318]
push eax
call fcn.004114cb
add esp, 0xc
lea ecx, [ebp - 0x318]
push ecx
call fcn.0040166a
add esp, 4
jmp 0x402363
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x190]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x402320
mov edx, dword [ebp - 0x190]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x40236f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x31c], eax
mov ecx, dword [ebp - 0x31c]
push ecx
push str.StartService_failed__error_code___d
lea edx, [ebp - 0x4a0]
push edx
call fcn.004114cb
add esp, 0xc
lea eax, [ebp - 0x4a0]
push eax
call fcn.0040166a
add esp, 4
mov ecx, dword [ebp - 0x190]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402827
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40287d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push 0x42055c
lea ecx, [ebp - 0x18c]
push ecx
call fcn.004114cb
add esp, 0xc
lea edx, [ebp - 0x18c]
push edx
call fcn.0040166a
add esp, 4
jmp 0x40294f
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x190], 0
jne 0x4028d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x194], eax
mov edx, dword [ebp - 0x194]
push edx
push str.OpenService_failed__error_code___d
lea eax, [ebp - 0x318]
push eax
call fcn.004114cb
add esp, 0xc
lea ecx, [ebp - 0x318]
push ecx
call fcn.0040166a
add esp, 4
jmp 0x402945
mov edx, dword [ebp - 0x190]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x402911
mov eax, dword [ebp + 8]
push eax
push str.Failed_to_delete_service__s
lea ecx, [ebp - 0x49c]
push ecx
call fcn.004114cb
add esp, 0xc
lea edx, [ebp - 0x49c]
push edx
call fcn.0040166a
add esp, 4
jmp 0x402938
mov eax, dword [ebp + 8]
push eax
push str.Service__s_removed
lea ecx, [ebp - 0x620]
push ecx
call fcn.004114cb
add esp, 0xc
lea edx, [ebp - 0x620]
push edx
call fcn.0040166a
add esp, 4
mov eax, dword [ebp - 0x190]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esp, ebp
pop ebp
ret
Function at 0x402953
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4029a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push str.OpenSCManager_failed__error_code___d
lea ecx, [ebp - 0x18c]
push ecx
call fcn.004114cb
add esp, 0xc
lea edx, [ebp - 0x18c]
push edx
call fcn.0040166a
add esp, 4
jmp 0x402a5d
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 1
push 2
push 0x110
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x190], 0
jne 0x402a1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str.Failed_to_create_service__s__error_code___d
lea eax, [ebp - 0x318]
push eax
call fcn.004114cb
add esp, 0x10
lea ecx, [ebp - 0x318]
push ecx
call fcn.0040166a
add esp, 4
jmp 0x402a53
mov edx, dword [ebp + 0xc]
push edx
push str.Service__s_installed
lea eax, [ebp - 0x49c]
push eax
call fcn.004114cb
add esp, 0xc
lea ecx, [ebp - 0x49c]
push ecx
call fcn.0040166a
add esp, 4
mov edx, dword [ebp - 0x190]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esp, ebp
pop ebp
ret

Function at 0x403087
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x98], ecx
cmp dword [ebp - 0x98], 2
je 0x4030be
jmp 0x4030f9
cmp dword [ebp - 0x90], 6
jb 0x4030ce
mov byte [0x4227e0], 1
cmp dword [ebp - 0x90], 5
jae 0x4030e0
mov byte [0x422c20], 1
jmp 0x4030f9
cmp dword [ebp - 0x90], 5
jne 0x4030f9
cmp dword [ebp - 0x8c], 0
jne 0x4030f9
mov byte [0x422c20], 1
mov esp, ebp
pop ebp
ret
Function at 0x4031b9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x400
mov dword [ebp - 0x20], 0xea
cmp dword [ebp - 0x20], 0xea
jne 0x403268
cmp dword [ebp - 0x2c], 0
je 0x4031f4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00411e99
add esp, 4
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00411e0d
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
push 0
push 0x4207fc
push 0x80000004
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40324d
cmp dword [ebp - 0x24], 0
jbe 0x40324d
push 4
push 0x420800
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00411dd5
add esp, 0xc
test eax, eax
jne 0x40324d
jmp 0x403268
mov eax, dword [ebp - 0x28]
add eax, 0x400
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x10000
jbe 0x403263
jmp 0x403268
jmp 0x4031d5
push 0x80000004
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20], 0
je 0x40328e
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00411e99
add esp, 4
xor eax, eax
xor edx, edx
jmp 0x403384
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x1c], 0
jne 0x4032ac
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00411e99
add esp, 4
xor eax, eax
xor edx, edx
jmp 0x403384
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
add edx, dword [ecx + 0x18]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
jmp 0x4032dd
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x20]
jae 0x403309
mov edx, dword [ebp - 0x10]
cmp dword [edx + 4], 0x2a2
jne 0x4032fc
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x403309
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx]
mov dword [ebp - 0x10], edx
jmp 0x4032d4
cmp dword [ebp - 4], 0
jne 0x403321
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00411e99
add esp, 4
xor eax, eax
xor edx, edx
jmp 0x403384
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0xc], ecx
push 8
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00411aa0
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x30]
sub edx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x34]
sbb eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov esi, dword [ecx + 0x3c]
push esi
mov ecx, dword [ecx + 0x38]
push ecx
push eax
push edx
call fcn.00411ef0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00411e99
add esp, 4
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403389
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
mov dword [ebp - 0x168], 0x44
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0x423870
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 1
mov word [ebp - 0x138], 0
mov word [ebp - 0x136], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
push 0x10
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.00411f60
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x124], eax
mov byte [ebp - 0x18], 0
cmp dword [ebp - 0x124], 0
ja 0x403482
xor eax, eax
jmp 0x4035d9
mov byte [ebp - 0x14], 0
mov edx, dword [ebp - 0x124]
sub edx, 1
mov dword [ebp - 0x120], edx
jmp 0x4034a6
mov eax, dword [ebp - 0x120]
sub eax, 1
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jl 0x4034f1
mov ecx, dword [ebp - 0x120]
movsx edx, byte [ebp + ecx - 0x11c]
test edx, edx
jne 0x4034c3
jmp 0x4034f1
mov eax, dword [ebp - 0x120]
movsx ecx, byte [ebp + eax - 0x11c]
cmp ecx, 0x5c
je 0x4034e9
mov edx, dword [ebp - 0x120]
movsx eax, byte [ebp + edx - 0x11c]
cmp eax, 0x3a
jne 0x4034ef
mov byte [ebp - 0x14], 1
jmp 0x4034f1
jmp 0x403497
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
test ecx, ecx
je 0x403529
cmp dword [ebp - 0x120], 0
jl 0x403529
push 0x42080c
push 0x420818
mov edx, dword [ebp - 0x120]
lea eax, [ebp + edx - 0x11b]
push eax
call fcn.004114cb
add esp, 0xc
jmp 0x403542
push str.logon7.exe
push 0x420828
lea ecx, [ebp - 0x11c]
push ecx
call fcn.004114cb
add esp, 0xc
mov word [ebp - 0x138], 5
mov dword [ebp - 0x160], 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x168]
push eax
push 0
push 0
push 0x20
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40359a
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4035d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x16c]
push ecx
lea edx, [ebp - 0x11c]
push edx
push 0x42082c
lea eax, [ebp - 0x2f0]
push eax
call fcn.004114cb
add esp, 0x10
lea ecx, [ebp - 0x2f0]
push ecx
call fcn.0040166a
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x403b2b
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], eax
push 1
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [ebp - 0x10], 0xc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 4
push 4
push 0xff
push 6
push 1
push str..pipeA1RunGuardServPipe
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x403bc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateNamedPipe_Error__x_n
lea edx, [ebp - 0x428]
push edx
call fcn.004114cb
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
call fcn.0040166a
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x405262
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41af47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x1c]
push eax
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp + 0xc]
call fcn.004079c0
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405347
cmp dword [ebp - 0x1c], 0
jbe 0x405347
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004124b5
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x18], edx
lea ecx, [ebp + 0xc]
call fcn.004079c0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405319
jmp 0x405338
cmp dword [ebp - 0x18], 0
je 0x405331
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040e55b
add esp, 4
mov dword [ebp - 0x18], 0
jmp 0x405340
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004078d0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405476
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41af76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x1c]
call fcn.00408df0
mov dword [ebp - 0x1c], eax
lea ecx, [ebp + 0x1c]
call fcn.004079c0
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 0xc]
call fcn.004079c0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 1
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
jmp 0x4054f4
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004078d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.004078d0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cf09
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x410]
add edx, 1
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xd
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40cf67
mov ecx, dword [ebp - 0x10]
call fcn.0040cd36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040e420
mov eax, dword [eax]
mov dword [ebp - 8], eax
push 0x41e358
lea ecx, [ebp - 8]
push ecx
call fcn.004126c4
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x410], 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x40d5dd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x420]
test ecx, ecx
je 0x40d612
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x420], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx + 0x422]
mov byte [eax], dl
jmp 0x40d710
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x410], 0xffffffff
je 0x40d631
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x410], 0x3ff
jne 0x40d6c3
push 0
lea edx, [ebp - 4]
push edx
push 0x400
mov eax, dword [ebp - 0x10]
add eax, 0xd
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d68d
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
call dword [edx]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x414], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040e420
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
push 0x41e358
lea edx, [ebp - 8]
push edx
call fcn.004126c4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x414], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x414], 0
jne 0x40d6b4
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xc], 1
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
jmp 0x40d710
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x410], 0
jmp 0x40d6fb
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x410]
add ecx, 1
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x410], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x410]
cmp edx, dword [ecx + 0x414]
jl 0x40d6fb
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xc], 1
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
jmp 0x40d710
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x410]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov al, byte [edx + eax + 0xd]
mov byte [ecx], al
mov esp, ebp
pop ebp
ret 4
Function at 0x414063
Capabilities:
Inspect section memory permissions

Disassembly:
cmp eax, ebx
je 0x4140c0
add eax, esi
cmp dword [eax], ebx
je 0x4140c0
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4140bb
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x4140a5
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4140ad
cmp edx, ebx
jne 0x4141fb
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x41407c
add eax, dword [eax + 4]
jmp 0x414069
mov dword [ebp + 0xc], ebx
jmp 0x4140cb

Function at 0x417545
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x422148
cmp edx, dword [eax]
je 0x417567
add eax, 8
inc ecx
cmp eax, 0x4221d8
jl 0x417558
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x422148]
jne 0x417695
mov eax, dword [0x423d14]
cmp eax, 1
je 0x41766f
test eax, eax
jne 0x417598
cmp dword [0x421880], 1
je 0x41766f
cmp edx, 0xfc
je 0x417695
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4175cf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004118b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00411450
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x417612
lea eax, [ebp - 0x1a4]
push eax
call fcn.00411450
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41c90c
push edi
call fcn.00418370
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004118b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004118c0
lea eax, [ebp - 0xa0]
push 0x41c8ec
push eax
call fcn.004118c0
push dword [esi + 0x42214c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004118c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00419806
add esp, 0x2c
pop edi
jmp 0x417695
lea eax, [ebp + 8]
lea esi, [esi + 0x42214c]
push 0
push eax
push dword [esi]
call fcn.00411450
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret