joyce8/EMBER2024-capa huggingface dataset:
Function at 0x523c7c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x523e27
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x523e08
mov dl, 1
mov eax, dword [0x4415b8]
call fcn.0044fbc4
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00407010
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x523df7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004b0f14
test al, al
je 0x523dea
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x523e38
lea eax, [ebp - 0x394]
call fcn.00421b54
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x523dea
xor eax, eax
push ebp
push 0x523de3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x523ea8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x523dcc
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040800c
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x44]
jne 0x523dcc
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040800c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523dea
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x523ced
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0044fb00
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523e2e
lea eax, [ebp - 0x3a0]
call fcn.00407010
ret

Function at 0x5249e0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x661364]
cmp byte [eax + 0xb1], 0
jne 0x524a52
cmp dword [0x661384], 0
jne 0x524a12
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x651070]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x661384], eax
cmp dword [0x661380], 0
jne 0x524a2d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x661380], eax
cmp dword [0x661388], 0
jne 0x524a52
push esp
push 0
push 0
mov eax, dword [0x65106c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x661388], eax
pop edx
ret
Function at 0x524d6c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x524d83
add esp, 0xfffffff0
call fcn.004058d0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00458984
mov eax, dword [0x65abf4]
cmp byte [eax], 0
jne 0x524db0
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x184], al
mov eax, dword [0x65b04c]
cmp word [eax + 2], 0
jne 0x524dca
mov eax, dword [0x65b04c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00526f60
mov eax, dword [0x65b1e0]
cmp word [eax + 2], 0
jne 0x524de4
mov eax, dword [0x65b1e0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00527164
mov byte [ebx + 0x39], 0
mov dl, 1
mov eax, dword [0x475580]
call fcn.0047b580
mov esi, eax
mov dword [ebx + 0x40], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5276dc
mov dl, 1
mov eax, dword [0x43de44]
call fcn.00405294
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x43de44]
call fcn.00405294
mov dword [ebx + 0xb4], eax
xor eax, eax
mov dword [ebx + 0x64], eax
xor eax, eax
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x60], 0xff000018
mov dword [ebx + 0x7c], 0x1f4
mov byte [ebx + 0x80], 1
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x78], 0x9c4
mov byte [ebx + 0x8c], 0
mov byte [ebx + 0xa9], 1
mov byte [ebx + 0xc0], 1
mov dl, 1
mov eax, dword [0x479e60]
call fcn.00484bcc
mov esi, eax
mov dword [ebx + 0xa4], esi
push 0x524fc8
mov eax, dword [0x65ae84]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0048505c
mov eax, dword [ebx + 0xa4]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5279c4
mov dl, 1
mov eax, dword [0x43de44]
call fcn.00405294
mov dword [ebx + 0x9c], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x65ae84]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00421954
test eax, eax
je 0x524ef8
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.004216d0
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00421938
test eax, eax
je 0x524f10
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x90]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040800c
push ebx
push 0x526938
call fcn.0051a924
mov dword [ebx + 0x180], eax
mov byte [ebx + 0xd4], 0
mov eax, dword [0x65abf4]
cmp byte [eax], 0
jne 0x524f61
mov eax, ebx
call fcn.00525188
mov byte [ebx + 0x5d], 1
mov byte [ebx + 0x5e], 1
mov byte [ebx + 0x5f], 1
mov byte [ebx + 0xaa], 1
mov byte [ebx + 0xd5], 0
mov byte [ebx + 0xe0], 0
xor eax, eax
mov dword [ebx + 0xd8], eax
mov byte [ebx + 0xd7], 0
xor eax, eax
mov dword [ebx + 0xac], eax
mov eax, ebx
call fcn.00527c0c
mov eax, ebx
call fcn.00528838
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x524fbe
call fcn.00405928
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5254c0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x178]
test eax, eax
je 0x52556c
cmp dword [ebx + 0x98], 0
jne 0x525566
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5253f8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x94]
cmp dword [eax + 8], 0
je 0x525566
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x52552c
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x94]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x525566
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x94]
call fcn.0044b598
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x52553b
inc dword [ebx + 0x98]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x52578c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x661364]
cmp dword [eax + 0x178], 0
je 0x5258f1
test bl, bl
jne 0x52583f
cmp dword [esi + 0xa0], 0
jne 0x525834
mov eax, esi
call fcn.00528688
push eax
push 0x525698
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x48], 0
je 0x525805
mov eax, dword [0x661364]
cmp byte [eax + 0xd7], 0
je 0x525805
mov eax, dword [esi + 0xdc]
call fcn.00409328
mov edi, eax
cmp edi, 0
jl 0x525805
push 0
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5257ee
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x525834
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.0044b598
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x525814
inc dword [esi + 0xa0]
jmp 0x5258f1
cmp dword [esi + 0xa0], 0
jle 0x5258f1
dec dword [esi + 0xa0]
cmp dword [esi + 0xa0], 0
jne 0x5258f1
cmp dword [esi + 0x48], 0
je 0x52589c
mov eax, dword [0x661364]
cmp byte [eax + 0xd7], 0
je 0x52589c
mov eax, dword [esi + 0xdc]
call fcn.00409328
mov edi, eax
cmp edi, 0
jl 0x52589c
push 5
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x525885
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5258cb
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.0044b598
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5258ab
mov eax, dword [esi + 0x9c]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xdc]
mov ecx, 1
mov edx, dword [0x517884]
call fcn.004094d4
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x526544
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xb0], 0
je 0x5265af
cmp byte [ebx + 0xd7], 0
jne 0x5265af
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x178]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00407198
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x52659c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5265bc
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.004073f0
jmp 0x5265bc
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.004073f0
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x527df4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x527e62
mov eax, esi
call fcn.004aaf3c
test al, al
je 0x527e62
mov eax, dword [ebx + 0x88]
call fcn.004aab88
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x527e62
mov eax, dword [ebx + 0x88]
mov edx, dword [eax]
call dword [edx + 0x108]
test al, al
je 0x527e56
push 0
mov eax, dword [ebx + 0x88]
call fcn.004aab88
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x88]
call fcn.004a19a4
jmp 0x527e62
mov cl, 1
mov edx, dword [ebx + 0x78]
mov eax, ebx
call fcn.00527c2c
pop esi
pop ebx
ret
Function at 0x52c5bc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x52c636
mov eax, dword [ebx + 8]
call fcn.004aab88
mov ecx, eax
mov dl, 1
mov eax, dword [0x4b69d4]
call fcn.004a4fac
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.004bb06c
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x2a0], 0x52beb4
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.004aab88
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.004aab88
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x52c6ac
mov eax, dword [ebx + 8]
call fcn.004aab88
mov ecx, eax
mov dl, 1
mov eax, dword [0x4b69d4]
call fcn.004a4fac
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.004bb06c
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x2a0], 0x52bf00
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.004aab88
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.004aab88
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x52c718
mov eax, dword [ebx + 8]
call fcn.004aab88
mov ecx, eax
mov dl, 1
mov eax, dword [0x4b7410]
call fcn.004a4fac
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x278], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.004aab88
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.004aab88
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x52ed08
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x52eda2
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [ebp + edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
push edx
pop edx
mov byte [ebp + edi + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
push edx
pop edx
mov byte [ebp + edi + 2], dl
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x52ed27
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x52edb8
dec edx
je 0x52eded
jmp 0x52ee3e
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x52ee3e
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [ebp + edi + 1], al
movzx eax, byte [esi + ebx + 1]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x52ef5c
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x52ef7b
add edx, 3
sar edx, 2
test edx, edx
jle 0x52f089
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x52efb0
je 0x52eff3
sub ecx, 0x2b
je 0x52efe9
sub ecx, 4
je 0x52efee
dec ecx
sub ecx, 0xa
jb 0x52efdb
jmp 0x52eff6
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x52efc2
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x52efcd
jmp 0x52eff6
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x52eff6
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x52eff6
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x52eff6
mov byte [eax], 0x3e
jmp 0x52eff6
mov byte [eax], 0x3f
jmp 0x52eff6
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x52ef93
movzx eax, byte [esp + 4]
add eax, eax
add eax, eax
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x52f047
cmp byte [esp + 7], 0xff
jne 0x52f047
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x52f07e
cmp dl, 0xff
je 0x52f07e
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x52ef8a
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x5315e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x531601
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
movzx ebx, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x5315ee
pop edi
pop esi
pop ebx
ret

Function at 0x532dfc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
movzx ebx, dl
dec ebx
test ebx, ebx
jb 0x532e50
inc ebx
xor edx, edx
mov ecx, edx
add ecx, ecx
add ecx, ecx
movzx esi, byte [eax + ecx]
lea esi, [esi*4 + 0x65331c]
mov esi, dword [esi]
movzx edi, byte [eax + ecx + 1]
lea edi, [edi*4 + 0x65371c]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 2]
lea edi, [edi*4 + 0x653b1c]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 3]
lea edi, [edi*4 + 0x653f1c]
xor esi, dword [edi]
lea ecx, [eax + ecx]
mov dword [ecx], esi
inc edx
dec ebx
jne 0x532e0a
pop edi
pop esi
pop ebx
ret
Function at 0x535018
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004070f4
xor eax, eax
push ebp
push 0x5350c4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x40
call fcn.004080e4
lea eax, [ebp - 0xc]
mov ecx, 0x5350e0
mov edx, dword [ebp - 4]
call fcn.004081bc
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x53506c
sub ebx, 4
mov ebx, dword [ebx]
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
mov eax, dword [ebp - 8]
call fcn.00407f68
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407f68
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x5350a2
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.004073f0
jmp 0x5350a9
mov eax, esi
call fcn.00407010
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5350cb
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407070
ret

Function at 0x535158
Capabilities:
Terminate process

Disassembly:
push ebx
push edx
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
test eax, eax
mov al, 1
pop ebx
ret

Function at 0x535708
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [0x65b190]
mov eax, dword [eax]
mov eax, dword [eax + 0x178]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
mov edx, ebx
lea eax, [ebp - 0x204]
call fcn.00421a3c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x55d4e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x204], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x55d639
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x55d61e
mov eax, ebx
test eax, eax
je 0x55d519
sub eax, 4
mov eax, dword [eax]
jmp 0x55d51b
xor eax, eax
mov edi, eax
test ebx, ebx
je 0x55d52b
mov eax, ebx
sub eax, 0xa
movzx eax, word [eax]
jmp 0x55d52f
mov ax, 2
cmp ax, 1
jne 0x55d5b0
test ebx, ebx
je 0x55d543
mov eax, ebx
sub eax, 0xc
movzx eax, word [eax]
jmp 0x55d54b
mov eax, dword [0x65b234]
movzx eax, word [eax]
push edi
push 0
push 0
movzx eax, ax
mov ecx, ebx
xor edx, edx
call fcn.0040b2cc
mov edi, eax
cmp edi, 0x100
jle 0x55d573
mov eax, edi
add eax, eax
call fcn.00404774
mov esi, eax
jmp 0x55d579
lea esi, [ebp - 0x200]
test ebx, ebx
je 0x55d587
mov eax, ebx
sub eax, 0xc
movzx edx, word [eax]
jmp 0x55d590
mov edx, dword [0x65b234]
movzx edx, word [edx]
mov eax, ebx
test eax, eax
je 0x55d59d
sub eax, 4
mov eax, dword [eax]
jmp 0x55d59f
xor eax, eax
push eax
push esi
push edi
movzx eax, dx
mov ecx, ebx
xor edx, edx
call fcn.0040b2cc
jmp 0x55d5e9
cmp edi, 0x100
jle 0x55d5c5
mov eax, edi
add eax, eax
call fcn.00404774
mov esi, eax
jmp 0x55d5cb
lea esi, [ebp - 0x200]
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.0041fb78
mov eax, dword [ebp - 0x204]
mov ecx, edi
add ecx, ecx
mov edx, esi
call fcn.00404980
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x55d60b
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x55d5f5
lea eax, [ebp - 0x200]
cmp esi, eax
je 0x55d620
mov eax, esi
call fcn.00404790
jmp 0x55d620
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55d640
lea eax, [ebp - 0x204]
call fcn.00407010
ret

Function at 0x56b334
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x56b34e
add esp, 0xfffffff0
call fcn.004058d0
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x56b3cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, esi
xor edx, edx
mov eax, edi
call fcn.0044cdb8
xor edx, edx
mov eax, edi
call fcn.0056b690
xor edx, edx
mov eax, edi
call fcn.0056b750
xor eax, eax
mov dword [edi + 0x3c], eax
xor eax, eax
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [edi + 0x2c], eax
lea eax, [ebp - 0x10]
call fcn.0042f4a0
lea eax, [edi + 0x18]
lea edx, [ebp - 0x10]
call fcn.0042fc98
mov byte [edi + 0x39], 0
mov byte [edi + 0x30], 1
lea eax, [edi + 0x10]
call fcn.00407010
mov eax, dword [0x559974]
mov dword [edi + 0x40], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56b3d6
lea eax, [ebp - 0x10]
call fcn.0042f4b4
ret
Function at 0x5def98
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
and edx, edx
je 0x5defb6
and ecx, ecx
jle 0x5defb6
push ebx
xor al, byte [edx]
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
shr ebx, 0x18
mov byte [edx], bl
inc edx
dec ecx
jne 0x5defa1
pop ebx
ret
Function at 0x5e24c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x30]
mov ebx, eax
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x24]
mov esi, dword [edx + 0x34]
shr esi, 1
push ebx
push esi
push esi
mov edx, eax
xor ecx, ecx
mov eax, dword [0x5747e0]
call fcn.00576304
test esi, esi
jns 0x5e24f8
add esi, 3
sar esi, 2
add esi, 4
mov eax, esi
add eax, eax
add eax, eax
add ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov esi, dword [eax + 0x40]
add esi, esi
add esi, esi
sub esi, 5
test esi, esi
jl 0x5e2586
inc esi
mov edi, dword [ebx]
mov eax, edi
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x657d80]
mov edx, 8
call fcn.005def34
and edi, 0xff
xor eax, dword [edi*4 + 0x657d80]
push eax
mov eax, dword [ebx]
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x657d80]
mov edx, 0x10
call fcn.005def34
pop edx
xor edx, eax
push edx
mov eax, dword [ebx]
shr eax, 0x18
mov eax, dword [eax*4 + 0x657d80]
mov edx, 0x18
call fcn.005def34
pop edx
xor edx, eax
mov dword [ebx], edx
add ebx, 4
dec esi
jne 0x5e251b
pop edi
pop esi
pop ebx
pop ebp
ret