joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401320c0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x50
mov r14d, r9d
mov r15d, r8d
mov r12, rdx
mov r13, rcx
xor esi, esi
mov qword [rax - 0x20], rsi
mov rbx, qword [0x1402775e8]
and qword [rax - 0x28], rsi
xor edi, edi
mov eax, dword [0x14026f40c]
test eax, eax
je 0x14013211d
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, dword [0x14026f40c]
test eax, eax
jne 0x140132126
call fcn.14000cd14
test eax, eax
je 0x140132142
lea rdx, [rsp + 0x40]
mov rcx, qword [0x140266220]
call qword [sym.imp.KERNEL32.DLL_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne edi, ecx
test edi, edi
jne 0x14013214d
xor eax, eax
jmp 0x1401321d8
test rbx, rbx
jne 0x14013216d
lea rcx, str.ImageList_LoadImageA
call fcn.14001643c
mov rbx, rax
test rax, rax
je 0x1401321a4
mov qword [0x1402775e8], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov r9d, r14d
mov r8d, r15d
mov rdx, r12
mov rcx, r13
call rbx
mov rsi, rax
mov qword [rsp + 0x48], rax
xor ebx, ebx
test rsi, rsi
sete bl
test ebx, ebx
je 0x1401321ba
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
jmp 0x1401321bc
xor edi, edi
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_DeactivateActCtx]
test ebx, ebx
je 0x1401321d5
mov ecx, edi
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rax, rsi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret

Function at 0x140133c9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x140133cc5
mov rdi, qword [rdx + 0x10]
jmp 0x140133d16
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
mov r8d, 5
call qword [sym.imp.KERNEL32.DLL_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x140133ce6
call fcn.14000a45c
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_LoadResource]
mov rdi, rax
test rax, rax
jne 0x140133d00
call fcn.14000a45c
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov rdi, rax
test rax, rax
jne 0x140133d16
call fcn.14000a45c
call fcn.140029348
cmp qword [rax + 0x68], 0
je 0x140133d30
mov rdx, rdi
mov rcx, rbp
call fcn.1401332fc
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.140133f94
mov rcx, qword [rbp + 0xe8]
mov rsi, rax
test rcx, rcx
je 0x140133d57
call qword [sym.imp.KERNEL32.DLL_GlobalFree]
and qword [rbp + 0xe8], 0
test rsi, rsi
je 0x140133d66
mov rdi, rsi
mov qword [rbp + 0xe8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140134104
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov qword [rax - 0x18], rbx
mov r14, qword [0x1402775f0]
and qword [rax + 8], rbx
xor esi, esi
mov eax, dword [0x14026f40c]
test eax, eax
je 0x140134150
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, dword [0x14026f40c]
test eax, eax
jne 0x140134159
call fcn.14000cd14
test eax, eax
je 0x140134175
lea rdx, [rsp + 0x40]
mov rcx, qword [0x140266220]
call qword [sym.imp.KERNEL32.DLL_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140134180
xor eax, eax
jmp 0x140134204
test r14, r14
jne 0x14013419d
lea rcx, str.CreatePropertySheetPageA
call fcn.140134400
test rax, rax
je 0x1401341cf
mov qword [0x1402775f0], rax
mov eax, dword [rdi + 4]
mov ecx, 0x4000
test ecx, eax
jne 0x1401341be
cmp dword [rdi], 0x60
jb 0x1401341be
or eax, ecx
mov dword [rdi + 4], eax
mov rax, qword [0x140266220]
mov qword [rdi + 0x58], rax
mov rcx, rdi
call qword [0x1402775f0]
mov rbx, rax
mov qword [rsp + 0x20], rax
xor edi, edi
test rbx, rbx
sete dil
test edi, edi
je 0x1401341e6
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
jmp 0x1401341e8
xor esi, esi
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_DeactivateActCtx]
test edi, edi
je 0x140134201
mov ecx, esi
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14013421c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402775f8]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14026f40c]
test eax, eax
je 0x140134267
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, dword [0x14026f40c]
test eax, eax
jne 0x140134270
call fcn.14000cd14
test eax, eax
je 0x14013428c
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140266220]
call qword [sym.imp.KERNEL32.DLL_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140134294
xor eax, eax
jmp 0x1401342f1
test rbx, rbx
jne 0x1401342b4
lea rcx, str.DestroyPropertySheetPage
call fcn.140134400
mov rbx, rax
test rax, rax
je 0x1401342bf
mov qword [0x1402775f8], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1401342d4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
jmp 0x1401342d6
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_DeactivateActCtx]
test ebx, ebx
je 0x1401342ef
mov ecx, esi
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140134308
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
or rdi, 0xffffffffffffffff
mov qword [rax - 0x18], rdi
mov rbx, qword [0x140277600]
and qword [rax + 0x10], 0
xor esi, esi
mov eax, dword [0x14026f40c]
test eax, eax
je 0x140134357
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, dword [0x14026f40c]
test eax, eax
jne 0x140134360
call fcn.14000cd14
test eax, eax
je 0x14013437c
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140266220]
call qword [sym.imp.KERNEL32.DLL_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140134386
or rax, 0xffffffffffffffff
jmp 0x1401343e8
test rbx, rbx
jne 0x1401343a6
lea rcx, str.PropertySheetA
call fcn.140134400
mov rbx, rax
test rax, rax
je 0x1401343b3
mov qword [0x140277600], rax
mov rcx, r14
call rbx
mov rdi, rax
mov qword [rsp + 0x20], rax
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
sete bl
test ebx, ebx
je 0x1401343ca
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
jmp 0x1401343cc
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_DeactivateActCtx]
test ebx, ebx
je 0x1401343e5
mov ecx, esi
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140148124
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140277ba0]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14026f40c]
test eax, eax
je 0x14014816f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, dword [0x14026f40c]
test eax, eax
jne 0x140148178
call fcn.14000cd14
test eax, eax
je 0x140148194
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140266220]
call qword [sym.imp.KERNEL32.DLL_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14014819c
xor eax, eax
jmp 0x1401481f9
test rbx, rbx
jne 0x1401481bc
lea rcx, str.ChooseColorA
call fcn.14007c93c
mov rbx, rax
test rax, rax
je 0x1401481c7
mov qword [0x140277ba0], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1401481dc
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
jmp 0x1401481de
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_DeactivateActCtx]
test ebx, ebx
je 0x1401481f7
mov ecx, esi
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14017ff14
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140278d98]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14026f40c]
test eax, eax
je 0x14017ff5f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, dword [0x14026f40c]
test eax, eax
jne 0x14017ff68
call fcn.14000cd14
test eax, eax
je 0x14017ff84
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140266220]
call qword [sym.imp.KERNEL32.DLL_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14017ff8c
xor eax, eax
jmp 0x14017ffe9
test rbx, rbx
jne 0x14017ffac
lea rcx, str.PrintDlgA
call fcn.14007c93c
mov rbx, rax
test rax, rax
je 0x14017ffb7
mov qword [0x140278d98], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x14017ffcc
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
jmp 0x14017ffce
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_DeactivateActCtx]
test ebx, ebx
je 0x14017ffe7
mov ecx, esi
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1401821e0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140182048
Function at 0x1401add10
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
push rdi
sub rsp, 0x190
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1a0], rbx
xor ebx, ebx
mov ecx, 0x104
call fcn.140181164
mov rdi, rax
mov r8d, 0x104
mov rdx, rax
lea rcx, str.TEMP
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
mov qword [rsp + 0x38], send
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x20], bl
cmp byte [rdi], bl
jne 0x1401add6a
mov r8d, ebx
jmp 0x1401add79
or r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdi + r8], bl
jne 0x1401add70
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140005000
nop
mov r8d, 2
lea rdx, [0x140226280]
lea rcx, [rsp + 0x20]
call fcn.140004d80
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1401ade06
nop dword [rax]
nop word [rax + rax]
inc ebx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x1401addd0
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindClose]
cmp ebx, 0xa
jl 0x1401ade06
cmp qword [rsp + 0x38], 0x10
jb 0x1401ade0e
mov rcx, qword [rsp + 0x20]
call fcn.140007b08
jmp 0x1401ade0e
xor ecx, ecx
call fcn.1401821e0
nop
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x190
pop rdi
ret
Function at 0x1401aff30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1401aff5e
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1401aff5e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
movzx eax, byte [rdi]
test al, al
je 0x1401b003d
mov qword [rsp + 0x250], rsi
mov rcx, rdi
mov rsi, rdi
cmp al, 0x2f
je 0x1401aff7f
cmp al, 0x5c
jne 0x1401aff82
mov rsi, rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x1401aff77
cmp rsi, rdi
je 0x1401affc0
sub rsi, rdi
lea rcx, [rsp + 0x130]
mov rdx, rdi
mov r8, rsi
call fcn.140180a20
lea rdx, [rsp + 0x130]
mov rcx, rbx
mov byte [rsp + rsi + 0x130], 0
call fcn.1401aff30
mov rsi, qword [rsp + 0x250]
mov byte [rsp + 0x20], 0
test rbx, rbx
je 0x1401affef
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rcx + rbx - 1], al
test al, al
jne 0x1401affe0
lea rcx, [rsp + 0x20]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1401b0000
xor edx, edx
nop dword [rax]
movzx eax, byte [rdi + rdx]
lea rdx, [rdx + 1]
mov byte [rcx + rdx - 1], al
test al, al
jne 0x1401b0010
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1401b003d
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret

Function at 0x1401b0790
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rsi, rdx
mov rdi, rcx
jne 0x1401b085f
cmp dword [rcx + 8], 0xffffffff
jne 0x1401b085f
mov qword [rsp + 0x30], rbx
lea rbx, [rcx + 0x150]
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp byte [rbx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1401b07e0
movzx ecx, byte [rax + rdi + 0x14f]
cmp cl, 0x5c
je 0x1401b0814
cmp cl, 0x2f
je 0x1401b0814
dec rbx
cmp byte [rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x1401b0800
movzx eax, word [0x140226fa8]
mov word [rbx], ax
lea r9, [rsp + 0x48]
mov rcx, rsi
call fcn.1401b21c0
mov rbx, qword [rsp + 0x30]
test rax, rax
jne 0x1401b083a
mov eax, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
call fcn.1401b1830
xor ecx, ecx
mov edx, 0x200
test rax, rax
mov qword [rdi], rax
cmove ecx, edx
mov eax, ecx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, 0x1000000
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1401b0cd0
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 0x1401b0cee
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
cmp dword [rcx + 0x1c], 0
je 0x1401b0ce2
cmp qword [rcx + 0x80], 0
je 0x1401b0d03
call fcn.1401b0940
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1401b0f00
test eax, eax
je 0x1401b0d2a
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.140181164
mov rbx, rax
test rax, rax
jne 0x1401b0d50
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.140181164
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 0x1401b0d96
mov rcx, rbx
call fcn.140180000
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 0x1401b0ded
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.1401b2710
test eax, eax
jne 0x1401b0ded
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 0x1401b0e18
movzx eax, byte [rdi + 0x3d]
jmp 0x1401b0e1c
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
movzx eax, byte [rbx + 0x98]
neg al
sbb ecx, ecx
and ecx, 0xc
mov dword [rbx + 0xa8], ecx
mov dword [rbx + 0x9c], 0x12345678
mov dword [rbx + 0xa0], 0x23456789
mov dword [rbx + 0xa4], 0x34567890
test rsi, rsi
je 0x1401b0ec2
lea r8, [0x1402280e0]
movzx eax, byte [rsi]
test al, al
je 0x1401b0ec2
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
add eax, dword [rbx + 0xa0]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 0xa0], ecx
movzx eax, byte [rbx + 0xa3]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov eax, dword [r8 + rcx*4]
xor eax, edx
mov dword [rbx + 0xa4], eax
inc rsi
jne 0x1401b0e60
mov ecx, dword [rdi + 0x7c]
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x10], ebp
mov rbp, qword [rsp + 0x20]
add eax, 0x1e
add ecx, eax
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 0x1401b1b40
Capabilities:
Read file on windows

Disassembly:
push rsi
push r13
sub rsp, 0x68
cmp byte [rcx], 0
mov rsi, rcx
je 0x1401b1b78
cmp byte [rcx + 1], 0
je 0x1401b1b6d
mov rcx, qword [rcx + 8]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x1401b1b7e
or eax, 0xffffffff
add rsp, 0x68
pop r13
pop rsi
ret
mov eax, dword [rcx + 0x28]
mov dword [rcx + 0x2c], eax
cmp byte [rsi], 0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r15
je 0x1401b1bc8
cmp byte [rsi + 1], 0
je 0x1401b1bbb
mov rcx, qword [rsi + 8]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov r14d, eax
sub r14d, dword [rsi + 0x14]
jmp 0x1401b1bcc
xor r14d, r14d
mov dword [rsp + 0x80], r14d
jmp 0x1401b1be5
mov r14d, dword [rsi + 0x2c]
mov ebp, 0xffff
mov dword [rsp + 0x80], r14d
mov dword [rsp + 0x88], ebp
cmp r14d, ebp
jae 0x1401b1bf0
mov ebp, r14d
mov dword [rsp + 0x88], r14d
mov r15d, 0x404
mov ecx, r15d
call fcn.140181164
mov rdi, rax
test rax, rax
jne 0x1401b1c0e
or eax, 0xffffffff
jmp 0x1401b1d63
mov qword [rsp + 0x60], rbx
mov ebx, 4
or r13d, 0xffffffff
cmp ebp, ebx
jbe 0x1401b1d53
mov qword [rsp + 0x48], r12
nop dword [rax]
lea eax, [rbx + 0x400]
mov r12d, r14d
cmp eax, ebp
mov ebx, eax
cmova ebx, ebp
sub r12d, ebx
sub r14d, r12d
cmp r14d, r15d
cmova r14d, r15d
cmp byte [rsi], 0
je 0x1401b1c74
cmp byte [rsi + 1], 0
je 0x1401b1d4e
mov edx, dword [rsi + 0x14]
mov rcx, qword [rsi + 8]
xor r9d, r9d
add edx, r12d
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x1401b1c78
mov dword [rsi + 0x2c], r12d
cmp byte [rsi], 0
mov ebp, r14d
mov r15d, r14d
je 0x1401b1cb5
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x90]
mov r8d, ebp
mov rdx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1401b1cac
mov byte [rsi + 0x10], 1
mov eax, dword [rsp + 0x90]
jmp 0x1401b1ce2
mov ecx, dword [rsi + 0x2c]
mov edx, dword [rsi + 0x28]
lea eax, [rcx + r14]
cmp eax, edx
jbe 0x1401b1cc9
mov r15d, edx
sub r15d, ecx
mov rdx, rcx
mov r8d, r15d
mov rcx, rdi
add rdx, qword [rsi + 0x20]
call fcn.140180a20
add dword [rsi + 0x2c], r15d
mov eax, r15d
xor edx, edx
div rbp
cmp rax, 1
jne 0x1401b1d4e
lea ecx, [r14 - 3]
movsxd rax, ecx
test ecx, ecx
js 0x1401b1d2c
nop dword [rax + rax]
dec rax
lea ecx, [rcx - 1]
cmp byte [rax + rdi], 0x50
jne 0x1401b1d21
cmp byte [rax + rdi + 1], 0x4b
jne 0x1401b1d21
cmp byte [rax + rdi + 2], 5
jne 0x1401b1d21
cmp byte [rax + rdi + 3], 6
je 0x1401b1d28
test rax, rax
jns 0x1401b1d00
jmp 0x1401b1d2c
lea r13d, [rcx + r12]
test r13d, r13d
jne 0x1401b1d4e
mov ebp, dword [rsp + 0x88]
mov r14d, dword [rsp + 0x80]
mov r15d, 0x404
cmp ebx, ebp
jb 0x1401b1c30
mov r12, qword [rsp + 0x48]
mov rcx, rdi
call fcn.140180000
mov rbx, qword [rsp + 0x60]
mov eax, r13d
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x38]
add rsp, 0x68
pop r13
pop rsi
ret
Function at 0x1401b1ee0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
sub rsp, 0x38
cmp byte [rcx], 0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x30], rdi
mov edi, 1
mov r14, rdx
mov rbx, rcx
je 0x1401b1f30
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 0x1401b1f2a
mov byte [rbx + 0x10], dil
mov ebp, dword [rsp + 0x60]
jmp 0x1401b1f67
mov qword [rsp + 0x68], rsi
mov esi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rsi + 1]
cmp eax, ecx
jbe 0x1401b1f46
mov edi, ecx
sub edi, esi
mov rdx, rsi
lea rcx, [rsp + 0x50]
mov r8d, edi
add rdx, qword [rbx + 0x20]
mov ebp, edi
call fcn.140180a20
lea eax, [rsi + rdi]
mov rsi, qword [rsp + 0x68]
mov dword [rbx + 0x2c], eax
mov rdi, qword [rsp + 0x30]
cmp ebp, 1
mov rbp, qword [rsp + 0x58]
jne 0x1401b1f88
movzx eax, byte [rsp + 0x50]
mov dword [r14], eax
xor eax, eax
add rsp, 0x38
pop r14
pop rbx
ret
cmp byte [rbx], 0
je 0x1401b1f7e
cmp byte [rbx + 0x10], 0
je 0x1401b1f7e
or eax, 0xffffffff
add rsp, 0x38
pop r14
pop rbx
ret

Function at 0x1401b1fb0
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 0x1401b2000
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 0x1401b1ffa
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x1401b2031
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
mov qword [rsp + 0x40], rbx
lea eax, [rdx + rsi]
cmp eax, ecx
jbe 0x1401b2018
sub ecx, edx
mov esi, ecx
add rdx, qword [r9 + 0x20]
mov r8d, esi
mov rcx, r10
call fcn.140180a20
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 0x1401b2a90
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, [0x1402280e0]
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
add eax, dword [r10 + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [r10 + 4], ecx
movzx eax, byte [r10 + 7]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, dword [r8 + rcx*4]
xor eax, r9d
mov dword [r10 + 8], eax
movzx eax, r11b
ret