joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a4f0
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12d, 1
lea esi, [r8 - 1]
mov r8d, 0x66666667
mov rbp, rdx
mov edi, ecx
mov rbx, r9
mov eax, esi
imul r8d
mov eax, esi
sar eax, 0x1f
sar edx, 2
mov r8d, edx
sub r8d, eax
je 0x42a548
mov ecx, 0x66666667
nop dword [rax]
mov eax, r8d
sar r8d, 0x1f
add r12d, 1
imul ecx
sar edx, 2
sub edx, r8d
mov r8d, edx
jne 0x42a530
mov edx, dword [rbx + 0x2c]
cmp edx, 0xffffffff
je 0x42a5d0
cmp r12d, edx
mov eax, dword [rbx + 0xc]
cmovl r12d, edx
lea edx, [r12 + 2]
cmp eax, edx
jg 0x42a5c0
mov dword [rbx + 0xc], 0xffffffff
mov r9, rbx
mov r8d, 1
mov rdx, rbp
mov ecx, edi
add r12d, 1
call fcn.00429dd0
mov ecx, dword [rbx + 8]
mov eax, dword [rbx + 0x2c]
mov rdx, rbx
mov dword [rbx + 0x10], eax
mov eax, ecx
and ecx, 0x20
or eax, 0x1c0
or ecx, 0x45
mov dword [rbx + 8], eax
call fcn.00429980
add dword [rbx + 0xc], r12d
movsxd rcx, esi
mov rdx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.0042a220
sub eax, edx
mov dword [rbx + 0xc], eax
jmp 0x42a56e
mov eax, dword [0x004ad0e0]
cmp eax, 0xffffffff
je 0x42a5fc
test eax, eax
je 0x42a5ec
mov edx, 2
mov dword [rbx + 0x2c], edx
jmp 0x42a554
call fcn.0042f2b0
test al, 1
mov edx, 3
jne 0x42a5df
jmp 0x42a5e4
lea rcx, str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x42a624
movsx eax, byte [rax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x004ad0e0], eax
jmp 0x42a5db
xor eax, eax
jmp 0x42a61c
Function at 0x4ab510
Capabilities:
Get thread local storage value

Disassembly:
cmp byte [0x004ad774], 0
jne 0x4ab521
lea rax, [0x004ad760]
ret
mov ecx, dword [0x004ad770]
jmp fcn.004243f0
Function at 0x2fc4d5cd0
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.2fc4d6db0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d66d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d676a
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d674e
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 0x2fc4d6742
cmp qword [rbp - 0x10], 0
je 0x2fc4d6742
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 0x2fc4d6708
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d676b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6870
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 0x2fc4d6898
mov eax, 0
jmp 0x2fc4d68e6
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 0x2fc4d68c1
mov eax, 0
jmp 0x2fc4d68e6
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 0x2fc4d68e1
mov eax, 0
jmp 0x2fc4d68e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d68ec
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 0x2fc4d696a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d6961
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 0x2fc4d6961
mov rax, qword [rbp - 8]
jmp 0x2fc4d697f
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 0x2fc4d6934
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400013e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x480
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor r13d, r13d
mov dword [rsp + 0x48], 0x208
mov r12, rdx
lea rax, [rsp + 0x40]
mov r15, rcx
mov qword [rsp + 0x20], rax
lea rdx, str.CLSID
mov rcx, 0xffffffff80000000
mov r9d, GetFileType
xor r8d, r8d
mov esi, r13d
mov r14d, r13d
mov edi, r13d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop word [rax + rax]
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov r9d, 0x208
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc esi
mov ebp, eax
cmp word [rsp + 0x50], 0x7b
je 0x140001478
inc edi
jmp 0x1400014f2
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r8, str.APPID
lea rax, [rsp + 0x260]
mov r9d, 0xffff
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1400014e8
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], r13w
jne 0x1400014c0
lea r8, [rbx*2 + 2]
lea rcx, [r15 + r14*2]
lea rdx, [rsp + 0x50]
call fcn.140004780
inc r14
add r14, rbx
jmp 0x1400014ea
inc edi
mov dword [rsp + 0x48], 0x208
cmp ebp, 0x103
jne 0x140001450
mov rcx, qword [rsp + 0x40]
sub esi, edi
inc esi
mov dword [r12], esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140003090
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x480
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400021a0
Capabilities:
Impersonate user

Disassembly:
sub rsp, 0x48
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
mov r9d, 9
mov qword [rsp + 0x28], rax
lea r8, str.Juicy123NG
lea rdx, [0x14001d4e0]
mov dword [rsp + 0x20], 3
lea rcx, str.Juicy123NG
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
je 0x140002207
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140003090
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____LogonUser_failed_with_error_code__d__n
call fcn.1400011f0
or ecx, 0xffffffff
call fcn.140008434
int3
Function at 0x140002710
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub rsp, 0xa8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
lea rax, [rsp + 0x40]
lea r9, [0x1400154a0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400154b0]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x40]
cmp word [rsp + 0x58], 0
je 0x14000281c
mov qword [rsp + 0xb0], rbx
mov ebx, 0x14
mov qword [rsp + 0xa0], rdi
lea rdi, [0x14001d3a8]
nop dword [rax]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x38], rdx
mov r9d, ebx
lea rdx, [rsp + 0x60]
mov r8d, 2
mov qword [rsp + 0x30], rdx
lea rdx, str.System
mov rax, qword [rcx]
mov dword [rsp + 0x28], 6
mov qword [rsp + 0x20], rdi
call qword [rax + 0x50]
cmp word [rsp + 0x68], 0
je 0x140002802
mov edx, ebx
lea rcx, str.___Found_non_filtered_port:__d__n
call fcn.1400011f0
inc ebx
cmp ebx, 0xffff
jl 0x1400027b0
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140003090
add rsp, 0xa8
ret
Function at 0x14000381c
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400038ad
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x1400038ad
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400038ad
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140003891
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000388b
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140003893
add rdx, 0x28
jmp 0x140003870
xor edx, edx
test rdx, rdx
jne 0x14000389c
xor al, al
jmp 0x1400038b3
test dword [rdx + 0x24], 0x80000000
je 0x1400038a9
xor al, al
jmp 0x1400038b3
mov al, 1
jmp 0x1400038b3
xor al, al
jmp 0x1400038b3
add rsp, 0x18
ret

Function at 0x140008434
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140008208
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008208
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008208
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008208
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008208
cmp dword [rcx + 0x84], 0xe
jbe 0x140008208
cmp dword [rcx + 0xf8], esi
je 0x140008208
mov ecx, r14d
call fcn.140008350
mov ecx, 2
call fcn.14000b118
nop
cmp byte [0x140022290], 0
jne 0x1400082d2
mov r15d, 1
mov eax, r15d
xchg dword [0x140022284], eax
test ebx, ebx
jne 0x14000827b
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140022288]
cmp rcx, rax
je 0x140008272
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140003a3c]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140022520]
jmp 0x140008287
cmp ebx, r15d
jne 0x14000828d
lea rcx, [0x140022538]
call fcn.140009528
nop
test ebx, ebx
jne 0x1400082a4
lea rdx, [0x140015450]
lea rcx, [0x140015430]
call fcn.140008f28
lea rdx, [0x140015460]
lea rcx, [0x140015458]
call fcn.140008f28
movzx eax, byte [0x140022290]
test esi, esi
cmove eax, r15d
mov byte [0x140022290], al
jmp 0x1400082d2
mov ecx, 2
call fcn.14000b16c
test esi, esi
jne 0x1400082e9
mov ecx, r14d
call fcn.140008304
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140008198
Function at 0x402050
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 0x4021f1
mov rbp, qword [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.0040c350
test rbp, rbp
mov qword [0x004e1068], 0
jne 0x402120
mov rcx, r13
call fcn.00401f30
mov rcx, rax
mov qword [0x004e1068], rax
call sub.msvcrt.dll_fclose
movzx edx, word [rsp + 0x26]
mov rcx, qword [0x004e1070]
mov qword [0x004e1068], 0
call sub.msvcrt.dll__chmod
mov eax, dword [0x004e1050]
test eax, eax
je 0x402103
mov rax, qword [rsp + 0x48]
mov rcx, qword [0x004e1070]
mov rdx, r15
mov qword [rsp + 0x40], rax
call fcn.00404d10
mov qword [0x004e1070], 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.00492710
mov r12, rax
jmp 0x40215d
mov r8, rdi
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fwrite
cmp rdi, rax
jne 0x4021b8
add rsi, rbx
cmp rbp, rsi
jbe 0x4021a4
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 0x4021db
mov r9, qword [0x004e1068]
test r9, r9
jne 0x402140
mov rcx, r13
call fcn.00401f30
mov r9, rax
mov qword [0x004e1068], rax
jmp 0x402140
mov rcx, r12
call fcn.004954d8
mov rcx, qword [0x004e1068]
jmp 0x4020bf
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
mov rdx, qword [0x004e1070]
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.00495350
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, [0x004a840f]
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 fcn.004954d8
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_esp32s2_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_esp32s2_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 [0x00497650]
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 [0x00497660]
mov rax, qword [rax]
jmp 0x41248d
mov rcx, rax
call fcn.00412300
test rax, rax
jne 0x41245f
xor eax, eax
jmp 0x41245f
Function at 0x465080
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
mov r8d, 1
mov rdx, rcx
lea rcx, [0x004e5520]
jmp fcn.0040eb60

Function at 0x465c00
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [rcx + 0x44]
mov rdi, rcx
mov rbp, rdx
mov esi, r8d
mov ebx, r9d
test eax, eax
jne 0x465d10
mov r14d, dword [rcx + 0x40]
xor r13d, r13d
test r14d, r14d
je 0x465c60
lea eax, [r14 - 1]
xor r13d, r13d
lea r8, [rdx + rax + 1]
nop
add rdx, 1
movzx ecx, byte [rdx - 1]
mov eax, ecx
shl eax, 0x11
add eax, ecx
add r13d, eax
mov eax, r13d
shr eax, 2
xor r13d, eax
cmp rdx, r8
jne 0x465c40
xor edx, edx
mov eax, r13d
div dword [rdi + 0x18]
mov rax, qword [rdi]
mov edx, edx
mov r12, qword [rax + rdx*8]
test r12, r12
je 0x465cd0
mov r15d, r14d
jmp 0x465c89
mov r12, qword [r12]
test r12, r12
je 0x465cd0
cmp r13d, dword [r12 + 0x10]
jne 0x465c80
cmp r14d, dword [r12 + 0x18]
jne 0x465c80
mov rcx, qword [r12 + 8]
mov r8, r15
mov rdx, rbp
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x465c80
cmp dword [r12 + 0x1c], esi
jae 0x465cf5
test ebx, ebx
je 0x465dd5
mov dword [r12 + 0x18], 0
mov dword [r12 + 0x1c], 0
jmp 0x465cd8
test ebx, ebx
je 0x465dd5
mov r8d, r13d
mov rdx, rbp
mov rcx, rdi
call fcn.0040e970
test rax, rax
mov r12, rax
je 0x465cf5
mov dword [rax + 0x18], r14d
mov dword [rax + 0x1c], esi
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, dword [rcx + 0x40]
cmp r9d, 1
je 0x465ddd
lea r13d, [r9 - 1]
xor r12d, r12d
xor eax, eax
mov r10, rdx
add r13, 1
test r9d, r9d
je 0x465dd0
nop word [rax + rax]
movzx edx, byte [r10]
lea r8, [r10 + 1]
xor ecx, ecx
mov r11, r8
test dl, dl
je 0x465d5e
jmp 0x465d90
add r11, 1
cmp byte [r11 - 1], 0
jne 0x465d90
add ecx, 1
cmp r9d, ecx
jne 0x465d53
mov r14d, r12d
imul r14d, r9d
add eax, r12d
shl r12d, 0x11
add eax, r12d
mov r13d, eax
shr r13d, 2
xor r13d, eax
add r14d, r9d
jmp 0x465c60
lea r11, [r10 + r13]
jmp 0x465da8
movzx edx, byte [r8]
add r8, 1
movzx ecx, dl
mov r10, r8
mov edx, ecx
shl edx, 0x11
add edx, ecx
add eax, edx
mov edx, eax
shr edx, 2
xor eax, edx
cmp r8, r11
jne 0x465da0
add r12d, 1
test r9d, r9d
jne 0x465d40
xor r14d, r14d
jmp 0x465d6d
xor r12d, r12d
jmp 0x465cf5
lea r8, [rdx + 1]
movzx edx, byte [rdx]
test edx, edx
je 0x465e2d
xor r14d, r14d
xor eax, eax
nop dword [rax]
mov ecx, edx
add r14d, 1
add r8, 1
shl ecx, 0x11
add edx, ecx
add eax, edx
mov edx, eax
shr edx, 2
xor eax, edx
movzx edx, byte [r8 - 1]
test edx, edx
jne 0x465df0
mov r13d, r14d
add eax, r14d
shl r13d, 0x11
add eax, r13d
mov r13d, eax
shr r13d, 2
xor r13d, eax
jmp 0x465d81
xor r13d, r13d
xor r14d, r14d
jmp 0x465d81
Function at 0x488b90
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x18]
mov esi, edx
mov rbx, rcx
movzx edx, byte [rax]
cmp dl, 0x5f
je 0x488bd7
test esi, esi
jne 0x488bb1
cmp dl, 0x5a
je 0x488bbe
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
add rax, 1
xor edx, edx
mov rcx, rbx
mov qword [rbx + 0x18], rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.00488460
lea rdx, [rax + 1]
mov qword [rcx + 0x18], rdx
cmp byte [rax + 1], 0x5a
jne 0x488bb1
add rax, 2
mov edx, esi
mov qword [rcx + 0x18], rax
call fcn.00488460
test esi, esi
mov rdi, rax
je 0x488bb3
test byte [rbx + 0x10], 1
je 0x488bb3
mov rdx, qword [rbx + 0x18]
cmp byte [rdx], 0x2e
jne 0x488bb3
movzx eax, byte [rdx + 1]
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x488c8e
cmp al, 0x5f
je 0x488c8e
sub eax, 0x30
cmp al, 9
ja 0x488bb3
movzx eax, byte [rdx]
mov r8, rdx
cmp al, 0x2e
jne 0x488c64
nop dword [rax + rax]
movzx eax, byte [r8 + 1]
sub eax, 0x30
cmp al, 9
ja 0x488c64
movzx eax, byte [r8 + 2]
lea r9, [r8 + 2]
mov r8, r9
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x488c27
add r8, 1
movzx eax, byte [r8]
lea ecx, [rax - 0x30]
cmp cl, 9
jbe 0x488c50
cmp al, 0x2e
je 0x488c30
mov qword [rbx + 0x18], r8
mov rcx, rbx
sub r8d, edx
call fcn.00480870
mov r8, rdi
mov r9, rax
mov edx, 0x4e
mov rcx, rbx
call fcn.00480220
mov rdi, rax
jmp 0x488c01
movzx eax, byte [rdx + 2]
lea r8, [rdx + 2]
lea ecx, [rax - 0x61]
cmp cl, 0x19
ja 0x488cb0
nop
add r8, 1
movzx eax, byte [r8]
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x488ca0
cmp al, 0x5f
je 0x488ca0
jmp 0x488c27