joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bf60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5845a0
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x6069b0]
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.00555650
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push 0x104
push eax
push 0x5e1a24
push dword [ebp + 0xc]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x45c00b
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45bfe6
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00407be0
mov edi, 1
jmp 0x45c00d
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 0x45c02e
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 0x45c04d
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.00551ee1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45c070
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 0x45c093
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 0x45c0b1
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 0x45c0ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6069b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
call fcn.00420080
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45c102
lea esi, [eax + 1]
jmp 0x45c11f
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 0x45c13a
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.00551ee1
mov esp, ebp
pop ebp
ret
Function at 0x45c150
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587818
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6069b0]
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.00426f80
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
jne 0x45c1a7
xor edi, edi
jmp 0x45c26c
push str.config.ini
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.0040b2b0
add esp, 4
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45c1fa
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 0x45c2c8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call fcn.00560755
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.00435cb0
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 0x45c24e
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 0x45c26c
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 0x45c28a
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 0x45c2a9
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.00551ee1
mov esp, ebp
pop ebp
ret 4
xor edi, edi
jmp 0x45c24e
Function at 0x45c2d0
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 [0x6069b0]
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_PathsMasterPDF.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45c397
push 0x80
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00555650
add esp, 0xc
push 0
call fcn.005671b9
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 0x45c351
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.00407780
call fcn.0045c150
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.00551ee1
mov esp, ebp
pop ebp
ret
Function at 0x45ca90
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6069b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x5cfd1c
push 1
push 0
push 0x5cfd4c
mov dword [ebp - 8], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x45cb8e
cmp dword [esi + 0x60], 8
lea edx, [esi + 0x4c]
mov dword [ebp - 0xc], 0
jb 0x45cadd
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 0x45caf2
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 0x45cb17
cmp dword [esi + 0x78], 8
lea edx, [esi + 0x64]
jb 0x45cb0d
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 0x5dc740
mov ecx, dword [eax]
push eax
call dword [ecx]
mov edi, eax
test edi, edi
js 0x45cb82
add esi, 0x7c
cmp dword [esi + 0x14], 8
jb 0x45cb3c
mov eax, dword [esi]
jmp 0x45cb3e
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45cb5c
cmp dword [esi + 0x14], 8
jb 0x45cb53
mov eax, dword [esi]
jmp 0x45cb55
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x45cb64
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.00551ee1
mov esp, ebp
pop ebp
ret 4
Function at 0x45cba0
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5878bb
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x6069b0]
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.0045ab40
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00555650
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 0x5e1b38
push eax
call esi
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00555650
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 0x45cc7a
xor ecx, ecx
jmp 0x45cc92
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45cc83
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00406df0
lea eax, [ebp - 0x4b4]
push eax
call fcn.0045ca90
test eax, eax
js 0x45cd0b
cmp dword [edi + 0x90], 8
lea eax, [edi + 0x7c]
jb 0x45ccc3
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.00456be0
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.00551ee1
mov esp, ebp
pop ebp
ret 4
Function at 0x45d230
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5879ac
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x6069b0]
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 0x45d2d9
push 0x10
lea eax, [ebp - 0x230]
push eax
call fcn.0045d400
mov edi, eax
cmp esi, edi
je 0x45d2b4
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x45d28d
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004079a0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x45d2a5
mov eax, dword [esi]
jmp 0x45d2a7
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00415e80
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x45d2d9
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004079a0
cmp dword [esi + 0x28], 0
jne 0x45d355
push 2
lea eax, [ebp - 0x230]
push eax
call fcn.0045d400
mov ebx, eax
lea edi, [esi + 0x18]
cmp edi, ebx
je 0x45d330
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x45d309
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.004079a0
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x45d321
mov eax, dword [edi]
jmp 0x45d323
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
push ebx
call fcn.00415e80
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x45d355
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004079a0
cmp dword [esi + 0x40], 0
jne 0x45d3cf
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00555650
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 0x45d3a4
xor ecx, ecx
jmp 0x45d3bf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d3b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x30]
call fcn.00406df0
cmp dword [esi + 0x28], 0
je 0x45d3df
cmp dword [esi + 0x10], 0
je 0x45d3df
xor eax, eax
jmp 0x45d3e4
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.00551ee1
mov esp, ebp
pop ebp
ret
Function at 0x45d400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x6069b0]
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 0x45d4e0
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 0x45d4ca
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00555650
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x45d4ae
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.004058d0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00551ee1
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 0x5e1c54
mov word [esi], ax
call fcn.00406df0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00551ee1
mov esp, ebp
pop ebp
ret 8
Function at 0x45d520
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x6069b0]
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.00555650
add esp, 0xc
cmp dword [ebx + 0x10], 0
je 0x45d5bc
cmp dword [ebx + 0x14], 8
jb 0x45d576
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x45d57e
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 0x45d5b4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45d5b4
push eax
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esi + 0x10], 0
je 0x45d602
jmp 0x45d5df
cmp dword [esi + 0x10], 0
je 0x45d602
cmp dword [edi + 0x14], 8
jb 0x45d5ca
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.005670d6
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
cmp dword [esi + 0x14], 8
jb 0x45d5f4
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.0056db11
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 0x45d641
xor ecx, ecx
jmp 0x45d65f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d650
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.00406df0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00551ee1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x460ef0
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 0x460f9c
cmp dword [esi + 0x6c], ebx
jbe 0x460f9c
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 0x460f20
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 0x462850
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587ed3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6069b0]
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], 0x60e020
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], 0x60e020
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x5e221c
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00461790
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 0x462ad0
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 0x462b2a
cmp byte [esi + 0x2c], bl
jne 0x462b21
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 0x462b00
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x34]
call fcn.00461790
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 0x462b40
mov ecx, edi
mov edi, dword [edi + 0x28]
push 1
mov eax, dword [ecx]
call dword [eax]
test edi, edi
jne 0x462b31
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.00560ce4
push ebx
call fcn.005612dd
push 0
mov edi, eax
push 0
push ebx
mov dword [ebp + 8], edi
call fcn.00560ce4
add esp, 0x1c
test edi, edi
jg 0x462bac
cmp byte [esi + 0x2c], 0
jne 0x462b21
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 0x462ba0
jmp 0x462b07
lea eax, [edi + 1]
push eax
call fcn.005525d1
push ebx
mov ebx, dword [ebp + 8]
mov edi, eax
push 1
push ebx
push edi
mov byte [edi], 0
call fcn.005614b4
add esp, 0x14
cmp eax, 1
je 0x462c04
push edi
call fcn.005525cc
add esp, 4
cmp byte [esi + 0x2c], 0
jne 0x462b21
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 0x462bf8
jmp 0x462b07
mov byte [edi + ebx], 0
mov eax, edi
cmp byte [edi], 0
mov ecx, edi
je 0x462c2f
mov dl, byte [eax]
mov ebx, eax
cmp dl, 0xd
jne 0x462c26
inc eax
mov byte [ecx], 0xa
cmp byte [eax], 0xa
cmovne eax, ebx
jmp 0x462c28
mov byte [ecx], dl
inc eax
inc ecx
cmp byte [eax], 0
jne 0x462c11
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.005525cc
add esp, 4
cmp byte [esi + 0x2c], 0
sete al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x466340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
nop
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x4663cf
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.005557b0
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x46639f
sub eax, esi
jmp 0x4663a1
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x466390
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x4663c0
sub eax, esi
jmp 0x4663c2
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x4663b1
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x46648b
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x4663fc
xor eax, eax
jmp 0x46644f
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x466419
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.00468b50
jmp 0x466431
cmp eax, 2
jne 0x466437
mov edx, dword [ebx]
test edx, edx
jne 0x466428
xor eax, eax
jmp 0x466434
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.00467050
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.005557b0
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x466477
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x46648b
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x466350
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret