joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009b3bd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bf7be
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100ed3e0]
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.1001910a
and dword [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.1004136a
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x228]
call fcn.10041339
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x22c]
call fcn.1003ddcc
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0x23c]
call fcn.1009a46b
test eax, eax
jne 0x1009b46f
and dword [ebp - 0x230], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.1002d38b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.1002d38b
mov eax, dword [ebp - 0x230]
jmp 0x1009b572
push 0x100d0254
lea ecx, [ebp - 0x22c]
call fcn.10038bff
lea ecx, [ebp - 0x22c]
call fcn.10041352
test eax, eax
jne 0x1009b4be
and dword [ebp - 0x234], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.1002d38b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.1002d38b
mov eax, dword [ebp - 0x234]
jmp 0x1009b572
and word [ebp - 0x224], 0
push 0x208
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.10071b30
add esp, 0xc
lea ecx, [ebp - 0x22c]
call fcn.1003ddcc
push eax
push 0x104
lea eax, [ebp - 0x224]
push eax
push str.setup.exe
push str.PacketExe
push 0x100d0290
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x228]
call fcn.10038bff
lea ecx, [ebp - 0x228]
call fcn.1003ddcc
push eax
push 0x104
mov eax, dword [ebp + 0xc]
add eax, 0x90
push eax
call fcn.10075b84
add esp, 0xc
lea ecx, [ebp - 0x228]
call fcn.10041352
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.1002d38b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.1002d38b
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.10071b1a
leave
ret 8
Function at 0x1009cf3e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov ecx, dword [ebp + 8]
call fcn.1009b58b
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1009cf5f
mov eax, 0x80004005
jmp 0x1009d12f
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.1004108b
jmp 0x1009cf7e
push 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xc]
call fcn.100412f4
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.10011e6a
push eax
lea ecx, [ebp - 0xc]
call fcn.100018ea
movzx eax, al
test eax, eax
je 0x1009d12a
lea ecx, [ebp - 0xc]
call fcn.1003846a
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc]
call fcn.1003846a
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x1009cfc8
cmp dword [ebp - 0x14], 0
jne 0x1009cfca
jmp 0x1009cf70
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 4
ja 0x1009d125
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
call fcn.10004de7
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
call dword [eax + 4]
test eax, eax
je 0x1009d092
mov eax, dword [ebp + 8]
and dword [eax + 0xc4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 5
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc4]
mov dword [eax + 0xc], ecx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x60
call fcn.10039eb0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x60
call fcn.10041111
push eax
lea ecx, [ebp - 0x1c]
call fcn.100018ea
movzx eax, al
test eax, eax
je 0x1009d082
lea ecx, [ebp - 0x1c]
call fcn.10041328
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x1009d078
push 0
push 0
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
push dword [ebp - 0x20]
call dword [eax + 0x10]
lea ecx, [ebp - 0x1c]
call fcn.100413d6
jmp 0x1009d034
xor eax, eax
jne 0x1009d025
xor eax, eax
jmp 0x1009d12f
mov eax, dword [ebp + 8]
mov dword [eax + 0xc4], 0x12
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 7
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc4]
mov dword [eax + 0xc], ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x60
call fcn.10039eb0
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x60
call fcn.10041111
push eax
lea ecx, [ebp - 0x28]
call fcn.100018ea
movzx eax, al
test eax, eax
je 0x1009d11a
lea ecx, [ebp - 0x28]
call fcn.10041328
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x1009d110
mov eax, dword [ebp + 8]
push dword [eax + 0xc4]
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
push dword [ebp - 0x2c]
call dword [eax + 0x14]
lea ecx, [ebp - 0x28]
call fcn.100413d6
jmp 0x1009d0c7
xor eax, eax
jne 0x1009d0b8
mov eax, 0x80004005
jmp 0x1009d12f
jmp 0x1009cf70
mov eax, 0x80004005
leave
ret 4
Function at 0x1009da11
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.1009b58b
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1009da30
jmp 0x1009daec
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x34
call fcn.1004108b
jmp 0x1009da4f
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xc]
call fcn.100412f4
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x34
call fcn.10011e6a
push eax
lea ecx, [ebp - 0xc]
call fcn.100018ea
movzx eax, al
test eax, eax
je 0x1009daec
lea ecx, [ebp - 0xc]
call fcn.1003846a
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc]
call fcn.1003846a
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x1009da95
cmp dword [ebp - 0x14], 0
jne 0x1009da97
jmp 0x1009da41
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0x186a0
je 0x1009dae7
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 4
ja 0x1009dae7
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
call fcn.10004de7
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
call dword [eax + 4]
test eax, eax
je 0x1009dae7
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
call fcn.10041130
jmp 0x1009da41
leave
ret
Function at 0x1009f6ad
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c0007
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100ed3e0]
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.1000ba55
push eax
lea ecx, [ebp - 0x18]
call fcn.10020a08
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.1000ba55
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.1000aabd
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x1009f766
mov dword [0x10109240], 1
push 0
push str.gf_bd2die
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 + 0x20]
mov dword [0x10109244], eax
mov ecx, dword [ebp - 0x1c]
call fcn.1009f522
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x50
call fcn.1000ba55
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 0x100a18b1
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x100a18e8
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
jmp 0x100a191d
push 0
push 0x100d150c
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x100a191d
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
leave
ret

Function at 0x100a191f
Capabilities:
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push edi
and dword [ebp - 0x68], 0
push 0x40
push 0
lea eax, [ebp - 0x64]
push eax
call fcn.10071b30
add esp, 0xc
and dword [ebp - 0x14], 0
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 0x80
and dword [ebp - 0x18], 0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push str.SoftWareTencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100a19a3
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push str.Supplyid
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x100a19e5
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x100a19e7
xor eax, eax
pop edi
leave
ret
Function at 0x100a1af3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push edi
push section.DLLShare
call fcn.10071ffb
pop ecx
test eax, eax
jne 0x100a1b0b
jmp 0x100a1b7a
and dword [ebp - 0x60], 0
push 0x40
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.10071b30
add esp, 0xc
and dword [ebp - 0x10], 0
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 0x81
and word [ebp - 0x30], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push section.DLLShare
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100a1b7a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
leave
ret 0x10

Function at 0x100a1e17
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, dword [ebp + 0x10]
and dword [eax], 0
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100a1ed8
push dword [ebp - 4]
call fcn.10071427
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [ebp - 4]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100a1ec5
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x100d0ad0
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100a1ec5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 0xffff0000
shr eax, 0x10
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
and eax, 0xffff
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call fcn.10075267
pop ecx
and dword [ebp - 8], 0
xor eax, eax
inc eax
jmp 0x100a1eda
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
call fcn.10075267
pop ecx
and dword [ebp - 8], 0
xor eax, eax
leave
ret
Function at 0x100a1edc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
or dword [ebp - 0x18], 0xffffffff
and dword [ebp - 0x10], 0
and dword [ebp - 8], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0xc], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x100a1f2c
jmp 0x100a1fe4
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xa00000
jbe 0x100a1f4d
jmp 0x100a1fe4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
call fcn.10071427
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100a1f71
jmp 0x100a1fe4
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0
push dword [ebp - 4]
call fcn.10071b30
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100a1fad
cmp dword [ebp - 8], 0
jne 0x100a1fc4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
call fcn.10075267
pop ecx
and dword [ebp - 4], 0
jmp 0x100a1fe4
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x1c], 0
jne 0x100a1f89
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp - 0x18], 0xffffffff
je 0x100a1ff7
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 4]
leave
ret

Function at 0x100a20b7
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x100ed3e0]
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 0x100a20e3
xor eax, eax
jmp 0x100a216a
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 0x100a215b
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
call fcn.10075cff
pop ecx
pop ecx
test eax, eax
jne 0x100a2148
cmp dword [ebp + 0xc], 0
je 0x100a213c
push dword [ebp - 0x238]
push 0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ebp - 0x244], 1
jmp 0x100a215b
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100a210b
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.10071b1a
leave
ret
Function at 0x100a224d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0
jne 0x100a226d
xor eax, eax
jmp 0x100a2365
and dword [ebp - 4], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x100a2362
push 0x22c
push 0
lea eax, [ebp - 0x240]
push eax
call fcn.10071b30
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100a2359
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x100a2342
and word [ebp - 0x450], 0
push 0x206
push 0
lea eax, [ebp - 0x44e]
push eax
call fcn.10071b30
add esp, 0xc
push 0x103
push dword [ebp - 0x244]
lea eax, [ebp - 0x450]
push eax
call fcn.1007526c
add esp, 0xc
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
push dword [ebp + 8]
lea eax, [ebp - 0x450]
push eax
call fcn.10075cff
pop ecx
pop ecx
test eax, eax
jne 0x100a2342
mov dword [ebp - 4], 1
jmp 0x100a2359
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0xc], eax
jmp 0x100a22b9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10071b1a
leave
ret
Function at 0x100a285a
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10109564]
inc eax
mov dword [0x10109564], eax
push 0
call fcn.100a2206
pop ecx
add eax, dword [0x10109564]
push eax
call fcn.10073973
pop ecx
call fcn.10073980
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 0x100a28b4
xor eax, eax
inc eax
jmp 0x100a2971
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 0x100a28e1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop eax
jmp 0x100a2971
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 0x100a2912
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 0x100a2971
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x100a2954
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 0x100a2954
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 0x100a2a7c
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x234], ecx
cmp dword [ebp + 8], 0
jne 0x100a2aa2
xor eax, eax
jmp 0x100a2bf7
call fcn.10020b41
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100a2abf
and dword [ebp - 0x238], 0
jmp 0x100a2b17
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3fffffff
jle 0x100a2ade
and dword [ebp - 0x23c], 0
jmp 0x100a2b0b
mov eax, dword [ebp - 8]
shl eax, 1
call fcn.10084250
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.10024172
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 0x100a2bf5
and word [ebp - 0x228], 0
push 0x208
push 0
lea eax, [ebp - 0x226]
push eax
call fcn.10071b30
add esp, 0xc
push 0x105
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x234]
call fcn.100a1b96
push 0x100d0fb0
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 0x100a2b8f
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [ebp - 0x22c], 0
push 0x100d0fcc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.100778a7
add esp, 0xc
cmp dword [ebp - 0x22c], 0
je 0x100a2bf5
push dword [ebp - 4]
call fcn.10071f70
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.10077a97
add esp, 0x10
push dword [ebp - 0x22c]
call fcn.10077b8b
pop ecx
xor eax, eax
inc eax
jmp 0x100a2bf7
xor eax, eax
lea esp, [ebp - 0x240]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10071b1a
leave
ret 4
Function at 0x100a2e1b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
or dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.100a1edc
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100a2e4f
jmp 0x100a2ecd
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 8]
push 0x100d0a80
call fcn.10071f70
pop ecx
push eax
push str.81539FE6_33C7_4CE7_90C7_1C7B8F2F2D40
call fcn.100949f7
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100a2e81
jmp 0x100a2ecd
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x100a2ea9
jmp 0x100a2ecd
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100a2ec6
jmp 0x100a2ecd
mov dword [ebp - 0x10], 1
cmp dword [ebp - 8], 0
je 0x100a2ee6
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
call fcn.10075267
pop ecx
and dword [ebp - 8], 0
cmp dword [ebp - 0x14], 0xffffffff
je 0x100a2ef9
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x10]
leave
ret