joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54f4d0
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x49c]
cmp esi, dword [edi + 0x4a0]
je 0x54f500
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esp, [esp]
push dword [esi]
call ebx
add esi, 0x1c
cmp esi, dword [edi + 0x4a0]
jne 0x54f4f0
pop ebx
pop edi
pop esi
ret
Function at 0x5554a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad55b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x614040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push 0
mov dword [esi + 0x88], edi
call fcn.00417535
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
call fcn.0041774b
call fcn.00416b46
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x55558b
call fcn.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x555524
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 0
push eax
lea ecx, [ebp - 0x18]
call fcn.00417584
call fcn.00416b46
lea ecx, [ebp - 0x18]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd4]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.004177b3
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55558b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x5555b5
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x5555b5
cmp dword [0x62002c], 0
je 0x5555b5
or dword [eax + 8], 0x400000
push 0
push edi
push eax
mov ecx, esi
call fcn.00419c67
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00417570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x5555f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad586
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x614040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea ecx, [ebp - 0x20]
mov dword [esi + 0x78], 0
call fcn.00417535
push 0x65
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0041774b
call fcn.00416b46
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x5556d3
call fcn.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x55566c
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x20]
call fcn.00417584
call fcn.00416b46
lea ecx, [ebp - 0x20]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd4]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.004177b3
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5556d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x5556fd
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x5556fd
cmp dword [0x62002c], 0
je 0x5556fd
or dword [eax + 8], 0x400000
push 0
push dword [esi + 0x88]
mov ecx, esi
push eax
call fcn.00419f9c
mov ecx, esi
call fcn.00419cdd
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00417570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x556250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad7d3
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x614040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push 0
mov dword [esi + 0x88], edi
mov dword [esi + 0x78], 0
call fcn.00417535
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
call fcn.0041774b
call fcn.00416b46
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x556342
call fcn.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5562db
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 0
push eax
lea ecx, [ebp - 0x18]
call fcn.00417584
call fcn.00416b46
lea ecx, [ebp - 0x18]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd4]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.004177b3
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x556342
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x55636c
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x55636c
cmp dword [0x62002c], 0
je 0x55636c
or dword [eax + 8], 0x400000
push 0
push edi
push eax
mov ecx, esi
call fcn.00419c67
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00417570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x5563a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad7fe
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x614040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea ecx, [ebp - 0x20]
mov dword [esi + 0x78], 0
call fcn.00417535
push 0x69
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0041774b
call fcn.00416b46
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x556483
call fcn.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x55641c
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x20]
call fcn.00417584
call fcn.00416b46
lea ecx, [ebp - 0x20]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd4]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.004177b3
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x556483
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x5564ad
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x5564ad
cmp dword [0x62002c], 0
je 0x5564ad
or dword [eax + 8], 0x400000
push 0
push dword [esi + 0x88]
mov ecx, esi
push eax
call fcn.00419f9c
mov ecx, esi
call fcn.00419cdd
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00417570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5568e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad8ae
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x614040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push 0
mov dword [esi + 0x88], edi
mov dword [esi + 0x78], 0
call fcn.00417535
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
call fcn.0041774b
call fcn.00416b46
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x5569d2
call fcn.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x55696b
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 0
push eax
lea ecx, [ebp - 0x18]
call fcn.00417584
call fcn.00416b46
lea ecx, [ebp - 0x18]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd4]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.004177b3
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5569d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x5569fc
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x5569fc
cmp dword [0x62002c], 0
je 0x5569fc
or dword [eax + 8], 0x400000
push 0
push edi
push eax
mov ecx, esi
call fcn.00419c67
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00417570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x556a40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad8d9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x614040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea ecx, [ebp - 0x20]
mov dword [esi + 0x78], 0
call fcn.00417535
push 0x68
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0041774b
call fcn.00416b46
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x556b23
call fcn.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x556abc
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x20]
call fcn.00417584
call fcn.00416b46
lea ecx, [ebp - 0x20]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd4]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.004177b3
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x556b23
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x556b4d
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x556b4d
cmp dword [0x62002c], 0
je 0x556b4d
or dword [eax + 8], 0x400000
push 0
push dword [esi + 0x88]
mov ecx, esi
push eax
call fcn.00419f9c
mov ecx, esi
call fcn.00419cdd
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00417570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x55ce50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5adcfa
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x614040]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp ebx, 1
jne 0x55cf53
push 0
push 0x69
lea ecx, [esp + 0x1c]
call fcn.00419783
mov dword [esp + 0x14], vtable.CDlgProgress.0
mov dword [esp + 0xac], 0
mov eax, dword [ebp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0xd8], 0
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], 0x1fbd
mov dword [esp + 0xb8], 0x1fb2
mov dword [esp + 0xbc], 0x23c1
mov dword [esp + 0xc0], esi
call fcn.005563a0
mov edx, dword [esp + 0xc8]
test edx, edx
je 0x55cf0f
mov ecx, dword [ebp + 0x10]
call fcn.00547e20
mov ebx, 2
mov dword [esp + 0x14], vtable.CDlgProgress.0
mov dword [esp + 0xd8], 1
mov ecx, dword [esp + 0xac]
test ecx, ecx
je 0x55cf34
mov eax, dword [ecx]
push 1
call dword [eax + 4]
lea ecx, [esp + 0x14]
mov dword [esp + 0xac], 0
mov dword [esp + 0xd8], 0xffffffff
call fcn.004197d0
cmp ebx, 2
jne 0x55cf79
mov eax, dword [esi + 0x1d4]
mov edi, dword [eax + 8]
mov esi, dword [eax + 4]
test edi, edi
jle 0x55cf79
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [esi + 0x90]
dec edi
jne 0x55cf68
mov eax, ebx
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x568cf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x614040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWARECanonIJ_Scan_Utility
push SysReAllocString
mov dword [ebp - 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
movzx eax, ax
push eax
push str._04x
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.00529ebd
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.00528e42
add esp, 0x18
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00527e2c
mov esp, ebp
pop ebp
ret
Function at 0x578aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af415
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x614040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push 0
mov dword [edi + 0x88], ebx
call fcn.00417535
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
call fcn.0041774b
call fcn.00416b46
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x578b8c
call fcn.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x578b25
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 0
push eax
lea ecx, [ebp - 0x18]
call fcn.00417584
call fcn.00416b46
lea ecx, [ebp - 0x18]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd4]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.004177b3
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x578b8c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp word [esi], 1
jne 0x578bc0
mov eax, 0xffff
cmp word [esi + 2], ax
jne 0x578bc0
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x578bc0
cmp dword [ecx + 0x20], 0
je 0x578bc0
call fcn.004148ad
or dword [esi + 8], eax
push 0
push ebx
push esi
mov ecx, edi
call fcn.00419c67
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00417570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x57bb50
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af776
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x614040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x18]
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [esi + 0x18]
push eax
call fcn.0040a670
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x40]
sub eax, 0x10
push eax
call fcn.00403660
add esp, 4
add eax, 0x10
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x5841e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afdf4
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x614040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.00414eab
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x584238
push 0x80004005
call fcn.00402740
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x10], 1
call fcn.00403500
test edi, edi
je 0x584285
push esi
mov edx, 0x5e7af0
mov ecx, edi
call fcn.00589660
mov eax, dword [esi]
add esp, 4
cmp dword [eax - 0xc], 0
je 0x584285
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x584285
mov ecx, esi
call fcn.00403500
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x584540
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afe66
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x614040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebx]
mov dword [ebp - 0x2cc], 0
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00402f60
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c8]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x5845ac
push 0x80070057
call fcn.00402740
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x5845cf
push esi
lea ecx, [ebp - 0x2c8]
call fcn.00402c20
mov eax, dword [ebp - 0x2c8]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.005299a2
mov eax, dword [ebp - 0x2c8]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x5845a2
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x2c8]
mov word [eax + esi*2], cx
mov ecx, str..dll
mov eax, dword [ebp - 0x2c8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x584627
test dx, dx
je 0x584623
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x584627
add eax, 4
add ecx, 4
test dx, dx
jne 0x584601
xor eax, eax
jmp 0x58462c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x58463f
push eax
push dword [ebx]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconW]
jmp 0x584716
push 0x2b4
lea eax, [ebp - 0x2c4]
push 0
push eax
call fcn.0052d120
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [ebp - 0x2c4]
add esp, 0xc
push 0x4000
push 0x2b4
push eax
push 0
push dword [ebx]
call edi
test eax, eax
je 0x5846c9
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0
push eax
push 0x5eb8d4
push 2
call dword [sym.imp.SHELL32.dll_SHGetImageList]
test eax, eax
jne 0x5846b3
mov eax, dword [ebp - 0x2d0]
lea edx, [ebp - 0x2cc]
push edx
push 1
push dword [ebp - 0x2c0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [ebp - 0x2d0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x2d0], 0
mov esi, dword [ebp - 0x2cc]
test esi, esi
jne 0x58471e
push 0x100
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push esi
push dword [ebx]
call edi
mov esi, dword [ebp - 0x2c4]
test esi, esi
je 0x5846fb
mov dword [ebp - 0x2cc], esi
jmp 0x584701
mov esi, dword [ebp - 0x2cc]
test esi, esi
jne 0x58471e
call fcn.00416b46
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, eax
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edi, dword [ebp - 0x2c8]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x584745
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527e2c
mov esp, ebp
pop ebp
ret
Function at 0x585a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, edx
push edi
mov edi, ecx
test esi, esi
je 0x585beb
mov ecx, esi
call fcn.00403500
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, eax
xor eax, eax
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x585a4d
push str.SHGetKnownFolderPath
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], 0
test eax, eax
je 0x585a7a
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push edi
call eax
test eax, eax
js 0x585bdd
push dword [ebp - 4]
mov ecx, esi
call fcn.00403560
jmp 0x585bdd
push ebx
mov ecx, edi
mov edx, 0x5e5498
mov ebx, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x585ac7
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x585a87
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x585aba
push 0x104
mov ecx, esi
call fcn.00402c20
push dword [esi]
push 0
push 0
push 5
jmp 0x585ba2
mov ecx, edi
mov edx, 0x5e54c8
mov ebx, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x585b13
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x585ad3
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x585b06
push 0x104
mov ecx, esi
call fcn.00402c20
push dword [esi]
push 0
push 0
push 0x27
jmp 0x585ba2
mov ecx, edi
mov edx, 0x5e54b8
mov ebx, 0xc
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x585b5d
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x585b20
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x585b53
push 0x104
mov ecx, esi
call fcn.00402c20
push dword [esi]
push 0
push 0
push 0x25
jmp 0x585ba2
mov ecx, 0x5e54d8
mov edx, 0xc
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x585bae
add edi, 4
add ecx, 4
sub edx, 4
jae 0x585b67
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x585b9a
push 0x104
mov ecx, esi
call fcn.00402c20
push dword [esi]
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x585bdc
mov eax, dword [esi]
test eax, eax
jne 0x585bb8
xor ecx, ecx
jmp 0x585bca
push dword [eax - 8]
push eax
call fcn.00528e42
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x585bf1
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x585bf1
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
pop ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x585beb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402740
int3