joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a70
Capabilities:
Check os version
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4314b0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp - 0x424]
call fcn.00401e40
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401aa5
mov eax, dword [ebp - 8]
jmp 0x401c00
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 0x21c], edx
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004185a0
add esp, 0xc
mov edx, dword [ebp - 0x424]
mov eax, dword [edx]
push eax
push str._sSPInstUI.exe
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.00401930
add esp, 0x10
mov dword [ebp - 0x220], 0
cmp dword [ebp - 0x21c], 6
jb 0x401b49
mov ecx, dword [ebp - 0x424]
call fcn.00402af0
test eax, eax
jne 0x401b49
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x424]
call fcn.004028e0
mov dword [ebp - 0x220], eax
jmp 0x401b9c
cmp dword [ebp + 8], 0
je 0x401b84
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
test edx, edx
je 0x401b84
push 0x42a2e4
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.00402e70
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x218]
push edx
call fcn.00402e70
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x424]
call fcn.00402850
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x401bab
xor eax, eax
jmp 0x401c00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor ecx, ecx
mov word [ebp - 0x420], cx
push 0x1fe
push 0
lea edx, [ebp - 0x41e]
push edx
call fcn.004185a0
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
push 0x42a2e8
push 0x100
lea ecx, [ebp - 0x420]
push ecx
call fcn.00401930
add esp, 0x10
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00417e4f
mov esp, ebp
pop ebp
ret 4
Function at 0x401e40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4314b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x218], ecx
xor eax, eax
mov word [ebp - 0x208], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x206]
push ecx
call fcn.004185a0
add esp, 0xc
mov ecx, dword [ebp - 0x218]
call fcn.00402080
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401ebe
mov edx, dword [ebp - 4]
push edx
push str.SPInstStub___Fail_to_create_temp_dir__errorcode_is_0x_x_n
push 0x100
lea eax, [ebp - 0x208]
push eax
call fcn.00401930
add esp, 0x10
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 4]
jmp 0x40206a
mov ecx, dword [ebp - 0x218]
call fcn.004021d0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401f04
mov edx, dword [ebp - 4]
push edx
push str.SPInstStub___Fail_to_release_engine__errorcode_is_0x_x_n
push 0x100
lea eax, [ebp - 0x208]
push eax
call fcn.00401930
add esp, 0x10
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 4]
jmp 0x40206a
mov ecx, dword [ebp - 0x218]
call fcn.00402350
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401f4a
mov edx, dword [ebp - 4]
push edx
push str.SPInstStub___Fail_to_release_subproduct_package__errorcode_is_0x_x_n
push 0x100
lea eax, [ebp - 0x208]
push eax
call fcn.00401930
add esp, 0x10
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 4]
jmp 0x40206a
mov ecx, dword [ebp - 0x218]
call fcn.004026d0
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x401fa9
cmp dword [ebp - 0x20c], 0x716
je 0x401fa9
cmp dword [ebp - 0x20c], 0x714
je 0x401fa9
mov edx, dword [ebp - 0x20c]
push edx
push str.SPInstStub___Fail_to_release_config__errorcode_is_0x_x_n
push 0x100
lea eax, [ebp - 0x208]
push eax
call fcn.00401930
add esp, 0x10
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x218]
call fcn.00402b80
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x402008
cmp dword [ebp - 0x210], 0x716
je 0x402008
cmp dword [ebp - 0x210], 0x714
je 0x402008
mov edx, dword [ebp - 0x210]
push edx
push str.SPInstStub___Fail_to_release_extra_data__errorcode_is_0x_x_n
push 0x100
lea eax, [ebp - 0x208]
push eax
call fcn.00401930
add esp, 0x10
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x218]
call fcn.00402d00
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x402067
cmp dword [ebp - 0x214], 0x716
je 0x402067
cmp dword [ebp - 0x214], 0x714
je 0x402067
mov edx, dword [ebp - 0x214]
push edx
push str.SPInstStub___Fail_to_release_lic_data__errorcode_is_0x_x_n
push 0x100
lea eax, [ebp - 0x208]
push eax
call fcn.00401930
add esp, 0x10
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417e4f
mov esp, ebp
pop ebp
ret
Function at 0x402080
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x4314b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24c], ecx
mov ecx, dword [ebp - 0x24c]
call fcn.00403120
movzx eax, al
test eax, eax
jne 0x4020b2
xor eax, eax
jmp 0x4021c2
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.004185a0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor edx, edx
mov word [ebp - 0x238], dx
xor eax, eax
mov dword [ebp - 0x236], eax
mov dword [ebp - 0x232], eax
mov dword [ebp - 0x22e], eax
mov dword [ebp - 0x22a], eax
mov dword [ebp - 0x226], eax
mov dword [ebp - 0x222], eax
mov dword [ebp - 0x21e], eax
mov dword [ebp - 0x21a], eax
mov dword [ebp - 0x216], eax
mov word [ebp - 0x212], ax
movzx ecx, word [ebp - 0x23c]
push ecx
movzx edx, word [ebp - 0x23e]
push edx
movzx eax, word [ebp - 0x240]
push eax
movzx ecx, word [ebp - 0x242]
push ecx
movzx edx, word [ebp - 0x246]
push edx
movzx eax, word [ebp - 0x248]
push eax
push str.uempack_04d_02d_02d_02d_02d_02d
push 0x14
lea ecx, [ebp - 0x238]
push ecx
call fcn.00401930
add esp, 0x24
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x42a670
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00404600
add esp, 0x10
push 0
mov ecx, dword [ebp - 0x24c]
call fcn.004045f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4021c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4021c2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417e4f
mov esp, ebp
pop ebp
ret
Function at 0x4026d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4284b2
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x4314b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x444], ecx
xor eax, eax
mov word [ebp - 0x434], ax
push 0x206
push 0
lea ecx, [ebp - 0x432]
push ecx
call fcn.004185a0
add esp, 0xc
mov dword [ebp - 0x228], 0
mov edx, dword [ebp - 0x444]
mov eax, dword [edx]
push eax
push str._sinstConfig.xml
push 0x104
lea ecx, [ebp - 0x434]
push ecx
call fcn.00401930
add esp, 0x10
push 0
lea edx, [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x444]
add ecx, 4
call fcn.004045f0
push eax
lea ecx, [ebp - 0x224]
call fcn.00405370
mov dword [ebp - 4], 0
push 1
push 0x42a800
push 0x42a810
lea ecx, [ebp - 0x434]
push ecx
lea ecx, [ebp - 0x224]
call fcn.004055b0
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x4027dc
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x438], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00405590
mov eax, dword [ebp - 0x438]
jmp 0x402836
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402814
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x43c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00405590
mov eax, dword [ebp - 0x43c]
jmp 0x402836
mov dword [ebp - 0x440], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00405590
mov eax, dword [ebp - 0x440]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417e4f
mov esp, ebp
pop ebp
ret

Function at 0x402850
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x44
push 0
lea ecx, [ebp - 0x60]
push ecx
call fcn.004185a0
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov edx, 5
mov word [ebp - 0x30], dx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4028b7
xor eax, eax
jmp 0x4028d0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x402af0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4314b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004185a0
add esp, 0xc
mov dword [ebp - 0x214], 0x104
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x402b4e
xor eax, eax
jmp 0x402b71
push 0x42a860
lea ecx, [ebp - 0x210]
push ecx
call fcn.004187b2
add esp, 8
test eax, eax
jne 0x402b6f
mov eax, 1
jmp 0x402b71
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417e4f
mov esp, ebp
pop ebp
ret

Function at 0x402b80
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428515
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x4314b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x444], ecx
xor eax, eax
mov word [ebp - 0x434], ax
push 0x206
push 0
lea ecx, [ebp - 0x432]
push ecx
call fcn.004185a0
add esp, 0xc
mov dword [ebp - 0x228], 0
mov edx, dword [ebp - 0x444]
mov eax, dword [edx]
push eax
push 0x42a870
push 0x104
lea ecx, [ebp - 0x434]
push ecx
call fcn.00401930
add esp, 0x10
push 0
lea edx, [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x444]
add ecx, 4
call fcn.004045f0
push eax
lea ecx, [ebp - 0x224]
call fcn.00405370
mov dword [ebp - 4], 0
push 1
push str.EXTDATA
push 0x42a89c
lea ecx, [ebp - 0x434]
push ecx
lea ecx, [ebp - 0x224]
call fcn.004055b0
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x402c8c
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x438], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00405590
mov eax, dword [ebp - 0x438]
jmp 0x402ce6
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402cc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x43c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00405590
mov eax, dword [ebp - 0x43c]
jmp 0x402ce6
mov dword [ebp - 0x440], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00405590
mov eax, dword [ebp - 0x440]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417e4f
mov esp, ebp
pop ebp
ret
Function at 0x402d00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428548
mov eax, dword fs:[0]
push eax
sub esp, 0x640
mov eax, dword [0x4314b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64c], ecx
mov ecx, dword [ebp - 0x64c]
add ecx, 4
call fcn.004045f0
push eax
lea ecx, [ebp - 0x22c]
call fcn.00404d70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00404e90
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x402d97
push str.Open_licence_failed_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x640], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00404de0
mov eax, dword [ebp - 0x640]
jmp 0x402e4a
lea ecx, [ebp - 0x22c]
call fcn.00404ef0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x402df8
mov ecx, dword [ebp - 0x10]
push ecx
push str.licence_check_failed__err__d
push 0x104
lea edx, [ebp - 0x63c]
push edx
call fcn.00401930
add esp, 0x10
lea eax, [ebp - 0x63c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x644], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00404de0
mov eax, dword [ebp - 0x644]
jmp 0x402e4a
mov edx, dword [ebp - 0x64c]
mov eax, dword [edx]
push eax
push 0x42a914
push 0x104
lea ecx, [ebp - 0x434]
push ecx
call fcn.00401930
add esp, 0x10
lea edx, [ebp - 0x434]
push edx
lea ecx, [ebp - 0x22c]
call fcn.00405070
mov dword [ebp - 0x648], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00404de0
mov eax, dword [ebp - 0x648]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00417e4f
mov esp, ebp
pop ebp
ret
Function at 0x404ef0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428670
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4314b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
jne 0x404f31
mov eax, 0x57
jmp 0x405057
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
sub eax, 0x10
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0xc], 0
je 0x404f9e
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00418e21
add esp, 4
mov edx, dword [ebp - 0x30]
mov dword [edx + 0xc], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
add ecx, 1
push ecx
call fcn.00418e2c
add esp, 4
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0xc], 0
jne 0x404fe7
mov dword [ebp - 0x28], 0xe
push 0x42e814
lea eax, [ebp - 0x28]
push eax
call fcn.00418845
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.004185a0
add esp, 0xc
jmp 0x40501e
mov dword [ebp - 4], 0xffffffff
jmp 0x40502c
push 6
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
call section..text
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.00405230
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405070
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42868b
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4314b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], ecx
cmp dword [ebp + 8], 0
jne 0x4050af
mov eax, 0x57
jmp 0x40521c
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4050df
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40521c
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 8]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00418e2c
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
jmp 0x405144
mov dword [ebp - 4], 0xffffffff
jmp 0x405155
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
lea edx, [ecx + ecx + 2]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.004185a0
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
add edx, 1
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], 0
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4051f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00418e21
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x40521c
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00418e21
add esp, 4
mov dword [ebp - 0x14], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4055b0
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 8], 0
je 0x4055cb
cmp dword [ebp + 0xc], 0
je 0x4055cb
cmp dword [ebp + 0x10], 0
jne 0x4055d5
mov eax, 0x57
jmp 0x4056e4
mov ecx, dword [ebp - 0x20]
call fcn.00405540
test eax, eax
jne 0x4055ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4056e4
cmp dword [ebp + 0x14], 0
jne 0x405608
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405608
xor eax, eax
jmp 0x4056e4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x405630
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4056e4
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x405660
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4056e4
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4056d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x1c]
jmp 0x4056e4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408c70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4314b0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00408a40
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00408c10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x408cdb
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00408a70
mov eax, dword [ebp - 0x224]
jmp 0x408d6c
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x408d41
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00408c70
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x408d38
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00408a70
mov eax, dword [ebp - 0x228]
jmp 0x408d6c
mov dword [ebp - 4], 0x100
jmp 0x408ce2
lea ecx, [ebp - 0x14]
call fcn.00408b50
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.00408af0
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00408a70
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00417e4f
mov esp, ebp
pop ebp
ret 4