joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014010
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.140005f30
sub rsp, rax
mov rax, qword [0x14002e040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140012bf0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001405f
mov rax, rbp
jmp 0x140014167
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 + 0xc16d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140015130
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xc16d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140014163
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 0x140014163
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140015130
test rax, rax
js 0x140014163
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140014163
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140014155
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140014155
cmp byte [rcx], 0xd
jne 0x14001413b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001414a
cmp byte [rcx + 1], 0xa
jne 0x14001414a
inc rcx
jmp 0x14001414a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2e480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001411d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140014167
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140005b40
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 0x140014388
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001439e
mov al, 1
jmp 0x1400143fe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400143af
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400143fc
mov ecx, dword [rcx + 0x18]
nop
call fcn.140018ae4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400143fc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400143fc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400143fc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400143fe
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400144d0
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, [0x1400c16d0]
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 0x140014527
cmp word [rdx], r13w
jne 0x140014527
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001452c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140014651
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140014672
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140014565
mov rdx, r9
mov word [rbx], cx
jmp 0x14001458c
cmp r9, r8
jae 0x14001459c
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 0x140014546
jmp 0x140014651
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 0x140014646
cmp dword [rsp + 0x80], esi
je 0x140014646
lea r8, [0x1400c16d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001461e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400145ee
mov word [rbx], r13w
jmp 0x14001464e
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 0x1400145fb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001464e
cmp word [rsp + 0x70], r13w
jne 0x14001462b
cmp rbx, r14
je 0x1400145e8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140015138
cmp word [rsp + 0x70], r13w
je 0x140014651
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, [0x1400c16d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001464b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140014651
Function at 0x140003460
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400034c1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140003480
mov ecx, dword [r9]
jmp 0x1400035ab
cmp ecx, 0x4e0
jb 0x1400035ab
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400034e0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140003530
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140004028
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000468e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140004693
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400046dc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140053720]
cmp byte [rcx + rax], 0
je 0x1400046dc
dec r8
sub rdx, 1
jne 0x1400046c2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000500c
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140005bac
mov qword [rsp + 0x38], rax
invalid
invalid
invalid

Function at 0x140005b86
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx]
or dword [rdi], ecx
mov bh, 0x49
adc al, 0x48
lea eax, [rax + rcx + 0x18]
Function at 0x140008cd2
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.140008708
jmp 0x14000875b
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x140009380
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x14000b359
jmp 0x140008521
mov rax, qword [rsp + 0x48]
add rsp, 0x68
ret
mov rcx, qword [rsp + 0x70]
call fcn.14000b903
jmp 0x1400058db
jmp 0x140008b2e
test eax, eax
jne 0x14000907a
jmp 0x140008d09
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x14000730b
jmp 0x140006771
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x140005fde
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x1400069ce
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
sub rax, 0x10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x30], rax
jne 0x140009380
jmp 0x1400069ce
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14000907a
jmp 0x14000b342
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x140006771
jmp 0x14000730b
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x140009554
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*2 + 2]
mov qword [rsp + 0x38], rax
jmp 0x140008b2e
Function at 0x14001470c
Capabilities:
Parse pe header

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

Function at 0x140019bb4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140019bca
mov al, 1
jmp 0x140019c2a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140019bdb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140019c28
mov ecx, dword [rcx + 0x18]
nop
call fcn.140022988
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140019c28
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointerEx]
test eax, eax
je 0x140019c28
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
test eax, eax
je 0x140019c28
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140019c2a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001cfac
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.140005930
sub rsp, rax
mov rax, qword [0x14006e080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400191fc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001cffb
mov rax, rbp
jmp 0x14001d103
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 + 0x773c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001cbe8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x773c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001d0ff
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.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x14001d0ff
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001cbe8
test rax, rax
js 0x14001d0ff
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001d0ff
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001d0f1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001d0f1
cmp byte [rcx], 0xd
jne 0x14001d0d7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001d0e6
cmp byte [rcx + 1], 0xa
jne 0x14001d0e6
inc rcx
jmp 0x14001d0e6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x6ebc0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001d0b9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001d103
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140004fc0
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 0x140021cc8
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.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140021d4f
mov rsi, rbx
cmp word [rax], bp
je 0x140021d0e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140021cf8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140021cf4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001d434
mov rdi, rax
test rax, rax
je 0x140021d3c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140049090
mov rbp, rdi
xor ecx, ecx
call fcn.140019148
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.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 0x140024f18
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.140018ca0
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.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140024fb9
cmp ebx, dword [rsp + 0x30]
je 0x140024fb2
test esi, esi
je 0x140024fb2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140024f8d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140024f9a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140024f77
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140024f9e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140024fbb
mov eax, 1
jmp 0x140024fbb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400252d4
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, [0x1400773c0]
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 0x14002532b
cmp word [rdx], r13w
jne 0x14002532b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140025330
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140025455
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140025476
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140025369
mov rdx, r9
mov word [rbx], cx
jmp 0x140025390
cmp r9, r8
jae 0x1400253a0
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 0x14002534a
jmp 0x140025455
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x14002544a
cmp dword [rsp + 0x80], esi
je 0x14002544a
lea r8, [0x1400773c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140025422
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400253f2
mov word [rbx], r13w
jmp 0x140025452
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 0x1400253ff
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140025452
cmp word [rsp + 0x70], r13w
jne 0x14002542f
cmp rbx, r14
je 0x1400253ec
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001cbf0
cmp word [rsp + 0x70], r13w
je 0x140025455
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, [0x1400773c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002544f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140025455
Function at 0x140029d98
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.14001cbf0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001cbf0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029ee8
cmp rax, 0xffffffffffffffff
je 0x140029ee8
xor edi, edi
test rbp, rbp
jle 0x140029e93
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140019184
mov rbx, rax
test rax, rax
jne 0x140029e20
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029e89
mov edx, 0x8000
mov ecx, r14d
call fcn.140016a24
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.14001c634
cmp eax, 0xffffffff
je 0x140029e69
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029e30
mov edx, r15d
mov ecx, r14d
call fcn.140016a24
jmp 0x140029e89
cmp byte [rsi + 0x38], dil
je 0x140029e80
cmp dword [rsi + 0x34], 5
jne 0x140029e80
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029e89
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019148
jmp 0x140029efc
jns 0x140029efc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001cbf0
cmp rax, 0xffffffffffffffff
jne 0x140029eb4
cmp byte [rsi + 0x30], dil
je 0x140029efc
mov edi, dword [rsi + 0x2c]
jmp 0x140029efc
mov ecx, r14d
call fcn.140022988
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
test eax, eax
jne 0x140029efc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.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 0x140029efc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029ef5
mov eax, dword [rsi + 0x2c]
jmp 0x140029efa
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001cbf0
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 0x14002d2f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov rax, rdx
lea rdx, [r8*2 + 2]
cmp rdx, 0x1000
jb 0x14002d320
mov rcx, qword [rax - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002d32c
mov rax, rcx
mov rcx, rax
add rsp, 0x28
jmp fcn.14000500c
call fcn.14000bec4
int3

Function at 0x14002edf0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [rcx]
mov rsi, rcx
mov rbx, qword [rbx + 8]
cmp byte [rbx + 0x19], 0
jne 0x14002ee46
mov qword [rsp + 0x38], rdi
nop
mov r8, qword [rbx + 0x10]
mov rdx, rsi
mov rcx, rsi
call fcn.14002e0a0
mov rdi, rbx
mov rbx, qword [rbx]
lea rcx, [rdi + 0x20]
call fcn.14002f3d0
mov edx, 0x30
mov rcx, rdi
call fcn.14000500c
cmp byte [rbx + 0x19], 0
je 0x14002ee10
mov rdi, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov edx, 0x30
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp fcn.14000500c
Function at 0x140032030
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [rcx]
mov qword [rcx], 0
mov ecx, 0xffffffff
mov eax, ecx
lock xadd dword [r8 + 0x1c], eax
cmp eax, 1
jne 0x140032072
test r8, r8
je 0x140032072
lock xadd dword [0x140077b98], ecx
sub ecx, eax
jne 0x140032077
mov edx, 0x20
mov rcx, r8
add rsp, 0x28
jmp fcn.14000500c
add rsp, 0x28
ret
test ecx, ecx
jns 0x140032061
call fcn.14000ba60
int3

Function at 0x140036180
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rax, vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rcx], rax
cmp qword [rcx + 0x80], 0
je 0x1400361ce
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400361ce
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
sub rdx, rcx
sar rdx, 1
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp byte [rbx + 0x7c], 0
je 0x14003628a
cmp qword [rbx + 0x80], 0
je 0x140036227
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140036213
mov rdx, qword [rbx + 0x90]
mov rcx, qword [rbx + 0x88]
mov qword [r8], rcx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
sub rdx, rcx
sar rdx, 1
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, rbx
call fcn.14003a240
mov rcx, qword [rbx + 0x80]
call fcn.1400139d4
mov byte [rbx + 0x7c], 0
mov byte [rbx + 0x72], 0
lea r10, [rbx + 8]
mov qword [rbx + 0x18], r10
lea r8, [rbx + 0x10]
mov qword [rbx + 0x20], r8
lea r9, [rbx + 0x28]
mov qword [rbx + 0x38], r9
lea rcx, [rbx + 0x30]
mov qword [rbx + 0x40], rcx
lea rdx, [rbx + 0x48]
mov qword [rbx + 0x50], rdx
lea rax, [rbx + 0x4c]
mov qword [rbx + 0x58], rax
xor r11d, r11d
mov qword [r8], r11
mov qword [rcx], r11
mov dword [rax], r11d
mov qword [r10], r11
mov qword [r9], r11
mov dword [rdx], r11d
mov qword [rbx + 0x80], r11
mov rax, qword [0x140078e78]
mov qword [rbx + 0x74], rax
mov qword [rbx + 0x68], r11
lea rax, vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbx], rax
mov rbx, qword [rbx + 0x60]
test rbx, rbx
je 0x1400362de
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400362cc
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14002d15d.0]
mov rcx, rax
test rax, rax
je 0x1400362cc
mov rdx, qword [rax]
mov rax, qword [rdx]
mov edx, 1
call qword [case.0x14002d15d.0]
mov edx, 0x10
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14000500c
add rsp, 0x20
pop rbx
ret