joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57a890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2e1e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x638fe4]
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 + 0x84], 0
call fcn.0041a507
push 0x69
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0041a733
call fcn.004196a0
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x57a9a5
call fcn.00418413
mov ecx, eax
test ecx, ecx
jne 0x57a909
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x57a91e
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x57a920
call edx
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.0041a556
call fcn.004196a0
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.0041a79c
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x57a9a5
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x57a9a1
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x57a9a1
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x57a9a5
mov ecx, edx
call edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x57a9cf
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x57a9cf
cmp dword [0x64414c], 0
je 0x57a9cf
or dword [eax + 8], 0x400000
push 0
push dword [esi + 0x94]
mov ecx, esi
push eax
call fcn.0041bf04
mov ecx, esi
call fcn.0041bc04
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.0041a542
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 0x57af20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2ea5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x638fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push 0
mov dword [esi + 0x94], ebx
mov dword [esi + 0x84], 0
call fcn.0041a507
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
movzx eax, word [ebp + 8]
push eax
call fcn.0041a733
call fcn.004196a0
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x57b042
call fcn.00418413
mov ecx, eax
test ecx, ecx
jne 0x57afa6
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x57afbb
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x57afbd
call edx
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.0041a556
call fcn.004196a0
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.0041a79c
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x57b042
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x57b03e
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x57b03e
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x57b042
mov ecx, edx
call edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x57b06c
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x57b06c
cmp dword [0x64414c], 0
je 0x57b06c
or dword [eax + 8], 0x400000
push 0
push ebx
push eax
mov ecx, esi
call fcn.0041bb90
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0041a542
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 0x57b0b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x638fe4]
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 + 0x84], 0
call fcn.0041a507
push 0x68
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0041a733
call fcn.004196a0
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x57b1c5
call fcn.00418413
mov ecx, eax
test ecx, ecx
jne 0x57b129
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x57b13e
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x57b140
call edx
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.0041a556
call fcn.004196a0
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.0041a79c
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x57b1c5
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x57b1c1
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x57b1c1
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x57b1c5
mov ecx, edx
call edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x57b1ef
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x57b1ef
cmp dword [0x64414c], 0
je 0x57b1ef
or dword [eax + 8], 0x400000
push 0
push dword [esi + 0x94]
mov ecx, esi
push eax
call fcn.0041bf04
mov ecx, esi
call fcn.0041bc04
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.0041a542
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 0x5818b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3310
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push esi
push edi
mov eax, dword [0x638fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp ebx, 1
jne 0x581978
push 0
push 0x69
lea ecx, [ebp - 0xd4]
call fcn.0041b5f6
mov dword [ebp - 0xd4], vtable.CDlgProgress.0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0xd4]
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x1fbd
mov dword [ebp - 0x20], 0x1fb2
mov dword [ebp - 0x1c], 0x23c1
mov dword [ebp - 0x18], esi
call fcn.0057a890
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x58194e
mov ecx, dword [ebp + 0x10]
call fcn.0056c650
mov ebx, 2
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xd4], vtable.CDlgProgress.0
test ecx, ecx
je 0x581966
mov eax, dword [ecx]
push 1
call dword [eax + 4]
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x2c], 0
call fcn.0041b659
cmp ebx, 2
jne 0x5819a3
mov eax, dword [esi + 0x1f4]
mov edi, dword [eax + 8]
mov esi, dword [eax + 4]
test edi, edi
jle 0x5819a3
lea ecx, [ecx]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [esi + 0x90]
sub edi, 1
jne 0x581990
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x58e7f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x638fe4]
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
movzx eax, word [ebp + 0xc]
push eax
push str._04x
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.004094f0
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.0054c667
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.00544774
mov esp, ebp
pop ebp
ret
Function at 0x58e8b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3d2e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x638fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], dl
mov ebx, ecx
push 0x20001
mov edx, 0x1e240
lea ecx, [ebp - 0x1c]
call fcn.005b5f80
add esp, 4
mov esi, dword [ebp - 0x1c]
mov edi, 0x60ab98
mov eax, esi
lea esp, [esp]
mov cx, word [eax]
cmp cx, word [edi]
jne 0x58e926
test cx, cx
je 0x58e922
mov cx, word [eax + 2]
cmp cx, word [edi + 2]
jne 0x58e926
add eax, 4
add edi, 4
test cx, cx
jne 0x58e900
xor eax, eax
jmp 0x58e92b
sbb eax, eax
or eax, 1
test eax, eax
je 0x58e969
mov ecx, str.SULA
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x58e95c
test dx, dx
je 0x58e958
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x58e95c
add eax, 4
add ecx, 4
test dx, dx
jne 0x58e936
xor eax, eax
jmp 0x58e961
sbb eax, eax
or eax, 1
test eax, eax
jne 0x58e9ff
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARECanonIJ_Scan_Utility
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x58e99e
xor bl, bl
jmp 0x58ea01
cmp byte [ebp - 0xd], 0
jne 0x58e9d6
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push 0
push 0
push str.OCRLang
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x58e9d3
cmp ebx, dword [ebp - 0x18]
je 0x58e9ef
mov eax, dword [ebp - 0x14]
push 4
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push ecx
push 4
push 0
push str.OCRLang
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x58ea5a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x58ea58
mov eax, dword [ecx + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
cmp ecx, vtable.ATL::CWin32Heap.0
jne 0x58ea56
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, eax
call edx
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x58f910
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3e75
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x638fe4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [0x64405c]
mov eax, 0x2aaaaaab
sub ecx, dword [0x644058]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x58fb8e
cmp eax, dword [0x639940]
jle 0x58fb8e
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._APPDATA_CanonIJ_Scan_Utility
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [0x643bf0]
xor eax, eax
test ecx, ecx
je 0x58f9aa
cmp esi, 0x9fbf1
push 0x2000000
setne al
dec eax
and eax, 4
push dword [eax + 0x644028]
call ecx
push eax
mov edx, esi
lea ecx, [ebp - 0x22c]
call fcn.005b5f80
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push dword [ebp - 0x22c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
call esi
push str.PRINTER.DAT
lea eax, [ebp - 0x218]
push eax
call esi
call fcn.00418413
mov ecx, eax
test ecx, ecx
jne 0x58f9fa
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x58fa0f
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x58fa11
call edx
add eax, 0x10
mov dword [ebp - 0x230], eax
push 0x60e818
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
call fcn.0054ca3b
add esp, 0xc
cmp dword [ebp - 0x21c], 0
je 0x58fb78
push ecx
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0x100
call fcn.0040a790
push dword [ebp - 0x21c]
push 1
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x228]
push 4
push eax
mov dword [ebp - 0x224], 1
call fcn.0054e4b2
push dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push 1
push 4
push eax
call fcn.0054e4b2
push dword [ebp - 0x21c]
lea eax, [ebp - 0x224]
push 1
push 4
push eax
call fcn.0054e4b2
add esp, 0x2c
call fcn.0040a790
cmp dword [eax + 0x14], 8
jb 0x58fad9
mov eax, dword [eax]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push 2
push eax
call fcn.0054e4b2
push dword [ebp - 0x21c]
mov eax, dword [0x643c90]
push 1
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x228]
push 4
push eax
mov dword [ebp - 0x228], 0x200
mov dword [ebp - 0x224], 0x64
call fcn.0054e4b2
push dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push 1
push 4
push eax
call fcn.0054e4b2
push dword [ebp - 0x21c]
lea eax, [ebp - 0x224]
push 1
push 4
push eax
call fcn.0054e4b2
add esp, 0x40
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push 1
push dword [0x643c8c]
call fcn.0054e4b2
push dword [ebp - 0x21c]
call fcn.0054caf8
add esp, 0x14
lea ecx, [ebp - 0x230]
call fcn.00402b90
lea ecx, [ebp - 0x22c]
call fcn.00402b90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544774
mov esp, ebp
pop ebp
ret
Function at 0x59e0e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d48a6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x638fe4]
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 + 0x94], ebx
call fcn.0041a507
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
movzx eax, word [ebp + 8]
push eax
call fcn.0041a733
call fcn.004196a0
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x59e1f8
call fcn.00418413
mov ecx, eax
test ecx, ecx
jne 0x59e15c
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x59e171
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x59e173
call edx
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.0041a556
call fcn.004196a0
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.0041a79c
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x59e1f8
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x59e1f4
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x59e1f4
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x59e1f8
mov ecx, edx
call esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp word [esi], 1
jne 0x59e22c
mov eax, 0xffff
cmp word [esi + 2], ax
jne 0x59e22c
mov ecx, dword [edi + 0x94]
test ecx, ecx
je 0x59e22c
cmp dword [ecx + 0x20], 0
je 0x59e22c
call fcn.004159a9
or dword [esi + 8], eax
push 0
push ebx
push esi
mov ecx, edi
call fcn.0041bb90
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0041a542
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 0x5a1310
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d4bc0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x638fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
lea ecx, [ebx + 0x10]
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [edi + 0x10]
push eax
call fcn.0040b760
mov dword [ebp - 4], 0
lea esi, [ebx + 0x1c]
mov eax, dword [edi + 0x1c]
sub eax, 0x10
mov dword [ebp + 8], esi
push eax
call fcn.004035b0
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [ebx + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [ebx + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [ebx + 0x3c], eax
mov eax, dword [edi + 0x44]
mov dword [ebx + 0x44], eax
mov eax, dword [edi + 0x48]
mov dword [ebx + 0x48], eax
mov eax, dword [edi + 0x4c]
mov dword [ebx + 0x4c], eax
mov eax, dword [edi + 0x50]
mov dword [ebx + 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [ebx + 0x54], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5a9f80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d526a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x638fe4]
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.00418413
mov ecx, eax
test ecx, ecx
jne 0x5a9fd1
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5a9fe6
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x5a9fe8
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x10], 1
call fcn.00403710
test edi, edi
je 0x5aa030
push esi
mov edx, 0x60ab98
mov ecx, edi
call fcn.005b0e00
mov eax, dword [esi]
add esp, 4
cmp dword [eax - 0xc], 0
je 0x5aa030
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5aa030
mov ecx, esi
call fcn.00403710
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 0x5aba10
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 0x5abbeb
mov ecx, esi
call fcn.00403710
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 0x5aba4d
push str.SHGetKnownFolderPath
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], 0
test eax, eax
je 0x5aba7a
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push edi
call eax
test eax, eax
js 0x5abbdd
push dword [ebp - 4]
mov ecx, esi
call fcn.004036d0
jmp 0x5abbdd
push ebx
mov ecx, edi
mov edx, 0x603ea0
mov ebx, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5abac7
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x5aba87
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x5ababa
push 0x104
mov ecx, esi
call fcn.00402cf0
push dword [esi]
push 0
push 0
push 5
jmp 0x5abba2
mov ecx, edi
mov edx, 0x603ed0
mov ebx, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5abb13
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x5abad3
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x5abb06
push 0x104
mov ecx, esi
call fcn.00402cf0
push dword [esi]
push 0
push 0
push 0x27
jmp 0x5abba2
mov ecx, edi
mov edx, 0x603ec0
mov ebx, 0xc
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5abb5d
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x5abb20
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x5abb53
push 0x104
mov ecx, esi
call fcn.00402cf0
push dword [esi]
push 0
push 0
push 0x25
jmp 0x5abba2
mov ecx, 0x603ee0
mov edx, 0xc
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x5abbae
add edi, 4
add ecx, 4
sub edx, 4
jae 0x5abb67
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x5abb9a
push 0x104
mov ecx, esi
call fcn.00402cf0
push dword [esi]
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x5abbdc
mov eax, dword [esi]
test eax, eax
jne 0x5abbb8
xor ecx, ecx
jmp 0x5abbca
push dword [eax - 8]
push eax
call fcn.0054c667
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x5abbf1
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x5abbf1
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 0x5abbeb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402650
int3
Function at 0x5ac220
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x638fe4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov eax, dword [ebx]
mov edi, dword [eax - 0xc]
test edi, edi
jne 0x5ac252
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544774
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
test edi, edi
jle 0x5ac287
lea esp, [esp]
test esi, esi
js 0x5ac333
mov eax, dword [ebx]
cmp esi, dword [eax - 0xc]
jg 0x5ac333
movzx eax, word [eax + esi*2]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetCharTypeW]
test al, 3
je 0x5ac2f6
inc esi
cmp esi, edi
jl 0x5ac260
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push dword [ebx]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0054e980
push str._99991332_0001.su
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0054e980
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x5ac309
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544774
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00544774
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402650
int3