joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140093490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400934a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140075b40
jmp 0x14000123c
mov rax, qword [0x1400934a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400934a0]
mov dword [rax], 1
mov rax, qword [0x1400934e0]
mov rdx, rax
mov rax, qword [0x1400934d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140097024], 1
mov rax, qword [0x1400934a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400934c0]
mov rdx, rax
mov rax, qword [0x1400934b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400934a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140093490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400933e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400933e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140074dc8
mov rax, qword [0x140093520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [str._q_t_]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400745c0
mov eax, dword [0x140097004]
lea rdx, [0x140097008]
mov ecx, eax
call fcn.14000147c
call fcn.140074357
mov rax, qword [0x140093410]
mov rax, qword [rax]
mov rdx, qword [0x140097010]
mov qword [rax], rdx
mov rcx, qword [0x140097010]
mov rdx, qword [0x140097008]
mov eax, dword [0x140097004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14009701c], eax
mov eax, dword [0x140097020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14009701c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140097024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14009701c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140093440]
mov dword [rax], 1
mov rax, qword [0x140093450]
mov dword [rax], 1
mov rax, qword [0x140093460]
mov dword [rax], 1
mov rax, qword [0x140093400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
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 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400745d0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140075930
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400752a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140097168]
test eax, eax
je 0x14007533a
lea rax, [0x140097140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140097170]
mov qword [rbp - 8], rax
jmp 0x14007531e
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 0x140075312
cmp qword [rbp - 0x10], 0
je 0x140075312
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 0x1400752d8
lea rax, [0x140097140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14007533b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140075440
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 0x140075468
mov eax, 0
jmp 0x1400754b6
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 0x140075491
mov eax, 0
jmp 0x1400754b6
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 0x1400754b1
mov eax, 0
jmp 0x1400754b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400754bc
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 0x14007553a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140075531
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 0x140075531
mov rax, qword [rbp - 8]
jmp 0x14007554f
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 0x140075504
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d8550
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d9630
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d8f52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d8fea
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fb110]
mov qword [rbp - 8], rax
jmp 0x2fc4d8fce
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 0x2fc4d8fc2
cmp qword [rbp - 0x10], 0
je 0x2fc4d8fc2
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 0x2fc4d8f88
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d8feb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d90f0
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 0x2fc4d9118
mov eax, 0
jmp 0x2fc4d9166
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 0x2fc4d9141
mov eax, 0
jmp 0x2fc4d9166
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 0x2fc4d9161
mov eax, 0
jmp 0x2fc4d9166
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d916c
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 0x2fc4d91ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d91e1
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 0x2fc4d91e1
mov rax, qword [rbp - 8]
jmp 0x2fc4d91ff
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 0x2fc4d91b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400151bc
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 0x14001523a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015231
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 0x140015231
mov rax, qword [rbp - 8]
jmp 0x14001524f
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 0x140015204
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140f818c8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f818d2
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 0x140f818fb
pop rbp
sub rbp, 0x33
sub rbp, 0xf818c8
sub rsp, 0x20
jmp 0x140f8191a
mov rax, 0xf818c8
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffb6d1d223
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f81939
jmp 0x140f81950
imul ebp, dword [rdx + 0x1faaa8ca], 0x23
and esp, dword [rbx]
imul esp, dword [rdx + 0x23222be2], 0x23
imul esp, dword [rdx], 0xffffffca
imul esp, esp, 0xffffffe3
and al, 0x23
and esp, dword [rbx]
imul esp, esp, 0xffffffe1
or esp, dword [rbx]
and esp, dword [rbx]
imul edx, esp, 0xffffffc1
imul esp, dword [rdx], 0xffffffe2
test al, 0xa2
invalid
Function at 0x140003f54
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140003d80
Function at 0x4039a0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rax, qword [rcx + 0xd0]
lea r15, [rsp + 0x20]
mov r13, rcx
test rax, rax
mov rdx, r15
cmove rax, rcx
mov rax, qword [rax + 8]
call qword [rax + 0x1e0]
test eax, eax
jne 0x403b41
mov rbp, qword [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.0040c350
test rbp, rbp
mov qword [0x0051d0c8], 0
jne 0x403a70
mov rcx, r13
call fcn.00403880
mov rcx, rax
mov qword [0x0051d0c8], rax
call fcn.0049c5a0
movzx edx, word [rsp + 0x26]
mov rcx, qword [0x0051d0d0]
mov qword [0x0051d0c8], 0
call sub.msvcrt.dll__chmod
mov eax, dword [0x0051d0b0]
test eax, eax
je 0x403a53
mov rax, qword [rsp + 0x48]
mov rcx, qword [0x0051d0d0]
mov rdx, r15
mov qword [rsp + 0x40], rax
call fcn.00404d10
mov qword [0x0051d0d0], 0
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 0x2000
xor esi, esi
mov r14d, 0x2000
call fcn.00499790
mov r12, rax
jmp 0x403aad
mov r8, rdi
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fwrite
cmp rdi, rax
jne 0x403b08
add rsi, rbx
cmp rbp, rsi
jbe 0x403af4
mov rbx, rbp
mov r8, r13
mov rcx, r12
sub rbx, rsi
cmp rbx, 0x2000
cmova rbx, r14
mov rdx, rbx
call fcn.0040c0d0
cmp rbx, rax
mov rdi, rax
jne 0x403b2b
mov r9, qword [0x0051d0c8]
test r9, r9
jne 0x403a90
mov rcx, r13
call fcn.00403880
mov r9, rax
mov qword [0x0051d0c8], rax
jmp 0x403a90
mov rcx, r12
call sub.msvcrt.dll_free
mov rcx, qword [0x0051d0c8]
jmp 0x403a0f
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
mov rdx, qword [0x0051d0d0]
lea rcx, str._s:__s
mov r8, rax
call fcn.00405450
mov rax, qword [r13 + 0xd0]
lea rcx, str._s_is_not_a_valid_archive
mov rdx, qword [rax]
call fcn.00405450
mov rdx, qword [r13]
lea rcx, str.internal_stat_error_on__s
call fcn.00405450
nop
nop dword [rax]
nop word cs:[rax + rax]

Function at 0x404d60
Capabilities:
Delete file
Move file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rbx, rdx
mov rdi, rcx
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__stat64]
test eax, eax
je 0x404dc1
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_rename
test eax, eax
mov esi, eax
je 0x404db7
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
lea rcx, str.unable_to_rename__s__reason:__s
mov r8, rax
mov rdx, rbx
call fcn.00405480
mov rcx, rdi
call fcn.0049c3d0
mov eax, esi
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
mov rcx, rbx
call sub.msvcrt.dll_remove
jmp 0x404d7f
Function at 0x405580
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
test rcx, rcx
mov r8, rcx
mov rsi, rdx
je 0x4055f5
lea rdx, str._s:_supported_targets:
mov rcx, rsi
call sub.msvcrt.dll_fprintf
call fcn.004125e0
mov r8, qword [rax]
mov rbp, rax
lea rbx, [rax + 8]
lea rdi, [0x004dc40f]
test r8, r8
je 0x4055d8
nop dword [rax]
add rbx, 8
mov rdx, rdi
mov rcx, rsi
call sub.msvcrt.dll_fprintf
mov r8, qword [rbx - 8]
test r8, r8
jne 0x4055c0
mov rdx, rsi
mov ecx, 0xa
call sub.msvcrt.dll_fputc
mov rcx, rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msvcrt.dll_free
lea rcx, str.Supported_targets:
mov r9, rdx
mov r8d, 0x12
mov edx, 1
call sub.msvcrt.dll_fwrite
jmp 0x4055a2
Function at 0x411f20
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov r10d, dword [rcx + 0x18]
mov eax, dword [r8 + 0x10]
mov rbx, rdx
xor edx, edx
mov r9, qword [rcx]
div r10d
mov edx, edx
lea rax, [r9 + rdx*8]
mov rdx, qword [rax]
test rdx, rdx
je 0x40ed10
cmp r8, rdx
jne 0x40ed08
jmp 0x40ed33
cmp r8, rax
je 0x40ed30
mov rdx, rax
mov rax, qword [rdx]
test rax, rax
jne 0x40ed00
lea r8, str.bfd_hash_rename
lea rcx, str._builds_idf_crosstool_NG_.build_HOST_x86_64_w64_mingw32_xtensa_esp32s3_elf_src_binutils_bfd_hash.c
mov edx, 0x244
call fcn.0040a320
nop dword [rax + rax]
mov rax, rdx
mov rdx, qword [r8]
test rbx, rbx
mov qword [rax], rdx
mov qword [r8 + 8], rbx
je 0x40eda1
movzx ecx, byte [rbx]
xor eax, eax
lea rdx, [rbx + 1]
test ecx, ecx
je 0x40ed6f
nop
mov r11d, ecx
add rdx, 1
shl r11d, 0x11
add ecx, r11d
add eax, ecx
mov ecx, eax
shr ecx, 2
xor eax, ecx
movzx ecx, byte [rdx - 1]
test ecx, ecx
jne 0x40ed50
sub rdx, rbx
sub edx, 1
add eax, edx
shl edx, 0x11
add eax, edx
mov edx, eax
shr edx, 2
xor eax, edx
xor edx, edx
mov dword [r8 + 0x10], eax
div r10d
mov eax, edx
lea rax, [r9 + rax*8]
mov rdx, qword [rax]
mov qword [r8], rdx
mov qword [rax], r8
add rsp, 0x20
pop rbx
ret
lea rcx, str._builds_idf_crosstool_NG_.build_HOST_x86_64_w64_mingw32_xtensa_esp32s3_elf_src_binutils_bfd_hash.c
mov edx, 0x1b6
call fcn.0040a300
movzx eax, byte [pe_dos_header]
ud2
mov rax, qword [rcx + 0xf8]
lea r8, [rcx - 0x18]
mov qword [rcx], rdx
add rax, 0x60
mov rcx, rax
jmp 0x40ecd0

Function at 0x412420
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
mov rax, rcx
mov rbx, rdx
je 0x412470
lea rdi, str.default
mov ecx, 8
mov rsi, rax
repe cmpsb byte [rsi], byte [rdi]
je 0x412481
test rbx, rbx
je 0x4124b0
and byte [rbx + 0x44], 0xbf
mov rcx, rax
call fcn.00412300
test rax, rax
je 0x4124bd
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
lea rcx, str.GNUTARGET
call sub.msvcrt.dll_getenv
test rax, rax
jne 0x412432
mov rax, qword [0x0049e630]
test rax, rax
je 0x4124a2
test rbx, rbx
je 0x41245f
or byte [rbx + 0x44], 0x40
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [0x0049e640]
mov rax, qword [rax]
jmp 0x41248d
mov rcx, rax
call fcn.00412300
test rax, rax
jne 0x41245f
xor eax, eax
jmp 0x41245f
Function at 0x419650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, rcx
mov rcx, r8
mov rbx, rdx
mov rsi, r8
mov edi, r9d
call fcn.00419550
mov ecx, dword [rbp]
mov rdx, qword [rbx]
sub ecx, 1
and eax, ecx
mov rbx, qword [rdx + rax*8]
test rbx, rbx
jne 0x41969d
jmp 0x4197e0
mov rbx, qword [rbx + 0x68]
test rbx, rbx
je 0x4197e0
mov rax, qword [rbx]
mov rdx, qword [rsi]
test rax, rax
sete r9b
test rdx, rdx
sete cl
cmp r9b, cl
jne 0x419690
test rax, rax
je 0x4197f0
mov r8, qword [rbx + 0x10]
mov rcx, qword [rsi + 0x10]
mov r9, r8
xor r9, rcx
test r9b, r9b
jne 0x419690
mov r10, qword [rsi + 0x20]
cmp qword [rbx + 0x20], r10
jne 0x419690
mov r11, qword [rsi + 0x28]
cmp qword [rbx + 0x28], r11
jne 0x419690
mov r11d, dword [rsi + 0x30]
cmp dword [rbx + 0x30], r11d
jne 0x419690
mov rax, qword [rax + 0xf8]
shr r8, 8
xor ebp, ebp
mov r9d, dword [rax + 0x8c]
cmp r8d, r9d
jb 0x419730
mov rax, qword [rax + 0x2f8]
sub r8d, r9d
mov rbp, qword [rax + r8*8]
movzx eax, byte [rbp + 0x18]
sub eax, 6
cmp al, 1
ja 0x419730
mov rbp, qword [rbp + 0x28]
movzx eax, byte [rbp + 0x18]
sub eax, 6
cmp al, 1
jbe 0x419721
mov rax, qword [rdx + 0xf8]
shr rcx, 8
mov edx, dword [rax + 0x8c]
cmp ecx, edx
jb 0x41981e
mov rax, qword [rax + 0x2f8]
sub ecx, edx
mov r12, qword [rax + rcx*8]
movzx eax, byte [r12 + 0x18]
sub eax, 6
cmp al, 1
ja 0x419775
mov r12, qword [r12 + 0x28]
movzx eax, byte [r12 + 0x18]
sub eax, 6
cmp al, 1
jbe 0x419763
test byte [r12 + 0x65], 0x10
jne 0x419690
mov rcx, rbx
call fcn.004194f0
test eax, eax
je 0x4197fe
test edi, edi
jne 0x4197a9
test rbp, rbp
je 0x41979c
cmp byte [rbp + 0x18], 4
je 0x4197fe
test r12, r12
je 0x4197a9
cmp byte [r12 + 0x18], 4
je 0x4197fe
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx]
shr rdx, 8
call fcn.00419420
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi]
mov rbp, rax
shr rdx, 8
call fcn.00419420
cmp rbp, rax
jne 0x419690
jmp 0x419810
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, dword [rsi + 0x30]
cmp dword [rbx + 0x30], eax
jne 0x419690
jmp 0x4197e2
cmp rbp, r12
jne 0x419690
test rbp, rbp
je 0x419690
mov eax, dword [rsi + 0x34]
cmp dword [rbx + 0x34], eax
jne 0x419690
jmp 0x4197e2
xor r12d, r12d
jmp 0x419781
Function at 0x428040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rcx]
mov rbx, rdx
mov rdi, rcx
mov rsi, r8
lea rcx, [rbx + 0x10]
mov rax, qword [rax + 0x370]
movzx ebp, byte [rax + 0x3cd]
mov rax, qword [rdx]
mov rdx, qword [rdx + 8]
mov qword [r8], rax
mov qword [r8 + 8], rdx
mov rax, qword [rdi]
and ebp, 1
call qword [rax + 0x98]
mov word [rsi + 0x30], ax
mov rax, qword [rdi]
lea rcx, [rbx + 0x12]
call qword [rax + 0x98]
mov word [rsi + 0x32], ax
mov rax, qword [rdi]
lea rcx, [rbx + 0x14]
call qword [rax + pe_nt_image_headers64]
test bpl, bpl
mov dword [rsi + 0x28], eax
lea rcx, [rbx + 0x18]
mov rax, qword [rdi]
jne 0x428160
call qword [rax + pe_nt_image_headers64]
mov qword [rsi + 0x10], rax
mov rax, qword [rdi]
lea rcx, [rbx + 0x1c]
call qword [rax + pe_nt_image_headers64]
mov qword [rsi + 0x18], rax
mov rax, qword [rdi]
lea rcx, [rbx + 0x20]
call qword [rax + pe_nt_image_headers64]
mov qword [rsi + 0x20], rax
mov rax, qword [rdi]
lea rcx, [rbx + 0x24]
call qword [rax + pe_nt_image_headers64]
mov dword [rsi + 0x2c], eax
mov rax, qword [rdi]
lea rcx, [rbx + 0x28]
call qword [rax + 0x98]
mov dword [rsi + 0x34], eax
mov rax, qword [rdi]
lea rcx, [rbx + 0x2a]
call qword [rax + 0x98]
mov dword [rsi + 0x38], eax
mov rax, qword [rdi]
lea rcx, [rbx + 0x2c]
call qword [rax + 0x98]
mov dword [rsi + 0x3c], eax
mov rax, qword [rdi]
lea rcx, [rbx + 0x2e]
call qword [rax + 0x98]
mov dword [rsi + 0x40], eax
mov rax, qword [rdi]
lea rcx, [rbx + 0x30]
call qword [rax + 0x98]
mov dword [rsi + 0x44], eax
mov rax, qword [rdi]
lea rcx, [rbx + 0x32]
call qword [rax + 0x98]
mov dword [rsi + 0x48], eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [rax + 0x88]
mov qword [rsi + 0x10], rax
jmp 0x4280bf

Function at 0x42c420
Capabilities:
Hash data using djb2

Disassembly:
movzx edx, byte [rcx]
mov eax, 0x1505
lea r8, [rcx + 1]
test dl, dl
je 0x42c448
mov ecx, eax
add r8, 1
shl ecx, 5
add edx, ecx
add eax, edx
movzx edx, byte [r8 - 1]
test dl, dl
jne 0x42c430
repz ret
repz ret