Function at 0x4095ad
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0x348
mov eax, 0x430d78
call fcn.00430c36
xor ebx, ebx
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x344], ebx
push ecx
push ecx
call fcn.0040a98a
push ebx
call fcn.0040b710
mov dword [0x436780], ebx
mov dword [0x436770], ebx
mov dword [0x436788], 1
mov dword [0x43678c], ebx
mov dword [0x436798], 0x404200
mov esi, 0x436770
mov dword [section..data], esi
mov edi, 0x436798
mov ecx, dword [edi]
lea edi, [edi + 4]
mov dword [ebp - 0x340], ecx
mov dword [ebp - 0x33c], ebx
mov dword [esi + 0x20], ecx
lea eax, [esi + 8]
push eax
push ebx
push ebx
lea eax, [ebp - 0x340]
push eax
push 1
push ecx
push esi
push 0x409420
call dword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsA]
mov esi, dword [esi]
test esi, esi
jne 0x40960d
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [section..data]
mov edi, section..data
cmp eax, edi
je 0x40968d
cmp byte [eax + 0x19], 4
jb 0x40968d
test byte [eax + 0x1c], 0x40
je 0x40968d
push 0x403eb4
call fcn.0040a6e1
mov dword [esp], 0x403e74
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, 0x4041f0
push 0xc
pop ecx
call fcn.00409266
mov dword [ebp - 4], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov dword [ebp - 0x328], esi
test esi, esi
jne 0x409706
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4096b8
movzx esi, si
or esi, 0x80070000
mov dword [ebp - 0x324], esi
mov eax, dword [section..data]
cmp eax, edi
je 0x4096ff
cmp byte [eax + 0x19], 2
jb 0x4096ff
test byte [eax + 0x1c], 0x40
je 0x4096ff
push esi
push 0x403ed8
call fcn.0040a6e1
pop ecx
pop ecx
push esi
push 0x403e74
mov ecx, dword [section..data]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xd
mov edx, 0x4041f0
pop ecx
call fcn.004093d0
mov eax, esi
jmp 0x40a0c0
push 0x104
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409770
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x409732
movzx esi, si
or esi, 0x80070000
mov dword [ebp - 0x324], esi
mov eax, dword [section..data]
cmp eax, edi
je 0x4096ff
cmp byte [eax + 0x19], 2
jb 0x4096ff
test byte [eax + 0x1c], 0x40
je 0x4096ff
push esi
push 0x403efc
call fcn.0040a6e1
pop ecx
pop ecx
push esi
push 0x403e74
mov ecx, dword [section..data]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xe
jmp 0x4096f4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 0x338], eax
push 0x104
lea eax, [ebp - 0x320]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4097a5
mov dword [ebp - 0x330], ebx
jmp 0x4097c8
mov edx, dword [ebp - 0x338]
lea ecx, [ebp - 0x320]
call fcn.0040b09a
mov esi, eax
mov dword [ebp - 0x330], esi
test esi, esi
jne 0x40983a
mov esi, dword [ebp - 0x328]
mov eax, dword [section..data]
cmp eax, edi
je 0x40982c
cmp byte [eax + 0x19], 2
jb 0x40982c
test byte [eax + 0x1c], 0x40
je 0x40982c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4097ef
movzx eax, ax
or eax, 0x80070000
push eax
push 0x403f24
call fcn.0040a6e1
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40980e
movzx eax, ax
or eax, 0x80070000
push eax
push 0x403e74
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, 0x4041f0
push 0xf
pop ecx
call fcn.004093d0
mov dword [ebp - 0x330], esi
mov dword [ebp - 0x344], ebx
jmp 0x409844
mov dword [ebp - 0x344], 1
push 0x30d40
push esi
call fcn.00409494
pop ecx
pop ecx
push 0xa
push 0x65
push dword [ebp - 0x328]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x334], eax
test eax, eax
jne 0x4098dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x409880
movzx ebx, bx
or ebx, 0x80070000
mov dword [ebp - 0x324], ebx
mov eax, dword [section..data]
cmp eax, edi
je 0x4098c6
cmp byte [eax + 0x19], 2
jb 0x4098c6
test byte [eax + 0x1c], 0x40
je 0x4098c6
push ebx
push 0x403f50
call fcn.0040a6e1
pop ecx
pop ecx
push ebx
push 0x403e74
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x10
mov edx, 0x4041f0
pop ecx
call fcn.004093d0
push ebx
push 0x30d42
push esi
call fcn.00409494
add esp, 0xc
mov eax, ebx
jmp 0x40a0c0
push eax
push dword [ebp - 0x328]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x338], eax
test eax, eax
jne 0x409948
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x409908
movzx ebx, bx
or ebx, 0x80070000
mov dword [ebp - 0x324], ebx
mov eax, dword [section..data]
cmp eax, edi
je 0x4098c6
cmp byte [eax + 0x19], 2
jb 0x4098c6
test byte [eax + 0x1c], 0x40
je 0x4098c6
push ebx
push 0x403f88
call fcn.0040a6e1
pop ecx
pop ecx
push ebx
push 0x403e74
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x11
jmp 0x4098bb
push dword [ebp - 0x334]
push dword [ebp - 0x328]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4099bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x409973
movzx ebx, bx
or ebx, 0x80070000
mov dword [ebp - 0x324], ebx
mov eax, dword [section..data]
cmp eax, edi
je 0x4098c6
cmp byte [eax + 0x19], 2
jb 0x4098c6
test byte [eax + 0x1c], 0x40
je 0x4098c6
push ebx
push 0x403fc0
call fcn.0040a6e1
pop ecx
pop ecx
push ebx
push 0x403e74
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x12
jmp 0x4098bb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x348], eax
test eax, eax
jne 0x409a31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x4099e5
movzx ebx, bx
or ebx, 0x80070000
mov dword [ebp - 0x324], ebx
mov eax, dword [section..data]
cmp eax, edi
je 0x4098c6
cmp byte [eax + 0x19], 2
jb 0x4098c6
test byte [eax + 0x1c], 0x40
je 0x4098c6
push ebx
push 0x403ff8
call fcn.0040a6e1
pop ecx
pop ecx
push ebx
push 0x403e74
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x13
jmp 0x4098bb
mov dword [ebp - 0x328], ebx
mov byte [ebp - 4], 1
mov eax, dword [0x436048]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x437364]
mov ecx, 0x436048
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x334], esi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x328]
push eax
call fcn.0040b97e
test eax, eax
jne 0x409f01
mov eax, dword [ebp - 0x328]
test eax, eax
je 0x409a81
mov edx, dword [eax]
jmp 0x409a83
mov edx, ebx
test edx, edx
jne 0x409a8b
mov ecx, ebx
jmp 0x409a9f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x409a90
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x334]
call fcn.0040a1a9
push ecx
lea edx, [ebp - 0x334]
lea ecx, [ebp - 0x32c]
call fcn.0040a0db
mov byte [ebp - 4], 3
mov eax, dword [section..data]
cmp eax, edi
je 0x409b0c
cmp byte [eax + 0x19], 4
jb 0x409b0c
test byte [eax + 0x1c], 0x40
je 0x409b0c
push dword [ebp - 0x32c]
push 0x404068
call fcn.0040a6e1
pop ecx
pop ecx
push dword [ebp - 0x32c]
push 0x403e74
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, 0x4041f0
push 0x15
pop ecx
call fcn.004092b0
push ebx
push 0x80
push 2
push ebx
push 7
push 0x40000000
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34c], eax
cmp eax, 0xffffffff
jne 0x409bdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x409b4c
movzx esi, si
or esi, 0x80070000
mov dword [ebp - 0x324], esi
mov eax, dword [section..data]
cmp eax, edi
je 0x409b92
cmp byte [eax + 0x19], 2
jb 0x409b92
test byte [eax + 0x1c], 0x40
je 0x409b92
push esi
push 0x404084
call fcn.0040a6e1
pop ecx
pop ecx
push esi
push 0x403e74
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
mov edx, 0x4041f0
pop ecx
call fcn.004093d0
push esi
push 0x30d44
push dword [ebp - 0x330]
call fcn.00409494
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x32c]
lea ecx, [ecx - 0x10]
call fcn.0040a431
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x334]
add ecx, 0xfffffff0
call fcn.0040a431
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x328]
call fcn.0040a461
jmp 0x4096ff
push ebx
lea ecx, [ebp - 0x350]
push ecx
push dword [ebp - 0x338]
push dword [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x348], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x409c13
movzx esi, si
or esi, 0x80070000
mov dword [ebp - 0x324], esi
push dword [ebp - 0x34c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x348], 0
jne 0x409c74
mov eax, dword [section..data]
cmp eax, edi
je 0x409b92
cmp byte [eax + 0x19], 2
jb 0x409b92
test byte [eax + 0x1c], 0x40
je 0x409b92
push esi
push 0x4040b8
call fcn.0040a6e1
pop ecx
pop ecx
push esi
push 0x403e74
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x17
jmp 0x409b87
mov eax, dword [ebp - 0x338]
cmp dword [ebp - 0x350], eax
je 0x409cdc
mov esi, 0x80004005
mov dword [ebp - 0x324], esi
mov eax, dword [section..data]
cmp eax, edi
je 0x409b92
cmp byte [eax + 0x19], 2
jb 0x409b92
test byte [eax + 0x1c], 0x40
je 0x409b92
push 0x4040e8
call fcn.0040a6e1
mov dword [esp], 0x403e74
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, 0x4041f0
push 0x18
pop ecx
call fcn.00409266
jmp 0x409b92
lea ecx, [ebp - 0x340]
call fcn.0040bced
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x340]
call fcn.0040c09f
mov esi, eax
mov dword [ebp - 0x324], esi
test esi, esi
jne 0x409d59
mov eax, dword [section..data]
cmp eax, edi
je 0x409d4a
cmp byte [eax + 0x19], 4
jb 0x409d4a
test byte [eax + 0x1c], 0x40
je 0x409d4a
mov esi, dword [ebp - 0x334]
push esi
push 0x404130
call fcn.0040a6e1
pop ecx
pop ecx
push esi
push 0x403e74
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, 0x4041f0
push 0x19
pop ecx
call fcn.004092b0
jmp 0x409d50
mov esi, dword [ebp - 0x334]
mov eax, 0x30d41
mov ecx, esi
jmp 0x409da6
mov eax, dword [section..data]
cmp eax, edi
je 0x409d99
cmp byte [eax + 0x19], 2
jb 0x409d99
test byte [eax + 0x1c], 0x40
je 0x409d99
push esi
push 0x40416c
call fcn.0040a6e1
pop ecx
pop ecx
push esi
push 0x403e74
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, 0x4041f0
push 0x1a
pop ecx
call fcn.004093d0
mov eax, 0x30d46
mov ecx, esi
mov esi, dword [ebp - 0x334]
push ecx
push eax
push dword [ebp - 0x330]
call fcn.00409494
add esp, 0xc
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409eb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x338], eax
test eax, eax
jle 0x409de8
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 0x338], eax
mov dword [ebp - 0x324], eax
mov ecx, dword [section..data]
cmp ecx, edi
je 0x409e47
cmp byte [ecx + 0x19], 2
jb 0x409e47
test byte [ecx + 0x1c], 0x40
je 0x409e47
push eax
push dword [ebp - 0x32c]
push 0x4041a4
call fcn.0040a6e1
add esp, 0xc
push dword [ebp - 0x338]
push dword [ebp - 0x32c]
push 0x403e74
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, 0x4041f0
push 0x1b
pop ecx
call fcn.0040933d
mov eax, dword [ebp - 0x338]
push eax
push dword [ebp - 0x32c]
push 0x30d45
push dword [ebp - 0x330]
call fcn.00409494
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x33c]
call fcn.0040a461
lea ecx, [ebp - 0x340]
call fcn.0040a461
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x32c]
lea ecx, [ecx - 0x10]
call fcn.0040a431
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
call fcn.0040a431
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x328]
call fcn.0040a461
mov eax, dword [ebp - 0x338]
jmp 0x40a0c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x33c]
call fcn.0040a461
lea ecx, [ebp - 0x340]
call fcn.0040a461
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x32c]
lea ecx, [ecx - 0x10]
call fcn.0040a431
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
call fcn.0040a431
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x328]
call fcn.0040a461
or dword [ebp - 4], 0xffffffff
jmp 0x409fe9
mov eax, dword [section..data]
cmp eax, edi
je 0x409f3f
cmp byte [eax + 0x19], 2
jb 0x409f3f
test byte [eax + 0x1c], 0x40
je 0x409f3f
push 0x404030
call fcn.0040a6e1
mov dword [esp], 0x403e74
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, 0x4041f0
push 0x14
pop ecx
call fcn.00409266
push 0x30d43
push dword [ebp - 0x330]
call fcn.00409494
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
call fcn.0040a431
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x328]
call fcn.0040a461
xor eax, eax
jmp 0x40a0c0
cmp dword [ebp - 0x344], 0
je 0x409ffe
push dword [ebp - 0x330]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.0040b887
mov esi, dword [section..data]
cmp esi, edi
je 0x40a0ba
jmp 0x40a0b0
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x40a0ae
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov esi, dword [esi]
test esi, esi
jne 0x40a094
mov dword [section..data], edi
mov eax, dword [ebp - 0x324]
call fcn.00430b88
ret