joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5857c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6039b0]
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 edi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
call fcn.0041f9f0
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45a4cf
push 0x5dfc54
mov ecx, edi
call fcn.00407740
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45a5a4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x45a5a4
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x45a4e4
push 0x80004005
call fcn.00402a80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InstallTime
call fcn.00407740
push ecx
mov byte [ebp - 4], 2
mov esi, esp
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
lea ecx, [ecx - 0x10]
call fcn.00407a70
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
call fcn.0045a5d0
test eax, eax
je 0x45a558
mov ebx, dword [ebp - 0x18]
add ebx, 0xfffffff0
mov ecx, ebx
call fcn.00407a70
add eax, 0x10
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov dword [edi], eax
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x45a585
mov ecx, dword [ebx]
push ebx
jmp 0x45a580
push 0x5dfc54
mov ecx, edi
call fcn.00407740
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a585
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45a5a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.0055042c
mov esp, ebp
pop ebp
ret 4
Function at 0x45a5d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582900
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.00553bc0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push 0x104
push eax
push 0x5dfa24
push dword [ebp + 0xc]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x45a67b
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45a656
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00407ba0
mov edi, 1
jmp 0x45a67d
xor edi, edi
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a69e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x45a6bd
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45a6e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45a703
push dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp + 8]
push esi
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a721
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
pop esi
jg 0x45a73a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop ebp
ret 8

Function at 0x45a740
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
call fcn.0041f9f0
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45a772
lea esi, [eax + 1]
jmp 0x45a78f
push dword [ebp - 8]
push 1
push str.Activate
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov eax, dword [ebp - 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x45a7aa
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0055042c
mov esp, ebp
pop ebp
ret
Function at 0x45a7c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585808
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.004268b0
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
jne 0x45a817
xor edi, edi
jmp 0x45a8dc
push str.config.ini
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.0040b270
add esp, 4
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45a86a
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x45a938
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call fcn.0055ec94
cdq
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 0
call fcn.00435210
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push str.act_time
push str.three_end
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x20]
mov edi, eax
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x45a8be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a8dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a8fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45a919
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret 4
xor edi, edi
jmp 0x45a8be
Function at 0x45a940
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x6039b0]
xor eax, esp
mov dword [esp + 0x90], eax
push esi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsMasterOFD.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45aa07
push 0x80
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00553bc0
add esp, 0xc
push 0
call fcn.005656f9
add esp, 4
push edx
push eax
lea eax, [esp + 0x18]
push str._I64d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x20]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45a9c1
sub eax, edx
sar eax, 1
add eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.ActDate
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
push ecx
sbb esi, esi
mov ecx, esp
lea eax, [esp + 0x14]
and esi, 0x80004005
push eax
call fcn.00407740
call fcn.0045a7c0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x94]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0055042c
mov esp, ebp
pop ebp
ret
Function at 0x45b100
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x5cdd1c
push 1
push 0
push 0x5cdd4c
mov dword [ebp - 8], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x45b1fe
cmp dword [esi + 0x60], 8
lea edx, [esi + 0x4c]
mov dword [ebp - 0xc], 0
jb 0x45b14d
mov edx, dword [edx]
mov eax, dword [ebp - 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp dword [esi + 0x48], 8
lea edx, [esi + 0x34]
jb 0x45b162
mov edx, dword [edx]
mov eax, dword [ebp - 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
cmp dword [esi + 0x74], 0
je 0x45b187
cmp dword [esi + 0x78], 8
lea edx, [esi + 0x64]
jb 0x45b17d
mov edx, dword [edx]
mov eax, dword [ebp - 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xc]
push edi
push edx
push 0x5da740
mov ecx, dword [eax]
push eax
call dword [ecx]
mov edi, eax
test edi, edi
js 0x45b1f2
add esi, 0x7c
cmp dword [esi + 0x14], 8
jb 0x45b1ac
mov eax, dword [esi]
jmp 0x45b1ae
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45b1cc
cmp dword [esi + 0x14], 8
jb 0x45b1c3
mov eax, dword [esi]
jmp 0x45b1c5
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x45b1d4
mov esi, dword [esi]
mov eax, dword [ebp - 0xc]
push 0
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055042c
mov esp, ebp
pop ebp
ret 4
Function at 0x45b210
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5858ab
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x4b4]
push edi
call fcn.004591b0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00553bc0
cmp dword [ebp - 0x46c], 8
lea eax, [ebp - 0x480]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
cmovae eax, dword [ebp - 0x480]
push eax
lea eax, [ebp - 0x218]
push 0x5dfb38
push eax
call esi
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00553bc0
cmp dword [ebp - 0x49c], 8
lea eax, [ebp - 0x4b0]
cmovae eax, dword [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x420]
push str._s.lnk
push eax
call esi
add esp, 0x30
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp word [ebp - 0x218], 0
jne 0x45b2ea
xor ecx, ecx
jmp 0x45b302
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b2f3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00406db0
lea eax, [ebp - 0x4b4]
push eax
call fcn.0045b100
test eax, eax
js 0x45b37b
cmp dword [edi + 0x90], 8
lea eax, [edi + 0x7c]
jb 0x45b333
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push 0
cmovae eax, dword [ebp - 0x438]
push 0
push 0
push eax
push str.TaskbarPin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call esi
lea ecx, [ebp - 0x4b4]
call fcn.00455b70
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret 4
Function at 0x45b8a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58599c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x6039b0]
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 esi, ecx
cmp dword [esi + 0x10], 0
jne 0x45b949
push 0x10
lea eax, [ebp - 0x230]
push eax
call fcn.0045ba70
mov edi, eax
cmp esi, edi
je 0x45b924
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x45b8fd
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00407960
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x45b915
mov eax, dword [esi]
jmp 0x45b917
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00415b00
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x45b949
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407960
cmp dword [esi + 0x28], 0
jne 0x45b9c5
push 2
lea eax, [ebp - 0x230]
push eax
call fcn.0045ba70
mov ebx, eax
lea edi, [esi + 0x18]
cmp edi, ebx
je 0x45b9a0
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x45b979
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00407960
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x45b991
mov eax, dword [edi]
jmp 0x45b993
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
push ebx
call fcn.00415b00
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x45b9c5
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407960
cmp dword [esi + 0x40], 0
jne 0x45ba3f
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00553bc0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp word [ebp - 0x218], 0
jne 0x45ba14
xor ecx, ecx
jmp 0x45ba2f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ba20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x30]
call fcn.00406db0
cmp dword [esi + 0x28], 0
je 0x45ba4f
cmp dword [esi + 0x10], 0
je 0x45ba4f
xor eax, eax
jmp 0x45ba54
mov eax, 0x80004005
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.0055042c
mov esp, ebp
pop ebp
ret
Function at 0x45ba70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x45bb50
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x45bb3a
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00553bc0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x45bb1e
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00405890
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x218]
push dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov dword [ebp - 0x214], 0
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x218], 0
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x5dfc54
mov word [esi], ax
call fcn.00406db0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0055042c
mov esp, ebp
pop ebp
ret 8
Function at 0x45bb90
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x20a
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push 0
push eax
mov dword [ebp - 0x218], 0
call fcn.00553bc0
add esp, 0xc
cmp dword [ebx + 0x10], 0
je 0x45bc2c
cmp dword [ebx + 0x14], 8
jb 0x45bbe6
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x45bbee
mov edi, dword [edi]
push ebx
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [ebp + 0x18], 0
je 0x45bc24
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45bc24
push eax
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esi + 0x10], 0
je 0x45bc72
jmp 0x45bc4f
cmp dword [esi + 0x10], 0
je 0x45bc72
cmp dword [edi + 0x14], 8
jb 0x45bc3a
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00565616
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
cmp dword [esi + 0x14], 8
jb 0x45bc64
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str..lnk
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0056be06
mov ebx, dword [ebp - 0x214]
xor eax, eax
add esp, 0xc
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp word [ebp - 0x210], ax
jne 0x45bcb1
xor ecx, ecx
jmp 0x45bccf
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45bcc0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.00406db0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055042c
mov esp, ebp
pop ebp
ret 0x14
Function at 0x45f420
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4090], ebx
je 0x45f4cc
cmp dword [esi + 0x6c], ebx
jbe 0x45f4cc
mov eax, 0xffffff78
lea ebx, [esi + 0x88]
sub eax, esi
mov dword [ebp - 4], eax
push edi
movzx eax, byte [ebx]
mov ecx, dword [esi + 0x4094]
xor eax, ecx
mov edx, dword [esi + 0x40a0]
mov edi, dword [esi + 0x409c]
movzx eax, al
and edi, 0xfffd
shr ecx, 8
or edi, 2
mov eax, dword [edx + eax*4]
xor eax, ecx
mov ecx, dword [esi + 0x409c]
mov dword [esi + 0x4094], eax
movzx eax, al
add eax, dword [esi + 0x4098]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x4098], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edx + eax*4]
mov eax, edi
xor eax, 1
mov dword [esi + 0x409c], ecx
imul eax, edi
shr eax, 8
xor byte [ebx], al
inc ebx
mov eax, dword [ebp - 4]
add eax, ebx
cmp eax, dword [esi + 0x6c]
jb 0x45f450
xor ebx, ebx
pop edi
push dword [esi + 0x6c]
mov ecx, dword [esi + 8]
lea eax, [esi + 0x88]
push eax
push dword [esi + 0x20]
push dword [esi + 0x1c]
call ecx
add esp, 0x10
or ecx, 0xffffffff
cmp eax, dword [esi + 0x6c]
mov dword [esi + 0x6c], 0
cmovne ebx, ecx
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460d80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585e43
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6039b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x60afa0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x60afa0
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x5e021c
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0045fcc0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x461000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test ebx, ebx
jne 0x46105a
cmp byte [esi + 0x2c], bl
jne 0x461051
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 2
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x461030
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x34]
call fcn.0045fcc0
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov edi, dword [esi + 0x18]
test edi, edi
je 0x461070
mov ecx, edi
mov edi, dword [edi + 0x28]
push 1
mov eax, dword [ecx]
call dword [eax]
test edi, edi
jne 0x461061
push 2
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push 0
push ebx
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
call fcn.0055f223
push ebx
call fcn.0055f81c
push 0
mov edi, eax
push 0
push ebx
mov dword [ebp + 8], edi
call fcn.0055f223
add esp, 0x1c
test edi, edi
jg 0x4610dc
cmp byte [esi + 0x2c], 0
jne 0x461051
mov edx, dword [str.Error_document_empty.]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 0xc
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4610d0
jmp 0x461037
lea eax, [edi + 1]
push eax
call fcn.00550b1c
push ebx
mov ebx, dword [ebp + 8]
mov edi, eax
push 1
push ebx
push edi
mov byte [edi], 0
call fcn.0055f9f3
add esp, 0x14
cmp eax, 1
je 0x461134
push edi
call fcn.00550b17
add esp, 4
cmp byte [esi + 0x2c], 0
jne 0x461051
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 2
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x461128
jmp 0x461037
mov byte [edi + ebx], 0
mov eax, edi
cmp byte [edi], 0
mov ecx, edi
je 0x46115f
mov dl, byte [eax]
mov ebx, eax
cmp dl, 0xd
jne 0x461156
inc eax
mov byte [ecx], 0xa
cmp byte [eax], 0xa
cmovne eax, ebx
jmp 0x461158
mov byte [ecx], dl
inc eax
inc ecx
cmp byte [eax], 0
jne 0x461141
mov byte [ecx], 0
mov ecx, esi
mov eax, dword [esi]
push 0
push 0
push edi
call dword [eax + 8]
push edi
call fcn.00550b17
add esp, 4
cmp byte [esi + 0x2c], 0
sete al
pop edi
pop esi
pop ebx
pop ebp
ret 8