joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400356c4
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400356f4
xor eax, eax
jmp 0x1400357b7
mov rbp, rbx
cmp word [rax], si
je 0x140035719
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140035700
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400356fc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140034174
movsxd r14, eax
test eax, eax
jne 0x140035757
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400356ed
mov rcx, r14
call fcn.140030a60
mov rdi, rax
test rax, rax
jne 0x140035770
xor ecx, ecx
call fcn.14002e4a8
jmp 0x14003574c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140034174
test eax, eax
jne 0x1400357a1
mov rcx, rdi
call fcn.14002e4a8
jmp 0x1400357ab
xor ecx, ecx
call fcn.14002e4a8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400357d4
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 0x14003585b
mov rsi, rbx
cmp word [rax], bp
je 0x14003581a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140035804
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140035800
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140030a60
mov rdi, rax
test rax, rax
je 0x140035848
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140020400
mov rbp, rdi
xor ecx, ecx
call fcn.14002e4a8
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 0x1400386b8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14002daf8
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140038759
cmp ebx, dword [rsp + 0x30]
je 0x140038752
test esi, esi
je 0x140038752
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14003872d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003873a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140038717
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14003873e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14003875b
mov eax, 1
jmp 0x14003875b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003a430
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140077610]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14003a487
cmp word [rdx], r13w
jne 0x14003a487
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003a48c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003a5b1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003a5d2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003a4c5
mov rdx, r9
mov word [rbx], cx
jmp 0x14003a4ec
cmp r9, r8
jae 0x14003a4fc
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14003a4a6
jmp 0x14003a5b1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003a5a6
cmp dword [rsp + 0x80], esi
je 0x14003a5a6
lea r8, [0x140077610]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003a57e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003a54e
mov word [rbx], r13w
jmp 0x14003a5ae
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14003a55b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003a5ae
cmp word [rsp + 0x70], r13w
jne 0x14003a58b
cmp rbx, r14
je 0x14003a548
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003a168
cmp word [rsp + 0x70], r13w
je 0x14003a5b1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140077610]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003a5ab
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003a5b1
Function at 0x14003d848
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140024940
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003d8d2
cmp byte [rbp - 0x21], r15b
je 0x14003d8cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003d908
call fcn.14002feb8
test eax, eax
jne 0x14003d8f4
cmp byte [rbp - 0x21], r15b
je 0x14003d8ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003d908
cmp byte [rbp - 0x21], r15b
je 0x14003d905
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14002a15c
test eax, eax
jne 0x14003d9a8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140024940
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003d947
cmp byte [rbp - 0x21], r15b
je 0x14003d97c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003d97c
call fcn.14002feb8
test eax, eax
jne 0x14003d968
cmp byte [rbp - 0x21], r15b
je 0x14003d961
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003d97c
cmp byte [rbp - 0x21], r15b
je 0x14003d979
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14002a15c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003d9a8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003d9ab
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003d9b9
mov rcx, rdi
call fcn.14002e4a8
cmp byte [rbp + 0x3f], r15b
je 0x14003d9c8
mov rcx, qword [rbp + 0x27]
call fcn.14002e4a8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14003dc64
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14003a168
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14003a168
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14003ddb4
cmp rax, 0xffffffffffffffff
je 0x14003ddb4
xor edi, edi
test rbp, rbp
jle 0x14003dd5f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002d33c
mov rbx, rax
test rax, rax
jne 0x14003dcec
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14003dd55
mov edx, 0x8000
mov ecx, r14d
call fcn.14002b284
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14002f4fc
cmp eax, 0xffffffff
je 0x14003dd35
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003dcfc
mov edx, r15d
mov ecx, r14d
call fcn.14002b284
jmp 0x14003dd55
cmp byte [rsi + 0x38], dil
je 0x14003dd4c
cmp dword [rsi + 0x34], 5
jne 0x14003dd4c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14003dd55
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002e4a8
jmp 0x14003ddc8
jns 0x14003ddc8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14003a168
cmp rax, 0xffffffffffffffff
jne 0x14003dd80
cmp byte [rsi + 0x30], dil
je 0x14003ddc8
mov edi, dword [rsi + 0x2c]
jmp 0x14003ddc8
mov ecx, r14d
call fcn.140036164
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14003ddc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14003ddc8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003ddc1
mov eax, dword [rsi + 0x2c]
jmp 0x14003ddc6
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14003a168
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14019a000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.14019a0d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rcx
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x14019a037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14019a02d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x14019a0cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x14019a0cb
add rax, rdx
mov r8d, dword [rax + 0x20]
push rax
mov ecx, dword [rax + 0x18]
add r8, rdx
jrcxz 0x14019a0ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x14019a081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x14019a072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
pop rsi
pop rcx
add rax, rdx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x14019a021
Function at 0x140f9d0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140f9d237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140f9d0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f9d0c7
add dl, dl
jne 0x140f9d0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f9d14e
xor eax, eax
add dl, dl
jne 0x140f9d0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f9d205
add dl, dl
jne 0x140f9d10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f9d11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f9d128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f9d135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f9d142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f9d0d6
mov eax, 1
add dl, dl
jne 0x140f9d15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f9d16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f9d153
sub eax, ebx
mov ebx, 1
jne 0x140f9d1a4
mov ecx, 1
add dl, dl
jne 0x140f9d186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f9d193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f9d17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f9d0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f9d1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f9d1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f9d1b5
cmp eax, 0x7d00
jae 0x140f9d1f3
cmp eax, 0x500
jb 0x140f9d1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f9d0d6
cmp eax, 0x7f
ja 0x140f9d1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f9d0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f9d22a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140f9d0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001b10
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r8
cmp edx, 1
jne 0x180001b43
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x180001840]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x180003150
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 0x1800031ad
lea rbx, [0x180032950]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180003194
cmp r10, 2
jb 0x180003194
cmp byte [r9], r8b
jne 0x180003194
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 0x180003170
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800031ef
lea rbx, [0x180032950]
cmp r8b, 0x23
jne 0x1800031d3
cmp byte [r9], r8b
jne 0x1800031d3
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 0x1800031c0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1800033d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1800033ea
mov qword [r8], 0
lea rdx, [0x180036a10]
call fcn.180003200
mov rbx, rax
test rax, rax
jne 0x18000340a
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 0x1800034e1
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 0x1800034e1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1800034e1
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 0x1800034e1
cmp rdi, 0xffffffffffffffff
je 0x1800034e1
mov rax, qword [0x18003d8e0]
test rax, rax
je 0x18000347e
inc dword [rax + 0x3bc]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1800034e1
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 0x1800034ce
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x18003d8e0]
test rax, rax
je 0x1800034c3
dec dword [rax + 0x3bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1800034ea
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1800034dc
mov qword [r14], rdi
mov rax, rsi
jmp 0x1800034ec
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 0x1800074f0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
xor eax, eax
lea r8, [0x18003695d]
mov dword [rsp + 0x2c], eax
lea r11, [0x180032950]
mov qword [rsp + 0x48], rax
mov r10d, 0xffffffff
lea rax, str.Window
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov edx, r10d
mov r9b, 0x57
nop
cmp r9b, 0x23
jne 0x180007543
cmp byte [r8], r9b
jne 0x180007543
cmp byte [r8 + 1], r9b
cmove edx, r10d
movzx ecx, dl
movzx eax, r9b
movzx r9d, byte [r8]
xor rcx, rax
shr edx, 8
inc r8
xor edx, dword [r11 + rcx*4]
test r9b, r9b
jne 0x180007530
mov ecx, dword [rbx + 0x2f64]
lea rax, [0x180012630]
mov edi, dword [rbx + 0x2f60]
not edx
mov qword [rsp + 0x30], rax
lea rax, [0x1800126e0]
mov qword [rsp + 0x38], rax
lea rax, [0x1800127b0]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], edx
cmp edi, ecx
jne 0x180007645
inc edi
test ecx, ecx
je 0x1800075af
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1800075b4
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x180007645
mov rax, qword [0x18003d8e0]
mov qword [rsp + 0x60], rsi
test rax, rax
je 0x1800075d8
inc dword [rax + 0x3bc]
movsxd rax, edi
lea rcx, [rax + rax*2]
shl rcx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rbx + 0x2f68]
mov rsi, rax
test rdx, rdx
je 0x180007633
movsxd rcx, dword [rbx + 0x2f60]
lea r8, [rcx + rcx*2]
mov rcx, rax
shl r8, 4
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x2f68]
test rcx, rcx
je 0x18000762d
mov rax, qword [0x18003d8e0]
test rax, rax
je 0x18000762d
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2f68], rsi
mov rsi, qword [rsp + 0x60]
mov dword [rbx + 0x2f64], edi
movsxd rax, dword [rbx + 0x2f60]
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x2f68]
add rcx, rcx
movups xmmword [rax + rcx*8], xmm0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + rcx*8 + 0x10], xmm1
movups xmmword [rax + rcx*8 + 0x20], xmm0
inc dword [rbx + 0x2f60]
mov byte [rbx], 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1800088d0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180008920
lea r11, [0x180032950]
nop dword [rax]
cmp r9b, 0x23
jne 0x180008903
cmp byte [r8], r9b
jne 0x180008903
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 0x1800088f0
mov rcx, qword [0x18003d8e0]
not eax
movsxd rdx, dword [rcx + 0x1a50]
mov r9, qword [rcx + 0x1a58]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x180008981
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x180008979
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18000897c
mov rdx, r8
test rdx, rdx
jne 0x180008950
cmp r9, r10
je 0x180008990
cmp dword [r9], eax
jne 0x180008990
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x180011f10
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x18003d8e0]
cmp byte [rbx + 0x2f80], 0
je 0x180011ffc
cmp qword [rbx + 0x2f88], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x2f90]
je 0x180011fe4
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x180011f8b
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1800139b0
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.180003930
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x2f88]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2f98]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x18003d8d8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.180003930
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x180012290
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push r13
sub rsp, 0x38
mov r13, qword [0x18003d8e0]
mov qword [rsp + 0x50], rbx
mov rbx, rdx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rdi
mov rdi, rcx
mov qword [rsp + 0x30], r12
test rdx, rdx
jne 0x1800122ce
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x1800122c5
test r13, r13
je 0x1800122da
inc dword [r13 + 0x3bc]
lea rcx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x58], rax
mov rsi, rax
lea r12, [rax + rbx]
call sub.VCRUNTIME140.dll_memcpy
xor ebp, ebp
mov byte [r12], 0
xor edi, edi
mov rcx, rsi
cmp rsi, r12
jae 0x1800124a3
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
nop dword [rax]
movzx eax, byte [rcx]
cmp al, 0xa
je 0x1800124e7
cmp al, 0xd
je 0x1800124e7
mov rbx, rcx
cmp rcx, r12
jae 0x180012353
nop dword [rax + rax]
movzx eax, byte [rbx]
cmp al, 0xa
je 0x180012353
cmp al, 0xd
je 0x180012353
inc rbx
cmp rbx, r12
jb 0x180012340
mov byte [rbx], 0
movzx eax, byte [rcx]
cmp al, 0x3b
je 0x180012487
cmp al, 0x5b
jne 0x18001246e
cmp rbx, rcx
jbe 0x18001246e
cmp byte [rbx - 1], 0x5d
lea rsi, [rbx - 1]
jne 0x18001246e
lea r14, [rcx + 1]
mov byte [rsi], 0
mov r8, rsi
mov rcx, r14
sub r8, r14
mov edx, 0x5d
call sub.VCRUNTIME140.dll_memchr
mov r15, rax
test rax, rax
je 0x180012487
lea rcx, [rax + 1]
mov edx, 0x5b
sub rsi, rcx
mov r8, rsi
call sub.VCRUNTIME140.dll_memchr
mov r11, rax
test rax, rax
je 0x180012487
mov r10, qword [0x18003d8e0]
lea r8, [r14 + 1]
mov byte [r15], 0
mov esi, 0xffffffff
movzx r9d, byte [r14]
mov ecx, esi
test r9b, r9b
je 0x18001241a
cmp r9b, 0x23
jne 0x1800123f7
cmp byte [r8], r9b
jne 0x1800123f7
cmp byte [r8 + 1], r9b
cmove ecx, esi
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
lea rax, [0x180032950]
inc r8
xor ecx, dword [rax + rdx*4]
test r9b, r9b
jne 0x1800123e5
mov r8d, dword [r10 + 0x2f60]
xor eax, eax
not ecx
test r8d, r8d
jle 0x180012444
mov r9, qword [r10 + 0x2f68]
lea rdx, [r9 + 8]
cmp dword [rdx], ecx
je 0x18001244a
inc eax
add rdx, 0x30
cmp eax, r8d
jl 0x180012435
xor edi, edi
xor ebp, ebp
jmp 0x180012487
cdqe
lea rdi, [rax + rax*2]
shl rdi, 4
add rdi, r9
je 0x180012446
mov rax, qword [rdi + 0x10]
lea r8, [r11 + 1]
mov rdx, rdi
mov rcx, r13
call rax
mov rbp, rax
jmp 0x180012487
test rdi, rdi
je 0x180012487
test rbp, rbp
je 0x180012487
mov r9, rcx
mov r8, rbp
mov rcx, r13
mov rdx, rdi
call qword [rdi + 0x18]
lea rcx, [rbx + 1]
cmp rcx, r12
jb 0x180012320
mov rsi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
test rsi, rsi
je 0x1800124ce
mov rax, qword [0x18003d8e0]
test rax, rax
je 0x1800124ce
dec dword [rax + 0x3bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [r13 + 0x2f44], 1
add rsp, 0x38
pop r13
pop rsi
ret
inc rcx
jmp 0x180012320