joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400032f0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000334d
lea rbx, [0x1400590f0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140003334
cmp r10, 2
jb 0x140003334
cmp byte [r9], r8b
jne 0x140003334
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140003310
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000338f
lea rbx, [0x1400590f0]
cmp r8b, 0x23
jne 0x140003373
cmp byte [r9], r8b
jne 0x140003373
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140003360
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400034d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400034ea
mov qword [r8], 0
lea rdx, [0x140058b4c]
call fcn.1400033a0
mov rbx, rax
test rax, rax
jne 0x14000350a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400035e1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400035e1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400035e1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400035e1
cmp rdi, 0xffffffffffffffff
je 0x1400035e1
mov rax, qword [0x1400a2500]
test rax, rax
je 0x14000357e
inc dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400035e1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x1400035ce
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400a2500]
test rax, rax
je 0x1400035c3
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400035ea
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1400035dc
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400035ec
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140011970
Capabilities:
Hash data with crc32

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [0x1400a2500]
lea rdx, [0x1400590f0]
mov r8, rcx
mov rbx, qword [rax + 0x1d18]
add rbx, 0x108
movsxd r9, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + r9*4 - 4]
not edi
movzx eax, r8b
mov r8d, dword [rbx + 4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 9]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xa]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xb]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xc]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xd]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xe]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xf]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
shr edi, 8
xor rcx, rax
xor edi, dword [rdx + rcx*4]
not edi
cmp r9d, r8d
jne 0x140011a71
lea ecx, [r9 + 1]
test r8d, r8d
je 0x140011a5d
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x140011a62
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.140024050
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140011a90
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rax, qword [0x1400a2500]
lea rdx, [0x1400590f0]
mov r8d, ecx
mov rbx, qword [rax + 0x1d18]
add rbx, 0x108
movsxd r9, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + r9*4 - 4]
not edi
movzx eax, r8b
mov r8d, dword [rbx + 4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x31]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x32]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x33]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
shr edi, 8
xor rcx, rax
xor edi, dword [rdx + rcx*4]
not edi
cmp r9d, r8d
jne 0x140011b47
lea ecx, [r9 + 1]
test r8d, r8d
je 0x140011b33
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x140011b38
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.140024050
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140012640
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140068040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400a2500]
mov edi, edx
cmp byte [rbx + 0x20d5], 0
jne 0x1400126a0
cmp byte [rbx + 0x20d6], 0
jne 0x1400126a0
mov r9d, dword [rbx + 0x3178]
lea r8, str.Tooltip__02d
mov edx, send
lea rcx, [rsp + 0x20]
call fcn.140003270
test dil, 1
je 0x1400127c6
jmp 0x14001272f
movss xmm1, dword [rbx + 0x16ec]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x3178]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14005dce0]
mulss xmm1, dword [0x14005dcc8]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x120]
addss xmm1, dword [rbx + 0x124]
mov qword [rbx + 0x1ddc], rax
mov dword [rbx + 0x1dc4], 1
movss dword [rbx + 0x1dd4], xmm0
mov byte [rbx + 0x1dfc], 1
movss dword [rbx + 0x1dd8], xmm1
movss xmm0, dword [rbx + 0x1748]
mulss xmm0, dword [0x14005dc3c]
or dword [rbx + 0x1dc0], 0x41
movss dword [rbx + 0x1e20], xmm0
call fcn.140003270
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140012780
lea r11, [0x1400590f0]
nop
cmp r9b, 0x23
jne 0x140012763
cmp byte [r8], r9b
jne 0x140012763
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140012750
not ecx
call fcn.14000b380
test rax, rax
je 0x1400127c6
cmp byte [rax + 0xcf], 0
je 0x1400127c6
mov byte [rax + 0xd6], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xf0], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x3178]
mov edx, send
mov r9d, dword [rbx + 0x3178]
call fcn.140003270
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x22c0347
call fcn.14000dde0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140052970
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140017420
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x3260], 0
lea rbx, [rcx + 0x3268]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400174c7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001747a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140023d40
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003b90
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x3260]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x3270]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400a2510]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400174cf
mov rcx, rbx
call fcn.140003b90
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140017910
Capabilities:
Hash data with crc32

Disassembly:
push rbx
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov rbx, rcx
mov eax, r10d
test r9b, r9b
je 0x140017962
lea r11, [0x1400590f0]
cmp r9b, 0x23
jne 0x140017945
cmp byte [r8], r9b
jne 0x140017945
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140017932
mov r11, qword [0x1400a2500]
mov r10, qword [r11 + 0x3228]
test r10, r10
je 0x1400179a9
lea r9, [r10 + 4]
test r9, r9
je 0x1400179a9
not eax
cmp dword [r9], eax
je 0x1400179b2
movsxd r8, dword [r9 - 4]
movsxd rdx, dword [r11 + 0x3220]
add r8, r9
add rdx, 4
xor r9d, r9d
add rdx, r10
cmp r8, rdx
cmovne r9, r8
test r9, r9
jne 0x140017980
mov rcx, rbx
pop rbx
jmp fcn.140017820
mov rax, r9
pop rbx
ret
Function at 0x14001ae40
Capabilities:
Hash data with crc32

Disassembly:
test r8d, r8d
jle 0x14001b07e
mov r11, rsp
push rbp
push rsi
sub rsp, 0x58
mov rax, qword [0x140068040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [r11 - 0x18], rdi
mov rbp, rcx
mov qword [r11 - 0x20], r14
lea rdi, [rdx + 0x1a]
mov qword [r11 - 0x28], r15
mov r14d, 0xffffffff
lea r15, [0x1400590f0]
mov qword [r11 + 0x18], rbx
movsxd rsi, r8d
nop dword [rax + rax]
mov edx, dword [rdi - 0x1a]
test edx, edx
je 0x14001b046
mov rcx, rbp
call fcn.14001a520
mov r9d, dword [rdi - 0x16]
mov rbx, rax
test r9d, r9d
je 0x14001af11
movsxd rdx, dword [rbp + 0x31c0]
mov r8, qword [rbp + 0x31c8]
mov r10, rdx
shl r10, 4
add r10, r8
test rdx, rdx
je 0x14001af01
nop dword [rax]
mov rcx, rdx
shr rcx, 1
mov rax, rcx
add rax, rax
cmp dword [r8 + rax*8], r9d
jae 0x14001aef9
lea r8, [r8 + rax*8]
mov rax, 0xffffffffffffffff
sub rax, rcx
add r8, 0x10
add rdx, rax
jmp 0x14001aefc
mov rdx, rcx
test rdx, rdx
jne 0x14001aed0
cmp r8, r10
je 0x14001af11
cmp dword [r8], r9d
jne 0x14001af11
mov rcx, qword [r8 + 8]
jmp 0x14001af13
xor ecx, ecx
mov qword [rbx + 0x10], rcx
movsx eax, word [rdi - 2]
movd xmm1, eax
movsx eax, word [rdi]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x40], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x44], xmm0
movsx eax, word [rdi + 2]
movd xmm1, eax
movsx eax, word [rdi + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x48], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x4c], xmm0
movsx eax, word [rdi + 6]
movd xmm1, eax
movsx eax, word [rdi + 8]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [rbx + 0xb8]
and eax, 0xfffffe49
movss dword [rbx + 0x50], xmm1
or eax, 0x49
mov dword [rbx + 0xb8], eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x54], xmm0
test rcx, rcx
je 0x14001afa7
cmp qword [rcx + 0x18], 0
jne 0x14001af9c
mov qword [rcx + 0x18], rbx
jmp 0x14001afa7
cmp qword [rcx + 0x20], 0
jne 0x14001afa7
mov qword [rcx + 0x20], rbx
mov eax, dword [rdi - 0xe]
mov r9, rbx
mov dword [rbx + 0xb0], eax
movsx eax, byte [rdi - 0xa]
mov dword [rbx + 0x58], eax
mov eax, dword [rdi - 6]
and eax, 0x61fc20
or dword [rbx + 8], eax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14001afdc
nop
mov r9, rax
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14001afd0
mov r9d, dword [r9]
lea r8, str.DockNode__02X
mov edx, socket
lea rcx, [rsp + 0x20]
call fcn.140003270
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov ecx, r14d
test r9b, r9b
je 0x14001b038
cmp r9b, 0x23
jne 0x14001b01b
cmp byte [r8], r9b
jne 0x14001b01b
cmp byte [r8 + 1], r9b
cmove ecx, r14d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r15 + rdx*4]
test r9b, r9b
jne 0x14001b008
not ecx
call fcn.14000b380
mov qword [rbx + 0x80], rax
add rdi, 0x24
sub rsi, 1
jne 0x14001ae90
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140052970
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x140049f40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140049f74
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140049f60
ret
Function at 0x14004e7b0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14004e87c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14004e87c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14004e895
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14004e86c
cmp byte [rax], 0x5c
jne 0x14004e866
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14004e866
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14004e852
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14004e863
test r8b, 0x10
jne 0x14004e866
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14004e866
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14004b500
test edi, edi
jne 0x14004e7d0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14004b4f0
int3

Function at 0x140053668
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400536b2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400536b2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400536b2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400536b2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400536b2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400536b4
xor al, al
add rsp, 0x28
ret
Function at 0x180002520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov r9, qword [rcx]
movabs rax, 0xffffffff00000000
mov r8d, dword [rcx + 0x68]
mov rsi, rcx
mov r12d, r8d
neg r12
movzx edi, word [r9 + 0x14]
mov r10, qword [r9 + 0x30]
add rdi, r9
and r10, rax
mov qword [rsp + 0x70], r10
mov ebp, dword [rdi + 0x20]
mov eax, dword [rdi + 0x28]
or rbp, r10
and r12, rbp
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], r12
test eax, eax
jne 0x18000258a
mov ecx, dword [rdi + 0x3c]
test cl, 0x40
je 0x180002582
mov eax, dword [r9 + 0x20]
jmp 0x18000258a
test cl, cl
jns 0x18000258a
mov eax, dword [r9 + 0x24]
mov ecx, dword [rdi + 0x3c]
mov edx, eax
mov eax, 1
mov r13d, eax
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x3c], 0
cmp ax, word [r9 + 6]
jae 0x180002692
add rdi, 0x64
nop dword [rax]
mov r15d, dword [rdi - 0x1c]
mov eax, r8d
or r15, r10
mov ebx, r8d
mov r10d, dword [rdi - 0x14]
neg rbx
and rbx, r15
test r10d, r10d
jne 0x180002607
mov r11d, dword [rdi]
test r11b, 0x40
je 0x1800025fb
mov r10d, dword [r9 + 0x20]
jmp 0x180002607
test r11b, r11b
jns 0x180002607
mov r10d, dword [r9 + 0x24]
mov eax, dword [rsi + 0x68]
mov r14d, r10d
cmp r12, rbx
je 0x180002647
mov r8d, eax
lea rax, [rdx + rbp]
cmp rax, rbx
ja 0x180002647
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.180002430
test eax, eax
je 0x180002689
mov ecx, dword [rdi]
mov rbp, r15
mov r8d, dword [rsi + 0x68]
mov r12, rbx
mov qword [rsp + 0x20], r15
mov edx, r14d
mov qword [rsp + 0x28], rbx
jmp 0x180002662
mov edx, dword [rdi]
mov eax, edx
and eax, ecx
or ecx, edx
bt eax, 0x19
jb 0x180002659
btr ecx, 0x19
mov rdx, r14
sub rdx, rbp
add rdx, r15
mov r9, qword [rsi]
inc r13d
add rdi, 0x28
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rdx
movzx eax, word [r9 + 6]
cmp r13d, eax
jge 0x18000268d
mov r10, qword [rsp + 0x70]
jmp 0x1800025d0
xor eax, eax
jmp 0x1800026ad
mov eax, 1
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x3c], eax
mov rcx, rsi
call fcn.180002430
test eax, eax
mov eax, 0
setne al
mov r15, qword [rsp + 0x88]
mov r14, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000df34
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.180007e30
sub rsp, rax
mov rax, qword [0x18003f020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18001a54c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18000df83
mov rax, rbp
jmp 0x18000e08b
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x6dd410]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18001a7e4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x6dd410]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18000e087
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 0x18000e087
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18001a7e4
test rax, rax
js 0x18000e087
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18000e087
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18000e079
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18000e079
cmp byte [rcx], 0xd
jne 0x18000e05f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18000e06e
cmp byte [rcx + 1], 0xa
jne 0x18000e06e
inc rcx
jmp 0x18000e06e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3f3c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18000e041
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18000e08b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800074e0
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 0x18001c83c
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, [0x1806dd410]
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 0x18001c89a
cmp word [rdx], r12w
jne 0x18001c89a
or byte [rax + r8*8 + 0x38], cl
jmp 0x18001c8a0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18001c9fb
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18001c9d6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x18001c8d9
mov rcx, r9
jmp 0x18001c8fc
cmp r9, rdx
jae 0x18001c913
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 0x18001c8bd
jmp 0x18001c9fb
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 0x18001c9d0
cmp dword [rsp + 0x80], edi
je 0x18001c9d0
mov rdx, r14
lea r11, [0x1806dd410]
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 0x18001c9a9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x18001c97c
mov word [rbx], r12w
jmp 0x18001c9f7
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 0x18001c985
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18001c9f7
cmp word [rsp + 0x70], r12w
jne 0x18001c9b6
cmp rbx, rsi
je 0x18001c976
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18001a7ec
cmp word [rsp + 0x70], r12w
je 0x18001c9fb
mov word [rbx], r13w
jmp 0x18001c9f7
lea r11, [0x1806dd410]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18001c9f3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18001c9fb
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 0x18001faa0
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 0x18001f7c2
call fcn.18001614c
mov dword [rax], 0x16
call fcn.180013048
jmp 0x18001f912
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18001f912
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18001f912
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18001f7f1
lock or dword [rcx + 0x14], 0x10
jmp 0x18001f912
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18001f805
call fcn.180020014
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x18001f815
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x18001f818
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.18001a54c
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.18001cce8
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x18001f900
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x18001f8ab
mov rcx, rbx
call fcn.18001a54c
cmp eax, 0xffffffff
je 0x18001f896
mov rcx, rbx
call fcn.18001a54c
cmp eax, 0xfffffffe
je 0x18001f896
mov rcx, rbx
call fcn.18001a54c
movsxd rdi, eax
lea rsi, [0x1806dd410]
mov rcx, rbx
sar rdi, 6
call fcn.18001a54c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x18001f89d
lea rdx, [0x18003f4c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18001f8ab
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x18001f8cf
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x18001f8cf
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x18001f8cf
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x18001f8ed
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x18001f8f8
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x18001f917
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 0x18001f78c