joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f360
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5116f5
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x568e30]
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.0050d500
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.00402980
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.0050cc10
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe8]
call fcn.00402a30
lea ecx, [ebp - 0x48]
call fcn.004029a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004257b0
movzx eax, al
test eax, eax
jne 0x46f505
lea ecx, [ebp - 0x2c]
call fcn.00401850
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46f505
push 0x51df90
lea ecx, [ebp - 0x2c]
call fcn.00401850
push eax
call fcn.004bc88e
add esp, 8
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x46f505
push 2
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004b89de
add esp, 0xc
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004b88e6
add esp, 4
mov dword [ebp - 0x50], eax
push 0
push 0
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004b89de
add esp, 0xc
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.004b7ec3
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.004b8548
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.0047bc20
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0xc4]
call fcn.0047d0a0
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.00402a30
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004b81f8
add esp, 4
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp + 8]
call fcn.004029f0
mov eax, dword [ebp - 0x108]
or eax, 1
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00402a30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401340
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.004b8dd5
mov esp, ebp
pop ebp
ret
Function at 0x470520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x470529
xor ecx, ecx
jne 0x470529
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 0x470570
mov eax, dword [ebp - 0xc]
jmp 0x4705cd
cmp dword [ebp - 4], 1
je 0x470583
cmp dword [ebp - 4], 2
je 0x470583
mov eax, 0xd
jmp 0x4705cd
cmp dword [ebp + 0xc], 0
je 0x4705c1
cmp dword [ebp - 8], 0
je 0x4705b9
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x4705b0
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x4705b7
mov eax, 0xd
jmp 0x4705cd
jmp 0x4705c1
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 0x4705e0
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 0x51e4d4
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 0x470625
jmp 0x47063f
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 0x470690
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51194b
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x568e30]
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.00402a50
mov dword [ebp - 4], 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x21d]
call fcn.00466f80
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x47083c
push str.KuaiZip.exe
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004bd419
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x470776
mov dword [ebp - 0x264], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.00461160
mov eax, dword [ebp - 0x264]
jmp 0x47085e
mov dword [ebp - 0x260], 0
push 0x38
push 0
lea eax, [ebp - 0x25c]
push eax
call fcn.004b8df0
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 0x470818
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.00461160
mov eax, dword [ebp - 0x268]
jmp 0x47085e
mov dword [ebp - 0x26c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.00461160
mov eax, dword [ebp - 0x26c]
jmp 0x47085e
mov dword [ebp - 0x270], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.00461160
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.004b8dd5
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512087
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x568e30]
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 0x47505e
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx + 0x66c]
call dword [0x53c3f0]
movzx edx, al
test edx, edx
jne 0x47505e
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xdc]
cmp dword [eax + 0x678], 0
je 0x475141
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 [0x53c420]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040d8d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd8]
call dword [0x53c410]
lea ecx, [ebp - 0x34]
call fcn.00401850
push eax
call fcn.004b9387
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jg 0x4750f8
mov dword [ebp - 0x10], 0
jmp 0x475132
push 3
push 0
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x34]
call fcn.0040d970
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00401850
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x475126
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.00401340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401340
mov eax, dword [ebp - 0xdc]
cmp dword [eax + 0x668], 0
je 0x4751a0
cmp dword [ebp - 0x10], 0
je 0x47517c
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 0x4751a0
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.004b8dd5
mov esp, ebp
pop ebp
ret
Function at 0x4751c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5120d3
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x568e30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf4], ecx
mov eax, dword [ebp - 0xf4]
cmp dword [eax + 0x678], 0
jne 0x475205
jmp 0x475407
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0xf0]
push ecx
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx + 0x678]
mov ecx, dword [ebp - 0xf4]
mov ecx, dword [ecx + 0x678]
mov edx, dword [eax]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xfc]
call dword [0x53c420]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040d8d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf0]
call dword [0x53c410]
lea ecx, [ebp - 0x4c]
call fcn.00401850
push eax
call fcn.004b9387
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 3
jg 0x475293
mov dword [ebp - 0x10], 0
jmp 0x4752cd
push 3
push 0
lea edx, [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x4c]
call fcn.0040d970
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.00401850
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4752c1
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.00401340
cmp dword [ebp - 0x10], 0
jne 0x47531a
mov eax, dword [ebp - 0xf4]
cmp dword [eax + 0x668], 0
je 0x475306
push 0
mov ecx, dword [ebp - 0xf4]
mov edx, dword [ecx + 0x668]
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + 0x668]
mov edx, dword [edx]
mov eax, dword [edx + 0xd8]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00401340
jmp 0x475407
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx + 0x66c], 0
je 0x4753ae
mov edx, dword [ebp - 0xf4]
mov ecx, dword [edx + 0x66c]
call dword [0x53c3f0]
movzx eax, al
test eax, eax
je 0x47537b
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx + 0x668], 0
je 0x475379
push 1
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx + 0x668]
mov ecx, dword [ebp - 0xf4]
mov ecx, dword [ecx + 0x668]
mov edx, dword [eax]
mov eax, dword [edx + 0xd8]
call eax
jmp 0x4753ae
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx + 0x668], 0
je 0x4753ae
push 0
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx + 0x668]
mov ecx, dword [ebp - 0xf4]
mov ecx, dword [ecx + 0x668]
mov edx, dword [eax]
mov eax, dword [edx + 0xd8]
call eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.0047ab70
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.00402980
push eax
push 0x7ef
mov ecx, dword [ebp - 0xf4]
add ecx, 0x4f8
mov eax, dword [ebp - 0xf4]
mov edx, dword [eax + 0x4f8]
mov eax, dword [edx]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00402a30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00401340
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b8dd5
mov esp, ebp
pop ebp
ret
Function at 0x476440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 8], 0
jne 0x476459
mov eax, 1
jmp 0x476562
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x51f600
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47655d
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
push 0x51f654
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 0x4764b4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x476562
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004809a6
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x476553
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
push str.ProgramW6432Dir
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x47651f
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004ba1cb
add esp, 4
mov eax, 1
jmp 0x476562
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004b9b1b
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004ba1cb
add esp, 4
xor eax, eax
jmp 0x476562
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x476d50
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push eax
call fcn.004b9387
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004809a6
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004b9368
add esp, 8
mov byte [ebp - 1], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x476dba
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 8]
jg 0x476e28
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x5c
jne 0x476e26
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov cx, word [eax + edx*2]
mov word [ebp - 0x18], cx
xor edx, edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x476e0f
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x476e0f
mov byte [ebp - 1], 0
jmp 0x476e28
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov ax, word [ebp - 0x18]
mov word [edx + ecx*2], ax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x476db1
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004ba1cb
add esp, 4
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x478870
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x568e30]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4788b5
xor eax, eax
jmp 0x4789b4
xor ecx, ecx
mov word [ebp - 0x220], cx
push 0x206
push 0
lea edx, [ebp - 0x21e]
push edx
call fcn.004b8df0
add esp, 0xc
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 4], 1
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x51fb24
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x478992
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov word [ebp - 0x428], ax
push 0x206
push 0
lea ecx, [ebp - 0x426]
push ecx
call fcn.004b8df0
add esp, 0xc
push 0
push 0x26
lea edx, [ebp - 0x428]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x428]
push eax
call fcn.004b933a
add esp, 8
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x478978
xor eax, eax
jmp 0x4789b4
lea edx, [ebp - 0x428]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004b9368
add esp, 8
mov eax, 1
jmp 0x4789b4
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004b9368
add esp, 8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b8dd5
mov esp, ebp
pop ebp
ret
Function at 0x4789d0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x568e30]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
xor eax, eax
mov word [ebp - 0x448], ax
push 0x206
push 0
lea ecx, [ebp - 0x446]
push ecx
call fcn.004b8df0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x220], dx
push 0x206
push 0
lea eax, [ebp - 0x21e]
push eax
call fcn.004b8df0
add esp, 0xc
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x44c], 1
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
push 0x51fb68
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x478aa3
xor eax, eax
jmp 0x478c00
lea edx, [ebp - 0x22c]
push edx
push 0x20019
push 0
push 0x51fb74
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x478ad6
xor eax, eax
jmp 0x478c00
lea ecx, [ebp - 0x234]
push ecx
push 0x20019
push 0
push 0x51fb80
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x478b0c
xor eax, eax
jmp 0x478c00
mov dword [ebp - 0x228], 0x104
mov dword [ebp - 8], 1
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x448]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0x51fb9c
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x448]
push eax
call fcn.004be91f
add esp, 4
mov dword [ebp - 0x224], eax
push 0x51fba0
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.00451d20
add esp, 8
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
jne 0x478b99
xor eax, eax
jmp 0x478c00
mov edx, dword [ebp - 0x450]
add edx, 2
mov dword [ebp - 0x224], edx
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x238], eax
push 0x51fba4
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.00451d20
add esp, 8
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
jne 0x478bdb
xor eax, eax
jmp 0x478c00
xor edx, edx
mov eax, dword [ebp - 0x450]
mov word [eax], dx
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x478bfb
xor eax, eax
jmp 0x478c00
mov eax, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b8dd5
mov esp, ebp
pop ebp
ret
Function at 0x478df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x568e30]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
xor eax, eax
mov word [ebp - 0x440], ax
push 0x206
push 0
lea ecx, [ebp - 0x43e]
push ecx
call fcn.004b8df0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x220], dx
push 0x206
push 0
lea eax, [ebp - 0x21e]
push eax
call fcn.004b8df0
add esp, 0xc
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0x444], 1
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push 0
push str.htmlfile
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x478ec3
xor eax, eax
jmp 0x478fb7
lea edx, [ebp - 0x22c]
push edx
push 0x20019
push 0
push str.shell
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x478ef6
xor eax, eax
jmp 0x478fb7
lea ecx, [ebp - 0x234]
push ecx
push 0x20019
push 0
push str.opencommand
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x478f2c
xor eax, eax
jmp 0x478fb7
mov dword [ebp - 0x228], 0x104
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x440]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0x51fc2c
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x440]
push eax
call fcn.004be91f
add esp, 4
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x224]
push edx
call fcn.00451d20
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x478fb2
xor eax, eax
jmp 0x478fb7
mov eax, 1
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004b8dd5
mov esp, ebp
pop ebp
ret