joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e5e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5730e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x10
mov ecx, 0x5ebad0
call fcn.00461270
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x45e649
mov eax, 1
jmp 0x45e6ce
mov ecx, 0x5ec094
call fcn.004048a0
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.00568260
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.0042a300
shl eax, 1
push eax
mov ecx, dword [ebp + 8]
call fcn.00401830
push eax
push 1
push 0
push 0x5887a0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x30]
call fcn.0042a300
shl eax, 1
push eax
lea ecx, [ebp - 0x30]
call fcn.00401830
push eax
push 1
push 0
push 0x5887ac
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004017f0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret 4
Function at 0x460c30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0x588890
mov eax, dword [ebp + 8]
push eax
call fcn.004b7ea1
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jne 0x460c61
xor eax, eax
jmp 0x460da1
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
test edx, edx
je 0x460c73
mov ecx, dword [ebp - 0xc]
call fcn.00461300
mov eax, dword [ebp - 8]
push eax
push 1
push 0x68
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
call fcn.004bdb91
add esp, 0x10
push 0x588898
call fcn.004b6470
add esp, 4
push eax
push 0x5888a8
mov edx, dword [ebp - 0xc]
add edx, 4
push edx
call fcn.004c08ac
add esp, 0xc
test eax, eax
je 0x460cb7
xor eax, eax
jmp 0x460da1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x68]
mov dword [eax + 0x74], edx
mov ecx, dword [ebp - 0xc]
call fcn.00461700
mov dword [ebp - 4], 0
jmp 0x460cdd
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x68]
jae 0x460d90
mov eax, dword [ebp - 8]
push eax
push 1
push 8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x6c]
mov eax, dword [ebp - 4]
lea ecx, [edx + eax*8]
push ecx
call fcn.004bdb91
add esp, 0x10
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*8]
add edx, 1
push edx
call fcn.004bd4bb
add esp, 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x6c]
mov ecx, dword [ebp - 4]
mov dword [edx + ecx*8 + 4], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*8]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x6c]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + edx*8 + 4]
push eax
call fcn.004b6500
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x6c]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + edx*8 + 4]
push eax
call fcn.004bdb91
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00461690
jmp 0x460cd4
mov edx, dword [ebp - 8]
push edx
call fcn.004b7b7b
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x465380
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x11
mov ecx, 0x5ebad0
call fcn.00461270
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4653bf
jmp 0x465445
lea ecx, [ebp - 0xc]
call fcn.00467060
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x5ebfcc
call fcn.00429870
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
jmp 0x4653f7
push 0
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0xc]
call fcn.0044b6d0
lea edx, [ebp - 0x2c]
push edx
mov ecx, 0x5ebfcc
call fcn.004297a0
push eax
lea ecx, [ebp - 0xc]
call fcn.0044fe10
movzx eax, al
test eax, eax
je 0x46543b
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0
lea ecx, [ebp - 0xc]
call fcn.00467080
mov ecx, eax
call fcn.00401830
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4653e9
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x465610
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573a45
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x128], 0
mov eax, dword [0x5ec024]
push eax
lea ecx, [ebp - 0xe8]
push ecx
call fcn.00569e00
add esp, 8
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], edx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x130]
call fcn.004048a0
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00568260
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe8]
call fcn.00404950
lea ecx, [ebp - 0x48]
call fcn.004048c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0043d4c0
movzx ecx, al
test ecx, ecx
jne 0x465811
lea ecx, [ebp - 0x2c]
call fcn.00401830
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x465811
push 0x58aac0
lea ecx, [ebp - 0x2c]
call fcn.00401830
push eax
call fcn.004b7ea1
add esp, 8
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x465811
push 2
push 0
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004bde43
add esp, 0xc
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004bdd4b
add esp, 4
mov dword [ebp - 0x50], eax
push 0
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004bde43
add esp, 0xc
mov edx, dword [ebp - 0x50]
push edx
call fcn.004bd4bb
add esp, 4
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x4c]
push eax
push 1
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0xcc]
push edx
call fcn.004bdb91
add esp, 0x10
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
lea ecx, [ebp - 0xc4]
call fcn.00567550
lea edx, [ebp - 0x104]
push edx
lea ecx, [ebp - 0xc4]
call fcn.00567830
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x138]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00401470
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x104]
call fcn.00404950
push fcn.004c0ce7
lea edx, [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x48]
call fcn.00401590
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x48]
call fcn.004015c0
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401590
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x124]
push eax
call fcn.00403bc0
add esp, 0x20
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004b7b7b
add esp, 4
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404910
mov eax, dword [ebp - 0x128]
or eax, 1
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00404950
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004017f0
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.004b645d
mov esp, ebp
pop ebp
ret
Function at 0x465f70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573b88
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x220]
call fcn.00442e90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.00442ee0
push eax
push 0x58c7a0
push 1
push 0
push 0x58e2f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jge 0x466003
mov dword [ebp - 0x480], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00441b80
mov eax, dword [ebp - 0x480]
jmp 0x4661b6
lea ecx, [ebp - 0x228]
call fcn.00442f00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.00442ef0
mov dword [ebp - 0x494], eax
lea ecx, [ebp - 0x228]
call fcn.00442f50
push eax
push 0x58e760
mov eax, dword [ebp - 0x494]
push eax
mov ecx, dword [ebp - 0x494]
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jge 0x46608c
mov dword [ebp - 0x484], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00441ba0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00441b80
mov eax, dword [ebp - 0x484]
jmp 0x4661b6
lea ecx, [ebp - 0x228]
call fcn.00442f60
mov dword [ebp - 0x498], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x498]
push edx
mov eax, dword [ebp - 0x498]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
call edx
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jge 0x4660fc
mov dword [ebp - 0x488], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00441ba0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00441b80
mov eax, dword [ebp - 0x488]
jmp 0x4661b6
lea ecx, [ebp - 0x220]
call fcn.00442ef0
mov dword [ebp - 0x49c], eax
push 0
lea eax, [ebp - 0x47c]
push eax
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x49c]
push edx
mov eax, dword [ebp - 0x49c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
push 0x58ac98
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x466185
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x48c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00441ba0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00441b80
mov eax, dword [ebp - 0x48c]
jmp 0x4661b6
mov dword [ebp - 0x490], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00441ba0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00441b80
mov eax, dword [ebp - 0x490]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret
Function at 0x4665f0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404910
mov byte [ebp - 4], 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x34], esp
lea edx, [ebp + 0xc]
push edx
call fcn.00404910
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004666d0
add esp, 0x20
lea ecx, [ebp - 0x2c]
call fcn.004048a0
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x466690
mov byte [ebp - 0x35], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404950
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404950
mov al, byte [ebp - 0x35]
jmp 0x4666b2
mov byte [ebp - 0x36], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404950
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404950
mov al, byte [ebp - 0x36]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret
Function at 0x4669d0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 4], esp
push 0x58ad80
call fcn.00405220
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_accept
call fcn.004666d0
add esp, 0x20
push str.PreOnline
push 0x58ada4
push reloc.WS2_32.dll_accept
call fcn.00567cc0
add esp, 0xc
push str.SoftwareKuaiZipSFX
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.StartUpdate
push str.SoftwareKuaiZipKuaiZipInterface
push reloc.WS2_32.dll_accept
call fcn.00567cc0
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x467110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x467119
xor ecx, ecx
jne 0x467119
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x467160
mov eax, dword [ebp - 0xc]
jmp 0x4671bd
cmp dword [ebp - 4], 1
je 0x467173
cmp dword [ebp - 4], 2
je 0x467173
mov eax, 0xd
jmp 0x4671bd
cmp dword [ebp + 0xc], 0
je 0x4671b1
cmp dword [ebp - 8], 0
je 0x4671a9
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x4671a0
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x4671a7
mov eax, 0xd
jmp 0x4671bd
jmp 0x4671b1
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4671d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
push str.KZ_Config_Integration_
push 0x10000
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x467215
jmp 0x46722f
push 0
push 0
push 0
push 6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x467280
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573ccb
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x274], ecx
mov eax, dword [ebp - 0x274]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x274]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x274]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 0x21d]
call fcn.0043cc20
mov dword [ebp - 4], 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x21d]
call fcn.0045e430
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x46742c
push str.KuaiZip.exe
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004c0d13
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x467366
mov dword [ebp - 0x264], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.0043cc30
mov eax, dword [ebp - 0x264]
jmp 0x46744e
mov dword [ebp - 0x260], 0
push 0x38
push 0
lea eax, [ebp - 0x25c]
push eax
call fcn.004b6500
add esp, 0xc
mov dword [ebp - 0x260], 0x3c
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x24c], str._KZsetup_integration
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x25c], 0x40
lea edx, [ebp - 0x260]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x467408
push 0xffffffffffffffff
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x268], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.0043cc30
mov eax, dword [ebp - 0x268]
jmp 0x46744e
mov dword [ebp - 0x26c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.0043cc30
mov eax, dword [ebp - 0x26c]
jmp 0x46744e
mov dword [ebp - 0x270], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.0043cc30
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret

Function at 0x467760
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x467790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov esp, ebp
pop ebp
ret
Function at 0x4686f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x110], 0
push 0x104
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004b6500
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405220
mov eax, dword [ebp - 0x114]
or eax, 1
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret
Function at 0x46c230
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57480a
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xdc]
cmp dword [eax + 0x668], 0
je 0x46c29e
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx + 0x668]
call dword [0x5adae4]
movzx edx, al
test edx, edx
jne 0x46c29e
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xdc]
cmp dword [eax + 0x66c], 0
je 0x46c381
lea ecx, [ebp - 0xd8]
push ecx
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx + 0x66c]
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx + 0x66c]
mov edx, dword [eax]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xe4]
call dword [0x5adb10]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401770
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd8]
call dword [0x5adab8]
lea ecx, [ebp - 0x34]
call fcn.00401830
push eax
call fcn.004b5fc4
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jg 0x46c338
mov dword [ebp - 0x10], 0
jmp 0x46c372
push 3
push 0
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x34]
call fcn.00419580
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00401830
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46c366
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.004017f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004017f0
mov eax, dword [ebp - 0xdc]
cmp dword [eax + 0x664], 0
je 0x46c409
cmp dword [ebp - 0x10], 0
je 0x46c3e5
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ecx + 0x690]
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 0x690]
mov edx, dword [edx]
mov eax, dword [edx + 0xc8]
call eax
movzx ecx, al
test ecx, ecx
jne 0x46c3e5
push 1
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx + 0x664]
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx + 0x664]
mov edx, dword [eax]
mov eax, dword [edx + 0xd8]
call eax
jmp 0x46c409
push 0
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ecx + 0x664]
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 0x664]
mov edx, dword [edx]
mov eax, dword [edx + 0xd8]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret
Function at 0x46ca60
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004b6500
add esp, 0xc
push 0
mov ecx, dword [ebp + 8]
call fcn.0046d850
movzx edx, word [eax]
push edx
push 0x58c1e8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x46cae1
xor eax, eax
xor edx, edx
jmp 0x46caed
mov eax, dword [ebp - 0x218]
mov edx, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret

Function at 0x46e5a2
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5ec244], 0
push esi
jne 0x46e510
call fcn.0046e424
test eax, eax
je 0x46e553
mov eax, dword [0x5ec244]
cmp eax, 1
jne 0x46e531
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x46e553
pop esi
ret
push eax
call dword [0x5ec24c]
test eax, eax
jne 0x46e59b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x46e557
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5ec244]
call dword [0x5ec24c]
mov edi, eax
test edi, edi
je 0x46e57c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x46e598
mov edi, esi
add esi, 0xff0
push edi
push dword [0x5ec244]
call dword [0x5ec248]
add edi, 0x10
cmp edi, esi
jb 0x46e584
mov eax, edi
pop edi
pop esi
ret
jmp 0x46e4fd