joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bf4c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000bf96
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bf96
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000bf96
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000bf96
cmp dword [rcx + 0x84], 0xe
jbe 0x14000bf96
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000bf98
xor al, al
add rsp, 0x28
ret

Function at 0x140017948
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140017738

Function at 0x14001d78c
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14001d4ae
call fcn.140011c40
mov dword [rax], 0x16
call fcn.140011a34
jmp 0x14001d5fe
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001d5fe
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001d5fe
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001d4dd
lock or dword [rcx + 0x14], 0x10
jmp 0x14001d5fe
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001d4f1
call fcn.14001db8c
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x14001d501
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x14001d504
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.14001af30
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.140024f00
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14001d5ec
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14001d597
mov rcx, rbx
call fcn.14001af30
cmp eax, 0xffffffff
je 0x14001d582
mov rcx, rbx
call fcn.14001af30
cmp eax, 0xfffffffe
je 0x14001d582
mov rcx, rbx
call fcn.14001af30
movsxd rdi, eax
lea rsi, [0x14003c2f0]
mov rcx, rbx
sar rdi, 6
call fcn.14001af30
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14001d589
lea rdx, [0x14003a3c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001d597
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14001d5bb
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14001d5bb
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14001d5bb
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x14001d5d9
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x14001d5e4
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x14001d603
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14001d478
Function at 0x14001eea4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000baa0
sub rsp, rax
mov rax, qword [0x14003a020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001af30
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001eef3
mov rax, rbp
jmp 0x14001effb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3c2f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001f394
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3c2f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001eff7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001eff7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001f394
test rax, rax
js 0x14001eff7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001eff7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001efe9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001efe9
cmp byte [rcx], 0xd
jne 0x14001efcf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001efde
cmp byte [rcx + 1], 0xa
jne 0x14001efde
inc rcx
jmp 0x14001efde
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3aaf0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001efb1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001effb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000b190
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140021090
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140021117
mov rsi, rbx
cmp word [rax], bp
je 0x1400210d6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400210c0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400210bc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001a998
mov rdi, rax
test rax, rax
je 0x140021104
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d080
mov rbp, rdi
xor ecx, ecx
call fcn.14001a95c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140024a54
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14003c2f0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140024ab2
cmp word [rdx], r12w
jne 0x140024ab2
or byte [rax + r8*8 + 0x38], cl
jmp 0x140024ab8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140024c13
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140024bee
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140024af1
mov rcx, r9
jmp 0x140024b14
cmp r9, rdx
jae 0x140024b2b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140024ad5
jmp 0x140024c13
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140024be8
cmp dword [rsp + 0x80], edi
je 0x140024be8
mov rdx, r14
lea r11, [0x14003c2f0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140024bc1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140024b94
mov word [rbx], r12w
jmp 0x140024c0f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140024b9d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140024c0f
cmp word [rsp + 0x70], r12w
jne 0x140024bce
cmp rbx, rsi
je 0x140024b8e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001f39c
cmp word [rsp + 0x70], r12w
je 0x140024c13
mov word [rbx], r13w
jmp 0x140024c0f
lea r11, [0x14003c2f0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140024c0b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140024c13
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140006bc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140006bf1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x140006c6b
mov rdi, r14
mov rcx, rbx
call fcn.140007e40
test rax, rax
jle 0x140006c43
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140087290
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140006c5b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140006c63
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140006c05
sub r14, rdi
jmp 0x140006d4f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140006c82
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006c84
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006cb6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140087290
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140006d4c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140006cf1
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x140006d2d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140069eb0
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140006d4c
cmp rbp, rax
ja 0x140006d00
test rbp, rbp
je 0x140006d4c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140069eb0
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140009210
Capabilities:
Create process on windows
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xf0
mov rax, qword [0x1400b8080]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rdi, qword [rcx + 8]
lea rbx, [rdi + 0x358]
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140009247
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [rsp + 0x50], 0x70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x54], xmm0
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
mov qword [rsp + 0xb4], rax
mov dword [rsp + 0xbc], eax
lea rax, str.runas
mov qword [rsp + 0x60], rax
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 0x11
jb 0x14000939d
cmp qword [rbx + 0x18], 7
jbe 0x1400092c1
mov rbx, qword [rbx]
mov qword [rsp + 0x30], reloc.COMCTL32.dll_InitCommonControls
lea rax, [0x140097d70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rsp + 0xc0]
call fcn.140008c50
nop
lea rax, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 7
cmova rax, qword [rsp + 0xc0]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x80], 1
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax + 0x20]
nop
mov rdx, qword [rsp + 0xd8]
cmp rdx, 7
jbe 0x140009374
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000936f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009397
call fcn.140061530
mov al, 1
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140061510
mov rbx, qword [rsp + 0x108]
add rsp, 0xf0
pop rdi
ret
call fcn.14006a6c0
int3
call fcn.1400014b0
int3
Function at 0x140009ff0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400be2c8]
test rcx, rcx
je 0x14000a010
call fcn.14000ee10
mov qword [0x1400be2c8], 0
mov rcx, qword [0x1400be2b8]
mov qword [0x1400be2b8], 0
test rcx, rcx
je 0x14000a031
mov edx, 8
call fcn.140061530
call fcn.14002aef0
mov rcx, qword [0x1400be2c0]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
call fcn.1400104b0
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000a059
mov byte [rax + 8], 1
add rsp, 0x28
jmp 0x14000f1d0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call fcn.14000efc0
call fcn.1400104b0
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
je 0x14000f2bd
mov ecx, dword [rax + 0xc]
cmp ecx, 1
jl 0x14000f2bd
sub ecx, 1
mov dword [rax + 0xc], ecx
jne 0x14000f2ab
call fcn.14000efc0
mov rbx, rax
mov qword [rsp + 0x30], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
call fcn.14000efc0
mov rdx, qword [rax + 0x28]
mov rax, qword [rdx + 8]
mov rdi, rdx
cmp byte [rax + 0x19], 0
jne 0x14000f25c
mov ecx, dword [rsi + 0x10]
cmp dword [rax + 0x20], ecx
jge 0x14000f250
mov rax, qword [rax + 0x10]
jmp 0x14000f256
mov rdi, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14000f245
cmp byte [rdi + 0x19], 0
jne 0x14000f26a
mov eax, dword [rdi + 0x20]
cmp dword [rsi + 0x10], eax
jge 0x14000f26d
mov rdi, rdx
call fcn.14000efc0
cmp rdi, qword [rax + 0x28]
je 0x14000f296
call fcn.14000efc0
lea rcx, [rax + 0x28]
mov rdx, rdi
call fcn.14000f7c0
mov edx, 0x30
mov rcx, rax
call fcn.140061530
mov dword [rsi + 0x10], 0xffffffff
test rbx, rbx
je 0x14000f2ab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000bd50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14000bd5b
xor eax, eax
ret
lea r11, [0x140098310]
not ecx
cmp r8d, 8
jb 0x14000be31
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x14000bd80
test r8d, r8d
je 0x14000be5d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x14000be40
not ecx
mov eax, ecx
ret

Function at 0x14000c780
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov r10, r8
mov rdi, r9
imul r10d, edx
mov rsi, rdx
cmp byte [r9], 0
mov r11, rcx
je 0x14000c7da
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000c7c6
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
sub ecx, edx
mov qword [rsp + 0x40], rbx
lea eax, [rdx + r10]
cmp eax, dword [r9 + 0x28]
cmovbe ecx, r10d
add rdx, qword [r9 + 0x20]
mov ebx, ecx
mov r8d, ecx
mov rcx, r11
call fcn.140087290
add dword [rdi + 0x2c], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000c820
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x30
cmp byte [rcx], 0
mov r14, rdx
mov qword [rsp + 0x58], rbp
mov rbx, rcx
mov qword [rsp + 0x68], rsi
mov esi, 1
je 0x14000c874
lea rdi, [rcx + 0x10]
mov qword [rsp + 0x20], 0
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
mov r8d, esi
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000c86e
mov byte [rdi], sil
mov ebp, dword [rsp + 0x60]
jmp 0x14000c8a5
mov edi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rdi + 1]
cmp eax, ecx
jbe 0x14000c885
mov esi, ecx
sub esi, edi
mov rdx, rdi
mov r8d, esi
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x50]
mov ebp, esi
call fcn.140087290
lea eax, [rdi + rsi]
mov dword [rbx + 0x2c], eax
lea rdi, [rbx + 0x10]
mov rsi, qword [rsp + 0x68]
cmp ebp, 1
mov rbp, qword [rsp + 0x58]
jne 0x14000c8c7
movzx eax, byte [rsp + 0x50]
mov dword [r14], eax
xor eax, eax
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
cmp byte [rbx], 0
je 0x14000c8bc
cmp byte [rdi], 0
je 0x14000c8bc
mov eax, 0xffffffff
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
Function at 0x14000d810
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
je 0x14000da3e
cmp dword [rcx + 0x1c], 0
je 0x14000da3e
mov qword [rsp + 0x48], rbx
mov rbx, qword [rcx + 0x80]
mov qword [rsp + 0x20], rbp
xor ebp, ebp
test rbx, rbx
je 0x14000d878
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000d855
call fcn.140069a8c
mov qword [rbx], rbp
cmp dword [rbx + 0x64], ebp
je 0x14000d866
lea rcx, [rbx + 8]
call fcn.14000c000
mov rcx, rbx
mov dword [rbx + 0x64], ebp
call fcn.140069a8c
mov qword [rdi + 0x80], rbp
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.14000d560
test eax, eax
je 0x14000d8a9
mov rbx, qword [rsp + 0x48]
mov eax, 0xffffff99
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
call fcn.14006a788
mov rbx, rax
test rax, rax
je 0x14000d8e6
mov ecx, 0x4000
call fcn.14006a788
mov ecx, dword [rsp + 0x40]
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
test rax, rax
jne 0x14000d8fc
mov rcx, rbx
call fcn.140069a8c
mov rbx, qword [rsp + 0x48]
mov eax, 0xffffff98
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, dword [rdi + 0x40]
mov ecx, dword [rdi + 0x38]
mov dword [rbx + 0x78], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x64], ebp
mov dword [rbx + 0x74], ebp
mov dword [rbx + 0x90], ecx
mov dword [rbx + 0x24], ebp
test ecx, ecx
je 0x14000d94b
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.14000c0e0
test eax, eax
jne 0x14000d94b
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
movzx ecx, byte [rdi + 0x34]
mov dword [rbx + 0x7c], eax
and cl, 1
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
mov eax, dword [rdi + 0x34]
shr eax, 3
mov byte [rbx + 0x98], cl
test al, 1
je 0x14000d977
movzx eax, byte [rdi + 0x3d]
jmp 0x14000d97b
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
neg cl
mov dword [rbx + 0x9c], 0x12345678
sbb eax, eax
mov dword [rbx + 0xa0], 0x23456789
and eax, 0xc
mov dword [rbx + 0xa4], 0x34567890
mov dword [rbx + 0xa8], eax
test rsi, rsi
je 0x14000da12
lea r8, [0x140098310]
movzx eax, byte [rsi]
test al, al
je 0x14000da12
mov edx, dword [rbx + 0x9c]
xor rax, rdx
movzx ecx, al
shr edx, 8
xor edx, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0xa4]
movzx eax, dl
add eax, dword [rbx + 0xa0]
mov dword [rbx + 0x9c], edx
imul edx, eax, 0x8088405
movzx eax, cl
shr ecx, 8
inc edx
mov dword [rbx + 0xa0], edx
shr rdx, 0x18
xor rax, rdx
xor ecx, dword [r8 + rax*4]
mov dword [rbx + 0xa4], ecx
add rsi, 1
jne 0x14000d9b8
mov eax, dword [rsp + 0x58]
mov ecx, dword [rdi + 0x7c]
add eax, 0x1e
add ecx, eax
mov dword [rbx + 0x10], ebp
mov rbp, qword [rsp + 0x20]
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
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14000e520
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
push rdi
sub rsp, 0x458
mov rax, qword [0x1400b8080]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14000e55d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000e55d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [rdi]
test ax, ax
je 0x14000e66e
mov qword [rsp + 0x480], rbp
mov rdx, rdi
mov rcx, rdi
cmp ax, 0x2f
je 0x14000e583
cmp ax, 0x5c
jne 0x14000e586
mov rdx, rcx
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14000e577
xor ebp, ebp
mov qword [rsp + 0x450], rsi
cmp rdx, rdi
je 0x14000e5e4
sub rdx, rdi
lea rcx, [rsp + 0x230]
sar rdx, 1
lea rsi, [rdx + rdx]
mov rdx, rdi
mov r8, rsi
call fcn.140087290
cmp rsi, 0x208
jae 0x14000e688
lea rdx, [rsp + 0x230]
mov word [rsp + rsi + 0x230], bp
mov rcx, rbx
call fcn.14000e520
mov word [rsp + 0x20], bp
test rbx, rbx
je 0x14000e610
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14000e600
lea rcx, [rsp + 0x20]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], bp
lea rcx, [rcx + 2]
jne 0x14000e620
xor edx, edx
nop dword [rax]
movzx eax, word [rdi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x14000e630
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000e65e
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rsi, qword [rsp + 0x450]
mov rbp, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140061510
add rsp, 0x458
pop rdi
pop rbx
ret
call fcn.1400618e8
int3