joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bd30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x427e20
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x438860]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x40bdb2
call fcn.00407de0
mov edi, eax
jmp 0x40be94
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40bdcb
call fcn.00407de0
jmp 0x40be8b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x40bde6
call fcn.00407de0
jmp 0x40be8b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], edi
cmp eax, edi
jae 0x40be1c
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40be0a
lea ecx, [ebp]
call fcn.00408aa0
lea ecx, [ebp - 0x20]
call fcn.004089b0
mov eax, 0x8007000e
jmp 0x40bea6
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004099f0
mov dword [ebp - 4], 1
jmp 0x40be48
mov eax, dword [ebp]
test eax, eax
jne 0x40be56
mov edi, 0x8007000e
jmp 0x40be8d
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40be6f
call fcn.00407de0
jmp 0x40be8b
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040b680
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x40bea4
lea ecx, [ebp]
call fcn.00408aa0
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 + 0x404]
xor ecx, ebp
call fcn.00411e9c
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40e360
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x428288
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x438860]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [esp + 0x8c]
xor ebp, ebp
cmp esi, ebp
je 0x40e3ae
push esi
call fcn.00401690
add esp, 4
test eax, eax
je 0x40e3c7
mov eax, dword [esp + 0x94]
mov dword [eax], 0xfffffffd
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x88]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edi, 1
push eax
lea ecx, [esp + 0x98]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x98], edi
call fcn.0040e0f0
add esp, 0xc
mov dword [esp + 0x1c], eax
cmp eax, ebp
je 0x40e57d
push str.GetToken_S_succeed
call fcn.0040e000
push 0x44
lea ecx, [esp + 0x3c]
push ebp
push ecx
call fcn.00412170
add esp, 0x10
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x8c], ebp
push edi
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x94]
mov dword [esp + 0x88], ebp
mov dword [esp + 0x28], 0x22
call fcn.00407e20
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
push eax
push esi
lea ecx, [esp + 0x94]
call fcn.00407e20
cmp eax, ebp
jge 0x40e476
push eax
call fcn.00407c50
push 0x4320fc
call edi
push eax
push 0x4320fc
lea ecx, [esp + 0x94]
call fcn.00407e20
mov ebx, dword [esp + 0x90]
cmp ebx, ebp
je 0x40e4c2
push 1
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x94]
mov dword [esp + 0x28], 0x20
call fcn.00407e20
push ebx
lea ecx, [esp + 0x90]
call fcn.00408bb0
cmp dword [esp + 0x98], ebp
je 0x40e4e4
push str.__runbysrv
call edi
push eax
push str.__runbysrv
lea ecx, [esp + 0x94]
call fcn.00407e20
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x8c]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x38]
push edx
push ebp
push eax
push 0x400
push ebp
push ebp
push ebp
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40e552
push str.CreateProcessAsUser_succeed
call fcn.0040e000
mov edx, dword [esp + 0x28]
add esp, 4
push edx
call esi
mov eax, dword [esp + 0x28]
push eax
call esi
mov eax, dword [esp + 0x94]
cmp eax, ebp
je 0x40e56d
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [eax], ebp
call esi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40e5a7
mov edi, dword [esp + 0x94]
mov dword [esp + 0x14], 1
cmp edi, ebp
je 0x40e56d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov ecx, dword [esp + 0x1c]
push ecx
call esi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40e5a7
push str.GetToken_S_fail
call fcn.0040e000
mov eax, dword [esp + 0x98]
add esp, 4
mov dword [esp + 0x14], edi
cmp eax, ebp
je 0x40e5a7
mov edx, dword [esp + 0x8c]
neg edx
sbb edx, edx
dec edx
mov dword [eax], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
Function at 0x40ece0
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, 0x1020
call fcn.00411eb0
mov eax, dword [0x438860]
xor eax, esp
mov dword [esp + 0x101c], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor ebp, ebp
push ebp
push ebp
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40ed3b
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40ed30
push eax
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebp, ebp
jne 0x40ed45
mov eax, 1
jmp 0x40eed6
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40ed9f
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80a
call fcn.0040e740
add esp, 0xc
test eax, eax
jne 0x40ed92
push str.Could_not_open_Service_Manager
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.00413483
push eax
call fcn.00407c70
add esp, 0x10
push 0
push ebx
lea edx, [esp + 0x34]
push edx
jmp 0x40eecc
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40edfd
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80c
call fcn.0040e740
add esp, 0xc
test eax, eax
jne 0x40ed92
push str.Could_not_open_service
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.00413483
push eax
call fcn.00407c70
add esp, 0x10
push esi
push ebx
lea edx, [esp + 0x34]
push edx
jmp 0x40eecc
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40ee6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x40ee6c
cmp eax, 0x425
jne 0x40ee2a
cmp dword [esp + 0x14], 3
je 0x40ee6c
push 0x400
lea ecx, [esp + 0x30]
push ecx
push 0xd80e
call fcn.0040e740
add esp, 0xc
test eax, eax
jne 0x40ee5c
push str.Could_not_stop_service
lea edx, [esp + 0x30]
push 0x400
push edx
call fcn.0040e700
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
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
jne 0x40ed3b
push 0x400
lea ecx, [esp + 0x830]
push ecx
push 0xd80d
call fcn.0040e740
add esp, 0xc
test eax, eax
jne 0x40eec1
push str.Could_not_delete_service
lea edx, [esp + 0x830]
push 0x400
push edx
call fcn.0040e700
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x834]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00411e9c
add esp, 0x1020
ret
Function at 0x40eef0
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x208
mov eax, dword [0x438860]
xor eax, esp
mov dword [esp + 0x204], eax
mov ecx, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x210]
lea eax, [esp + 0x218]
push eax
push ecx
push 0xff
lea edx, [esp + 0x14]
push 0x100
push edx
call fcn.004138ad
xor eax, eax
add esp, 0x14
lea ecx, [esp + 8]
mov word [esp + 0x206], ax
mov dword [esp + 4], ecx
cmp dword [esi + 0x260], eax
jne 0x40ef58
mov edx, ecx
push edx
call fcn.004135c0
add esp, 4
add esi, 0x40
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40ef8b
push 0
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [esp + 0x208]
pop esi
xor ecx, esp
call fcn.00411e9c
add esp, 0x208
ret
Function at 0x40f230
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
sub esp, 0xa18
mov eax, dword [0x438860]
xor eax, esp
mov dword [esp + 0xa14], eax
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov ebx, ecx
call ebp
mov esi, eax
test esi, esi
je 0x40f28d
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40f27e
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x40f411
push 0x104
lea ecx, [esp + 0x1e]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40f309
cmp eax, 0x104
je 0x40f309
mov edx, 0x22
mov word [esp + 0x18], dx
mov ecx, edx
xor edx, edx
push 0xf003f
push edx
push edx
mov word [esp + eax*2 + 0x26], cx
mov word [esp + eax*2 + 0x28], dx
call ebp
mov esi, eax
test esi, esi
jne 0x40f324
push 0x400
lea eax, [esp + 0x228]
push eax
push 0xd80a
call fcn.0040e740
add esp, 0xc
test eax, eax
jne 0x40f309
push str.Could_not_open_Service_Manager
push 0x400
lea ecx, [esp + 0x22c]
push ecx
call fcn.0040e700
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0xa24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00411e9c
add esp, 0xa18
ret
push 0
push 0
push str.RPCSS
xor eax, eax
cmp byte [ebx + 0x268], al
push 0
push 0
sete al
lea edx, [esp + 0x2c]
push edx
push 1
lea ecx, [ebx + 0x40]
add eax, 2
push eax
push 0x10
push 0xf01ff
push 0x429cfc
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
jne 0x40f3a0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea edx, [esp + 0x228]
push edx
push 0xd80b
call fcn.0040e740
add esp, 0xc
test eax, eax
jne 0x40f309
push str.Could_not_start_service
push 0x400
lea eax, [esp + 0x22c]
push eax
jmp 0x40f301
mov ebp, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea ecx, [esp + 0x14]
push ecx
push 1
push edi
mov dword [esp + 0x20], 0x429c80
call ebp
test eax, eax
jne 0x40f3c3
push str.ChangeServiceConfig2_failed_n
jmp 0x40f3c8
push str.Service_description_updated_successfully._n
call fcn.004138cd
add esp, 4
cmp byte [ebx + 0x268], 0
je 0x40f405
cmp byte [ebx + 0x269], 0
je 0x40f405
lea edx, [esp + 0x10]
push edx
push 3
push edi
mov dword [esp + 0x1c], 1
call ebp
test eax, eax
jne 0x40f405
push str.ChangeServiceConfig2_delay_autostart_failed_n
call fcn.004138cd
add esp, 4
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
mov eax, 1
jmp 0x40f30b
Function at 0x40f420
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, 0x1024
call fcn.00411eb0
mov eax, dword [0x438860]
xor eax, esp
mov dword [esp + 0x1020], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40f487
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x40f47c
push eax
mov edi, 1
call ebp
jmp 0x40f480
mov edi, dword [esp + 0x10]
push esi
call ebp
test edi, edi
jne 0x40f491
mov eax, 1
jmp 0x40f5ee
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40f4e7
push 0x400
lea eax, [esp + 0x34]
push eax
push 0xd80a
call fcn.0040e740
add esp, 0xc
test eax, eax
jne 0x40f5ec
push str.Could_not_open_Service_Manager
lea ecx, [esp + 0x34]
push 0x400
push ecx
call fcn.00413483
push eax
call fcn.00407c70
add esp, 0x10
jmp 0x40f5ec
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40f53e
push edi
call ebp
push 0x400
lea edx, [esp + 0x34]
push edx
push 0xd80c
call fcn.0040e740
add esp, 0xc
test eax, eax
jne 0x40f5ec
push str.Could_not_open_service
lea eax, [esp + 0x34]
push 0x400
push eax
call fcn.00413483
push eax
call fcn.00407c70
add esp, 0x10
jmp 0x40f5ec
lea ecx, [esp + 0x14]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40f59d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x40f59d
cmp eax, 0x425
jne 0x40f56b
cmp dword [esp + 0x18], 3
je 0x40f59d
push 0x400
lea edx, [esp + 0x34]
push edx
push 0xd80e
call fcn.0040e740
add esp, 0xc
test eax, eax
jne 0x40f59d
push str.Could_not_stop_service
lea eax, [esp + 0x34]
push 0x400
push eax
call fcn.0040e700
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov ebx, eax
call ebp
push edi
call ebp
test ebx, ebx
jne 0x40f487
push 0x400
lea ecx, [esp + 0x834]
push ecx
push 0xd80d
call fcn.0040e740
add esp, 0xc
test eax, eax
jne 0x40f5ec
push str.Could_not_delete_service
lea edx, [esp + 0x834]
push 0x400
push edx
call fcn.0040e700
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x1030]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00411e9c
add esp, 0x1024
ret
Function at 0x4101f0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x41020c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x40fa50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x410234
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x410470
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x18
push edi
mov edi, ecx
call fcn.0040f420
test eax, eax
jne 0x41048b
mov eax, 0x80004005
pop edi
add esp, 0x18
ret 4
mov ecx, dword [0x441378]
push ebx
lea eax, [esp + 0x10]
push eax
push 1
push 0x65
xor ebx, ebx
push ecx
mov dword [esp + 0x20], str.APPID
mov dword [esp + 0x24], 0x429a98
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.0040bf90
cmp eax, ebx
jl 0x4105c5
push esi
push 0x20006
push str.AppID
push SysReAllocString
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00407160
cmp eax, ebx
je 0x41050d
push eax
call fcn.00407e00
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
je 0x410502
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x18
ret 4
mov edx, dword [esp + 0x14]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push 0x429a98
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00407fc0
mov esi, eax
cmp esi, ebx
je 0x41055b
lea ecx, [esp + 0xc]
call fcn.00407110
lea ecx, [esp + 0x14]
call fcn.00407110
push esi
call fcn.00407e00
add esp, 4
pop esi
pop ebx
pop edi
add esp, 0x18
ret 4
mov eax, dword [esp + 0xc]
push str.LocalService
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp byte [esp + 0x28], bl
je 0x4105b0
push 1
lea ecx, [edi + 0x40]
push ecx
push str.LocalService
lea ecx, [esp + 0x18]
call fcn.00408060
mov ecx, edi
call fcn.0040f230
test eax, eax
jne 0x4105b0
lea ecx, [esp + 0xc]
call fcn.00407110
lea ecx, [esp + 0x14]
call fcn.00407110
pop esi
pop ebx
mov eax, 0x80004005
pop edi
add esp, 0x18
ret 4
lea ecx, [esp + 0xc]
call fcn.00407110
lea ecx, [esp + 0x14]
call fcn.00407110
xor eax, eax
pop esi
pop ebx
pop edi
add esp, 0x18
ret 4
Function at 0x4105d0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x14
call fcn.0040ece0
test eax, eax
jne 0x4105e5
mov eax, 0x80004005
add esp, 0x14
ret
lea eax, [esp]
push eax
push 0x20006
push 0
push str.AppID
push SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41066c
mov eax, dword [esp]
push ebp
push esi
push edi
push 0x20006
push 0x429a98
mov ebp, eax
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00407160
test eax, eax
je 0x410679
push eax
call fcn.00407e00
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x41065c
push eax
call edi
test ebp, ebp
je 0x410663
push ebp
call edi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x14
ret
push eax
call fcn.00407e00
add esp, 4
add esp, 0x14
ret
mov esi, dword [esp + 0x10]
push str.LocalService
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
call fcn.00410430
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
test esi, esi
je 0x41069f
push esi
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4106aa
push eax
call edi
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x14
ret

Function at 0x411e9c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x438860]
jne 0x411ea6
repz ret
jmp fcn.0041a16d
Function at 0x401ec0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x118]
push esi
push edi
push ebx
xor esi, esi
call fcn.00402bb0
mov eax, dword [esp + 0x120]
add esp, 4
push eax
push ebx
call fcn.00403eb0
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
add esp, 8
rep stosd dword es:[edi], eax
push 0x104
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.00403c80
add esp, 0xc
lea edx, [esp + 0x10]
push esi
push 0x8000080
push 2
push esi
push esi
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401f68
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x401f4b
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x401f4d
xor esi, esi
lea eax, [esp + 0x10]
push eax
push 5
call fcn.00401740
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x108
ret
mov ebx, dword [esp + 0x118]
lea ecx, [esp + 0xc]
push 0
push ecx
mov edx, dword [ebx]
lea eax, [ebx + 4]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0xc]
mov eax, dword [ebx]
cmp ecx, eax
je 0x401fbf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x401fbd
call esi
mov esi, eax
push edi
and esi, 0xffff
or esi, 0x80070000
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x108
ret
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x108
ret

Function at 0x402370
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
sub esp, 0x10c
mov ecx, 0x41
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x18]
push 0x104
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x128]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00403c80
add esp, 0xc
lea edx, [esp + 0x18]
push 0
push 0x8000080
push 3
push 0
push 0
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4023e2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4023d3
call esi
lea eax, [esp + 0x18]
push eax
push 7
call fcn.00401740
add esp, 8
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x402460
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test esi, esi
mov dword [esp + 0x10], eax
je 0x402459
mov ebp, dword [esp + 0x120]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x14], 4
jne 0x402452
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push eax
push ecx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
Function at 0x402940
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x214
push ebx
mov ebx, dword [esp + 0x21c]
push ebp
push esi
push edi
xor edi, edi
push edi
push ebx
push edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
call fcn.00402c70
add esp, 0xc
push ebx
call fcn.00402db0
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
push esi
push ebx
push eax
call fcn.00402c70
add esp, 0xc
mov word [esp + esi*2 + 0x1c], 0x30
push edi
push 0x8000080
push 3
push edi
push edi
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4029f2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4029d8
call esi
mov esi, eax
push ebx
and esi, 0xffff
push 7
or esi, 0x80070000
call fcn.00401740
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
push ebx
push 7
xor esi, esi
call fcn.00401740
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
push edi
push edi
push edi
push 2
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x402aa8
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
add edi, esi
test esi, esi
je 0x402a9d
push 8
push str.SPLITCIL
push esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x80070570
call fcn.0040ae10
add esp, 0xc
test eax, eax
jne 0x402a5e
mov ecx, dword [esp + 0x22c]
push ecx
push edi
push esi
call fcn.00401fe0
jmp 0x402a8f
push 8
push str.BUILDCIL
push esi
call fcn.0040ad60
add esp, 0xc
test eax, eax
jne 0x402a96
mov eax, dword [esp + 0x22c]
test eax, eax
jne 0x402a87
push edi
push esi
push ebx
call fcn.00402480
jmp 0x402a8f
push eax
push edi
push esi
call fcn.00402260
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x402ae7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x402ada
call esi
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret