joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470c90
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x568cb8]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x10
mov ecx, 0x56d2e8
call fcn.00474010
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x470e28
cmp dword [ebp + 8], 0
je 0x470dcc
cmp dword [ebp + 0xc], 0
je 0x470dcc
xor ecx, ecx
mov word [ebp - 0x220], cx
push 0x206
push 0
lea edx, [ebp - 0x21e]
push edx
call fcn.004b83b0
add esp, 0xc
mov dword [ebp - 0x10], 0x208
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0
push 0
push 0x51c4ac
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x470d55
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x470e2d
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004be924
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x470d98
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax], dx
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x470e2d
push str.X86KuaiZip.exe
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x470dcc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x470e2d
cmp dword [ebp + 0x10], 0
je 0x470e19
cmp dword [ebp + 0x14], 0
je 0x470e19
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x224], edx
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
push 0x51c4d8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x470e19
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x470e2d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x470e2d
mov eax, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b8307
mov esp, ebp
pop ebp
ret 0x10
Function at 0x470e40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5113a8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x568cb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x10
mov ecx, 0x56d2e8
call fcn.00474010
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 0x470ea6
mov eax, 1
jmp 0x470f21
push 0x51c4e8
lea ecx, [ebp - 0x2c]
call fcn.004012e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.0040b040
shl eax, 1
push eax
mov ecx, dword [ebp + 8]
call fcn.00401340
push eax
push 1
push 0
push 0x51c4fc
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x2c]
call fcn.0040b040
shl eax, 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401340
push eax
push 1
push 0
push 0x51c508
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401320
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8307
mov esp, ebp
pop ebp
ret 4
Function at 0x4739d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0x51c68c
mov eax, dword [ebp + 8]
push eax
call fcn.004b97a3
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jne 0x473a01
xor eax, eax
jmp 0x473b41
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
test edx, edx
je 0x473a13
mov ecx, dword [ebp - 0xc]
call fcn.004740a0
mov eax, dword [ebp - 8]
push eax
push 1
push 0x68
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
call fcn.004be4fb
add esp, 0x10
push 0x51c694
call fcn.004b8320
add esp, 4
push eax
push 0x51c6a4
mov edx, dword [ebp - 0xc]
add edx, 4
push edx
call fcn.004bfeec
add esp, 0xc
test eax, eax
je 0x473a57
xor eax, eax
jmp 0x473b41
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.004744b0
mov dword [ebp - 4], 0
jmp 0x473a7d
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 0x473b30
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.004be4fb
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.004bdff7
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.004b83b0
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.004be4fb
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00474440
jmp 0x473a74
mov edx, dword [ebp - 8]
push edx
call fcn.004b947d
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x476b00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511b78
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x568cb8]
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 byte [ebp - 0x55], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x4c]
call fcn.004012b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004012b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x54]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea eax, [ebp + 8]
push eax
call fcn.0040de90
mov dword [ebp - 0x64], eax
call fcn.00476cc0
add esp, 0x28
mov byte [ebp - 0x65], al
movzx ecx, byte [ebp - 0x65]
test ecx, ecx
jne 0x476bbf
mov byte [ebp - 0x5d], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401320
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00401320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov al, byte [ebp - 0x5d]
jmp 0x476ca2
cmp dword [ebp - 0x54], reloc.WS2_32.dll_accept
jne 0x476be2
lea edx, [ebp - 0x54]
push edx
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x476be2
mov dword [ebp - 0x54], reloc.WS2_32.dll_accept
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x4c]
call fcn.00401340
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x476c57
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401340
push eax
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x476c4d
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401340
push eax
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x476c4d
mov byte [ebp - 0x55], 1
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x54]
and edx, 0x80000000
cmp edx, 0x80000000
je 0x476c72
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x55]
mov byte [ebp - 0x5e], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401320
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00401320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov al, byte [ebp - 0x5e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8307
mov esp, ebp
pop ebp
ret
Function at 0x477430
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511b78
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x568cb8]
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 byte [ebp - 0x55], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x4c]
call fcn.004012b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004012b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x54]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea eax, [ebp + 8]
push eax
call fcn.0040de90
mov dword [ebp - 0x64], eax
call fcn.00476cc0
add esp, 0x28
mov byte [ebp - 0x65], al
movzx ecx, byte [ebp - 0x65]
test ecx, ecx
jne 0x4774ef
mov byte [ebp - 0x5d], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401320
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00401320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov al, byte [ebp - 0x5d]
jmp 0x4775c5
cmp dword [ebp - 0x54], reloc.WS2_32.dll_accept
jne 0x477512
lea edx, [ebp - 0x54]
push edx
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x477512
mov dword [ebp - 0x54], reloc.WS2_32.dll_accept
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea ecx, [ebp - 0x4c]
call fcn.00401340
push eax
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x47757a
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp + 0x24]
push edx
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401340
push eax
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x55], al
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x54]
and edx, 0x80000000
cmp edx, 0x80000000
je 0x477595
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x55]
mov byte [ebp - 0x5e], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401320
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00401320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov al, byte [ebp - 0x5e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8307
mov esp, ebp
pop ebp
ret
Function at 0x478dd0
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, 0x56d2e8
call fcn.00474010
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 0x478e0f
jmp 0x478e95
lea ecx, [ebp - 0xc]
call fcn.00479d50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x56d858
call fcn.0043a850
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
jmp 0x478e47
push 0
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00460dc0
lea edx, [ebp - 0x2c]
push edx
mov ecx, 0x56d858
call fcn.0043a780
push eax
lea ecx, [ebp - 0xc]
call fcn.00463500
movzx eax, al
test eax, eax
je 0x478e8b
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0
lea ecx, [ebp - 0xc]
call fcn.00479d70
mov ecx, eax
call fcn.00401340
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x478e39
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x478ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x568cb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x50]
call fcn.004012b0
mov dword [ebp - 4], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.0050cc60
add esp, 8
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x98], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x98]
call fcn.00401340
push eax
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00401320
cmp dword [ebp - 0x54], 0
jne 0x478fef
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x50]
call fcn.00401380
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00401360
push eax
lea edx, [ebp - 0x30]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x8c]
push ecx
call fcn.0050cc60
add esp, 8
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xa0]
call fcn.00401340
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.00401320
lea ecx, [ebp - 0x50]
call fcn.00401340
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0050d240
add esp, 8
mov byte [ebp - 4], 4
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402b00
mov eax, dword [ebp - 0x90]
or eax, 1
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00402b40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00401320
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.004b8307
mov esp, ebp
pop ebp
ret
Function at 0x479060
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511f55
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x568cb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0xe8]
push eax
call fcn.0050d550
add esp, 4
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x110]
call fcn.00402a90
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.0050cc60
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe8]
call fcn.00402b40
lea ecx, [ebp - 0x48]
call fcn.00402ab0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0040e4d0
movzx eax, al
test eax, eax
jne 0x479205
lea ecx, [ebp - 0x2c]
call fcn.00401340
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x479205
push 0x51ea20
lea ecx, [ebp - 0x2c]
call fcn.00401340
push eax
call fcn.004b97a3
add esp, 8
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x479205
push 2
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004be7ad
add esp, 0xc
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004be6b5
add esp, 4
mov dword [ebp - 0x50], eax
push 0
push 0
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004be7ad
add esp, 0xc
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.004bdff7
add esp, 4
mov dword [ebp - 0xcc], eax
mov edx, dword [ebp - 0x4c]
push edx
push 1
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.004be4fb
add esp, 0x10
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0043b790
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0xc4]
call fcn.0043cc10
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x118]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401000
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x104]
call fcn.00402b40
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004b947d
add esp, 4
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402b00
mov eax, dword [ebp - 0x108]
or eax, 1
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00402b40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401320
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.004b8307
mov esp, ebp
pop ebp
ret
Function at 0x47a220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x47a229
xor ecx, ecx
jne 0x47a229
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 0x47a270
mov eax, dword [ebp - 0xc]
jmp 0x47a2cd
cmp dword [ebp - 4], 1
je 0x47a283
cmp dword [ebp - 4], 2
je 0x47a283
mov eax, 0xd
jmp 0x47a2cd
cmp dword [ebp + 0xc], 0
je 0x47a2c1
cmp dword [ebp - 8], 0
je 0x47a2b9
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x47a2b0
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x47a2b7
mov eax, 0xd
jmp 0x47a2cd
jmp 0x47a2c1
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 0x47a2e0
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 0x51ef6c
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 0x47a325
jmp 0x47a33f
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 0x47a390
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5121ab
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x568cb8]
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.0046c000
mov dword [ebp - 4], 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x21d]
call fcn.00470c90
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x47a53c
push str.KuaiZip.exe
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004c0184
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47a476
mov dword [ebp - 0x264], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.0046aeb0
mov eax, dword [ebp - 0x264]
jmp 0x47a55e
mov dword [ebp - 0x260], 0
push 0x38
push 0
lea eax, [ebp - 0x25c]
push eax
call fcn.004b83b0
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 0x47a518
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.0046aeb0
mov eax, dword [ebp - 0x268]
jmp 0x47a55e
mov dword [ebp - 0x26c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.0046aeb0
mov eax, dword [ebp - 0x26c]
jmp 0x47a55e
mov dword [ebp - 0x270], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.0046aeb0
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.004b8307
mov esp, ebp
pop ebp
ret

Function at 0x47a9c0
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 0x47a9f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov esp, ebp
pop ebp
ret
Function at 0x47e7f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51289f
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x568cb8]
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 + 0x66c], 0
je 0x47e85e
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx + 0x66c]
call dword [0x53c310]
movzx edx, al
test edx, edx
jne 0x47e85e
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xdc]
cmp dword [eax + 0x678], 0
je 0x47e941
lea ecx, [ebp - 0xd8]
push ecx
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx + 0x678]
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx + 0x678]
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 [0x53c340]
push eax
lea ecx, [ebp - 0x34]
call fcn.004012e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd8]
call dword [0x53c330]
lea ecx, [ebp - 0x34]
call fcn.00401340
push eax
call fcn.004b7f07
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jg 0x47e8f8
mov dword [ebp - 0x10], 0
jmp 0x47e932
push 3
push 0
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x34]
call fcn.0040d7a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00401340
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47e926
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.00401320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401320
mov eax, dword [ebp - 0xdc]
cmp dword [eax + 0x668], 0
je 0x47e9a0
cmp dword [ebp - 0x10], 0
je 0x47e97c
push 1
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ecx + 0x668]
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 0x668]
mov edx, dword [edx]
mov eax, dword [edx + 0xd8]
call eax
jmp 0x47e9a0
push 0
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ecx + 0x668]
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 0x668]
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.004b8307
mov esp, ebp
pop ebp
ret