joyce8/EMBER2024-capa huggingface dataset:
Function at 0x307734c7c
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x48], rax
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.nimFrame_4
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x40], 8
lea rax, [0x30775d4a8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x40], 9
lea rax, [0x30775d4a8]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jge 0x307734dcb
mov qword [rbp - 0x40], 0x333
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
cmp qword [rbp - 8], 0
js 0x307734d2d
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jl 0x307734d41
mov rax, qword [rbp + 0x28]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
mov rax, qword [rbp - 8]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x20]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rbx, qword [rax]
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r8d, 0
mov rdx, rbx
mov rcx, rax
call sym.writeWindows__systemZio_205
mov qword [rbp - 0x40], 0xb
lea rax, [0x30775d4a8]
mov qword [rbp - 0x38], rax
mov edx, 0
mov rax, qword [rbp - 8]
add rax, 1
jno 0x307734da5
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x58]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x307734dbe
call sym.raiseOverflow
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
jmp 0x307734cfb
nop
mov qword [rbp - 0x40], 0x339
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x18], 0
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x30775d4ce]
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x40], 0x33a
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x1c], 0
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x1c], eax
call sym.popFrame_4
nop
add rsp, 0x88
pop rbx
pop rbp
ret

Function at 0x307736c5f
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x307736c8f
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen_1
mov rcx, rax
jmp 0x307736c94
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x30773f2ee
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x307754df0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x307754e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x3077795c4]
mov rbx, rcx
test esi, esi
jle 0x307754f90
mov rax, qword [0x3077795c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x307754eab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x307754f35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x307754e90
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x307754fb2
mov rax, qword [0x3077795c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x3077795c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x307754f97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x307754f2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x307754f40
add dword [0x3077795c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x3077795c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x307754f2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x307754eb8
mov rax, qword [0x3077795c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x307755330
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x307779600]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3077795e0]
test rbx, rbx
je 0x30775538c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x307755383
test rsi, rsi
je 0x307755383
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x307755368
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x3077555a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x3077555b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x3077555c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x3077555d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x30775561d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x307755614
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x30775561f
add rax, 0x28
cmp rax, r9
jne 0x307755600
xor eax, eax
ret

Function at 0x307755620
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x3077556b0
mov rdx, qword [0x307760970]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x30775569e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x30775569e
cmp word [rax + 0x18], 0x20b
jne 0x30775569e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x3077556b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x307755689
add rbx, 0x28
cmp rbx, rdi
je 0x3077556b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x307755680
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x3077556c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x307760970]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3077556e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3077556e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3077556e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x30775573d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x307755734
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3077556e0
add rax, 0x28
cmp rax, r9
jne 0x307755720
xor eax, eax
ret
Function at 0x307755740
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x307760970]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x30775575f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x307755768
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x30775575f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x307755780
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x307760970]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x3077557a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x3077557a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x3077557a0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x3077557f0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x3077557e7
test rcx, rcx
je 0x3077557a0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x3077557d8
xor eax, eax
ret

Function at 0x307755800
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x307760970]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x30775581f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x307755828
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x307755840
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x307760970]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x307755860
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x307755868
ret
cmp word [r8 + 0x18], 0x20b
jne 0x307755860
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x307755860
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x3077558b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x3077558c0
add rdx, 0x28
cmp r9, rdx
jne 0x3077558a0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x3077558d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x307760970]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x3077558f2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x307755900
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3077558f2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x3077558f2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x3077558f2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x307755955
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x307755968
add rdx, 0x28
cmp rdx, r10
jne 0x307755940
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x307755977
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x307755987
mov edx, dword [rax + 0xc]
test edx, edx
je 0x30775595e
test ecx, ecx
jg 0x307755970
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180009af0
Capabilities:
Read file on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea edi, [rdx + 7]
movaps xmmword [rsp + 0x30], xmm6
movsd xmm6, qword [rsp + 0x20]
mov r14, r8
mov rsi, rcx
cmp edx, edi
jae case.0x180009b63.4
mov r15, qword [rsp + 0x20]
lea ebx, [rdx - 0x3c]
mov r12, qword [rsp + 0x20]
lea rdx, [0x180000000]
mov r13, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x20]
nop dword [rax + rax]
cmp ebx, 8
ja case.0x180009b63.5
mov ecx, dword [rdx + rbx*4 + 0x9c4c]
add rcx, rdx
jmp rcx
mov r15, qword [rsi + 0x10]
sub r15, qword [r14 + 0x10]
jmp case.0x180009b63.5
mov rdx, qword [r14]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
jne 0x180009c31
mov r9, qword [rsp + 0x88]
lea rdx, [0x180000000]
jmp case.0x180009b63.5
mov r12, qword [rsi + 8]
sub r12, qword [r14 + 8]
jmp case.0x180009b63.5
mov r13, qword [rsi]
lea rbp, [r12 + r15]
sub r13, qword [r14]
jmp case.0x180009b63.5
movsxd rdx, dword [r9]
mov r8d, 1
mov rcx, qword [rsp + 0x90]
mov r9, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
jmp 0x180009b83
xorps xmm0, xmm0
test rbp, rbp
je 0x180009c45
xorps xmm1, xmm1
mov rax, rbp
sub rax, r13
cvtsi2sd xmm0, rbp
cvtsi2sd xmm1, rax
mulsd xmm1, qword [0x1800689f0]
divsd xmm1, xmm0
movaps xmm6, xmm1
inc ebx
lea eax, [rbx + 0x3c]
cmp eax, edi
jb 0x180009b50
movq rax, xmm6
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movq rax, xmm0
jmp 0x180009c0c
Function at 0x180026840
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
imul r15d, r8d, 0x460
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
mov ebp, r8d
cmp r8d, r15d
ja 0x180026a78
xor r12d, r12d
lea r13, [0x18000c790]
nop word [rax + rax]
cmp ebp, 0x66ff
ja 0x180026a08
je 0x18002699a
mov eax, ebp
sub eax, 0x4b
je 0x1800269f9
sub eax, 0x70
je 0x1800268ee
sub eax, 0x66
je 0x1800268d9
cmp eax, 0x282e
jne 0x180026a66
test rdi, rdi
je 0x180026a92
cmp byte [rdi], r12b
je 0x180026a92
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor edx, edx
xor r9d, r9d
mov r8, rdi
lea ecx, [rdx + 0x4b]
call fcn.180008b10
jmp 0x180026a62
xor edx, edx
lea rcx, [rdi + 8]
lea r8d, [rdx + 0x36]
call fcn.180025fd0
test al, al
je 0x180026a9b
mov qword [rsi], r12
mov rbx, qword [rdi + 8]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], r12b
jne 0x180026a66
nop dword [rax]
lea rcx, [rbx + 0x20]
mov r8, rdi
mov edx, 0xa0
call fcn.18004a5b0
mov qword [rsp + 0x78], rax
movsd xmm0, qword [rsp + 0x78]
addsd xmm0, qword [rsi]
movsd qword [rsi], xmm0
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r12b
je 0x180026970
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], r12b
jne 0x18002696b
cmp rbx, qword [rax + 0x10]
jne 0x18002696b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r12b
je 0x180026958
mov rbx, rax
jmp 0x18002698f
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], r12b
jne 0x18002698f
nop dword [rax]
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], r12b
je 0x180026980
cmp byte [rbx + 0x19], r12b
je 0x180026920
jmp 0x180026a66
mov edx, 0x12a
nop
cmp edx, 0x12a
je 0x1800269b7
cmp edx, 0x85de
jne 0x1800269eb
mov al, 1
jmp 0x180026a7d
mov rcx, qword [rdi + 0x10]
xorps xmm1, xmm1
test rcx, rcx
js 0x1800269ca
cvtsi2sd xmm1, rcx
jmp 0x1800269df
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
movsd xmm0, qword [rsi]
divsd xmm0, xmm1
movsd qword [rsi], xmm0
add edx, 0x84b4
cmp edx, 0x10968
jbe 0x1800269a0
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 0x67]
call fcn.180017790
jmp 0x180026a66
cmp ebp, 0x9f2d
je 0x180026a50
cmp ebp, 0x13d39
je 0x180026a40
cmp ebp, 0x1db45
jne 0x180026a66
mov r9d, 0x14
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call fcn.180022720
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180026a20
mov rax, qword [rdi]
mov qword [rax + 0x30], r13
mov rax, qword [rdi]
mov qword [rax + 0x38], rdi
jmp 0x180026a66
mov r9d, 0x112
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.18000c470
test al, al
je 0x180026a78
imul eax, r14d, 0x8c
add ebp, eax
cmp ebp, r15d
jbe 0x180026880
movzx eax, byte [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor al, al
jmp 0x180026a7d
Function at 0x1800359d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
lea edi, [rcx + 7]
mov r14, r8
mov r15, rdx
cmp ecx, edi
jae 0x180035ae8
mov esi, dword [rsp + 0x70]
lea ebx, [rcx - 0x61]
lea rbp, [0x180000000]
nop
cmp ebx, 0xe
ja case.0x180035a13.4
mov ecx, dword [rbp + rbx*4 + 0x35b24]
add rcx, rbp
jmp rcx
cmp esi, 0xffffffff
jne case.0x180035a13.4
lea rcx, str.UNOP_COMPLEMENT
call fcn.18005dc40
lea ecx, [rsi + 2]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor r8d, r8d
xor edx, edx
mov ecx, 0xcc
call fcn.18000a490
mov edx, 0xa7
mov dword [rsp + 0x70], 0x13
lea rcx, [rsp + 0x70]
call fcn.180012320
jmp case.0x180035a13.4
mov ecx, dword [r15]
lea r9, [rsp + 0x88]
mov edx, dword [r14]
lea r8, [rsp + 0x30]
mov eax, 0x12
mov dword [rsp + 0x88], ecx
sub eax, ecx
mov dword [rsp + 0x30], edx
shr eax, 1
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x70], eax
mov eax, 0x21
sub eax, edx
mov edx, 0x104
shr eax, 1
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.180043290
jmp case.0x180035a13.4
mov ecx, 0xce
call fcn.1800389a0
jmp case.0x180035a13.4
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
mov esi, eax
jmp case.0x180035a13.4
mov rdx, qword [r15]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
jne 0x180035afd
inc ebx
lea eax, [rbx + 0x61]
cmp eax, edi
jb 0x180035a00
mov eax, dword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [rsp + 0x78]
mov eax, esi
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180040cb0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r12
push r15
mov rbp, rsp
sub rsp, 0x80
lea r12d, [rcx - 4]
mov r15d, ecx
cmp ecx, r12d
jbe 0x180040f13
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], rsi
movzx esi, byte [rbp + 0x20]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r13
xor r13d, r13d
mov qword [rsp + 0x58], r14
mov r14d, dword [rbp + 0x20]
nop dword [rax]
nop dword [rax + rax]
mov eax, r15d
sub eax, 0xc6
je 0x180040e84
sub eax, 1
je 0x180040e77
sub eax, 1
je 0x180040e69
cmp eax, 4
jne 0x180040eee
mov edx, 0x8000
lea rcx, str.suA21_vf2_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open]
mov ebx, eax
cmp eax, 0xffffffff
je 0x180040de0
mov edi, 0x91
nop dword [rax + rax]
mov ecx, edi
sub ecx, 0x91
je 0x180040dbb
sub ecx, 1
je 0x180040d9d
sub ecx, 1
je 0x180040d91
sub ecx, 1
je 0x180040d82
cmp ecx, 1
jne 0x180040dd0
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov byte [0x180096fbf], r13b
mov sil, 1
jmp 0x180040dd0
mov r8d, 0xa
lea rdx, [0x18006f520]
jmp 0x180040dc8
mov r8d, 4
lea rdx, [rbp + 0x38]
jmp 0x180040dc8
mov r8d, 4
lea rdx, [rbp + 0x30]
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov r8d, 4
lea rdx, [rbp + 0x28]
jmp 0x180040dc8
mov r8d, 0x2a8
lea rdx, str.BC_TARGET_13
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
inc edi
cmp edi, 0x96
jb 0x180040d50
jmp 0x180040e22
mov ecx, 0x6f
mov eax, ecx
sub eax, 0x6f
je 0x180040e13
sub eax, 0x50
je 0x180040e0d
sub eax, 0x50
je 0x180040e07
cmp eax, 0x50
jne 0x180040e17
xor sil, sil
mov byte [0x180096fbf], 1
jmp 0x180040e17
mov dword [rbp + 0x38], r13d
jmp 0x180040e17
mov dword [rbp + 0x28], r13d
jmp 0x180040e17
mov dword [rbp + 0x30], r13d
add ecx, 0x50
cmp ecx, 0x1af
jb 0x180040de5
mov eax, dword [rbp + 0x28]
lea r9, [rbp + 0x20]
mov dword [rbp - 0x50], eax
lea r8, [rbp - 0x50]
mov eax, dword [rbp + 0x30]
lea rdx, [rbp - 0x48]
mov ecx, 0x8c
mov dword [rbp - 0x48], eax
mov byte [rbp + 0x20], sil
call fcn.18002f460
mov eax, dword [rbp + 0x38]
lea r8, [rbp - 0x48]
lea rdx, [rbp + 0x20]
mov dword [rbp - 0x48], eax
mov ecx, 0x4c
mov byte [rbp + 0x20], sil
call fcn.180039880
jmp 0x180040eee
mov eax, dword [0x18009c434]
add dword [0x18009c430], eax
jmp 0x180040eee
mov r14d, dword [0x18009c430]
sar r14d, 0x10
jmp 0x180040eee
mov ebx, dword [0x18009c42c]
mov eax, r14d
sub eax, ebx
cmp eax, 8
jbe 0x180040eee
cmp ebx, r14d
ja 0x180040ed8
mov dword [rbp - 0x48], 2
mov ecx, dword [0x18009c428]
lea r9, [rbp - 0x48]
mov dword [rbp + 0x20], ecx
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x40]
mov dword [rbp - 0x50], ebx
lea eax, [rcx + 0xd]
mov ecx, 0x20
mov dword [rbp - 0x40], eax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.180046a70
inc ebx
cmp ebx, r14d
jbe 0x180040ea0
xor edx, edx
mov dword [0x18009c42c], r14d
xor ecx, ecx
mov r8d, 0xc4
call fcn.18004cfd0
dec r15d
cmp r15d, r12d
ja 0x180040d00
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
add rsp, 0x80
pop r15
pop r12
pop rbp
ret
Function at 0x180049ae0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
movzx ebx, byte [rsp + 0x90]
lea r15d, [r8 - 7]
mov r13, r9
mov ebp, r8d
mov rdx, rcx
cmp r8d, r15d
jbe case.0x180049b46.12
mov r12, qword [rsp + 0x30]
lea r14d, [r8 - 0xda]
mov esi, dword [rsp + 0x90]
lea r8, [0x180000000]
cmp r14d, 0xf
ja case.0x180049b46.0
mov ecx, dword [r8 + r14*4 + 0x49c58]
add rcx, r8
jmp rcx
mov qword [0x180072338], r13
lea r8, [0x180036730]
mov qword [r13 + 0x80], rdx
mov r9, r13
xor edx, edx
mov qword [rsp + 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r12, rax
jmp case.0x180049b46.0
mov bl, 1
jmp case.0x180049b46.0
test r12, r12
jne 0x180049bcd
mov edi, 0xee
nop dword [rax]
nop dword [rax + rax]
mov eax, edi
sub eax, 0xec
je 0x180049c39
sub eax, 1
je 0x180049bbb
cmp eax, 1
jne 0x180049bc3
xor esi, esi
jmp 0x180049bc3
mov ecx, esi
call qword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
dec edi
cmp edi, 0xeb
ja 0x180049ba0
mov rax, r12
xchg qword [0x180072340], rax
jmp case.0x180049b46.0
mov edi, 0x1a
nop
mov eax, edi
sub eax, 0x1a
je 0x180049bee
cmp eax, 1
je 0x180049bf8
jmp 0x180049c1b
mov dword [0x180097008], 0xb000
mov edi, 0x1b
mov dword [rsp + 0x90], 0x80
xor r8d, r8d
lea rcx, [rsp + 0x90]
lea edx, [rdi + 0x33]
call fcn.180049190
inc edi
cmp edi, 0x1c
jb 0x180049be0
dec ebp
dec r14d
cmp ebp, r15d
jbe case.0x180049b46.12
mov rdx, qword [rsp + 0x80]
jmp 0x180049b2a
xor al, al
jmp 0x180049c40
movzx eax, bl
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret