joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10094006
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b2802
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100dd3e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x24]
call fcn.10003b07
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.100a9c65
pop ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x38]
lea ecx, [ebp - 0x24]
call fcn.10003ba5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.100104e6
lea eax, [ebp - 0x24]
push eax
call fcn.10092871
pop ecx
push str.Download_
lea ecx, [ebp - 0x24]
call fcn.10009ef1
push 0
lea ecx, [ebp - 0x24]
call fcn.1003338d
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.10093c3e
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10003ca4
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.1003338d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str..tdl
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10010702
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.1003338d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str..xfd
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10010702
add esp, 0xc
mov byte [ebp - 4], 5
push str..xftp
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10010702
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.1003338d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x2c], 1
lea ecx, [ebp - 0x10]
call fcn.100104e6
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.100104e6
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.100104e6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.100104e6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.100104e6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.100104e6
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 8
Function at 0x10094191
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b2835
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100dd3e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.100929a6
lea ecx, [ebp - 0x1c]
call fcn.10003b07
and dword [ebp - 4], 0
push 0x100bae7e
push 0x100c0cc4
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
call fcn.100afa6c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 1
push 0
push 0x100c0cb8
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
call dword [eax + 0x18]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.1003338d
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10015dd2
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.100104e6
lea eax, [ebp - 0x18]
push eax
call fcn.100a9c65
pop ecx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
call fcn.10092871
pop ecx
push 0x100c0cc8
lea ecx, [ebp - 0x18]
call fcn.10009ef1
push 0
lea ecx, [ebp - 0x18]
call fcn.1003338d
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x100c0cdc
lea ecx, [ebp - 0x18]
call fcn.10009ef1
lea ecx, [ebp - 0x18]
call fcn.1003338d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1438
call fcn.1006dd7d
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
push 0x1438
push 0
push dword [ebp - 0x10]
call fcn.10070cb0
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 2
push 0xe0
call fcn.1006dd7d
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x100942cf
mov ecx, dword [ebp - 0x2c]
call fcn.1003c75f
mov dword [ebp - 0x3c], eax
jmp 0x100942d3
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
and dword [eax + 8], 0
lea ecx, [ebp - 0x1c]
call fcn.1003338d
push eax
mov ecx, dword [ebp - 0x14]
call fcn.10009f34
lea ecx, [ebp - 0x18]
call fcn.1003338d
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
call fcn.10009f34
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.1003d86f
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push dword [ebp + 8]
call dword [eax + 0x2c]
and dword [ebp - 0x30], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.100104e6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100104e6
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 4
Function at 0x1009469e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b29ec
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100dd3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x22c]
call fcn.1002411c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.1003dc67
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x228]
call fcn.1003dc36
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x22c]
call fcn.10010e34
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0x23c]
call fcn.10093a05
test eax, eax
jne 0x10094750
and dword [ebp - 0x230], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.1002c8c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.1002c8c8
mov eax, dword [ebp - 0x230]
jmp 0x10094853
push 0x100c1848
lea ecx, [ebp - 0x22c]
call fcn.100378f5
lea ecx, [ebp - 0x22c]
call fcn.1003dc4f
test eax, eax
jne 0x1009479f
and dword [ebp - 0x234], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.1002c8c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.1002c8c8
mov eax, dword [ebp - 0x234]
jmp 0x10094853
and word [ebp - 0x224], 0
push 0x208
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.10070cb0
add esp, 0xc
lea ecx, [ebp - 0x22c]
call fcn.10010e34
push eax
push 0x104
lea eax, [ebp - 0x224]
push eax
push str.setup.exe
push str.PacketExe
push str.setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x228]
call fcn.100378f5
lea ecx, [ebp - 0x228]
call fcn.10010e34
push eax
push 0x104
mov eax, dword [ebp + 0xc]
add eax, 0x90
push eax
call fcn.100714e9
add esp, 0xc
lea ecx, [ebp - 0x228]
call fcn.1003dc4f
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.1002c8c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.1002c8c8
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006e011
leave
ret 8
Function at 0x10095f28
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b2c9d
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x100dd3e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.100929a6
lea ecx, [ebp - 0x22c]
call fcn.10003b07
and dword [ebp - 4], 0
push str.8.1.2965.301
lea ecx, [ebp - 0x238]
call fcn.10003b3a
mov byte [ebp - 4], 1
push 0x100bae3f
push 0x100c0c8c
lea eax, [ebp - 0x234]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
call fcn.100afa6c
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x254], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x254]
push 0
push 0x100c0c90
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
call dword [eax + 0x18]
push eax
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.10095d15
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.100104e6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.100104e6
and word [ebp - 0x224], 0
push 0x208
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.10070cb0
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x23c]
call fcn.10003b3a
mov byte [ebp - 4], 3
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 8]
call fcn.10092a49
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x23c]
call fcn.100104e6
push 0x1438
call fcn.1006dd7d
pop ecx
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x10], eax
push 0x1438
push 0
push dword [ebp - 0x10]
call fcn.10070cb0
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x186a0
push 0xe0
call fcn.1006dd7d
pop ecx
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
je 0x100960d1
mov ecx, dword [ebp - 0x248]
call fcn.1003c75f
mov dword [ebp - 0x258], eax
jmp 0x100960d8
and dword [ebp - 0x258], 0
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x22c]
call fcn.1003338d
push eax
mov ecx, dword [ebp - 0x228]
call fcn.10009f34
lea ecx, [ebp - 0x230]
call fcn.1003338d
push eax
mov ecx, dword [ebp - 0x228]
add ecx, 0x1c
call fcn.10009f34
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.1003d86f
mov ecx, dword [ebp - 0x228]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
call fcn.100924de
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100]
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x100], eax
and dword [ebp - 0x24c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.100104e6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.100104e6
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006e011
leave
ret 4
Function at 0x10097507
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b3016
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x100dd3e0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], ecx
lea ecx, [ebp - 0x10]
call fcn.10003b07
and dword [ebp - 4], 0
push 0
push str.KvNoCmdline
mov eax, dword [ebp - 0x240]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x240]
mov ecx, dword [ecx + 0x10]
mov eax, dword [eax]
push ecx
call dword [eax + 0x20]
test eax, eax
je 0x10097585
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x320], 0
jne 0x10097585
push 0x100c109c
lea ecx, [ebp - 0x10]
call fcn.10003bbe
jmp 0x10097659
and word [ebp - 0x22c], 0
push 0x208
push 0
lea eax, [ebp - 0x22a]
push eax
call fcn.10070cb0
add esp, 0xc
push 0
push 0x26
lea eax, [ebp - 0x22c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Kingsoft
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x230]
call fcn.10003b07
mov byte [ebp - 4], 1
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._silence1handle_dsupply_dinstallpath__s_
lea eax, [ebp - 0x230]
push eax
call fcn.10015dd2
add esp, 0x14
mov eax, dword [ebp + 0x10]
add eax, 0x3a8
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.10010702
add esp, 0xc
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x248]
lea ecx, [ebp - 0x10]
call fcn.10003ba5
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.100104e6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.100104e6
mov eax, dword [ebp + 0x10]
add eax, 0x328
push eax
call fcn.1006dffb
pop ecx
test eax, eax
jne 0x10097678
mov dword [ebp - 0x24c], 0x100c111c
jmp 0x10097686
mov eax, dword [ebp + 0x10]
add eax, 0x328
mov dword [ebp - 0x24c], eax
push dword [ebp - 0x24c]
lea ecx, [ebp - 0x18]
call fcn.10003b3a
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x240]
push dword [eax + 0x10]
mov eax, dword [ebp + 0x10]
push dword [eax + 4]
mov eax, dword [ebp + 0x10]
push dword [eax + 0x428]
lea ecx, [ebp - 0x18]
call fcn.1003338d
push eax
mov eax, dword [ebp + 0x10]
add eax, 0x90
push eax
call fcn.10011868
mov ecx, eax
call fcn.100a077c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10097717
lea ecx, [ebp - 0x10]
call fcn.1003338d
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
call dword [eax]
test eax, eax
je 0x10097717
and dword [ebp - 0x238], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.100104e6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100104e6
mov eax, dword [ebp - 0x238]
jmp 0x10097759
mov dword [ebp - 0x23c], 9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.100104e6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100104e6
mov eax, dword [ebp - 0x23c]
jmp 0x10097759
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1006e011
leave
ret 0xc
Function at 0x100977b7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b3046
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100dd3e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
and dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x1c]
add ecx, 0x50
call fcn.1003338d
push eax
lea ecx, [ebp - 0x18]
call fcn.100207c5
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
call fcn.1003338d
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x10]
mov eax, dword [eax]
push ecx
call dword [eax + 0x10]
xor ecx, ecx
test eax, eax
setge cl
mov byte [ebp - 0x11], cl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000a869
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x10097848
mov ecx, dword [ebp - 0x1c]
call fcn.10097772
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x50
call fcn.1003338d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret
Function at 0x100997d4
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x100dd3e0]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x100997fd
xor eax, eax
jmp 0x10099866
and dword [ebp - 0x244], 0
and dword [ebp - 8], 0
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10099857
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
call fcn.100728b1
pop ecx
pop ecx
test eax, eax
jne 0x10099844
mov dword [ebp - 0x244], 1
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10099825
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1006e011
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100dd3e0]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 0x228], 0
and dword [ebp - 0x224], 0
and dword [ebp - 0x230], 0
and dword [ebp - 0x220], 0
and dword [ebp - 0x218], 0
and dword [ebp - 0x22c], 0
and word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.10070cb0
add esp, 0xc
and dword [ebp - 4], 0
or dword [ebp - 0x21c], 0xffffffff
and dword [ebp - 0x214], 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x10099ce9
xor eax, eax
jmp 0x10099df4
push dword [ebp - 0x230]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x10099d0e
xor eax, eax
jmp 0x10099df4
push dword [ebp - 0x230]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x10099d33
xor eax, eax
jmp 0x10099df4
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x10099d55
xor eax, eax
jmp 0x10099df4
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
jne 0x10099d8f
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x10099df4
push 0
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x22c]
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x10099ddb
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10099df4
mov dword [ebp - 0x228], 1
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1006e011
leave
ret
Function at 0x1009a2a0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100f94d4]
inc eax
mov dword [0x100f94d4], eax
push 0
call fcn.10099c14
pop ecx
add eax, dword [0x100f94d4]
push eax
call fcn.1006e65e
pop ecx
call fcn.1006e66b
mov dword [ebp - 0x14], eax
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1009a2fa
xor eax, eax
inc eax
jmp 0x1009a3b7
push 0
push 0
push 0
push 4
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1009a327
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop eax
jmp 0x1009a3b7
push 0
push 0
push 0
push 6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1009a358
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
pop eax
jmp 0x1009a3b7
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x1009a39a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x4550
jne 0x1009a39a
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x58], ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
leave
ret
Function at 0x1009a4c2
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x100dd3e0]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x234], ecx
cmp dword [ebp + 8], 0
jne 0x1009a4e8
xor eax, eax
jmp 0x1009a63d
call fcn.100208fe
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1009a505
and dword [ebp - 0x238], 0
jmp 0x1009a55d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3fffffff
jle 0x1009a524
and dword [ebp - 0x23c], 0
jmp 0x1009a551
mov eax, dword [ebp - 8]
shl eax, 1
call fcn.1007ffe0
mov dword [ebp - 0x240], esp
push dword [ebp - 0x10]
mov eax, dword [ebp - 8]
shl eax, 1
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x240]
call fcn.10023673
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1009a63b
and word [ebp - 0x228], 0
push 0x208
push 0
lea eax, [ebp - 0x226]
push eax
call fcn.10070cb0
add esp, 0xc
push 0x105
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x234]
call fcn.10099880
push 0x100c24b8
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1009a5d5
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [ebp - 0x22c], 0
push 0x100c24d4
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.10073a27
add esp, 0xc
cmp dword [ebp - 0x22c], 0
je 0x1009a63b
push dword [ebp - 4]
call fcn.1006df70
pop ecx
mov dword [ebp - 0x230], eax
push dword [ebp - 0x22c]
mov eax, dword [ebp - 0x230]
inc eax
push eax
push 1
push dword [ebp - 4]
call fcn.10073bd6
add esp, 0x10
push dword [ebp - 0x22c]
call fcn.10073cca
pop ecx
xor eax, eax
inc eax
jmp 0x1009a63d
xor eax, eax
lea esp, [ebp - 0x240]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1006e011
leave
ret 4