joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001240
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e408
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1008acc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x18]
call fcn.10001e70
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x100012c4
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp + 8]
call fcn.100020f0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10001fa0
mov eax, dword [ebp + 8]
jmp 0x100013fa
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002799a
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1000131b
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100020f0
mov edx, dword [ebp - 0x30]
or edx, 1
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10001fa0
mov eax, dword [ebp + 8]
jmp 0x100013fa
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100013c1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0x10077de8
mov edx, dword [ebp - 0x1c]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100013c1
cmp dword [ebp - 0x24], 0
je 0x100013c1
cmp dword [ebp - 0x20], 0
je 0x100013c1
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
push str._d._d._d._d
lea eax, [ebp - 0x18]
push eax
call fcn.10001ab0
add esp, 0x18
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100279a5
add esp, 4
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.100020f0
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10001fa0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10002c00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.10001000
add esp, 0x18
push 5
push 0
push 0
lea ecx, [ebp - 4]
call fcn.1001ad60
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call fcn.10001fa0
mov esp, ebp
pop ebp
ret
Function at 0x10003540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006eeb0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1008acc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100036eb
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x100036eb
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x100036e1
lea ecx, [ebp - 0x24]
call fcn.10016480
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.100276c0
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x100036c9
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
call fcn.1001ad60
push eax
call fcn.10003030
add esp, 0xc
test eax, eax
je 0x100036c9
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x30]
call fcn.10007470
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.1001ad60
push eax
mov ecx, dword [ebp - 0x40]
call fcn.1001ad60
push eax
call fcn.10003160
add esp, 8
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10001fa0
cmp dword [ebp - 0x2c], 0
je 0x100036c9
lea ecx, [ebp - 0x24]
call fcn.1001ad60
push eax
call fcn.10002f60
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.1001ad60
push eax
call fcn.10002ec0
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.1002799a
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x38]
cmp dword [eax + 4], 0
je 0x100036c9
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x24]
call fcn.1001ad60
push eax
call fcn.10002fe0
add esp, 0xc
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.1000e0d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.1001a7a0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10003fb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f3e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1008acc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.100133c0
movzx eax, al
test eax, eax
je 0x10003ff1
xor eax, eax
jmp 0x100040b1
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
call fcn.1001ad60
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10004011
mov eax, 1
jmp 0x100040b1
lea ecx, [ebp - 0x10]
call fcn.10001e70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
call fcn.1001ad60
push eax
call fcn.10055a40
add esp, 8
test eax, eax
jne 0x10004057
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001fa0
mov eax, dword [ebp - 0x14]
jmp 0x100040b1
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x14], 0
lea ecx, [ebp - 0x10]
call fcn.1001ad60
push eax
lea ecx, [ebp - 0x1c]
call fcn.1000a140
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x28]
call fcn.1001ad60
push eax
mov ecx, dword [ebp - 0x20]
call fcn.10065bd0
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.1000a190
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001fa0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x100042e0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f18b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x1008acc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], 0
mov eax, dword [ebp - 0x234]
cmp dword [eax + 0x18], 0
jne 0x10004348
push 0
mov ecx, dword [ebp + 8]
call fcn.10001d60
mov ecx, dword [ebp - 0x230]
or ecx, 1
mov dword [ebp - 0x230], ecx
mov eax, dword [ebp + 8]
jmp 0x10004421
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.10038c10
add esp, 0xc
mov dword [ebp - 0x22c], 0x104
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ecx, [ebp - 0x228]
call fcn.10065cf0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x234]
call fcn.100042b0
test eax, eax
jne 0x100043e2
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10001d60
mov edx, dword [ebp - 0x230]
or edx, 1
mov dword [ebp - 0x230], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.10065cc0
mov eax, dword [ebp + 8]
jmp 0x10004421
lea eax, [ebp - 0x21c]
push eax
push str.UserName
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x228]
call fcn.10066fe0
mov edx, dword [ebp - 0x230]
or edx, 1
mov dword [ebp - 0x230], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.10065cc0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10038659
mov esp, ebp
pop ebp
ret 4
Function at 0x1000af80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ee78
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1008acc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
push SysReAllocString
lea eax, [ebp - 0x10]
push eax
call fcn.1000ade0
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1001ad60
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000b000
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100020f0
mov edx, dword [ebp - 0x14]
or edx, 1
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001fa0
mov eax, dword [ebp + 8]
jmp 0x1000b02c
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, dword [ebp + 8]
push eax
call fcn.1000ade0
add esp, 8
mov ecx, dword [ebp - 0x14]
or ecx, 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001fa0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x1000b040
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f2e8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1008acc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000b07a
xor eax, eax
jmp 0x1000b230
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.10001d60
mov dword [ebp - 4], 0
lea edx, [ebp - 0x18]
push edx
call fcn.100525c0
add esp, 4
push 0
call fcn.10050550
add esp, 4
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10054290
add esp, 8
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 1
push str.firefox_readme_
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.100070c0
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.10007010
add esp, 0xc
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], edx
mov byte [ebp - 4], 3
push str..htm
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.100070c0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call fcn.10001fa0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.10001fa0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
call fcn.10001fa0
lea ecx, [ebp - 0x10]
call fcn.1001ad60
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000b186
push str.firefox_readme.htm
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.100070c0
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x50]
push edx
lea ecx, [ebp - 0x10]
call fcn.1000a240
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.10001fa0
lea ecx, [ebp - 0x10]
call fcn.1001ad60
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000b1c0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10001fa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10001fa0
mov eax, dword [ebp - 0x2c]
jmp 0x1000b230
lea ecx, [ebp - 0x14]
call fcn.10001e70
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x10]
push eax
push str.__s_
lea ecx, [ebp - 0x14]
push ecx
call fcn.10001ab0
add esp, 0xc
push 5
push 0
lea ecx, [ebp - 0x14]
call fcn.1001ad60
push eax
mov edx, dword [ebp + 8]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
call fcn.10001fa0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10001fa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10001fa0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x1000f6a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x1000f6a9
xor ecx, ecx
jne 0x1000f6a9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x1000f6ca
mov eax, 0xd
jmp 0x1000f725
xor eax, eax
jne 0x1000f6b1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x1000f6db
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x1000ff80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1008acc0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.100100e0
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.1000ff10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000ffeb
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.10010160
mov eax, dword [ebp - 0x224]
jmp 0x1001007c
mov dword [ebp - 4], pe_nt_image_headers32
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 0x10010051
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.1000ff80
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10010048
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.10010160
mov eax, dword [ebp - 0x228]
jmp 0x1001007c
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x1000fff2
lea ecx, [ebp - 0x14]
call fcn.10010110
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.100101b0
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.10010160
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10038659
mov esp, ebp
pop ebp
ret 4
Function at 0x10011a20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1008acc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.10038c10
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x100780b8
lea ecx, [ebp - 0x210]
push ecx
call fcn.10015940
add esp, 8
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x210]
push eax
call fcn.100544e0
add esp, 4
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10001d60
mov edx, dword [ebp - 0x214]
or edx, 1
mov dword [ebp - 0x214], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038659
mov esp, ebp
pop ebp
ret

Function at 0x10011e80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10011de0
add esp, 0x10
cmp dword [ebp - 8], 0
je 0x10011ece
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10011ece
mov dword [ebp - 8], 0
push 0
push 0x80
mov edx, dword [ebp - 8]
neg edx
sbb edx, edx
add edx, 3
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
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 0x10011f04
mov eax, 0x80004005
jmp 0x10011f65
push 0x810
call fcn.1002796b
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10011f27
mov ecx, dword [ebp - 0x1c]
call fcn.10011d60
mov dword [ebp - 0x20], eax
jmp 0x10011f2e
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x400
mov edx, dword [ebp - 4]
add edx, 0x10
push edx
call fcn.1003b987
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10012470
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1008acc0]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
jne 0x10012493
mov eax, 0x80030009
jmp 0x100125c6
push 0x48
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.10038c10
add esp, 0xc
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x20
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x18
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov edx, dword [ebp + 0xc]
add edx, 0x30
mov eax, dword [0x10075324]
mov dword [edx], eax
mov ecx, dword [0x10075328]
mov dword [edx + 4], ecx
mov eax, dword [0x1007532c]
mov dword [edx + 8], eax
mov ecx, dword [0x10075330]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x40], 0
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x44], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], 2
mov ecx, dword [ebp + 0x10]
and ecx, 1
jne 0x100125c4
push 0x104
lea edx, [ebp - 0x418]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x10
push ecx
call fcn.1003b9f6
add esp, 0x24
lea edx, [ebp - 0x418]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.1003bc16
add esp, 0xc
push 0x208
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
lea eax, [ebp - 0x210]
push eax
push 0x104
mov ecx, dword [ebp - 4]
push ecx
call fcn.1003b987
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dword [edx], eax
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10038659
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10012870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ef38
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1008acc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.100127b0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x14]
call fcn.1001ad60
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100129eb
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.Data
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100129e1
mov eax, dword [ebp - 0x20]
shr eax, 2
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov eax, dword [ebp - 0x28]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002799a
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x100129e1
mov ecx, dword [ebp - 0x28]
shl ecx, 2
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.Data
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100129cf
mov dword [ebp - 0x2c], 0
jmp 0x10012989
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x28]
jae 0x100129c8
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100129bc
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
lea ecx, [eax + edx*4]
push ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 4
call fcn.10013300
jmp 0x100129c6
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x1c], 1
jmp 0x10012980
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.100279a5
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10001fa0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10017c50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10017c6a
jmp 0x10017cb8
mov eax, dword [0x10092e10]
and eax, 1
jne 0x10017c9d
mov ecx, dword [0x10092e10]
or ecx, 1
mov dword [0x10092e10], ecx
push str._Debug
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
neg eax
sbb eax, eax
neg eax
mov dword [0x10092e14], eax
cmp dword [0x10092e14], 0
jne 0x10017ca8
jmp 0x10017cb8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx]
call eax
mov esp, ebp
pop ebp
ret 4