joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d3c10
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.2fc4d4cf0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d4612
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d46aa
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f7110]
mov qword [rbp - 8], rax
jmp 0x2fc4d468e
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 0x2fc4d4682
cmp qword [rbp - 0x10], 0
je 0x2fc4d4682
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 0x2fc4d4648
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d46ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d47b0
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 0x2fc4d47d8
mov eax, 0
jmp 0x2fc4d4826
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 0x2fc4d4801
mov eax, 0
jmp 0x2fc4d4826
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 0x2fc4d4821
mov eax, 0
jmp 0x2fc4d4826
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d482c
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 0x2fc4d48aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d48a1
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 0x2fc4d48a1
mov rax, qword [rbp - 8]
jmp 0x2fc4d48bf
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 0x2fc4d4874
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5419c0
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.2fc542aa0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc5423c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc564108]
test eax, eax
je 0x2fc54245a
lea rax, [0x2fc5640e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc564110]
mov qword [rbp - 8], rax
jmp 0x2fc54243e
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 0x2fc542432
cmp qword [rbp - 0x10], 0
je 0x2fc542432
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 0x2fc5423f8
lea rax, [0x2fc5640e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc54245b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc542560
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 0x2fc542588
mov eax, 0
jmp 0x2fc5425d6
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 0x2fc5425b1
mov eax, 0
jmp 0x2fc5425d6
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 0x2fc5425d1
mov eax, 0
jmp 0x2fc5425d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5425dc
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 0x2fc54265a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc542651
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 0x2fc542651
mov rax, qword [rbp - 8]
jmp 0x2fc54266f
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 0x2fc542624
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x402fd0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov rbx, rcx
mov ecx, 0x2000
mov rdi, rdx
call fcn.0046aaf0
xor edx, edx
mov rcx, rbx
mov rsi, rax
call sub.msvcrt.dll__open_1
xor edx, edx
mov ebx, eax
mov rcx, rdi
call sub.msvcrt.dll__open_1
mov edi, eax
mov eax, ebx
shr eax, 0x1f
test al, al
jne 0x403050
mov eax, edi
shr eax, 0x1f
test al, al
jne 0x403050
lea rdx, [rsp + 0x30]
mov ecx, ebx
mov rbp, qword [sym.imp.msvcrt.dll__fstat64]
call rbp
test eax, eax
js 0x403050
lea rdx, [rsp + 0x70]
mov ecx, edi
call rbp
test eax, eax
js 0x403050
mov r15, qword [rsp + 0x88]
cmp qword [rsp + 0x48], r15
je 0x403080
mov rcx, rsi
call fcn.00483488
mov ecx, ebx
call sub.msvcrt.dll__close_1
mov ecx, edi
call sub.msvcrt.dll__close_1
xor eax, eax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test r15, r15
je 0x4030fe
lea rax, [rsi + 0x1000]
mov r12d, 0x1000
mov qword [rsp + 0x28], rax
nop word [rax + rax]
cmp r15d, 0x1000
mov r13d, r12d
mov ebp, 0x1000
cmovle r13d, r15d
mov rdx, rsi
mov ecx, ebx
mov r8d, r13d
cmovle rbp, r15
call sub.msvcrt.dll__read_1
cmp r13d, eax
jne 0x403050
mov rdx, qword [rsp + 0x28]
mov r8d, r13d
mov ecx, edi
call sub.msvcrt.dll__read_1
cmp r13d, eax
jne 0x403050
mov rdx, qword [rsp + 0x28]
mov r8, rbp
mov rcx, rsi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x403050
sub r15, rbp
jne 0x4030a0
mov rcx, rsi
call fcn.00483488
mov ecx, ebx
call sub.msvcrt.dll__close_1
mov ecx, edi
call sub.msvcrt.dll__close_1
mov eax, 1
jmp 0x403068

Function at 0x405350
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rcx, rdx
mov rsi, rdx
call sub.msvcrt.dll_getenv
cmp byte [rdi + 1], 0
mov rbx, rax
je 0x40538a
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, str.env_manager::getenv___s______s_n
lea rcx, [rax + 0x60]
mov r9, rbx
mov r8, rsi
call fcn.00483b10
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x405460
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [rcx + 1], 0
mov r13, rcx
mov rdi, rdx
jne 0x4055c0
mov rax, qword [0x004e1d10]
mov eax, dword [rax + 0xdb0]
test eax, eax
jne 0x4055a0
movzx r14d, byte [r13]
test r14b, r14b
je 0x40557f
mov edx, 0x3d
mov rcx, rdi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x4056b3
sub rax, rdi
mov rcx, rdi
mov rdx, rax
call fcn.0046ac90
mov rcx, rax
mov rbp, rax
call sub.msvcrt.dll_getenv
cmp byte [r13 + 1], 0
mov rbx, rax
jne 0x405685
xor r12d, r12d
test rbx, rbx
je 0x4054f3
mov rcx, rbx
call fcn.0046ac10
mov r12, rax
mov rbx, qword [r13 + 8]
test rbx, rbx
je 0x4056a3
mov eax, dword [rbx]
mov esi, dword [rbx + 4]
and eax, 0x7fffffff
cmp eax, esi
jne 0x405569
cmp byte [rbx + 3], 0
js 0x4055e0
lea edx, [rsi + 1]
mov ecx, esi
call fcn.004208d0
mov rcx, qword [r13 + 8]
mov edx, eax
mov rbx, rdx
shl rdx, 4
add rdx, 8
test rcx, rcx
je 0x4056cb
mov esi, dword [rcx + 4]
call fcn.0046ab70
mov edx, dword [rax]
and ebx, 0x7fffffff
mov qword [r13 + 8], rax
and edx, 0x80000000
or edx, ebx
mov dword [rax], edx
shr edx, 0x18
and edx, 0x7f
mov byte [rax + 3], dl
mov dword [rax + 4], esi
mov rbx, rax
lea eax, [rsi + 1]
shl rsi, 4
mov dword [rbx + 4], eax
lea rax, [rbx + rsi + 8]
mov qword [rax], rbp
mov qword [rax + 8], r12
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp 0x4832c8
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, [0x0048a54c]
lea rcx, [rax + 0x60]
mov r8, rdi
call fcn.004230f0
jmp 0x405495
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, str.env_manager::xput___s__n
lea rcx, [rax + 0x60]
mov r8, rdi
call fcn.00483b10
jmp 0x405480
lea r15d, [rsi + 1]
mov qword [r13 + 8], 0
cmp r15d, 4
mov edx, 4
cmovb r15d, edx
xor ecx, ecx
mov edx, r15d
and r15d, 0x7fffffff
shl rdx, 4
add rdx, 8
call fcn.0046ab70
mov edx, dword [rax]
mov qword [r13 + 8], rax
mov dword [rax + 4], 0
and edx, 0x80000000
or edx, r15d
mov dword [rax], edx
shr edx, 0x18
and edx, 0x7f
test r14b, r14b
mov byte [rax + 3], dl
je 0x4056d2
test esi, esi
lea rcx, [rbx + 8]
lea rdx, [rax + 8]
je 0x405563
lea r8d, [rsi - 1]
add r8, 1
shl r8, 4
add r8, rdx
nop dword [rax + rax]
test rdx, rdx
je 0x405673
mov r9, qword [rcx]
mov r10, qword [rcx + 8]
mov qword [rdx], r9
mov qword [rdx + 8], r10
add rdx, 0x10
add rcx, 0x10
cmp r8, rdx
jne 0x405660
jmp 0x405563
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, str.saving_old_value:__s_n
lea rcx, [rax + 0x60]
mov r8, rbx
call fcn.00483b10
jmp 0x4054e0
xor r14d, r14d
xor esi, esi
mov r15d, 1
jmp 0x4055ec
lea r8, str.xput
lea rcx, str._builds_idf_crosstool_NG_.build_HOST_x86_64_w64_mingw32_xtensa_esp32s3_elf_src_gcc_gcc_gcc.c
mov edx, 0x7c
call fcn.00487f40
xor esi, esi
jmp 0x40553f
mov rbx, rax
xor esi, esi
jmp 0x405569
jmp qword [sym.imp.msvcrt.dll__putenv]
Function at 0x407aa0
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [0x004e19c0]
lea r9, [0x0042e410]
lea rcx, [0x004ee2e0]
xor r8d, r8d
mov rdi, rdx
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.004682b0
mov rax, qword [0x004ee2f8]
mov rdx, qword [0x004ee300]
sub rdx, rax
cmp rdx, 0xb
jbe 0x407bb0
movabs rsi, 0x5f5443454c4c4f43
mov dword [rax + 8], 0x3d434347
mov rcx, rdi
mov qword [rax], rsi
mov rax, qword [0x004ee2f8]
lea rsi, [rax + 0xc]
mov qword [0x004ee2f8], rsi
call sub.msvcrt.dll_strlen
lea rbx, [rax + 1]
mov rax, qword [0x004ee300]
sub rax, rsi
cmp rbx, rax
ja 0x407bd0
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
add rbx, qword [0x004ee2f8]
mov rdx, qword [0x004ee2f0]
cmp rbx, rdx
je 0x407bf0
mov rcx, qword [0x004ee310]
mov r8, qword [0x004ee2e8]
lea rax, [rbx + rcx]
not rcx
and rax, rcx
mov rcx, qword [0x004ee300]
mov r9, rax
mov qword [0x004ee2f8], rax
sub r9, r8
mov rdi, rcx
sub rdi, r8
cmp r9, rdi
jbe 0x407b94
mov qword [0x004ee2f8], rcx
mov rax, rcx
lea rcx, [0x004ee400]
mov qword [0x004ee2f0], rax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp fcn.00405460
lea rcx, [0x004ee2e0]
mov edx, 0xc
call fcn.004682f0
mov rax, qword [0x004ee2f8]
jmp 0x407ae9
lea rcx, [0x004ee2e0]
mov rdx, rbx
call fcn.004682f0
mov rsi, qword [0x004ee2f8]
jmp 0x407b2e
or byte [0x004ee330], 2
jmp 0x407b53

Function at 0x407c00
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov eax, dword [0x004ee1b0]
test eax, eax
je 0x407c20
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [0x004898c0]
lea rdx, [0x0048a9eb]
xor r9d, r9d
mov r8d, 1
call fcn.00403810
test rax, rax
mov rcx, rax
je 0x407c11
call fcn.00401630
mov qword [0x00489958], rax
mov rax, qword [0x004e19c0]
lea r9, [0x0042e410]
lea rcx, [0x004ee2e0]
xor edx, edx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call fcn.004682b0
mov rax, qword [0x004ee2f8]
mov rdx, qword [0x004ee300]
sub rdx, rax
cmp rdx, 0x13
jbe 0x407d92
movabs rsi, 0x5f5443454c4c4f43
mov dword [rax + 0x10], 0x3d524550
mov qword [rax], rsi
movabs rsi, 0x504152575f4f544c
mov rdi, qword [0x00489958]
mov qword [rax + 8], rsi
mov rax, qword [0x004ee2f8]
mov rcx, rdi
lea rsi, [rax + 0x14]
mov qword [0x004ee2f8], rsi
call sub.msvcrt.dll_strlen
lea rbx, [rax + 1]
mov rax, qword [0x004ee300]
sub rax, rsi
cmp rbx, rax
ja 0x407d70
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
add rbx, qword [0x004ee2f8]
mov rdx, qword [0x004ee2f0]
cmp rbx, rdx
je 0x407db0
mov rcx, qword [0x004ee310]
mov r8, qword [0x004ee300]
lea rax, [rbx + rcx]
not rcx
mov rdi, r8
and rax, rcx
mov rcx, qword [0x004ee2e8]
mov r9, rax
mov qword [0x004ee2f8], rax
sub r9, rcx
sub rdi, rcx
cmp r9, rdi
jbe 0x407d4f
mov qword [0x004ee2f8], r8
mov rax, r8
lea rcx, [0x004ee400]
mov qword [0x004ee2f0], rax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp fcn.00405460
lea rcx, [0x004ee2e0]
mov rdx, rbx
call fcn.004682f0
mov rdi, qword [0x00489958]
mov rsi, qword [0x004ee2f8]
jmp 0x407ce9
lea rcx, [0x004ee2e0]
mov edx, 0x14
call fcn.004682f0
mov rax, qword [0x004ee2f8]
jmp 0x407c8f
or byte [0x004ee330], 2
jmp 0x407d0e
Function at 0x422840
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, str.COLUMNS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x422870
mov rcx, rax
call fcn.00483500
test eax, eax
jle 0x422870
add rsp, 0x28
ret
mov eax, 0x7fffffff
add rsp, 0x28
ret

Function at 0x4235e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
test rcx, rcx
mov rsi, rcx
mov rbx, rdx
je 0x4236fd
test rdx, rdx
je 0x423715
mov edx, 0x22
call fcn.00429e40
movzx eax, byte [rbx]
test al, al
je 0x42367a
mov rbp, qword [0x004e1c40]
lea r12, str._o_o_o
lea rdi, [0x004d12df]
jmp 0x423656
cmp al, 0x22
je 0x4236c0
cmp al, 0x5c
jne 0x4236a2
lea rdx, [0x004d12d6]
mov rcx, rsi
call fcn.0042a380
add rbx, 1
movzx eax, byte [rbx]
test al, al
je 0x42367a
cmp al, 0xa
je 0x423691
jg 0x423630
cmp al, 9
jne 0x4236a2
lea rdx, [0x004d12d9]
add rbx, 1
mov rcx, rsi
call fcn.0042a380
movzx eax, byte [rbx]
test al, al
jne 0x423656
mov edx, 0x22
mov rcx, rsi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.00429e40
lea rdx, [0x004d12dc]
mov rcx, rsi
call fcn.0042a380
jmp 0x42364b
movzx ecx, al
movsx edx, al
test byte [rbp + rcx*2], 0x10
je 0x4236d0
mov rcx, rsi
call fcn.00429e40
jmp 0x42364b
mov rdx, rdi
mov rcx, rsi
call fcn.0042a380
jmp 0x42364b
mov r9d, eax
mov r8d, eax
and eax, 7
shr r9b, 3
shr r8b, 6
mov dword [rsp + 0x20], eax
and r9d, 7
and r8d, 3
mov rdx, r12
mov rcx, rsi
call fcn.0042ba30
jmp 0x42364b
lea r8, str.print_escaped_string
lea rcx, [0x004d1230]
mov edx, 0x2de
call fcn.00487f40
lea r8, str.print_escaped_string
lea rcx, [0x004d1230]
mov edx, 0x2df
call fcn.00487f40
nop
nop
Function at 0x4246b0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0xd8
lea rax, [rsp + 0x100]
mov qword [rsp + 0x100], r8
mov qword [rsp + 0x108], r9
mov rsi, rdx
lea rbx, [rsp + 0x40]
mov r8d, ecx
mov qword [rsp + 0x38], rax
mov rax, qword [0x004e1d90]
mov rcx, rbx
mov rdx, qword [rax]
call fcn.00447b50
lea r9, [rsp + 0x38]
mov r8, rsi
mov edx, 0xffffffff
mov rcx, rbx
mov dword [rsp + 0x20], 2
call fcn.00423cc0
lea r8, str.fatal_error
lea rcx, [0x004d1230]
mov edx, 0x595
call fcn.00487f40
nop
nop dword [rax]

Function at 0x424730
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0xd8
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x108], r9
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x100], r8
lea rbx, [rsp + 0x40]
mov rsi, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [0x004e1d60]
mov rcx, rbx
mov r8d, dword [rax]
mov rax, qword [0x004e1d90]
mov rdx, qword [rax]
call fcn.00447b50
lea r9, [rsp + 0x38]
mov r8, rsi
mov edx, 0xffffffff
mov rcx, rbx
mov dword [rsp + 0x20], 0xd
call fcn.00423cc0
lea r8, str.internal_error_no_backtrace
lea rcx, [0x004d1230]
mov edx, 0x5b4
call fcn.00487f40
nop
nop dword [rax + rax]
sub rsp, 0x58
test rcx, rcx
je 0x4247ff
lea rax, [rsp + 0x88]
mov dword [rsp + 0x30], 6
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
call fcn.004242c0
add rsp, 0x58
ret
lea r8, str.warning_n
lea rcx, [0x004d1230]
mov edx, 0x4df
call fcn.00487f40
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x4247c0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0xd8
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x108], r9
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x100], r8
lea rbx, [rsp + 0x40]
mov rsi, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [0x004e1d60]
mov rcx, rbx
mov r8d, dword [rax]
mov rax, qword [0x004e1d90]
mov rdx, qword [rax]
call fcn.00447b50
lea r9, [rsp + 0x38]
mov r8, rsi
mov edx, 0xffffffff
mov rcx, rbx
mov dword [rsp + 0x20], 0xd
call fcn.00423cc0
lea r8, str.internal_error_no_backtrace
lea rcx, [0x004d1230]
mov edx, 0x5b4
call fcn.00487f40
nop
nop dword [rax + rax]
sub rsp, 0x58
test rcx, rcx
je 0x4247ff
lea rax, [rsp + 0x88]
mov dword [rsp + 0x30], 6
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
call fcn.004242c0
add rsp, 0x58
ret
lea r8, str.warning_n
lea rcx, [0x004d1230]
mov edx, 0x4df
call fcn.00487f40
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x424820
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rcx, str.GCC_COLORS
call sub.msvcrt.dll_getenv
test rax, rax
mov rbp, rax
je 0x42499a
movzx edi, byte [rax]
xor eax, eax
test dil, dil
je 0x42499f
lea rsi, [rbp + 1]
xor r13d, r13d
xor r14d, r14d
xor r12d, r12d
jmp 0x424897
test dil, dil
je 0x4248a1
cmp dil, 0x3d
je 0x424967
test r12, r12
je 0x424890
cmp dil, 0x3b
je 0x424890
sub edi, 0x30
cmp dil, 9
ja 0x42499a
nop word [rax + rax]
movzx edi, byte [rsi]
add rsi, 1
cmp dil, 0x3a
lea rax, [rsi - 1]
jne 0x424863
test r12, r12
je 0x42497f
mov rcx, qword [0x00489ae0]
sub rax, r12
mov r13, rax
test rcx, rcx
je 0x4249ae
lea rbx, [0x00489ae0]
jmp 0x4248dc
add rbx, 0x18
mov rcx, qword [rbx]
test rcx, rcx
je 0x4248f4
movzx eax, byte [rbx + 0x10]
cmp rax, r14
jne 0x4248d0
mov r8, r14
mov rdx, rbp
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x4248d0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x424946
test r12, r12
je 0x424946
cmp byte [rbx + 0x11], 0
jne 0x424960
lea rcx, [r13 + 7]
call fcn.0046aaf0
mov rdi, rax
mov eax, 0x5b1b
mov r8, r13
lea rcx, [rdi + 2]
mov word [rdi], ax
mov rdx, r12
call sub.msvcrt.dll_memcpy
lea rax, [rdi + r13 + 2]
mov qword [rbx + 8], rdi
mov byte [rbx + 0x11], 1
mov dword [rax], 0x4b5b1b6d
mov byte [rax + 4], 0
movzx edi, byte [rsi - 1]
test dil, dil
je 0x42499a
mov rbp, rsi
xor r12d, r12d
jmp 0x424890
call fcn.00483488
jmp 0x424908
cmp rbp, rax
je 0x42499a
test r12, r12
jne 0x42499a
sub rax, rbp
mov r12, rsi
mov r14, rax
jmp 0x424890
mov rcx, qword [0x00489ae0]
sub rax, rbp
mov r14, rax
test rcx, rcx
jne 0x4248c0
test dil, dil
jne 0x42494b
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rbx, [0x00489ae0]
jmp 0x4248f4

Function at 0x428ab0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
test r8, r8
mov rdi, rcx
mov rbp, rdx
mov rsi, r8
je 0x428b30
mov rbx, r8
lea r14, [rsp + 0x3c]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
mov r12d, 0xffffffff
mov r15d, 0xffffffff
jmp 0x428b1f
mov r8d, ebx
mov dword [rsp + 0x3c], ebx
mov rdx, rsi
mov qword [rsp + 0x20], 0
mov r9, r14
sub rdx, rbx
mov rcx, rdi
add rdx, rbp
call r13
test eax, eax
je 0x428b30
mov eax, dword [rsp + 0x3c]
sub rbx, rax
je 0x428b30
cmp rbx, r12
jbe 0x428af0
mov dword [rsp + 0x3c], r15d
mov r8d, r15d
jmp 0x428af7
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x42bc70
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rcx + 0x28]
mov rbx, rcx
test rax, rax
je 0x42bca0
cmp rax, qword [rcx + 0x20]
je 0x42bca0
sub rax, 1
cmp qword [rcx + 0x30], rax
jae 0x42bca0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x10]
call sub.msvcrt.dll_feof
test eax, eax
jne 0x42bc92
mov rcx, qword [rbx + 0x10]
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x42bc92
mov rsi, qword [rbx + 0x20]
mov rdx, qword [rbx + 0x28]
cmp rsi, rdx
je 0x42bd00
mov rax, qword [rbx + 0x18]
mov r9, qword [rbx + 0x10]
sub rsi, rdx
lea rcx, [rax + rdx]
mov r8, rsi
mov edx, 1
call sub.msvcrt.dll_fread
mov rcx, qword [rbx + 0x10]
mov rsi, rax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x42bc92
add qword [rbx + 0x28], rsi
test rsi, rsi
setne al
jmp 0x42bc94
lea rax, [rsi + rsi]
test rsi, rsi
mov rcx, qword [rbx + 0x18]
mov esi, 0x1000
cmovne rsi, rax
mov rdx, rsi
call fcn.0046ab70
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x18], rax
mov rdx, qword [rbx + 0x28]
jmp 0x42bccb