joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038230
Capabilities:
Print debug messages

Disassembly:
test ecx, ecx
jg 0x1400382d2
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x448
mov rax, qword [0x14008e010]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov qword [r11 - 0x18], rsi
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov edi, ecx
call fcn.140001f80
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x400
mov rcx, qword [rax]
call fcn.140043ad4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov rsi, qword [rsp + 0x440]
test edi, edi
jne 0x1400382b9
lea rcx, [rsp + 0x30]
call fcn.14001f150
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140038b50
add rsp, 0x448
pop rdi
pop rbx
ret

Function at 0x140038238
Capabilities:
Print debug messages

Disassembly:
test ecx, ecx
jg 0x1400382d2
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x448
mov rax, qword [0x14008e010]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov qword [r11 - 0x18], rsi
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov edi, ecx
call fcn.140001f80
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x400
mov rcx, qword [rax]
call fcn.140043ad4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov rsi, qword [rsp + 0x440]
test edi, edi
jne 0x1400382b9
lea rcx, [rsp + 0x30]
call fcn.14001f150
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140038b50
add rsp, 0x448
pop rdi
pop rbx
ret

Function at 0x140045e64
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x140045e84
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140049824
or eax, 0xffffffff
jmp 0x140045e86
xor eax, eax
add rsp, 0x28
ret

Function at 0x14004dd80
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004dbac
Function at 0x12d14cd
Capabilities:
Execute anti-debugging instructions

Disassembly:
movabs r14, 0x180000000
jmp 0x12d166e
mov r11d, r15d
jmp 0x12d1579
jmp 0x12d15af
lea rsp, [rsp + 0x10]
sub r15d, 0x5d738a4b
mov cl, byte [rsp]
btr si, r12w
jnp 0x12d1563
lea r12, [rbx + rbp]
sub eax, esp
btc r14, r8
mov rdi, r10
jmp 0x12d1648
lea r12, [rbx + rbp]
sub eax, esp
btc r14, r8
jmp 0x12d15bf
mov rdi, r10
jmp 0x12d1648
mov esi, 0xe8b2e137
xchg r9w, di
mov r8d, 0x3cf07e14
jmp 0x12d161f
rol r15d, 0
jae 0x12d1621
setbe r12b
btr rsi, rbx
jmp 0x12d1708
mov esi, 0xe8b2e137
xchg r9w, di
mov r8d, 0x3cf07e14
jmp 0x12d15f7
setbe r12b
btr rsi, rbx
jmp 0x12d162f
mov rax, 0xffffffffcd59a674
mov r12, qword [rsp]
lea rsi, [rdx + r15]
xchg sil, r12b
jmp 0x12d1686
ror r15d, 0
mov ebx, dword [rsp]
and rax, rax
jge 0x12d1610
jl 0x12d15e6
mov r9d, r8d
jmp 0x12cfb7a
jmp 0x12d1656
mov rdx, r13
xchg rsi, r9
xchg r11, rax
rdtsc
jmp 0x12d16dc
dec r15d
mov r8w, 0xcfd3
pushfq
stc
jne 0x12d166c
mov r9d, r8d
jmp 0x12cfb7a
mov bl, byte [rsp]
cpuid
jmp 0x12d16b5
mov bl, byte [rsp]
cpuid
add r15, qword [r13 + riz]
mov r12, qword [rsp]
jmp 0x12d16c4
dec rax
jg 0x12d16ea
rdtsc
lea rdi, [rdi + rdi]
jmp fcn.012d178b
add r15, r14
bswap r12
btc di, bp
jnp 0x12d16b0
jp 0x12d169a
rdtsc
lea rdi, [rdi + rdi]
jmp fcn.012d178b
mov rax, 0xffffffffcd59a674
mov r12, qword [rsp]
lea rsi, [rdx + r15]
jmp 0x12d163e

Function at 0x137172d
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rbx
xchg r11d, r9d
push rdi
not eax
xchg esi, eax
lea r8, [rbx + r12]
xchg edi, eax
lea r11, [r15 + riz]
jmp 0x136f8ba
mov qword [rsp], r13
xchg ecx, esi
mov r11, rsp
lea r11, [rax*4]
mov al, 0xa8
mov r11d, r14d
jmp 0x136f8d0
mov r8d, esi
pushfq
push word [rsp + 6]
mov r8w, r15w
lea rcx, [rbp*4]
lea rsp, [rsp + 2]
jmp 0x136f8f9
mov rdx, rcx
lea rsp, [rsp + 2]
push rsi
sete cl
mov r8d, dword [rsp]
lea rcx, [r8 + r13]
jmp 0x136fa6a
pop r11
bswap edx
push sp
xchg dx, cx
jmp 0x13710a6

Function at 0x1593a44
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [rsp + 4], r15d
xchg qword [rsp], rdi
mov dil, byte [rsp + 5]
jmp 0x1593a4b
mov r15, qword [rsp + 2]
jmp 0x1593a2e
lea rax, [rbp + rbp]
mov edx, 0x1bbe17d8
stc
xchg dword [rsp + 4], r9d
jmp 0x1593a8d
mov eax, dword [rsp]
mov eax, dword [rsp]
mov byte [rsp], r14b
bswap r9d
mov ax, 0x82e5
rdtsc
jmp 0x1593a77

Function at 0x1593be0
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg qword [rsp + 0xb], rdx
mov byte [rsp + 0x22], dl
add rsp, 6
call fcn.01593773
pop r14w
mov eax, esp
mov r15, 0x7c449da7
inc rcx
xchg dword [rsp + 0x3d], r15d
mov r14, r9
jmp 0x1593789
mov ax, word [rsp + 0x24]
xchg qword [rsp + 0x20], rdi
mov al, 0xed
xchg byte [rsp + 0x3d], dil
mov rax, rdi
rdtsc
jmp 0x15937c1
add rsp, 0xe
mov dl, r9b
mov al, dil
clc
add rsp, 0
mov eax, 0xa354dd06
jmp 0x1593901
rdtsc
jmp 0x1593a15
Function at 0x15940eb
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dl, byte [rsp + 0xd]
bswap rax
btr edi, eax
jmp 0x159417c
rdtsc
add rsp, 0
add rsp, 0xa
dec r14d
dec rdx
push word [rsp + 9]
jmp 0x1594137
mov r9d, r12d
push word [rsp + 0x1b]
mov edx, dword [rsp + 0x1b]
pushfq
lea rsp, [rsp + 0x11]
xchg qword [rsp + 6], rcx
jmp 0x159414d

Function at 0x1594608
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ecx, dword [rsp + 0x2f]
mov cl, al
not edi
add rsp, 0x17
pop r14w
jmp 0x15945b6
xchg byte [rsp + 0x15], r14b
lea r15, [rax + r15]
bsf ax, dx
mov rax, qword [rsp + 3]
pop qword [rsp + 5]
sub rsp, 0x1e
jmp 0x1594583
mov ecx, dword [rsp + 0x10]
mov byte [rsp + 0xc], r9b
lea r9, [r10 + riz + 0x7e]
xchg edi, edx
jmp 0x15945e6
shl eax, cl
mov dil, byte [rsp + 0x11]
push r12
bswap edx
bsr cx, r15w
xchg qword [rsp + 0x13], r15
jmp 0x1594599
sub rsp, 5
bsf r14, rdx
xchg edx, r9d
xchg r9b, r14b
mov r9w, cx
lea rdi, [r11*4]
jmp 0x1594627
shr r15b, 3
jmp 0x15945cf
stc
add cl, al
xchg r14, rax
bsf r14, rbx
mov r9w, 0x8f67
lea rdx, [r9 + r9]
jmp 0x159463b
sub rsp, 4
cld
xchg dword [rsp + 0xa], edx
lea rsp, [rsp + 0x19]
xchg r15d, r9d
cmc
jmp 0x159460e
mov eax, r9d
pop ax
rdtsc
mov r14d, dword [rsp + 7]
mov word [rsp + 1], di
jmp 0x159467e
xchg dl, cl
mov r9b, byte [rsp + 2]
clc
rdtsc
bswap edi
lea rdx, [rcx + r13]
jmp 0x1594668

Function at 0x1595642
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
call fcn.0159508a
push qword [rsp + 4]
pop qword [rsp + 0x2a]
push qword [rsp + 8]
jmp 0x1595665
pop word [rsp + 0x11]
pop word [rsp + 0x1d]
lea rsp, [rsp + 3]
jmp 0x1595688
mov byte [rsp + 6], r11b
push qword [rsp + 0x11]
mov dword [rsp + 0x40], r10d
pop word [rsp + 0x19]
push qword [rsp + 0x26]
pop qword [rsp + 0x28]
jmp 0x1595729
push qword [rsp + 0x1a]
lea rsp, [rsp + 0x60]
jmp 0x1595764
mov word [rsp + 0x18], r11w
pushfq
push word [rsp + 0x18]
mov byte [rsp + 0x40], r13b
pop word [rsp + 0x12]
push word [rsp + 8]
jmp 0x15956df
push sp
pop word [rsp + 0x26]
mov dword [rsp + 0x18], edx
push qword [rsp + 0x22]
mov qword [rsp + 0x44], rcx
mov word [rsp + 9], ax
jmp 0x15956f9
mov rax, qword [rax + riz]
mov rax, qword [rax + riz + 0x10]
jmp 0x1595779
mov rax, qword gs:[0x60]
mov rax, qword [rax + riz + 0x18]
mov rax, qword [rax + riz + 0x30]
jmp 0x1595746
push rax
jmp 0x1595085
Function at 0x140001070
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ebx, 1
xor edi, edi
mov dword [rsp + 0x28], 1
lea r9, str._c_start_microsoft_edge:
lea r8, str.cmd.exe
mov qword [rsp + 0x20], rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor r9d, r9d
mov dword [rsp + 0x28], 1
lea r8, str.https:__www.pornhub.com_view_video.php_viewkey649e516346728
mov qword [rsp + 0x20], rdi
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, [0x140002344]
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getwch]
cmp ax, 0xd
jne 0x1400010f6
lea rcx, [0x140002348]
mov edx, ebx
call fcn.140001010
inc ebx
jmp 0x140001081
cmp ax, 0x58
je 0x140001117
cmp ax, 0x78
je 0x140001117
lea rcx, str._nInvalid_input._Continuing_to_iteration__d...
mov edx, ebx
call fcn.140001010
inc ebx
jmp 0x140001081
lea rcx, str._nExiting_the_program...
call fcn.140001010
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140001a00
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c6f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c6f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002924c
cmp rax, 0xffffffffffffffff
je 0x14002924c
xor edi, edi
test rbp, rbp
jle 0x1400291f7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f008
mov rbx, rax
test rax, rax
jne 0x140029184
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400291ed
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a028
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d3d0
cmp eax, 0xffffffff
je 0x1400291cd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029194
mov edx, r15d
mov ecx, r14d
call fcn.14001a028
jmp 0x1400291ed
cmp byte [rsi + 0x38], dil
je 0x1400291e4
cmp dword [rsi + 0x34], 5
jne 0x1400291e4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400291ed
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001adbc
jmp 0x140029260
jns 0x140029260
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c6f4
cmp rax, 0xffffffffffffffff
jne 0x140029218
cmp byte [rsi + 0x30], dil
je 0x140029260
mov edi, dword [rsi + 0x2c]
jmp 0x140029260
mov ecx, r14d
call fcn.1400184e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029260
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029260
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029259
mov eax, dword [rsi + 0x2c]
jmp 0x14002925e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c6f4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140001e0c
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x5fb25d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x5fb26d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x5fb255
lea eax, [rcx + 1]
jmp 0x5fb27b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x5fb28e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x5fb274
sub eax, 3
jb 0x5fb2ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x5fb2fd
sar eax, 1
movsxd rbp, eax
jb 0x5fb2e4
jmp 0x5fb2bc
add ebx, ebx
jne 0x5fb2ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5fb2e4
inc ecx
add ebx, ebx
jne 0x5fb2ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5fb2e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x5fb2dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x5fb2cc
add ecx, 2
jmp 0x5fb2e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.005fb212
jmp 0x5fb25d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x183400
mov dl, 0x21
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x5fb34d
cmp rsi, rcx
jae 0x5fb355
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x5fb334
cmp al, 0x8f
ja 0x5fb334
cmp byte [rsi - 2], 0xf
je 0x5fb33a
sub al, 0xe8
cmp al, 1
ja 0x5fb31e
cmp rsi, rcx
jae 0x5fb355
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x5fb324
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x5fb355
lodsb al, byte [rsi]
jmp 0x5fb334
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1ef000]
mov eax, dword [rdi]
or eax, eax
je 0x5fb3b2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1fb338]
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 0x5fb362
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 0x5fb3ac
mov qword [rbx], rax
add rbx, 8
jmp 0x5fb382
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x5fb3ec
cmp al, 0xef
ja 0x5fb3de
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x5fb3be
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x5fb3cd
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 + 0x22f]
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 0x5fb440
sub rsp, 0xffffffffffffff80
jmp 0x578b80
Function at 0x401800
Capabilities:
Create directory
Delete file

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rdx
xor edx, edx
mov rbx, rcx
call sub.msvcrt.dll__access
cmp eax, 0xffffffff
je 0x4018a2
lea rdx, [0x00401940]
mov r9d, 9
mov r8d, 0x40
mov rcx, rbx
call fcn.0045cc30
xor edx, edx
xor ecx, ecx
call sub.msvcrt.dll__getcwd
test rax, rax
mov rsi, rax
je 0x4018d6
mov rcx, rbx
call sub.msvcrt.dll__chdir
test eax, eax
jne 0x40191e
mov rcx, rdi
call fcn.00404a20
xor edx, edx
mov rcx, rax
mov rbp, rax
call sub.msvcrt.dll__access
cmp eax, 0xffffffff
jne 0x401903
xor edx, edx
mov rcx, rdi
call fcn.00403cf0
mov rcx, rsi
call sub.msvcrt.dll__chdir
test eax, eax
jne 0x4018eb
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.004689a0
mov rcx, rbx
call sub.msvcrt.dll__mkdir
add eax, 1
jne 0x401839
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0x11
je 0x401839
mov rax, qword [0x00481ff0]
lea rdx, str.Cannot_make_directory__s
mov r8, rbx
mov ecx, dword [rax]
call fcn.00407a60
mov rax, qword [0x00481ff0]
lea rdx, str.Cannot_get_current_directory_name
mov ecx, dword [rax]
call fcn.00407a60
mov rax, qword [0x00481ff0]
lea rdx, str.Cannot_change_directory_to__s
mov r8, rsi
mov ecx, dword [rax]
call fcn.00407a60
mov rax, qword [0x00481ff0]
lea rdx, str.output_file__s_already_exists_in_folder__s
mov r9, rbx
mov r8, rbp
mov ecx, dword [rax]
call fcn.00407a60
mov rax, qword [0x00481ff0]
lea rdx, str.Cannot_change_directory_to__s
mov r8, rbx
mov ecx, dword [rax]
call fcn.00407a60
nop
nop word [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sub.msvcrt.dll_strlen
cmp eax, 5
jle 0x40196d
lea esi, [rax - 5]
lea rdi, [0x0046f59b]
mov ecx, 5
movsxd rsi, esi
add rsi, rbx
repe cmpsb byte [rsi], byte [rdi]
je 0x401980
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rcx, rbx
call sub.msvcrt.dll_remove
test eax, eax
je 0x40196d
mov rax, qword [0x00481ff0]
lea rdx, str.error_in_removing__s
mov r8, rbx
mov ecx, dword [rax]
call fcn.00407a60
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [rsp + 0x70]
test edx, edx
mov rbx, rcx
mov rsi, r8
mov rdi, r9
je 0x4019ec
lea eax, [rdx - 1]
lea r12, [rcx + rax*8 + 8]
mov rcx, qword [rbx]
mov r8, rbp
mov rdx, rdi
add rbx, 8
call rsi
mov qword [rbx - 8], rax
cmp rbx, r12
jne 0x4019d4
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x401940
Capabilities:
Delete file

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rdx
xor edx, edx
mov rbx, rcx
call sub.msvcrt.dll__access
cmp eax, 0xffffffff
je 0x4018a2
lea rdx, [0x00401940]
mov r9d, 9
mov r8d, 0x40
mov rcx, rbx
call fcn.0045cc30
xor edx, edx
xor ecx, ecx
call sub.msvcrt.dll__getcwd
test rax, rax
mov rsi, rax
je 0x4018d6
mov rcx, rbx
call sub.msvcrt.dll__chdir
test eax, eax
jne 0x40191e
mov rcx, rdi
call fcn.00404a20
xor edx, edx
mov rcx, rax
mov rbp, rax
call sub.msvcrt.dll__access
cmp eax, 0xffffffff
jne 0x401903
xor edx, edx
mov rcx, rdi
call fcn.00403cf0
mov rcx, rsi
call sub.msvcrt.dll__chdir
test eax, eax
jne 0x4018eb
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.004689a0
mov rcx, rbx
call sub.msvcrt.dll__mkdir
add eax, 1
jne 0x401839
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0x11
je 0x401839
mov rax, qword [0x00481ff0]
lea rdx, str.Cannot_make_directory__s
mov r8, rbx
mov ecx, dword [rax]
call fcn.00407a60
mov rax, qword [0x00481ff0]
lea rdx, str.Cannot_get_current_directory_name
mov ecx, dword [rax]
call fcn.00407a60
mov rax, qword [0x00481ff0]
lea rdx, str.Cannot_change_directory_to__s
mov r8, rsi
mov ecx, dword [rax]
call fcn.00407a60
mov rax, qword [0x00481ff0]
lea rdx, str.output_file__s_already_exists_in_folder__s
mov r9, rbx
mov r8, rbp
mov ecx, dword [rax]
call fcn.00407a60
mov rax, qword [0x00481ff0]
lea rdx, str.Cannot_change_directory_to__s
mov r8, rbx
mov ecx, dword [rax]
call fcn.00407a60
nop
nop word [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sub.msvcrt.dll_strlen
cmp eax, 5
jle 0x40196d
lea esi, [rax - 5]
lea rdi, [0x0046f59b]
mov ecx, 5
movsxd rsi, esi
add rsi, rbx
repe cmpsb byte [rsi], byte [rdi]
je 0x401980
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rcx, rbx
call sub.msvcrt.dll_remove
test eax, eax
je 0x40196d
mov rax, qword [0x00481ff0]
lea rdx, str.error_in_removing__s
mov r8, rbx
mov ecx, dword [rax]
call fcn.00407a60
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [rsp + 0x70]
test edx, edx
mov rbx, rcx
mov rsi, r8
mov rdi, r9
je 0x4019ec
lea eax, [rdx - 1]
lea r12, [rcx + rax*8 + 8]
mov rcx, qword [rbx]
mov r8, rbp
mov rdx, rdi
add rbx, 8
call rsi
mov qword [rbx - 8], rax
cmp rbx, r12
jne 0x4019d4
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x4034b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov r9, qword [0x0048d1e0]
mov r8d, 1
lea edx, [rcx*4]
mov ebx, ecx
lea rcx, [0x0048d204]
call sub.msvcrt.dll_fwrite
cmp rax, 1
je 0x4034e7
mov dword [0x0048d1f8], 1
add dword [0x0048d1e8], ebx
sub dword [0x0048d1ec], ebx
add rsp, 0x20
pop rbx
ret
Function at 0x403560
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x0048d1f0]
mov edx, dword [0x0048d1fc]
mov ebx, ecx
mov ecx, dword [0x0048d1ec]
sub eax, ecx
test edx, edx
jle 0x403602
cmp eax, ebx
jae 0x4035e6
add dword [0x0048d1e8], ecx
test eax, eax
lea rdx, [0x0048d204]
je 0x4035a1
mov ecx, dword [rdx + rcx*4]
mov dword [0x0048d204], ecx
mov r9, qword [0x0048d1e0]
lea rcx, [rdx + rax*4]
mov r8d, 0x1000
mov edx, 1
mov dword [0x0048d1ec], 0
mov dword [0x0048d1f0], eax
call sub.msvcrt.dll_fread
shr rax, 2
add eax, dword [0x0048d1f0]
cmp eax, ebx
mov dword [0x0048d1f0], eax
jb 0x403610
mov ecx, dword [0x0048d1ec]
lea rax, [0x0048d1e0]
mov edx, ecx
add ecx, ebx
mov dword [0x0048d1ec], ecx
lea rax, [rax + rdx*4 + 0x24]
add rsp, 0x20
pop rbx
ret
xor eax, eax
jmp 0x4035fc
sub ebx, eax
mov dword [0x0048d1f0], 0
add dword [0x0048d1f4], ebx
xor eax, eax
jmp 0x4035fc

Function at 0x4036a0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rsi, rcx
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x28], rax
call qword [sym.imp.msvcrt.dll___iob_func]
mov r8, qword [rsp + 0x28]
lea rbx, [rax + 0x60]
mov rdx, rsi
mov rcx, rbx
call fcn.0045cea0
lea rcx, str.GCOV_EXIT_AT_ERROR
mov esi, eax
call sub.msvcrt.dll_getenv
test rax, rax
jne 0x4036f8
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea rdx, str.profiling:exiting_after_an_error_n
mov rcx, rbx
call fcn.00468fa0
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x4051f0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, str.COLUMNS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x405220
mov rcx, rax
call sub.msvcrt.dll_atoi
test eax, eax
jle 0x405220
add rsp, 0x28
ret
mov eax, 0x7fffffff
add rsp, 0x28
ret
Function at 0x407ec0
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 0x407ff0
movzx edi, byte [rax]
xor eax, eax
test dil, dil
je 0x407ff5
mov r14, rbp
xor r13d, r13d
xor esi, esi
xor r12d, r12d
jmp 0x407f35
cmp dil, 0x3a
je 0x407f3a
cmp dil, 0x3d
je 0x408004
test r12, r12
je 0x407f29
cmp dil, 0x3b
je 0x407f29
sub edi, 0x30
cmp dil, 9
ja 0x407ff0
lea rax, [r14 + 1]
movzx edi, byte [r14 + 1]
mov r14, rax
test dil, dil
jne 0x407f01
test r12, r12
mov rcx, qword [0x0046e040]
je 0x408020
mov r13, r14
sub r13, r12
test rcx, rcx
je 0x40803b
lea rbx, [0x0046e040]
jmp 0x407f6e
add rbx, 0x18
mov rcx, qword [rbx]
test rcx, rcx
je 0x407f86
movzx eax, byte [rbx + 0x10]
cmp rax, rsi
jne 0x407f62
mov r8, rsi
mov rdx, rbp
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x407f62
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x407fdc
test r12, r12
je 0x407fdc
cmp byte [rbx + 0x11], 0
jne 0x408031
lea rcx, [r13 + 7]
call fcn.0044fcd6
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 [r14]
test dil, dil
je 0x407ff0
lea rax, [r14 + 1]
xor r12d, r12d
mov rbp, rax
jmp 0x407f2d
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp rbp, r14
je 0x407ff0
test r12, r12
jne 0x407ff0
lea rax, [r14 + 1]
mov rsi, r14
sub rsi, rbp
mov r12, rax
jmp 0x407f2d
mov rsi, r14
sub rsi, rbp
test rcx, rcx
jne 0x407f59
jmp 0x407fdc
call fcn.004689a0
jmp 0x407f9e
lea rbx, [0x0046e040]
jmp 0x407f86

Function at 0x4080e0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x38
cmp ecx, 1
je 0x408122
jb 0x408105
cmp ecx, 2
jne 0x40812c
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rax - 1]
cmp rdx, 0xfffffffffffffffd
jbe 0x408110
xor eax, eax
add rsp, 0x38
ret
lea rdx, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x408105
call fcn.00407ec0
add rsp, 0x38
ret
lea r8, str.colorize_init
lea rcx, str._workdir_repo_gcc_gnu_gcc_diagnostic_color.c
mov edx, 0xef
call fcn.0046d0e0
nop
nop
nop word cs:[rax + rax]