joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400db000
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rdx]
add dword [rcx], 2
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call r15
lea rdx, [0x1401121b9]
lea r8, str.BracedRangeExpr
mov rcx, rax
call fcn.1400d07c0
mov r14, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x20]
mov rdi, qword [rdi + 0x28]
mov ecx, 2
call r15
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x1400db08b
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, 2
call r15
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x1400db070
mov byte [rsi + 4], 0
test r14, r14
je 0x1400db0a1
mov rcx, r14
mov rdx, rsi
call fcn.1400d4930
jmp 0x1400db0c6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
mov rcx, rsi
mov rdx, rbx
call fcn.1400d61c0
mov rcx, rsi
mov rdx, rdi
call fcn.1400d61c0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00437df0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00437e00]
mov dword [rax], 1
mov rax, qword [0x00437e10]
mov dword [rax], 1
mov rax, qword [0x00437de0]
mov dword [rax], 1
mov rax, qword [0x00437c60]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00437dd0]
mov dword [0x0043d008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00437d20]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00437c10]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x403be9
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x48], rax
lea rax, str.D:Nimlib_systemio.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.nimFrame_4
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x40], 8
lea rax, str.D:Nimlib_systemiterators.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x40], 9
lea rax, str.D:Nimlib_systemiterators.nim
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jge 0x403d38
mov qword [rbp - 0x40], 0x333
lea rax, str.D:Nimlib_systemio.nim
mov qword [rbp - 0x38], rax
cmp qword [rbp - 8], 0
js 0x403c9a
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jl 0x403cae
mov rax, qword [rbp + 0x28]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
mov rax, qword [rbp - 8]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x20]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rbx, qword [rax]
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r8d, 0
mov rdx, rbx
mov rcx, rax
call sym.writeWindows__systemZio_205
mov qword [rbp - 0x40], 0xb
lea rax, str.D:Nimlib_systemiterators.nim
mov qword [rbp - 0x38], rax
mov edx, 0
mov rax, qword [rbp - 8]
add rax, 1
jno 0x403d12
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x58]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x403d2b
call sym.raiseOverflow
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
jmp 0x403c68
nop
mov qword [rbp - 0x40], 0x339
lea rax, str.D:Nimlib_systemio.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x18], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rcx, [0x00433438]
call sym.fwrite
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x40], 0x33a
lea rax, str.D:Nimlib_systemio.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x1c], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x1c], eax
call sym.popFrame_4
nop
add rsp, 0x88
pop rbx
pop rbp
ret

Function at 0x405be5
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x405c15
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen
mov rdx, rax
jmp 0x405c1a
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x40e1c8
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x42eff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0043f8c4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x42f178
mov rax, qword [0x0043f8c8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x42f03c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x42f0c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x42f020
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x42f1ad
mov rax, qword [0x0043f8c8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0043f8c8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x42f190
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x42f0be
sub eax, 0x40
and eax, 0xffffffbf
jne 0x42f120
add dword [0x0043f8c4], 1
cmp edi, 8
jae 0x42f0f3
test dil, 4
jne 0x42f164
test edi, edi
je 0x42f0e8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x42f17f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x42f0e8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x42f10c
jmp 0x42f0e8
add rsi, qword [0x0043f8c8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x42f0be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x42f0e8
xor esi, esi
jmp 0x42f047
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x42f0e8
mov rax, qword [0x0043f8c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x42f900
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0043fba0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0043fb80]
test rbx, rbx
je 0x42f954
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x42f94b
test rsi, rsi
je 0x42f94b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x42f930
lea rcx, [0x0043fba0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x42fb90
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x42fba0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x42fbb0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x42fbf1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x42fbe8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x42fbf3
add rax, 0x28
cmp rax, r9
jne 0x42fbd4
xor eax, eax
ret

Function at 0x42fc90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00437c60]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x42fcfd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x42fcfd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x42fcfd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x42fcf4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x42fcff
add rax, 0x28
cmp rax, r9
jne 0x42fce0
xor eax, eax
add rsp, 0x28
ret

Function at 0x42fe00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00437c60]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x42fe20
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x42fe18
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x42fe7d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x42fe74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x42fe84
add rax, 0x28
cmp rax, r9
jne 0x42fe60
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x42fea0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00437c60]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x42ff0e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x42ff0e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x42ff0e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x42ff0e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x42ff05
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x42ff15
add rcx, 0x28
cmp rcx, rax
jne 0x42fef0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x42ff28
jmp 0x42ff0e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x42ff36
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x42ff0e
test r9d, r9d
jg 0x42ff20
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x4301d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001e5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ea6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ea6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.VCRUNTIME140.dll___std_terminate
jne 0x140001ea6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ea6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ea6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ea8
xor al, al
add rsp, 0x28
ret
Function at 0x1400cb81b
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
jmp 0x140120450
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x108]
lea rcx, [0x140309157]
call fcn.1400d07c6
mov eax, 4
imul rax, rax, 0
movsx ecx, byte [rbp + 0xe8]
mov rdx, qword [rbp + 0xe0]
mov eax, dword [rdx + rax]
xor eax, ecx
and eax, 0xff
cdqe
lea rcx, [0x14028f2c0]
mov edx, 4
imul rdx, rdx, 0
mov r8, qword [rbp + 0xe0]
mov edx, dword [r8 + rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0xe0]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0xe0]
mov ecx, dword [rdx + rcx]
and ecx, 0xff
mov rdx, qword [rbp + 0xe0]
add ecx, dword [rdx + rax]
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rbp + 0xe0]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rbp + 0xe0]
imul eax, dword [rcx + rax], 0x8088405
inc eax
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rbp + 0xe0]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 2
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rbp + 0xe0]
mov ecx, dword [rdx + rcx]
shr ecx, 0x18
mov rdx, qword [rbp + 0xe0]
mov eax, dword [rdx + rax]
xor eax, ecx
and eax, 0xff
mov eax, eax
lea rcx, [0x14028f2c0]
mov edx, 4
imul rdx, rdx, 2
mov r8, qword [rbp + 0xe0]
mov edx, dword [r8 + rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rbp + 0xe0]
mov dword [rdx + rcx], eax
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x1400cd0e4
Capabilities:
Get common file path

Disassembly:
jmp 0x14011efa0
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x1402eb038]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x140309157]
call fcn.1400d07c6
mov rax, qword [rbp + 0x180]
cmp qword [rax], 0
jne 0x14011f010
mov rax, qword [rbp + 0x180]
cmp dword [rax + 8], 0xffffffff
je 0x14011f01a
mov eax, 0x1000000
jmp 0x14011f143
mov rax, qword [rbp + 0x180]
add rax, 0x250
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov rax, qword [rbp + 0x180]
add rax, 0x250
mov rcx, rax
call fcn.1400cb5cd
mov rcx, qword [rbp + 0x180]
movzx eax, word [rcx + rax*2 + 0x24e]
mov word [rbp + 4], ax
movzx eax, word [rbp + 4]
cmp eax, 0x5c
je 0x14011f08b
movzx eax, word [rbp + 4]
cmp eax, 0x2f
je 0x14011f08b
mov rax, qword [rbp + 0x180]
add rax, 0x250
lea rdx, [0x14027bdc4]
mov rcx, rax
call fcn.1400cceff
cmp dword [rbp + 0x198], 1
jne 0x14011f0e4
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xffffffff
je 0x14011f0c1
mov dword [rbp + 0x154], 1
jmp 0x14011f0cb
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
mov byte [rbp + 0x44], al
movzx eax, byte [rbp + 0x44]
test eax, eax
jne 0x14011f0e4
mov eax, 0x2000000
jmp 0x14011f143
lea r9, [rbp + 0x64]
mov r8d, dword [rbp + 0x198]
mov edx, dword [rbp + 0x190]
mov rcx, qword [rbp + 0x188]
call fcn.1400cd14d
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x14011f117
mov eax, dword [rbp + 0x64]
jmp 0x14011f143
mov rcx, qword [rbp + 0x88]
call fcn.1400cdc9c
mov rcx, qword [rbp + 0x180]
mov qword [rcx], rax
mov rax, qword [rbp + 0x180]
cmp qword [rax], 0
jne 0x14011f141
mov eax, 0x200
jmp 0x14011f143
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140290be0]
call fcn.1400cf82b
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.1400cda58
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x1400cd747
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401e96d0
mov rax, rcx
neg rcx
test rax, 7
je 0x1401e96ed
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401e9748
test al, 7
jne 0x1401e96e0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401e9701
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401e9772
test dh, dh
je 0x1401e976c
shr rdx, 0x10
test dl, dl
je 0x1401e9766
test dh, dh
je 0x1401e9760
shr rdx, 0x10
test dl, dl
je 0x1401e975a
test dh, dh
je 0x1401e9754
shr edx, 0x10
test dl, dl
je 0x1401e974e
test dh, dh
jne 0x1401e9701
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret
Function at 0x1400cdb34
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
jmp 0x14011d2b0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x768
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x1da
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x788]
mov rax, qword [0x1402eb038]
xor rax, rbp
mov qword [rbp + 0x738], rax
lea rcx, [0x140309157]
call fcn.1400d07c6
cmp qword [rbp + 0x760], 0
je 0x14011d327
mov rcx, qword [rbp + 0x760]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14011d327
xor edx, edx
mov rcx, qword [rbp + 0x760]
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov rax, qword [rbp + 0x768]
movzx eax, word [rax]
test eax, eax
jne 0x14011d33a
jmp 0x14011d4ab
mov rax, qword [rbp + 0x768]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax]
test eax, eax
je 0x14011d386
mov rax, qword [rbp + 0x28]
movzx eax, word [rax]
cmp eax, 0x2f
je 0x14011d370
mov rax, qword [rbp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x14011d378
mov rax, qword [rbp + 0x28]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x28]
add rax, 2
mov qword [rbp + 0x28], rax
jmp 0x14011d34d
mov rax, qword [rbp + 8]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x768]
cmp qword [rbp + 8], rax
je 0x14011d425
mov rax, qword [rbp + 0x768]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
sar rax, 1
shl rax, 1
mov r8, rax
mov rdx, qword [rbp + 0x768]
lea rcx, [rbp + 0x70]
call fcn.1400cda76
mov rax, qword [rbp + 0x768]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
sar rax, 1
shl rax, 1
mov qword [rbp + 0x708], rax
cmp qword [rbp + 0x708], 0x208
jae 0x14011d3f6
jmp 0x14011d3fb
call fcn.1400ceedf
xor eax, eax
mov rcx, qword [rbp + 0x708]
mov word [rbp + rcx + 0x70], ax
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp + 0x760]
call fcn.1400cdb34
mov rax, qword [rbp + 0x48]
add rax, 2
mov qword [rbp + 0x48], rax
mov eax, 2
imul rax, rax, 0
mov qword [rbp + 0x728], rax
cmp qword [rbp + 0x728], 0x208
jae 0x14011d444
jmp 0x14011d449
call fcn.1400ceedf
xor eax, eax
mov rcx, qword [rbp + 0x728]
mov word [rbp + rcx + 0x2a0], ax
cmp qword [rbp + 0x760], 0
je 0x14011d477
mov rdx, qword [rbp + 0x760]
lea rcx, [rbp + 0x2a0]
call fcn.1400ccd33
mov rdx, qword [rbp + 0x768]
lea rcx, [rbp + 0x2a0]
call fcn.1400cceff
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14011d4ab
xor edx, edx
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
lea rcx, [rbp - 0x20]
lea rdx, [0x140291260]
call fcn.1400cf82b
mov rcx, qword [rbp + 0x738]
xor rcx, rbp
call fcn.1400cda58
lea rsp, [rbp + 0x748]
pop rdi
pop rbp
ret
Function at 0x1400cdd14
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401a1b50
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401a14d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401a1b8f
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 [0x14030a020]
jmp 0x1401a1b99
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400cdf58
Capabilities:
Read file on windows

Disassembly:
jmp 0x1401294f0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x30]
mov rdi, rsp
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [0x1402eb038]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x140309157]
call fcn.1400d07c6
mov rax, qword [rbp + 0x168]
imul rax, qword [rbp + 0x170]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x178]
movzx eax, byte [rax]
test eax, eax
je 0x1401295b4
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 4]
mov rdx, qword [rbp + 0x160]
mov rax, qword [rbp + 0x178]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jne 0x1401295a3
mov rax, qword [rbp + 0x178]
mov byte [rax + 0x10], 1
mov eax, dword [rbp + 0x24]
xor edx, edx
div qword [rbp + 0x168]
jmp 0x140129639
mov rax, qword [rbp + 0x178]
mov eax, dword [rax + 0x2c]
add eax, dword [rbp + 4]
mov rcx, qword [rbp + 0x178]
cmp eax, dword [rcx + 0x28]
jbe 0x1401295e6
mov rax, qword [rbp + 0x178]
mov rcx, qword [rbp + 0x178]
mov ecx, dword [rcx + 0x2c]
mov eax, dword [rax + 0x28]
sub eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
mov rcx, qword [rbp + 0x178]
mov ecx, dword [rcx + 0x2c]
mov rdx, qword [rbp + 0x178]
add rcx, qword [rdx + 0x20]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rbp + 0x160]
call fcn.1400cda76
mov eax, dword [rbp + 4]
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x178]
mov eax, dword [rax + 0x2c]
add eax, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x178]
mov dword [rcx + 0x2c], eax
mov eax, dword [rbp + 0x64]
xor edx, edx
div qword [rbp + 0x168]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1402901c0]
call fcn.1400cf82b
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.1400cda58
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x1400cdfa3
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401a1a80
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401a1450
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401a1ac1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14030a020]
jmp 0x1401a1ac7
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
add rsp, 0x48
ret