joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b390
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea r8, [rcx + 0x140]
mov rbx, rcx
mov rcx, rdi
mov edx, 0x428
call fcn.140060fcc
lea r8, [rbx + 0x238]
mov edx, 0x427
mov rcx, rdi
call fcn.140060fcc
lea r8, [rbx + 0x330]
mov edx, 0x412
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x338]
mov edx, 0x413
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x340]
mov edx, 0x414
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x348]
mov edx, 0x415
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x350]
mov edx, 0x416
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x358]
mov edx, 0x417
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x360]
mov edx, 0x418
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x368]
mov edx, 0x419
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x370]
mov edx, 0x41a
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x378]
mov edx, 0x41b
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x380]
mov edx, 0x41c
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x388]
mov edx, 0x41d
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x390]
mov edx, 0x41e
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x398]
mov edx, 0x41f
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x3a0]
mov edx, 0x420
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x3a8]
mov edx, 0x421
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x3b0]
mov edx, 0x422
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x3b8]
mov edx, 0x423
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x3c0]
mov edx, 0x424
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140061210
Function at 0x14000b760
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea r8, [rcx + 0x140]
mov rbx, rcx
mov rcx, rdi
mov edx, 0x443
call fcn.140060d44
lea r8, [rbx + 0x144]
mov edx, 0x446
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x148]
mov edx, 0x447
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x14c]
mov edx, 0x444
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x150]
mov edx, 0x445
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x154]
mov edx, 0x44d
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x158]
mov edx, 0x450
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x15c]
mov edx, 0x451
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x160]
mov edx, 0x44e
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x164]
mov edx, 0x44f
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x168]
mov edx, 0x459
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x16c]
mov edx, 0x456
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x170]
mov edx, 0x458
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x174]
mov edx, 0x45a
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x178]
mov edx, 0x457
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x17c]
mov edx, 0x453
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x180]
mov edx, 0x454
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x184]
mov edx, 0x455
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x188]
mov edx, 0x452
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x18c]
mov edx, 0x44c
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x190]
mov edx, 0x44b
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x194]
mov edx, 0x448
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x198]
mov edx, 0x449
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x19c]
mov edx, 0x44a
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x1a0]
mov edx, 0x439
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x1a4]
mov edx, 0x43b
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x1a8]
mov edx, 0x436
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x1ac]
mov edx, 0x437
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x1b0]
mov edx, 0x434
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x1b4]
mov edx, 0x438
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x1b8]
mov edx, 0x419
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x1bc]
mov edx, 0x43c
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x1c0]
mov edx, 0x43d
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x1c4]
mov edx, 0x43e
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x1c8]
mov edx, 0x43f
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x1d0]
mov edx, 0x40a
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x1d8]
mov edx, 0x407
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x1e0]
mov edx, 0x408
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x1e8]
mov edx, 0x40b
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x1f0]
mov edx, 0x409
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x1f8]
mov edx, 0x40c
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140061210
Function at 0x14001ac30
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1402d10e0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
lea rdx, str.bvisdhhofhdfbxbcvrghg
lea rcx, str.C:UsersPublicL78V3gUKHi1RgBU.dat
call fcn.140033910
mov rbx, rax
test rax, rax
je 0x14001ac98
mov rdx, rdi
mov rcx, rax
call fcn.1400315e0
mov rcx, rbx
test eax, eax
jne 0x14001ac93
lea r8, [rsp + 0x20]
or edx, 0xffffffff
call fcn.140031520
test eax, eax
je 0x14001ac9c
mov rcx, rbx
call fcn.140033da0
xor eax, eax
jmp 0x14001acf6
mov qword [rsp + 0x178], rsi
mov esi, dword [rsp + 0x20]
xor edi, edi
test esi, esi
jle 0x14001acd4
nop
lea r8, [rsp + 0x20]
mov edx, edi
mov rcx, rbx
call fcn.140031520
lea r8, [rsp + 0x24]
mov edx, edi
mov rcx, rbx
call fcn.140033a10
inc edi
cmp edi, esi
jl 0x14001acb0
mov rcx, rbx
call fcn.140033da0
lea rcx, str.C:UsersPublicL78V3gUKHi1RgBU.dat
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rsi, qword [rsp + 0x178]
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14019c800
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
ret

Function at 0x14001ad40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rsi, rdx
xor edx, edx
mov r12, r8
mov rbx, rcx
xor ebp, ebp
call fcn.1401f4b98
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasb al, byte [rdi]
lea rdx, [0x140218320]
not rcx
lea r13, [rcx - 1]
mov rcx, rbx
call fcn.14019cde4
lea rdx, [0x1402120cc]
mov rcx, rsi
mov rdi, rax
call fcn.14019cde4
mov rcx, rdi
mov rbx, rax
call fcn.14019d288
test eax, eax
jne 0x14001ae06
nop dword [rax]
mov edx, 1
lea rcx, [rsp + 0x58]
mov r9, rdi
mov r8d, edx
call fcn.14019d268
mov rcx, rdi
call fcn.14019d288
test eax, eax
jne 0x14001adfa
mov eax, ebp
mov r9, rbx
cdq
idiv r13d
movsxd rax, edx
mov edx, 1
movzx ecx, byte [rax + r12]
mov r8d, edx
xor byte [rsp + 0x58], cl
lea rcx, [rsp + 0x58]
call fcn.14019cb98
inc ebp
mov rcx, rdi
call fcn.14019d288
test eax, eax
je 0x14001adb0
mov rcx, rdi
call fcn.14019cca4
mov rcx, rbx
call fcn.14019cca4
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x140023210
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea r8, [rcx + 0x1f8]
mov rbx, rcx
mov rcx, rdi
mov edx, 0x3ee
call fcn.140060fcc
lea r8, [rbx + 0x2f0]
mov edx, 0x408
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140061210
Function at 0x140023f60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1402d10e0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov dword [rbp + 0x60], 0x555c3a43
mov dword [rbp + 0x64], 0x73726573
mov dword [rbp + 0x68], 0x6275505c
mov dword [rbp + 0x6c], 0x5c63696c
mov byte [rbp + 0x70], 0
mov byte [rbp + 0x80], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x81]
call fcn.14019c920
mov r8d, 0x104
lea rdx, [rbp + 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov rdx, rax
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea r9, [rbp + 0x60]
lea r8, [0x14021be24]
lea rdx, [0x14021be20]
lea rcx, str.INSTALL
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14001b280
nop
lea rcx, [rsp + 0x30]
call fcn.14005a3a0
nop
lea rcx, [rsp + 0x30]
call fcn.14001aea0
mov eax, 1
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14019c800
add rsp, 0x2a0
pop rbp
ret

Function at 0x140024150
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea r8, [rcx + 0x118]
mov rbx, rcx
mov rcx, rdi
mov edx, 0x40b
call fcn.140060fcc
lea r8, [rbx + 0x1f0]
mov edx, 0x40f
mov rcx, rdi
call fcn.140061210
lea r8, [rbx + 0x1f8]
mov edx, 0x3ed
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140061210

Function at 0x14002a080
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea r8, [rcx + 0x130]
mov rbx, rcx
mov rcx, rdi
mov edx, 0x400
call fcn.140060fcc
lea r8, [rbx + 0x208]
mov edx, 0x3f3
mov rcx, rdi
call fcn.140060fcc
lea r8, [rbx + 0x2e0]
mov edx, 0x3f4
mov rcx, rdi
call fcn.140060fcc
lea r8, [rbx + 0x3b8]
mov edx, 0x3ee
mov rcx, rdi
call fcn.140060fcc
lea r8, [rbx + 0x4b0]
mov edx, 0x400
mov rcx, rdi
call fcn.140060d44
lea r8, [rbx + 0x4b8]
mov edx, 0x408
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140061210
Function at 0x14002ecb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, r8d
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x14002ecc9
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rdi
not r9d
lea rdi, [0x1402205a0]
cmp r11d, 8
jb 0x14002edc1
mov qword [rsp + 0x10], rbx
mov rbx, r11
shr rbx, 3
nop dword [rax]
movzx ecx, byte [r10]
mov eax, r9d
shr r9d, 8
xor rcx, rax
add r10, 8
add r11d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r10 - 7]
mov edx, dword [rdi + rax*4]
xor edx, r9d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 6]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 5]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 4]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 3]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 2]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 1]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r9d, dword [rdi + rax*4]
xor r9d, edx
dec rbx
jne 0x14002ecf0
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x14002edef
nop word [rax + rax]
movzx ecx, byte [r10]
mov eax, r9d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
dec r11d
jne 0x14002edd0
mov rdi, qword [rsp]
not r9d
mov eax, r9d
add rsp, 8
ret

Function at 0x14002ee90
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov r9d, dword [rcx + 8]
mov r10, rcx
movzx r11d, dl
mov edx, dword [rcx]
mov r8d, r9d
and r8d, 0xfffd
mov ecx, edx
shr edx, 8
or r8d, 2
mov eax, r8d
xor eax, 1
imul eax, r8d
lea r8, [0x1402205a0]
shr eax, 8
xor r11b, al
movsx rax, r11b
xor rcx, rax
movzx eax, cl
mov ecx, dword [r8 + rax*4]
xor ecx, edx
movzx eax, cl
mov dword [r10], ecx
movzx ecx, r9b
add eax, dword [r10 + 4]
shr r9d, 8
imul eax, eax, 0x8088405
inc eax
mov dword [r10 + 4], eax
movzx eax, byte [r10 + 7]
xor rcx, rax
mov eax, dword [r8 + rcx*4]
xor eax, r9d
mov dword [r10 + 8], eax
movzx eax, r11b
ret
Function at 0x14002f5b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, r9
mov rbp, rdx
mov r10, rcx
imul esi, edx
cmp byte [r9], 0
je 0x14002f600
mov rdx, rcx
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, esi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002f5fa
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x14002f631
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
mov qword [rsp + 0x40], rbx
lea eax, [rdx + rsi]
cmp eax, ecx
jbe 0x14002f618
sub ecx, edx
mov esi, ecx
add rdx, qword [r9 + 0x20]
mov r8d, esi
mov rcx, r10
call fcn.14019bf80
add dword [rdi + 0x2c], esi
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x58]
xor edx, edx
div rbp
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14002f650
Capabilities:
Read file on windows

Disassembly:
push rbx
push r12
sub rsp, 0x38
cmp byte [rcx], 0
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], rdi
mov edi, 1
mov r12, rdx
mov rbx, rcx
je 0x14002f6a0
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002f69a
mov byte [rbx + 0x10], dil
mov esi, dword [rsp + 0x60]
jmp 0x14002f6da
mov qword [rsp + 0x58], rbp
mov ebp, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rbp + 1]
cmp eax, ecx
jbe 0x14002f6b6
mov edi, ecx
sub edi, ebp
mov rdx, rbp
lea rcx, [rsp + 0x50]
mov r8d, edi
add rdx, qword [rbx + 0x20]
mov esi, edi
call fcn.14019bf80
lea r11d, [rbp + rdi]
mov rbp, qword [rsp + 0x58]
mov dword [rbx + 0x2c], r11d
mov rdi, qword [rsp + 0x30]
cmp esi, 1
mov rsi, qword [rsp + 0x68]
jne 0x14002f6fc
movzx eax, byte [rsp + 0x50]
mov dword [r12], eax
xor eax, eax
add rsp, 0x38
pop r12
pop rbx
ret
cmp byte [rbx], 0
je 0x14002f6f2
cmp byte [rbx + 0x10], 0
je 0x14002f6f2
or eax, 0xffffffff
add rsp, 0x38
pop r12
pop rbx
ret
Function at 0x1400311b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1402d10e0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x1400311f0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400311f0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movzx eax, byte [rbx]
test al, al
je 0x1400312cc
mov qword [rsp + 0x270], rsi
mov rcx, rbx
mov rsi, rbx
nop dword [rax]
cmp al, 0x2f
je 0x140031218
cmp al, 0x5c
jne 0x14003121b
mov rsi, rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x140031210
cmp rsi, rbx
je 0x140031259
sub rsi, rbx
lea rcx, [rsp + 0x130]
mov rdx, rbx
mov r8, rsi
call fcn.14019bf80
lea rdx, [rsp + 0x130]
mov rcx, rdi
mov byte [rsp + rsi + 0x130], 0
call fcn.1400311b0
mov rsi, qword [rsp + 0x270]
mov byte [rsp + 0x20], 0
test rdi, rdi
je 0x14003128e
lea rcx, [rsp + 0x20]
sub rcx, rdi
nop word [rax + rax]
movzx eax, byte [rdi]
inc rdi
mov byte [rcx + rdi - 1], al
test al, al
jne 0x140031280
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x1400312a0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400312cc
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14019c800
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rdi
ret
Function at 0x140032d90
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
jne 0x140032dae
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
cmp dword [rcx + 0x1c], 0
je 0x140032da2
cmp qword [rcx + 0x80], 0
je 0x140032dc3
call fcn.140030830
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.140030420
test eax, eax
je 0x140032dea
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.14019dd74
mov rbx, rax
test rax, rax
jne 0x140032e10
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call fcn.14019dd74
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
mov dword [rbx + 0x6c], ecx
test rax, rax
jne 0x140032e56
mov rcx, rbx
call fcn.14019dd34
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov dword [rbx + 0x64], ebp
mov eax, dword [rdi + 0x40]
mov ecx, ebp
cmp dword [rdi + 0x38], ecx
mov dword [rbx + 0x78], eax
mov dword [rbx + 0x74], ebp
mov eax, dword [rdi + 0x38]
sete cl
mov dword [rbx + 0x90], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x24], ebp
mov dword [rbx + 0x94], eax
test ecx, ecx
jne 0x140032ead
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.14002f1f0
test eax, eax
jne 0x140032ead
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
mov dword [rbx + 0x7c], eax
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
movzx eax, byte [rdi + 0x34]
and al, 1
mov byte [rbx + 0x98], al
mov eax, dword [rdi + 0x34]
shr eax, 3
test al, 1
je 0x140032ed8
movzx eax, byte [rdi + 0x3d]
jmp 0x140032edc
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
movzx eax, byte [rbx + 0x98]
mov dword [rbx + 0x9c], 0x12345678
neg al
mov dword [rbx + 0xa0], 0x23456789
mov dword [rbx + 0xa4], 0x34567890
sbb ecx, ecx
and ecx, 0xc
mov dword [rbx + 0xa8], ecx
test rsi, rsi
je 0x140032f82
lea r8, [0x1402205a0]
movzx eax, byte [rsi]
test al, al
je 0x140032f82
mov edx, dword [rbx + 0x9c]
mov ecx, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [r8 + rax*4]
xor ecx, edx
mov edx, dword [rbx + 0xa4]
movzx eax, cl
mov dword [rbx + 0x9c], ecx
movzx ecx, dl
add eax, dword [rbx + 0xa0]
shr edx, 8
imul eax, eax, 0x8088405
inc eax
mov dword [rbx + 0xa0], eax
movzx eax, byte [rbx + 0xa3]
xor rcx, rax
mov eax, dword [r8 + rcx*4]
xor eax, edx
inc rsi
mov dword [rbx + 0xa4], eax
jne 0x140032f20
mov ecx, dword [rdi + 0x7c]
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x10], ebp
mov rbp, qword [rsp + 0x20]
lea ecx, [rcx + rax + 0x1e]
xor eax, eax
mov dword [rbx + 0x60], ecx
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400332b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r13
sub rsp, 0x20
cmp qword [rcx], 0
mov esi, r9d
mov r13d, r8d
mov rbp, rdx
mov rbx, rcx
jne 0x1400333bf
cmp dword [rcx + 8], 0xffffffff
jne 0x1400333bf
lea rdx, [rcx + 0x150]
mov ecx, 0x104
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x150]
repne scasb al, byte [rdi]
not rcx
movzx eax, byte [rcx + rbx + 0x14e]
cmp al, 0x5c
je 0x140033335
cmp al, 0x2f
je 0x140033335
xor eax, eax
lea rdi, [rbx + 0x150]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x140220b34]
mov word [rdi - 1], ax
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
cmp esi, 1
jne 0x14003336d
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14003336d
mov eax, 0x2000000
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rsi
pop rbp
ret
lea r9, [rsp + 0x40]
mov r8d, esi
mov edx, r13d
mov rcx, rbp
call fcn.14002f2d0
test rax, rax
jne 0x140033397
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rsi
pop rbp
ret
mov rcx, rax
call fcn.140032a40
xor ecx, ecx
mov edx, 0x200
test rax, rax
mov qword [rbx], rax
cmove ecx, edx
mov eax, ecx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rsi
pop rbp
ret
mov eax, 0x1000000
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rsi
pop rbp
ret
Function at 0x140048644
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.14007d504
mov rsi, rax
test rax, rax
je 0x1400486c0
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x1400486bb
cmp dword [rbx], 0x40
jb 0x1400486bb
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x1400486bb
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x1400486c4
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14004ff14
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14004ff7c
call fcn.140051aec
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x14004ff7c
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14004ff9e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14004f908
mov esi, eax
test rdi, rdi
je 0x14004ff9c
test rbx, rbx
je 0x14004ff9c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret