joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a9fc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
mov rbx, rcx
mov r11d, edx
and r11d, 7
je 0x1400aa04f
cmp edx, r11d
jge 0x1400aa03e
mov r8d, dword [rcx + 0x18]
mov eax, 1
mov ecx, edx
mov r9d, edx
shl eax, cl
cmp r8d, eax
jae 0x1400aa034
mov r10, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r10
jb 0x1400a9fff
xor cl, cl
jmp 0x1400aa008
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
movzx eax, cl
lea edx, [r9 + 8]
mov ecx, r9d
mov dword [rbx + 0x10], edx
shl eax, cl
or r8d, eax
mov dword [rbx + 0x18], r8d
cmp edx, 0x18
jg 0x1400aa03e
mov ecx, edx
mov eax, 1
shl eax, cl
mov r9d, edx
cmp r8d, eax
jb 0x1400a9ff3
mov rax, qword [rbx + 8]
mov edx, r9d
mov qword [rbx], rax
mov eax, dword [rbx + 0x18]
mov ecx, r11d
shr eax, cl
sub edx, r11d
mov dword [rbx + 0x18], eax
mov dword [rbx + 0x10], edx
xor r8d, r8d
mov r9d, edx
test edx, edx
jle 0x1400aa092
mov eax, dword [rbx + 0x18]
lea rcx, [rsp + 0x30]
movzx r10d, al
nop word [rax + rax]
shr eax, 8
lea edx, [r9 - 8]
mov byte [rcx], r10b
lea rcx, [rcx + 1]
inc r8d
mov dword [rbx + 0x18], eax
mov r9d, edx
movzx r10d, al
test edx, edx
jg 0x1400aa070
mov dword [rbx + 0x10], edx
jns 0x1400aa0b8
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x1400aa0e7
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x1400aa0d1
xor dl, dl
jmp 0x1400aa0da
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x1400aa0c8
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x1400aa094
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x1400aa151
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x20]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x30]
jbe 0x1400aa16b
mov rcx, rbx
call fcn.1400a93d0
test eax, eax
je 0x1400aa144
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x20]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x20], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1400b4960
Capabilities:
Parse pe header

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

Function at 0x1400b52b0
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.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400b52ea
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400b52ef
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.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400b5338
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400b9a20]
cmp byte [rcx + rax], 0
je 0x1400b5338
dec r8
sub rdx, 1
jne 0x1400b531e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x180002c00
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x60]
mov r10, qword [rax + 0x18]
add r10, 0x10
mov eax, dword [0x180020a8c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a90], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a78]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a74], 0xa
setl r9b
or r9b, al
mov eax, dword [0x180020a94]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a98], 0xa
setl r14b
or r14b, al
lea rax, [rcx - 1]
mov r15, r10
test r8b, r8b
je 0x180002d30
mov r15, qword [r15]
cmp r15, r10
je 0x180002d52
mov rdi, rax
test r9b, r9b
je 0x180002d40
nop word cs:[rax + rax]
nop
cmp byte [rdi + 1], 0
lea rdi, [rdi + 1]
jne 0x180002cb0
test r14b, r14b
je 0x180002d50
sub rdi, rcx
je 0x180002d18
mov r12, qword [r15 + 0x60]
xor edx, edx
nop
movzx esi, word [r12 + rdx*2]
lea ebx, [rsi - 0x41]
lea ebp, [rsi + 0x20]
cmp bx, 0x1a
cmovae ebp, esi
movsx ebx, byte [rcx + rdx]
lea r13d, [rbx - 0x41]
lea r11d, [rbx + 0x20]
cmp r13b, 0x1a
cmovae r11d, ebx
sub ebp, r11d
test esi, esi
je 0x180002d10
test ebp, ebp
jne 0x180002d10
add rdx, 1
cmp rdi, rdx
jne 0x180002cd0
jmp 0x180002d18
test ebp, ebp
jne 0x180002c84
mov rax, qword [r15 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002d30
jmp 0x180002d40
jmp 0x180002d50
xor eax, eax
jmp 0x180002d1c
Function at 0x140f89724
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f8972e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f89757
pop rbp
sub rbp, 0x33
sub rbp, 0xf89724
sub rsp, 0x20
in eax, dx
and al, 0x97
clc
add byte [rax - 0x7f], cl
in al, dx
and byte [rax], al
add byte [rax], al
jmp 0x140f89776
mov rax, 0xf89724
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xfffffffff797733a
xor byte [rax], dl
inc rax
dec rcx
leave
jne 0x140f89795
jmp 0x140f897ac
jb 0x140f89761
sal dword [rcx + 0x3a3a06b3], cl
cmp dh, byte [rdx - 0x45]
sti
xor bh, byte [rbx]
cmp bh, byte [rdx]
jb 0x140f897f9
sal dword [rdx - 3], cl
cli
xor bh, byte [rdx]
cmp bh, byte [rdx]
jb 0x140f897c5
cmp dh, byte [rdx - 3]
clc
adc bh, byte [rdx]
cmp bh, byte [rdx]
jb 0x140f8979c
fdiv dword [rdx + 0x3b]
sti
mov cl, 0xbb
cmp bh, byte ss:[rdx]
cmp dh, byte [rdx + 0x3b]
shr byte [rdx + 0x6a], cl
jb 0x140f89762
push rcx
adc byte [rdx], bh
cmp bh, byte [rdx]
cmp bh, byte [rdx]
jb 0x140f8976d
and al, 0x16
hlt
sbb dl, bl
cmp bh, byte [rdx]
cmp bh, byte [rdx]
sar byte [rdi], cl
cmp bh, byte [rdx]
cmp dl, bl
sub al, 0x3a
cmp bh, byte [rdx]
sti
sar byte [rax], cl
or ebp, dword [rbx]
jb 0x140f897cb
sti
cmp bh, byte ds:[rdx]
cmp dh, byte [rdx - 0x3b]
xor eax, 0xc5c5d4bf
vpunpckldq xmm4, xmm0, xmmword [rax + 0x68]
push 0x72
invalid
Function at 0x14000b840
Capabilities:
Get process image filename

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x14000f008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rcx, qword [0x14000f628]
lea rdx, str.NtGetNextProcess
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov rbx, rax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov edx, 0x2000000
mov qword [rsp + 0x20], rax
call rbx
test eax, eax
jne 0x14000b90a
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x14000b8ce
inc rax
mov rdx, rax
lea rcx, str.OneDrive.exe
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14000b904
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x2000000
call rbx
test eax, eax
je 0x14000b8a0
jmp 0x14000b90a
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test rbx, rbx
jne 0x14000b92c
lea rdx, str.Unable_to_find_OneDrive.exe_process
call fcn.14000ba20
lea eax, [rbx - 1]
jmp 0x14000b995
lea rdx, str.Got_handle_of_OneDrive_process
call fcn.14000ba20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessId]
test eax, eax
jne 0x14000b95f
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Unable_to_find_OneDrive.exe_process_id_n
call fcn.14000ba20
mov eax, 0xffffffff
jmp 0x14000b995
test eax, eax
lea rcx, str.___Process_found_at_pid_
lea rdx, str.process_not_found._pid_
mov r8d, eax
cmovg rdx, rcx
lea rcx, str._s_d_n
call fcn.140001030
mov rcx, rbx
call fcn.140001090
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000bc40
add rsp, 0x160
pop rbx
ret

Function at 0x14000c514
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14005ac30
Function at 0x140003fb0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140003a90
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140003fef
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1400402e0]
jmp 0x140003ff9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400206d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140023f20
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002f90
lea rcx, [rsp + 0x40]
call fcn.140023ee0
movzx eax, al
test eax, eax
jne 0x140023f68
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140023e10
mov rax, qword [rsp + 0x70]
jmp 0x140024139
lea rcx, [rsp + 0x40]
call fcn.140003010
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140023e90
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140003010
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.140023ce0
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14002400e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140023e10
mov rax, qword [rsp + 0x80]
jmp 0x140024139
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14000edf0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002f90
lea rcx, [rsp + 0x48]
call fcn.140002fd0
movzx eax, al
test eax, eax
jne 0x140024075
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140002fb0
lea rcx, [rsp + 0x40]
call fcn.140023e10
mov rax, qword [rsp + 0x88]
jmp 0x140024139
lea rcx, [rsp + 0x48]
call fcn.140003010
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140003010
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.140023ce0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14002410b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140002fb0
lea rcx, [rsp + 0x40]
call fcn.140023e10
mov rax, qword [rsp + 0xa0]
jmp 0x140024139
lea rcx, [rsp + 0x48]
call fcn.140003540
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140002fb0
lea rcx, [rsp + 0x40]
call fcn.140023e10
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x140030160
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.140021750
lea rcx, [rsp + 0x48]
call fcn.140021750
call fcn.140021a00
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140020c40
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400301cf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140021810
lea rcx, [rsp + 0x78]
call fcn.140021810
mov eax, dword [rsp + 0x24]
jmp 0x140030260
call fcn.140021a00
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140020c40
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140030216
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140021810
lea rcx, [rsp + 0x78]
call fcn.140021810
mov eax, dword [rsp + 0x2c]
jmp 0x140030260
lea rcx, [rsp + 0x48]
call fcn.140021d60
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.140021d60
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.140021810
lea rcx, [rsp + 0x78]
call fcn.140021810
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140039080
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14003e550
sub rsp, rax
mov rax, qword [0x140054008]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140055cb0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140039272
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1400391c6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400391c6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1400391ab
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140039148
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140039232
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140039291
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14003926d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140039291
jmp 0x14003911e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140001290
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400392b0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14003e550
sub rsp, rax
mov rax, qword [0x140054008]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140055cb0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400394bd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140039409
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140039409
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1400393e9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140039378
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14003947d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400394dc
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1400394b8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400394dc
jmp 0x14003934e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140001290
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1800021b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
movsxd rax, dword [rcx + 0x3c]
mov ebp, dword [0x180020a84]
lea r11d, [rbp - 1]
imul r11d, ebp
cmp dword [rcx + rax + 0x8c], 0
mov r8d, dword [0x180020a88]
je 0x180002232
mov eax, dword [rcx + rax + 0x88]
cmp r8d, 0xa
jl 0x1800021f2
mov ebp, r11d
and ebp, 1
je 0x1800021f2
jmp 0x1800021f0
cmp dword [rcx + rax + 0x14], 0
je 0x180002232
mov r9d, dword [rcx + rax + 0x18]
test r9d, r9d
je 0x180002232
mov r10d, dword [rcx + rax + 0x1c]
cmp dword [0x180020a8c], 0xa
jl 0x180002252
mov esi, dword [0x180020a90]
lea edi, [rsi - 1]
imul edi, esi
and edi, 1
je 0x180002252
nop word cs:[rax + rax]
nop dword [rax]
jmp 0x180002230
xor ecx, ecx
cmp r8d, 0xa
jl 0x1800022bf
mov eax, r11d
and eax, 1
je 0x1800022bf
nop word cs:[rax + rax]
jmp 0x180002250
add r10, rcx
mov r15d, dword [rcx + rax + 0x20]
mov r14d, dword [rcx + rax + 0x24]
add r15, rcx
add r14, rcx
xor edi, edi
nop word [rax + rax]
mov esi, dword [r15]
add rsi, rcx
xor eax, eax
nop dword [rax + rax]
movzx ebx, byte [rdx + rax]
movzx ebp, byte [rsi + rax]
test bl, bl
je 0x180002295
add rax, 1
cmp bl, bpl
je 0x180002280
cmp bl, bpl
je 0x1800022b4
add r14, 2
add r15, 4
add edi, 1
cmp edi, r9d
jne 0x180002270
xor ecx, ecx
cmp r8d, 0xa
jge 0x1800022c5
jmp 0x1800022d2
movzx eax, word [r14]
mov eax, dword [r10 + rax*4]
add rcx, rax
cmp r8d, 0xa
jl 0x1800022d2
and r11d, 1
je 0x1800022d2
nop dword [rax + rax]
jmp 0x1800022d0
mov rax, rcx
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1800022e0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002324
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002324
nop word cs:[rax + rax]
mov rax, qword gs:[0x60]
mov rax, qword gs:[0x60]
jmp 0x180002310
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x18000240c
mov rsi, r10
test r8b, r8b
je 0x180002420
nop word cs:[rax + rax]
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x1800023a0
test r9b, r9b
je 0x180002430
sub rsi, rcx
je 0x180002408
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002400
test ebp, ebp
jne 0x180002400
add rbx, 1
cmp rsi, rbx
jne 0x1800023c0
jmp 0x180002408
test ebp, ebp
jne 0x18000237e
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002420
jmp 0x180002430