joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400330a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140038100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400380e0]
test rbx, rbx
je 0x1400330f4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400330eb
test r12, r12
je 0x1400330eb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400330d0
lea rcx, [0x140038100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140033320
Capabilities:
Parse pe header

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

Function at 0x140033340
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 0x140033385
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14003337c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140033387
add rax, 0x28
cmp rax, r9
jne 0x140033368
xor eax, eax
ret

Function at 0x140033430
Capabilities:
Enumerate pe sections

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

Function at 0x140033590
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140035340]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400335ff
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400335ff
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x1400335fd
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 0x1400335f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140033608
add rax, 0x28
cmp rax, r9
jne 0x1400335e0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140033620
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140035340]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140033698
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140033698
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140033698
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140033698
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14003368c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x1400336a0
add rdx, 0x28
cmp rdx, r10
jne 0x140033678
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x1400336b0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1400336be
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140033695
test r8d, r8d
jg 0x1400336a8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x14067b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14067b1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14067b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14067b06f
add dl, dl
jne 0x14067b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14067b0f6
xor eax, eax
add dl, dl
jne 0x14067b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14067b1ad
add dl, dl
jne 0x14067b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14067b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14067b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14067b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14067b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14067b07e
mov eax, 1
add dl, dl
jne 0x14067b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14067b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14067b0fb
sub eax, ebx
mov ebx, 1
jne 0x14067b14c
mov ecx, 1
add dl, dl
jne 0x14067b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14067b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14067b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14067b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14067b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14067b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14067b15d
cmp eax, 0x7d00
jae 0x14067b19b
cmp eax, 0x500
jb 0x14067b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14067b07e
cmp eax, 0x7f
ja 0x14067b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14067b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14067b1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14067b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x141b28810
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x141b2881d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x141b2882d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x141b28815
lea eax, [rcx + 1]
jmp 0x141b2883b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x141b2884e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x141b28834
sub eax, 3
jb 0x141b2886e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x141b288bd
sar eax, 1
movsxd rbp, eax
jb 0x141b288a4
jmp 0x141b2887c
add ebx, ebx
jne 0x141b2887a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141b288a4
inc ecx
add ebx, ebx
jne 0x141b2888a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141b288a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x141b2889d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x141b2888c
add ecx, 2
jmp 0x141b288a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.141b287d2
jmp 0x141b2881d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x16f600
mov dl, 0x21
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x141b28909
cmp rsi, rcx
jae 0x141b28911
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x141b288f0
cmp al, 0x8f
ja 0x141b288f0
cmp byte [rsi - 2], 0xf
je 0x141b288f6
sub al, 0xe8
cmp al, 1
ja 0x141b288da
cmp rsi, rcx
jae 0x141b28911
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x141b288e0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x141b28911
lodsb al, byte [rsi]
jmp 0x141b288f0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1b24000]
mov eax, dword [rdi]
or eax, eax
je 0x141b2897a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1b3ccdc]
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 0x141b2891e
jns 0x141b28953
movzx rdx, word [rdi]
add rdi, 2
jmp 0x141b2895d
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 0x141b28974
mov qword [rbx], rax
add rbx, 8
jmp 0x141b2893e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 0x141b289d2
sub rsp, 0xffffffffffffff80
jmp section.UPX0
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14002bf50]
mov dword [rax], 1
mov rax, qword [0x14002bf60]
mov dword [rax], 1
mov rax, qword [0x14002bf70]
mov dword [rax], 1
mov rax, qword [0x14002bf40]
mov dword [rax], 1
mov rax, qword [0x14002bdc0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140003d40
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm6
lea rbx, [0x14002957a]
lea rax, [0x14003e0e0]
mov rcx, qword [0x1400310a0]
movq xmm6, rax
movq xmm0, rbx
punpcklqdq xmm6, xmm0
test rcx, rcx
je 0x140003daf
call qword [sym.imp.KERNEL32.dll_GetProcessId]
xor ecx, ecx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
je 0x140003e18
mov rcx, qword [0x1400310a0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400310a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14003e0c0], 0
jne 0x140003dd0
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
ret
mov eax, 0x414
mov dword [rsp + 0x48], 3
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 0
mov word [rsp + 0x60], ax
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], rbx
movaps xmmword [rsp + 0x50], xmm6
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
jmp 0x140003db8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x400
xor edx, edx
mov qword [rsp + 0x30], 0
mov r8d, eax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Failed_to_send_CTRL_C_to_child_process.
call sub.msvcrt.dll_puts
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_puts
jmp 0x140003d90
Function at 0x1400136a0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
movabs rdx, 0x27d4eb2f165667c5
mov r10, rcx
lea rcx, [rcx + 0x28]
mov r9d, dword [r10 + 0x48]
mov r8, qword [r10 + 0x18]
mov r11, qword [r10]
add r9, rcx
add rdx, r8
cmp r11, 0x1f
jbe 0x14001377d
mov rbx, qword [r10 + 0x10]
mov rdx, qword [r10 + 8]
movabs rdi, 0xc2b2ae3d27d4eb4f
mov rax, qword [r10 + 0x20]
mov rsi, rbx
imul rbx, rdi
mov rbp, rdx
rol rdx, 1
rol rsi, 7
imul rbp, rdi
add rdx, rsi
mov rsi, r8
rol rsi, 0xc
imul r8, rdi
add rdx, rsi
mov rsi, rax
rol rbp, 0x1f
rol rsi, 0x12
imul rax, rdi
add rdx, rsi
rol r8, 0x1f
movabs rsi, 0x9e3779b185ebca87
imul rbp, rsi
imul r8, rsi
xor rdx, rbp
mov rbp, rbx
movabs rbx, 0x85ebca77c2b2ae63
imul rdx, rsi
rol rbp, 0x1f
imul rbp, rsi
add rdx, rbx
xor rdx, rbp
imul rdx, rsi
add rdx, rbx
xor r8, rdx
mov rdx, rax
imul r8, rsi
rol rdx, 0x1f
imul rdx, rsi
lea rax, [r8 + rbx]
xor rdx, rax
imul rdx, rsi
add rdx, rbx
lea rsi, [r10 + 0x30]
add rdx, r11
cmp r9, rsi
jb 0x1400137e9
movabs rbx, 0xc2b2ae3d27d4eb4f
mov rcx, rsi
movabs r8, 0x9e3779b185ebca87
movabs r11, 0x85ebca77c2b2ae63
nop word [rax + rax]
mov rax, qword [rcx - 8]
add rcx, 8
imul rax, rbx
rol rax, 0x1f
imul rax, r8
xor rax, rdx
rol rax, 0x1b
imul rax, r8
lea rdx, [rax + r11]
cmp r9, rcx
jae 0x1400137b0
mov rax, r9
sub rax, r10
lea rcx, [rax - 0x30]
and rcx, 0xfffffffffffffff8
add rcx, rsi
lea r8, [rcx + 4]
cmp r9, r8
jb 0x140013827
mov eax, dword [rcx]
movabs rcx, 0x9e3779b185ebca87
imul rax, rcx
mov rcx, r8
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
rol rax, 0x17
imul rax, rdx
movabs rdx, 0x165667b19e3779f9
add rdx, rax
cmp r9, rcx
jbe 0x14001385e
movabs r10, 0x27d4eb2f165667c5
movabs r8, 0x9e3779b185ebca87
movzx eax, byte [rcx]
add rcx, 1
imul rax, r10
xor rax, rdx
rol rax, 0xb
imul rax, r8
mov rdx, rax
cmp r9, rcx
jne 0x140013840
mov rax, rdx
shr rax, 0x21
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
imul rax, rdx
mov rdx, rax
shr rdx, 0x1d
xor rax, rdx
movabs rdx, 0x165667b19e3779f9
imul rax, rdx
mov rdx, rax
shr rdx, 0x20
xor rax, rdx
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14001d7e0
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov r13, qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r14, qword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
movdqa xmm6, xmmword [0x14002b6e0]
lea r12, [0x1400400f0]
mov rdi, rdx
mov rdx, qword [0x140040100]
mov rbp, rcx
nop
mov r8, qword [0x1400400f8]
sub r8, rdx
jne 0x14001d927
mov rcx, qword [0x140040120]
mov rdx, qword [0x140040118]
cmp rcx, rdx
setb al
or sil, al
jne 0x14001d978
cmp rcx, rdx
je 0x14001d86c
mov r8d, 0x12a
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.input.size__input.pos
call qword [sym.imp.msvcrt.dll__assert]
xor edx, edx
mov rbx, qword [0x1400400e0]
mov rcx, qword [0x140040130]
xor r8d, r8d
mov r9d, 1
call r13
mov rdx, qword [0x140040100]
mov eax, eax
sub rbx, rax
je 0x14001d820
mov r8d, ebx
cmp rbx, 0x20002
jbe 0x14001d8ad
mov r8d, 0x20003
mov ebx, 0x20003
mov qword [rsp + 0x20], 0
mov rdx, qword [0x140040110]
lea r9, [rsp + 0x3c]
mov rcx, qword [0x140040130]
call r14
test eax, eax
je 0x14001d9f8
mov eax, dword [rsp + 0x3c]
cmp rbx, rax
je 0x14001d8f7
mov r8d, 0xeb
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.read_size__size
call qword [sym.imp.msvcrt.dll__assert]
mov rdx, qword [0x140040100]
mov r8, qword [0x1400400f8]
mov qword [0x140040120], 0
add qword [0x1400310a8], rbx
mov qword [0x140040118], rbx
sub r8, rdx
je 0x14001d830
cmp r8, rdi
mov rbx, r8
mov rcx, rbp
cmova rbx, rdi
add rdx, qword [r12]
mov r8, rbx
add rbp, rbx
call sub.msvcrt.dll_memcpy
mov rdx, qword [0x140040100]
add rdx, rbx
mov qword [0x140040100], rdx
sub rdi, rbx
jne 0x14001d820
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x140040128]
lea r8, [0x140040110]
mov rdx, r12
movups xmmword [0x1400400f8], xmm6
call fcn.14001ca20
mov r8, rax
mov rax, qword [0x140040100]
cmp qword [0x1400400f8], rax
sete sil
cmp r8, 0xffffffffffffff88
ja 0x14001d9d0
mov qword [0x1400400f8], rax
xor edx, edx
mov qword [0x140040100], 0
jmp 0x14001d820
mov r8d, 0x120
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str._ZSTD_isError_ret_
call qword [sym.imp.msvcrt.dll__assert]
mov rax, qword [0x140040100]
jmp 0x14001d9b0
mov r8d, 0xea
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.bool_res
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x14001d8d4
Function at 0x14001e830
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc30
xor r9d, r9d
mov word [rcx], r9w
movzx eax, word [rdx]
mov rbx, rcx
mov rsi, r8
test ax, ax
je 0x14001e940
lea rdi, [rdx + 2]
lea rbp, str.TEMP
xor edx, edx
lea r12, str.PROGRAM
lea r13, [0x14002a838]
jmp 0x14001e8a0
test rdx, rdx
je 0x14001e920
mov word [rdx], ax
add rdx, 2
movzx eax, word [rdi]
add rdi, 2
test ax, ax
je 0x14001e940
cmp ax, 0x25
jne 0x14001e880
test rdx, rdx
je 0x14001e950
xor ecx, ecx
lea r14, [rsp + 0x430]
mov word [rdx], cx
mov rdx, rbp
mov rcx, r14
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x14001ea08
mov rdx, r12
mov rcx, r14
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x14001ea18
mov rdx, r13
mov rcx, r14
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x14001e9d0
lea rdx, str.TIME
mov rcx, r14
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x14001e970
xor eax, eax
add rsp, 0xc30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
test rsi, rsi
je 0x14001e908
mov word [rbx], ax
movzx eax, word [rdi]
sub rsi, 1
add rbx, 2
add rdi, 2
test ax, ax
jne 0x14001e8a0
xor eax, eax
mov word [rbx], ax
mov eax, 1
jmp 0x14001e90a
xor r8d, r8d
lea rdx, [rsp + 0x430]
mov word [rsp + 0x430], r8w
jmp 0x14001e890
lea rcx, [rsp + 0x28]
lea r14, [rsp + 0x30]
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, qword [rsp + 0x28]
mov rcx, r14
lea r8, str._lld
mov edx, 0x400
call fcn.1400023a0
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call fcn.14001e730
jmp 0x14001e9c0
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14001e9b8
xor edx, edx
jmp 0x14001e890
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r14, [rsp + 0x30]
mov edx, pe_nt_image_headers64
lea r8, [0x14002a840]
mov rcx, r14
mov r9d, eax
call fcn.1400023a0
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call fcn.14001e730
jmp 0x14001e9c0
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x14001e9c0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp word [rbx], 0
mov rdx, rsi
mov rcx, qword [rax]
mov rax, rbx
je 0x14001ea4e
nop dword [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14001ea40
movzx r8d, word [rcx]
test r8w, r8w
je 0x14001ea83
test rdx, rdx
jne 0x14001ea69
jmp 0x14001ea8d
test rdx, rdx
je 0x1400271aa
add rcx, 2
mov word [rax], r8w
add rax, 2
sub rdx, 1
movzx r8d, word [rcx]
test r8w, r8w
jne 0x14001ea60
xor edx, edx
mov word [rax], dx
jmp 0x14001e9c0
jmp 0x1400271aa
Function at 0x14001fc30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140026e40
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140026e40
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140020862
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140040208]
test eax, eax
je 0x1400208fa
lea rax, [0x1400401e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140040210]
mov qword [rbp - 8], rax
jmp 0x1400208de
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400208d2
cmp qword [rbp - 0x10], 0
je 0x1400208d2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140020898
lea rax, [0x1400401e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400208fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140020a00
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140020a28
mov eax, 0
jmp 0x140020a76
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140020a51
mov eax, 0
jmp 0x140020a76
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140020a71
mov eax, 0
jmp 0x140020a76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140020a7c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140020afa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140020af1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140020af1
mov rax, qword [rbp - 8]
jmp 0x140020b0f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140020ac4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
push rsi
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
xor r9, r9
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021