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

Disassembly:
mov rax, qword [0x14000b840]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140004440
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140004448
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140004440
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140004460
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000b840]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140004480
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140004488
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140004480
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400044c8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400044bf
test rcx, rcx
je 0x140004480
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400044b0
xor eax, eax
ret

Function at 0x1400044d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b840]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400044f0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400044f8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140004510
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14000b840]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140004530
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140004538
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140004530
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140004530
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140004574
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140004588
add rax, 0x28
cmp r9, rax
jne 0x140004560
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x1400045a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000b840]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400045c2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400045d0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400045c2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400045c2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400045c2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000461d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140004630
add rdx, 0x28
cmp r10, rdx
jne 0x140004608
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000463f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000464f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140004626
test ecx, ecx
jg 0x140004638
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001b18
Capabilities:
Parse pe header

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

Function at 0x2e5eeb0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x2e5eebd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x2e5eecd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x2e5eeb5
lea eax, [rcx + 1]
jmp 0x2e5eedb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x2e5eeee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x2e5eed4
sub eax, 3
jb 0x2e5ef0e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x2e5ef5d
sar eax, 1
movsxd rbp, eax
jb 0x2e5ef44
jmp 0x2e5ef1c
add ebx, ebx
jne 0x2e5ef1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x2e5ef44
inc ecx
add ebx, ebx
jne 0x2e5ef2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x2e5ef44
call r11
adc ecx, ecx
add ebx, ebx
jne 0x2e5ef3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x2e5ef2c
add ecx, 2
jmp 0x2e5ef49
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.02e5ee72
jmp 0x2e5eebd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2a35000]
mov eax, dword [rdi]
or eax, eax
je 0x2e5efb9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2a5f000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x2e5ef69
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x2e5efb3
mov qword [rbx], rax
add rbx, 8
jmp 0x2e5ef89
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x2e5effd
cmp al, 0xef
ja 0x2e5efe5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x2e5efc5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x2e5efd4
mov eax, dword [rdi]
add rdi, 4
jmp 0x2e5efd4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x2e5f051
sub rsp, 0xffffffffffffff80
jmp 0x465c20
Function at 0x140001f50
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov dword [rcx], 0x61707865
mov r8, rcx
mov dword [rcx + 4], 0x3320646e
mov dword [rcx + 8], 0x79622d32
mov dword [rcx + 0xc], 0x6b206574
movzx eax, byte [0x14006fcc2]
movzx edx, byte [0x14006fcc3]
shl edx, 8
or edx, eax
movzx eax, byte [0x14006fcc1]
shl edx, 8
or edx, eax
movzx eax, byte [0x14006fcc0]
shl edx, 8
or edx, eax
movzx eax, byte [0x14006fcc6]
mov dword [rcx + 0x10], edx
movzx ecx, byte [reloc.OLEAUT32.dll_SysStringLen]
shl ecx, 8
or ecx, eax
movzx eax, byte [reloc.OLEAUT32.dll_SysReAllocString]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcc4]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcca]
mov dword [r8 + 0x14], ecx
movzx ecx, byte [0x14006fccb]
shl ecx, 8
or ecx, eax
movzx eax, byte [reloc.OLEAUT32.dll_VariantCopy]
shl ecx, 8
or ecx, eax
movzx eax, byte [str._b_t_n_v_r]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcce]
mov dword [r8 + 0x18], ecx
movzx ecx, byte [0x14006fccf]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fccd]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fccc]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcd2]
mov dword [r8 + 0x1c], ecx
movzx ecx, byte [0x14006fcd3]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcd1]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcd0]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcd6]
mov dword [r8 + 0x20], ecx
movzx ecx, byte [0x14006fcd7]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcd5]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcd4]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcda]
mov dword [r8 + 0x24], ecx
movzx ecx, byte [0x14006fcdb]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcd9]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcd8]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcde]
mov dword [r8 + 0x28], ecx
movzx ecx, byte [0x14006fcdf]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcdd]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcdc]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcb2]
mov dword [r8 + 0x2c], ecx
movzx ecx, byte [0x14006fcb3]
shl ecx, 8
or ecx, eax
mov dword [r8 + 0x30], 1
movzx eax, byte [0x14006fcb1]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcb0]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcb6]
mov dword [r8 + 0x34], ecx
movzx ecx, byte [0x14006fcb7]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcb5]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcb4]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcba]
mov dword [r8 + 0x38], ecx
movzx ecx, byte [0x14006fcbb]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcb9]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006fcb8]
shl ecx, 8
or ecx, eax
mov dword [r8 + 0x3c], ecx
ret
Function at 0x14002559c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14001127a
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14001125d
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140011248

Function at 0x140031418
Capabilities:
Parse pe header

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

Function at 0x140042360
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004215c
Function at 0x140047bbc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140047bd2
mov al, 1
jmp 0x140047c32
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140047be3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140047c30
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004e888
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140047c30
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140047c30
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140047c30
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140047c32
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004dbd4
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 0x14004dc04
xor eax, eax
jmp 0x14004dcc7
mov rbp, rbx
cmp word [rax], si
je 0x14004dc29
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004dc10
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004dc0c
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.140046af0
movsxd r14, eax
test eax, eax
jne 0x14004dc67
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004dbfd
mov rcx, r14
call fcn.140047e58
mov rdi, rax
test rax, rax
jne 0x14004dc80
xor ecx, ecx
call fcn.140045d84
jmp 0x14004dc5c
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.140046af0
test eax, eax
jne 0x14004dcb1
mov rcx, rdi
call fcn.140045d84
jmp 0x14004dcbb
xor ecx, ecx
call fcn.140045d84
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 0x14004dce4
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 0x14004dd6b
mov rsi, rbx
cmp word [rax], bp
je 0x14004dd2a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004dd14
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004dd10
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140047e58
mov rdi, rax
test rax, rax
je 0x14004dd58
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140057450
mov rbp, rdi
xor ecx, ecx
call fcn.140045d84
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 0x140050ddc
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.140046790
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 0x140050e7d
cmp ebx, dword [rsp + 0x30]
je 0x140050e76
test esi, esi
je 0x140050e76
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140050e51
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140050e5e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140050e3b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140050e62
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140050e7f
mov eax, 1
jmp 0x140050e7f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400528c0
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, [0x140071f50]
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 0x140052917
cmp word [rdx], r13w
jne 0x140052917
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005291c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140052a41
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140052a62
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140052955
mov rdx, r9
mov word [rbx], cx
jmp 0x14005297c
cmp r9, r8
jae 0x14005298c
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 0x140052936
jmp 0x140052a41
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 0x140052a36
cmp dword [rsp + 0x80], esi
je 0x140052a36
lea r8, [0x140071f50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140052a0e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400529de
mov word [rbx], r13w
jmp 0x140052a3e
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 0x1400529eb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140052a3e
cmp word [rsp + 0x70], r13w
jne 0x140052a1b
cmp rbx, r14
je 0x1400529d8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400525f8
cmp word [rsp + 0x70], r13w
je 0x140052a41
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, [0x140071f50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140052a3b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140052a41
Function at 0x140055c3c
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.1400525f8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400525f8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140055d8c
cmp rax, 0xffffffffffffffff
je 0x140055d8c
xor edi, edi
test rbp, rbp
jle 0x140055d37
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004954c
mov rbx, rax
test rax, rax
jne 0x140055cc4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140055d2d
mov edx, 0x8000
mov ecx, r14d
call fcn.140043378
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.1400477bc
cmp eax, 0xffffffff
je 0x140055d0d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140055cd4
mov edx, r15d
mov ecx, r14d
call fcn.140043378
jmp 0x140055d2d
cmp byte [rsi + 0x38], dil
je 0x140055d24
cmp dword [rsi + 0x34], 5
jne 0x140055d24
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140055d2d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140045d84
jmp 0x140055da0
jns 0x140055da0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400525f8
cmp rax, 0xffffffffffffffff
jne 0x140055d58
cmp byte [rsi + 0x30], dil
je 0x140055da0
mov edi, dword [rsi + 0x2c]
jmp 0x140055da0
mov ecx, r14d
call fcn.14004e888
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140055da0
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 0x140055da0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140055d99
mov eax, dword [rsi + 0x2c]
jmp 0x140055d9e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400525f8
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 0x140057130
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140057158
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140057158
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov edx, 0x9618d38e
sbb byte es:[rcx + 0x29afe15e], bh
invalid
Function at 0x140008010
Capabilities:
Get thread local storage value

Disassembly:
mov r10, rcx
test rcx, rcx
je 0x140008041
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140008020
mov ecx, 1
mov r9d, r8d
sub ecx, edx
add eax, ecx
mov rcx, r10
mov r8d, eax
jmp 0x140008050
mov ecx, r8d
jmp fcn.140012810
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov ebp, r8d
test r8d, r8d
mov edi, r9d
mov esi, edx
mov rbx, rcx
cmovs ebp, r15d
call fcn.140012630
mov edx, edi
mov ecx, ebp
mov r14d, eax
call fcn.1400126d0
mov rdi, rax
test r14d, r14d
je 0x1400080a1
mov ecx, r14d
call fcn.140012850
mov rbx, rax
test rbx, rbx
je 0x1400080e7
cmp esi, 1
jle 0x1400080c1
nop dword [rax + rax]
cmp word [rbx], r15w
je 0x1400080e7
dec esi
add rbx, 2
cmp esi, 1
jg 0x1400080b0
movzx eax, word [rbx]
test ax, ax
je 0x1400080e7
sub rbx, rdi
nop dword [rax]
test ebp, ebp
je 0x1400080e7
mov word [rdi], ax
movzx eax, word [rbx + rdi + 2]
add rdi, 2
dec ebp
test ax, ax
jne 0x1400080d0
mov ecx, ebp
call fcn.140012900
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov word [rdi], r15w
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140008110
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, pe_nt_image_headers64
mov ecx, esi
call fcn.1400126d0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14001671c
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x140008140
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140012900
Function at 0x14000d9c4
Capabilities:
Get common file path

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 edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.1400126d0
mov ecx, ebx
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea rcx, str.Kernel32.DLL
mov esi, eax
call qword [sym.imp.KERNEL32.DLL_LoadLibraryW]
xor r14d, r14d
mov rbp, rax
test rax, rax
je 0x14000da3e
lea rdx, str.GetLongPathNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
test rax, rax
je 0x14000da35
mov r8d, ebx
mov rdx, rdi
mov rcx, rdi
call rax
mov esi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
sub ebx, esi
mov ecx, ebx
call fcn.140012900
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd rax, esi
mov rsi, qword [rsp + 0x40]
mov word [rdi + rax*2], r14w
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000da6c
Capabilities:
Delete file

Disassembly:
xor edx, edx
jmp 0x14000da74
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000da9f
test dl, 2
je 0x14000da92
mov edx, 0x80
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
cdqe
jmp 0x14000daa1
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14000da74
Capabilities:
Delete file
Set file attributes

Disassembly:
xor edx, edx
jmp 0x14000da74
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000da9f
test dl, 2
je 0x14000da92
mov edx, 0x80
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
cdqe
jmp 0x14000daa1
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14000daa8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.1400126d0
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
xor ebp, ebp
movsxd rbx, eax
test eax, eax
je 0x14000daf1
lea ecx, [rbp + 0x5c]
cmp word [rdi + rbx*2 - 2], cx
je 0x14000daf1
mov word [rdi + rbx*2], cx
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.140012900
mov rsi, qword [rsp + 0x40]
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov word [rdi + rax*2], bp
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000dc88
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14000dc9b
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
cdqe
jmp 0x14000dc9d
xor eax, eax
add rsp, 0x28
ret