joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005940
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov eax, 0x2c000
mov qword [rsp + 0x110], r14
mov qword [rbp + 0x58], rax
mov dword [rbp + 0x48], 0x1c00
mov dword [rbp + 0x50], 0x4000
mov dword [rbp + 0x40], 0x1000
call fcn.140027b90
call fcn.140026470
xor ecx, ecx
call qword [0x140002830]
mov rcx, qword [rbp + 0x58]
lea rdx, [rsp + 0x30]
add rcx, rax
mov dword [rsp + 0x30], 0xefb823d6
mov qword [rbp + 0x58], rcx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x34], 0xc3ce2662
mov dword [rsp + 0x38], 0x12554ce2
mov dword [rsp + 0x3c], 0xe773e87d
mov dword [rsp + 0x40], 0x6b779c83
mov dword [rsp + 0x44], 0x573ba9b1
mov dword [rsp + 0x48], 0xeadb5fb2
mov dword [rsp + 0x4c], 0xa28eb60d
call fcn.1400028c0
mov r14, qword [rbp + 0x58]
mov esi, dword [rbp + 0x48]
mov rbx, r14
mov dword [rbp], 0x2d314218
mov dword [rbp + 4], 0xb6daeffc
mov dword [rbp + 8], 0xdf149b9
mov dword [rbp + 0xc], 0xbd7e7e03
test rsi, rsi
je 0x140005a5d
lea rdi, [rbp]
sub rdi, r14
dec rsi
shr rsi, 4
inc rsi
nop
movups xmm0, xmmword [rbx]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003590
mov ecx, 0x10
nop word [rax + rax]
movzx eax, byte [rdi + rbx]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x140005a40
sub rdi, 0x10
movaps xmmword [rbp], xmm0
sub rsi, 1
jne 0x140005a20
mov ecx, dword [rbp + 0x50]
call fcn.1400264c0
mov r9d, dword [rbp + 0x48]
lea r8, [r14 + 0x10]
mov edx, dword [rbp + 0x50]
sub r9d, 0x20
mov rcx, rax
mov rbx, rax
call fcn.140005be0
mov r8d, dword [rbp + 0x48]
xor edx, edx
mov rcx, qword [rbp + 0x58]
call fcn.140026490
call fcn.140004730
mov r14, qword [rsp + 0x110]
mov rsi, rax
test rax, rax
je 0x140005aec
mov r8, qword [rax + 0x30]
mov edx, 0x28
lea ecx, [rdx + 0x18]
call r8
mov rdi, rax
test rax, rax
je 0x140005aec
mov qword [rax + 0x10], rsi
mov rdx, rbx
mov dword [rax + 0x18], 1
mov rcx, rdi
xor eax, eax
mov qword [rdi + 0x1c], rax
lea r8d, [rax + 1]
call fcn.140003d80
test eax, eax
jne 0x140005aec
mov rbx, qword [rsi + 0x38]
mov rcx, rdi
call rbx
mov rcx, rsi
call rbx
mov eax, dword [rbp + 0x40]
add rsp, 0x118
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140001198
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp - 0x20], 0x1910071c
xor edx, edx
mov dword [rbp - 0x1c], 0x151c591a
mov word [rbp - 0x18], 0x16
movsxd rcx, edx
lea eax, [rdx + 0x72]
inc edx
xor byte [rbp + rcx - 0x20], al
cmp edx, 9
jb 0x1400011bb
lea rcx, [rbp - 0x20]
mov byte [rbp - 0x17], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov dword [rbp - 0x16], 0x1a38073c
xor eax, eax
mov dword [rbp - 0x12], 0xb3c1317
mov byte [rbp - 0xa], al
xor edx, edx
mov dword [rbp - 0xe], 0xf190d13
movsxd rcx, edx
lea eax, [rdx + 0x72]
inc edx
xor byte [rbp + rcx - 0x16], al
cmp edx, 0xc
jb 0x1400011f9
lea rdx, [rbp - 0x16]
mov byte [rbp - 0xa], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140043138], rax
xor eax, eax
mov byte [rbp - 8], al
xor edx, edx
mov dword [rbp - 0x16], 0x1b21073c
mov dword [rbp - 0x12], 0x1d19181a
mov dword [rbp - 0xe], 0xb15093e
mov word [rbp - 0xa], 0xd1b
movsxd rcx, edx
lea eax, [rdx + 0x72]
inc edx
xor byte [rbp + rcx - 0x16], al
cmp edx, 0xe
jb 0x140001244
lea rdx, [rbp - 0x16]
mov byte [rbp - 8], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140043138], 0
mov qword [0x140043140], rax
je 0x140001285
test rax, rax
je 0x140001285
test rbx, rbx
je 0x140001285
mov al, 1
jmp 0x140001287
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x1400014f0
Capabilities:
Delete registry key
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x60
movdqa xmm0, xmmword [str.__3:_:]
mov rbx, rcx
movdqa xmm1, xmmword [0x140037570]
xor edx, edx
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x50], 0xe1
movdqu xmmword [rsp + 0x40], xmm1
movsxd rcx, edx
lea eax, [rdx + 0x72]
inc edx
xor byte [rsp + rcx + 0x30], al
cmp edx, 0x21
jb 0x14000151e
lea rax, [rsp + 0x78]
mov byte [rsp + 0x51], 0
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001585
lea rdx, [rbx + 0x20]
cmp qword [rdx + 0x18], 0x10
jb 0x14000156b
mov rdx, qword [rdx]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x140001587
xor al, al
add rsp, 0x60
pop rbx
ret

Function at 0x140001590
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x50
xor ebx, ebx
mov dword [rbp - 0x30], 0xb716b721
mov edx, ebx
mov dword [rbp - 0x2c], 0xb71ab738
mov dword [rbp - 0x28], 0xb713b717
mov dword [rbp - 0x24], 0xb70bb73c
mov dword [rbp - 0x20], 0xb70db713
mov dword [rbp - 0x1c], 0xb70fb719
mov dword [rbp - 0x18], 0xb70db72e
mov dword [rbp - 0x14], 0xb7f7b7e9
mov dword [rbp - 0x10], 0xb7efb7eb
mov dword [rbp - 0xc], 0xb7e2b7e1
mov dword [rbp - 8], 0xb7e3
movsxd rcx, edx
movzx eax, dx
mov r8d, 0x488e
inc edx
sub ax, r8w
xor word [rbp + rcx*2 - 0x30], ax
cmp edx, 0x15
jb 0x1400015f3
mov word [rbp - 6], bx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x10]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001648
mov rcx, qword [rbp + 0x10]
lea rdx, [rbp - 0x30]
call fcn.140001120
test eax, eax
setne bl
call fcn.1400074e4
mov al, bl
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret

Function at 0x140003374
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0x10
mov rbx, rcx
jb 0x140003387
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rbx + 0x18]
test eax, eax
jne 0x1400033d1
cmp rcx, 0x10
jb 0x1400033c8
lea rdx, [rcx + 1]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400033c3
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000341c
mov rcx, r8
call fcn.1400075cc
and qword [rbx + 0x10], 0
xor al, al
jmp 0x14000340b
cmp rcx, 0x10
jb 0x140003404
lea rdx, [rcx + 1]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400033ff
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000341c
mov rcx, r8
call fcn.1400075cc
and qword [rbx + 0x10], 0
mov al, 1
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
add rsp, 0x20
pop rbx
ret
call fcn.14000b47c
int3
Function at 0x140003aa8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140003ad5
xor eax, eax
jmp 0x140003bd2
cmp qword [rcx + 0x68], 0
je 0x140003ae6
call fcn.1400043e8
jmp 0x140003bd2
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x140003afd
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003aff
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003b34
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140008cc0
mov rax, qword [rsi + 0x50]
sub rbp, rbx
add r14, rbx
mov r8, rbp
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140003bcc
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140003b6f
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
mov rbx, r8
cmp r8, r15
jbe 0x140003ba7
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.14000c700
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x140003beb
cmp rbp, r15
ja 0x140003b7d
mov r8, rbx
test rbx, rbx
je 0x140003bcc
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.14000c700
mov r8, rbx
sub r8, rax
sub rdi, r8
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
sub rdi, rbp
jmp 0x140003bcf
Function at 0x140003f94
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x140003fbc
xor eax, eax
jmp 0x1400040de
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140003ff6
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140003ff6
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, esi
mov byte [rdx], sil
jmp 0x1400040de
cmp qword [rbx + 0x80], 0
je 0x1400040dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004031
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140004054
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.14000b50c
cmp eax, edi
cmovne edi, esi
jmp 0x1400040dc
lea r8, [rbp + 0x30]
mov byte [rbp - 0x30], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x2f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x38]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x30]
call qword [rax + 0x38]
test eax, eax
js 0x1400040dc
cmp eax, 1
jle 0x1400040a2
cmp eax, 3
jne 0x1400040dc
movsx ecx, byte [rbp - 0x30]
jmp 0x14000403e
mov r14, qword [rbp + 0x30]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x1400040cc
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.14000c018
cmp r14, rax
jne 0x1400040dc
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x38], rax
mov eax, esi
jne 0x1400040de
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x1400049a4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004a00
cmp byte [rcx + 0x71], 0
je 0x140004a00
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004a47
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x140004a0d
sub eax, 1
je 0x140004a11
cmp eax, 2
jne 0x140004a47
mov byte [rbx + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x140004a3e
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call fcn.14000c018
cmp rdi, rax
jne 0x140004a47
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004a02
xor al, al
jmp 0x140004a02
Function at 0x140005b14
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rbx, rcx
lea rax, [rbp - 0x20]
mov qword [rbp + 0x20], rax
xor esi, esi
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rsi
lea rdx, [rcx + 8]
lea rcx, [rbp - 0x20]
call fcn.140004844
nop
mov dword [rbp - 0x58], 0x2535403e
mov dword [rbp - 0x54], 0x4a495a32
mov word [rbp - 0x50], 0x4f
mov edx, esi
movsxd rcx, edx
lea eax, [rdx + 0x72]
xor byte [rbp + rcx - 0x58], al
inc edx
cmp edx, 9
jb 0x140005b69
mov byte [rbp - 0x4f], sil
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], sil
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x40]
call fcn.1400047d8
nop
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x40]
mov rcx, qword [rbx]
call fcn.140001654
test al, al
jne 0x140005bd2
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rsi
lea rdx, [rbx + 8]
lea rcx, [rbp - 0x20]
call fcn.140004844
lea rcx, [rbp - 0x20]
call fcn.140003374
xor al, al
jmp 0x140005c2b
mov dword [rbp - 0x58], 0xb72fb72e
mov dword [rbp - 0x54], 0xb729b75a
mov dword [rbp - 0x50], 0xb744b73a
mov dword [rbp - 0x4c], 0xb729b739
mov dword [rbp - 0x48], 0xb73e
mov edx, esi
movsxd rcx, edx
mov r8d, 0x488e
movzx eax, dx
sub ax, r8w
xor word [rbp + rcx*2 - 0x58], ax
inc edx
cmp edx, 9
jb 0x140005bf7
mov word [rbp - 0x46], si
lea rcx, [rbp - 0x58]
call fcn.140005ae4
mov qword [rbx + 0x30], rax
cmp rax, 0xffffffffffffffff
setne al
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret

Function at 0x140005c40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx]
or qword [rbx + 0x30], 0xffffffffffffffff
call fcn.14000199c
xor r9d, r9d
test al, al
je 0x140005cc8
mov dword [rbp - 0x20], 0xb72fb72e
mov edx, r9d
mov dword [rbp - 0x1c], 0xb729b75a
mov dword [rbp - 0x18], 0xb744b73a
mov dword [rbp - 0x14], 0xb729b739
mov dword [rbp - 0x10], 0xb73e
movsxd rcx, edx
movzx eax, dx
mov r8d, 0x488e
inc edx
sub ax, r8w
xor word [rbp + rcx*2 - 0x20], ax
cmp edx, 9
jb 0x140005c94
lea rcx, [rbp - 0x20]
mov word [rbp - 0xe], r9w
call fcn.140005ae4
cmp rax, 0xffffffffffffffff
jne 0x140005cc8
mov al, 1
jmp 0x140005cca
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret

Function at 0x140008158
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140012588
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400123b4
Function at 0x140001d40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001d8a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001d8a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001d8a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001d8a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001d8a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001d8c
xor al, al
add rsp, 0x28
ret

Function at 0x140005e0c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005bfc
Function at 0x140008814
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14000889b
mov rsi, rbx
cmp word [rax], bp
je 0x14000885a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140008844
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140008840
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000920c
mov rdi, rax
test rax, rax
je 0x140008888
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003300
mov rbp, rdi
xor ecx, ecx
call fcn.14000753c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000d9e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000da08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000da08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001810
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x1401f304c]
test eax, eax
mov rbx, rcx
jle 0x140001868
mov r9, qword [0x1401f3040]
mov edx, edx
mov r8d, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp eax, 1
jne 0x140001848
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov rcx, qword [0x1401f3040]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
test eax, eax
je 0x140001868
mov dword [0x1401f3048], 2
nop word [rax + rax]
xor ebx, ebx
jmp 0x14000183b

Function at 0x140002a90
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1401f304c]
test ecx, ecx
jle 0x140002af2
lea rcx, [rsp + 0x2c]
mov r8d, 1
mov edx, 4
mov r9, qword [0x1401f3040]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp eax, 1
jne 0x140002ad8
mov edx, dword [0x1401f3050]
mov eax, dword [rsp + 0x2c]
test edx, edx
je 0x140002acf
bswap eax
add rsp, 0x38
ret
mov rcx, qword [0x1401f3040]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
test eax, eax
je 0x140002af2
mov dword [0x1401f3048], 2
xor eax, eax
add rsp, 0x38
ret
Function at 0x140009e40
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
test edx, edx
mov rbx, rcx
je 0x140009e60
sub edx, 1
test edx, edx
jle 0x140009e7e
mov dword [rbx + 0x80], edx
add rsp, 0x20
pop rbx
ret
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0xc0]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno_1
mov ecx, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__isatty
test eax, eax
jne 0x140009e90
mov edx, 0x7fffffff
mov dword [rbx + 0x80], edx
add rsp, 0x20
pop rbx
ret
lea rcx, str.COLUMNS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
mov rcx, rax
je 0x140009eb8
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
test eax, eax
jle 0x140009eb8
lea edx, [rax - 1]
jmp 0x140009e4f
mov edx, 0x7ffffffe
jmp 0x140009e53

Function at 0x140009ec0
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x48
mov esi, edx
call fcn.1400657f0
xor edx, edx
mov rcx, rax
mov qword [rbx], rax
call fcn.140019810
lea rdx, [rbx + 0x10]
xor eax, eax
mov ecx, 7
mov rdi, rdx
rep stosq qword [rdi], rax
movsxd rcx, esi
shl rcx, 2
mov dword [rdi], 0
mov byte [rbx + 0x4c], 0
mov dword [rbx + 0x50], esi
call fcn.1400657f0
test esi, esi
mov rcx, rax
mov qword [rbx + 0x58], rax
jle 0x140009f26
mov r8d, esi
xor edx, edx
shl r8, 2
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rax, qword [rbx]
mov rcx, rbx
mov byte [rbx + 0x7c], 0
lea rdi, [0x14000dc80]
mov edx, dword [rax + 0x28]
call fcn.140009e40
xor eax, eax
xor edx, edx
xor ecx, ecx
mov word [rbx + 0x94], ax
movq xmm0, rdi
lea rax, [0x14000c380]
mov word [rbx + 0x120], cx
movq xmm1, rax
mov dword [rbx + 0x84], 0x5e5e5e
lea rax, [0x140009760]
punpcklqdq xmm0, xmm1
mov byte [rbx + 0x88], 0
movups xmmword [rbx + 0xa8], xmm0
lea rcx, str.GCC_EXTRA_DIAGNOSTIC_OUTPUT
pxor xmm0, xmm0
mov qword [rbx + 0x8c], 0
mov dword [rbx + 0x98], 0
mov word [rbx + 0x9c], dx
mov byte [rbx + 0x9e], 0
mov dword [rbx + 0xa0], 0
mov qword [rbx + 0xb8], rax
movups xmmword [rbx + 0xc0], xmm0
mov qword [rbx + 0xd0], 0
movups xmmword [rbx + 0xd8], xmm0
mov dword [rbx + 0x100], 0
mov qword [rbx + 0x108], 0
mov qword [rbx + 0xf8], 0
mov dword [rbx + 0x110], 0
mov qword [rbx + 0x118], 0
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
mov rsi, rax
je 0x14000a03e
lea rdx, str.fixits_v1
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14000a0a8
mov dword [rbx + 0x124], 1
movabs rax, 0x100000000
pxor xmm0, xmm0
mov qword [rbx + 0x130], 8
mov qword [rbx + 0x128], rax
lea rax, [0x1400097c0]
mov qword [rbx + 0x138], 0
mov qword [rbx + 0x140], 0
movups xmmword [rbx + 0x148], xmm0
mov qword [rbx + 0x158], rax
mov qword [rbx + 0x168], 0
movups xmmword [rbx + 0x170], xmm0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
lea rdx, str.fixits_v2
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14000a03e
mov dword [rbx + 0x124], 2
jmp 0x14000a03e
Function at 0x14000dcc0
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.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
mov rbp, rax
je 0x14000de3c
movzx r14d, byte [rax]
xor eax, eax
test r14b, r14b
je 0x14000de41
lea rdi, [rbp + 1]
xor r13d, r13d
xor esi, esi
xor r12d, r12d
jmp 0x14000dd30
test r12, r12
je 0x14000dd28
cmp r14b, 0x3b
je 0x14000dd28
sub r14d, 0x30
cmp r14b, 9
ja 0x14000de3c
nop dword [rax]
movzx r14d, byte [rdi]
add rdi, 1
lea rax, [rdi - 1]
test r14b, r14b
je 0x14000dd68
cmp r14b, 0x3a
je 0x14000dd68
cmp r14b, 0x3d
jne 0x14000dd08
cmp rax, rbp
je 0x14000de3c
test r12, r12
jne 0x14000de3c
sub rax, rbp
mov r12, rdi
mov rsi, rax
jmp 0x14000dd28
test r12, r12
mov rcx, qword [0x1400b5020]
je 0x14000de28
lea rbx, [0x1400b5020]
sub rax, r12
test rcx, rcx
mov r13, rax
je 0x14000ddbd
lea rbx, [0x1400b5020]
jmp 0x14000dda5
mov rcx, qword [rbx + 0x18]
add rbx, 0x18
test rcx, rcx
je 0x14000ddbd
movzx eax, byte [rbx + 0x10]
cmp rax, rsi
jne 0x14000dd98
mov r8, rsi
mov rdx, rbp
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
jne 0x14000dd98
test r12, r12
mov rcx, qword [rbx + 8]
je 0x14000de11
test rcx, rcx
je 0x14000de11
cmp byte [rbx + 0x11], 0
jne 0x14000de50
lea rcx, [r13 + 7]
call fcn.1400657f0
mov r8, r13
mov rdx, r12
mov rbp, rax
mov eax, 0x5b1b
mov word [rbp], ax
lea rcx, [rbp + 2]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
lea rax, [rbp + r13 + 2]
mov qword [rbx + 8], rbp
mov dword [rax], 0x4b5b1b6d
mov byte [rax + 4], 0
mov byte [rbx + 0x11], 1
movzx r14d, byte [rdi - 1]
test r14b, r14b
je 0x14000de3c
mov rbp, rdi
xor r12d, r12d
jmp 0x14000dd28
sub rax, rbp
test rcx, rcx
mov rsi, rax
jne 0x14000dd8a
test r14b, r14b
jne 0x14000de16
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call fcn.140088000
jmp 0x14000ddd1
sub rsp, 0x38
cmp ecx, 1
je 0x14000df4f
cmp ecx, 2
jne 0x14000df30
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x14000df40
xor eax, eax
add rsp, 0x38
ret
test ecx, ecx
je 0x14000df26
jmp 0x1400b3340
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14000df26
add rsp, 0x38
jmp 0x14000dcc0