joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180052ac4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180036bf0
sub rsp, rax
mov rax, qword [0x180078080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18004ed04
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180052b13
mov rax, rbp
jmp 0x180052c1b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x7b5a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180053dac
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x7b5a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180052c17
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180052c17
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180053dac
test rax, rax
js 0x180052c17
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180052c17
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180052c09
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180052c09
cmp byte [rcx], 0xd
jne 0x180052bef
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180052bfe
cmp byte [rcx + 1], 0xa
jne 0x180052bfe
inc rcx
jmp 0x180052bfe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x784c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180052bd1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180052c1b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800364c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180052f38
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180052f4e
mov al, 1
jmp 0x180052fae
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180052f5f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180052fac
mov ecx, dword [rcx + 0x18]
nop
call fcn.18005ac48
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180052fac
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180052fac
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180052fac
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180052fae
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18005314c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x18007b5a0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1800531a3
cmp word [rdx], r13w
jne 0x1800531a3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800531a8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800532cd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800532ee
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800531e1
mov rdx, r9
mov word [rbx], cx
jmp 0x180053208
cmp r9, r8
jae 0x180053218
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1800531c2
jmp 0x1800532cd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800532c2
cmp dword [rsp + 0x80], esi
je 0x1800532c2
lea r8, [0x18007b5a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18005329a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18005326a
mov word [rbx], r13w
jmp 0x1800532ca
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180053277
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800532ca
cmp word [rsp + 0x70], r13w
jne 0x1800532a7
cmp rbx, r14
je 0x180053264
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180053db4
cmp word [rsp + 0x70], r13w
je 0x1800532cd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x18007b5a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800532c7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800532cd
Function at 0x180055fe0
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180056010
xor eax, eax
jmp 0x1800560d3
mov rbp, rbx
cmp word [rax], si
je 0x180056035
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005601c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180056018
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180053f54
movsxd r14, eax
test eax, eax
jne 0x180056073
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180056009
mov rcx, r14
call fcn.18004ce9c
mov rdi, rax
test rax, rax
jne 0x18005608c
xor ecx, ecx
call fcn.18004ce60
jmp 0x180056068
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180053f54
test eax, eax
jne 0x1800560bd
mov rcx, rdi
call fcn.18004ce60
jmp 0x1800560c7
xor ecx, ecx
call fcn.18004ce60
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800560f0
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 0x180056177
mov rsi, rbx
cmp word [rax], bp
je 0x180056136
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180056120
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18005611c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18004ce9c
mov rdi, rax
test rax, rax
je 0x180056164
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18005dd80
mov rbp, rdi
xor ecx, ecx
call fcn.18004ce60
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 0x180058e1c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18004b208
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180058ebd
cmp ebx, dword [rsp + 0x30]
je 0x180058eb6
test esi, esi
je 0x180058eb6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180058e91
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180058e9e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180058e7b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180058ea2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180058ebf
mov eax, 1
jmp 0x180058ebf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18005d950
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18005d978
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18005d978
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140187460]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140187470]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14018a008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1401873d0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.140001960
mov rcx, qword [0x1401874f0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140187450]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140001770
mov ebx, dword [0x14018a028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x14018a020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x14018a020], rbp
call fcn.140001570
mov rax, qword [0x1401873e0]
mov r8, qword [0x14018a018]
mov ecx, dword [0x14018a028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14018a020]
call fcn.140002a10
mov ecx, dword [0x14018a00c]
mov dword [0x14018a010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14018a008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140187470]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.140002710
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140187490]
mov rcx, qword [0x140187480]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14018a010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1401874b0]
mov rcx, qword [0x1401874a0]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x140001780
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140002580
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x1400017f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14018a094]
mov rbx, rcx
test esi, esi
jle 0x140001920
mov rax, qword [0x14018a098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000183b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400018c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001820
mov rcx, rbx
call fcn.140002260
mov rdi, rax
test rax, rax
je 0x140001942
mov rax, qword [0x14018a098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400023a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14018a098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001927
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400018be
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400018d0
add dword [0x14018a094], 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 [0x14018a098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400018be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001780
nop dword [rax]
xor esi, esi
jmp 0x140001848
mov rax, qword [0x14018a098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001780
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001780
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001ed0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14018a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14018a0e0]
test rbx, rbx
je 0x140001f2c
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 rsi, rsi
je 0x140001f23
test eax, eax
jne 0x140001f23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f08
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 0x140002260
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1401873a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002280
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002288
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002280
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022dd
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 0x1400022d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002280
add rax, 0x28
cmp rax, r9
jne 0x1400022c0
xor eax, eax
ret

Function at 0x1400022e0
Capabilities:
Parse pe header

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

Function at 0x1400023a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401873a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400023bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1800066f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movzx ebx, byte [rsp + 0x50]
mov ebp, r8d
imul r14d, r8d, 0x88
mov r15, rdx
mov rsi, rcx
mov edi, r8d
cmp r8d, r14d
ja 0x18000673f
mov eax, edi
sub eax, 0x61
je 0x18000679c
sub eax, 0x34
je 0x180006764
sub eax, 0x13ca
je 0x18000675b
cmp eax, 0x13ca
jne 0x18000678c
movzx eax, bl
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
movzx ebx, byte [rsi + 0x118]
jmp 0x18000678c
cmp byte [rsi + 0x118], 0
jne 0x180006798
mov r8, qword [rsi + 0x100]
lea rcx, [rsi + 0x78]
mov rdx, qword [rsi]
mov r9d, 0x56
call fcn.180033820
mov byte [rsi + 0x118], al
imul eax, ebp, 0x22
add edi, eax
cmp edi, r14d
jbe 0x180006725
jmp 0x18000673f
xor al, al
jmp 0x180006742
mov edx, 1
mov r9, r15
mov r8d, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
sete al
jmp 0x180006742
Function at 0x180014200
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
lea ebp, [rcx - 5]
mov rsi, r8
mov rdi, rdx
mov ebx, ecx
cmp ecx, ebp
jbe 0x18001429c
mov r14, qword [rsp + 0x78]
xor r12d, r12d
mov r15, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x78]
nop word [rax + rax]
mov eax, ebx
sub eax, 0x117
je 0x1800142d7
sub eax, 1
je 0x1800142b7
sub eax, 3
je 0x1800142c9
sub eax, 1
je 0x180014271
cmp eax, 1
jne 0x1800142bd
mov qword [0x1800826f8], rdi
mov qword [rdi + 0x80], rsi
jmp 0x1800142bd
mov qword [rsp + 0x28], r12
lea r8, [0x180015260]
mov r9, rdi
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
test rax, rax
jne 0x1800142bd
mov byte [rsp + 0x60], r12b
mov eax, dword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov r14, rdi
mov r15, rsi
dec ebx
cmp ebx, ebp
ja 0x180014240
jmp 0x18001429c
xchg qword [0x180082700], rcx
mov byte [rsp + 0x60], 1
jmp 0x18001429c
mov eax, dword [r14]
cmp eax, dword [r15]
jae 0x1800142e6
mov eax, 0xffffffff
jmp 0x1800142a0
jbe 0x1800142ef
mov eax, 1
jmp 0x1800142a0
mov eax, dword [r15 + 4]
sub eax, dword [r14 + 4]
jmp 0x1800142a0
Function at 0x1800154c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea r14d, [rcx + 0xb]
mov r15, r8
mov rsi, rdx
cmp ecx, r14d
jae case.0x18001551d.1
mov ebx, dword [rsp + 0x80]
lea ebp, [rcx - 0x14]
lea r12, [0x180000000]
xor r13d, r13d
nop dword [rax + rax]
cmp ebp, 0x1b
ja case.0x18001551d.9
movzx eax, byte [r12 + rbp + 0x15714]
mov ecx, dword [r12 + rax*4 + 0x156ec]
add rcx, r12
jmp rcx
movsd xmm0, qword [r15 + 8]
movsd qword [rsp + 0x98], xmm0
jmp case.0x18001551d.9
mov eax, dword [r15]
lea r8, [rsi + 0x48]
mov dword [rsp + 0x38], 0x126
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov qword [rsp + 0x28], r13
xor ecx, ecx
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x80], eax
call fcn.18000d9a0
test rax, rax
je case.0x18001551d.9
mov rdx, rax
mov ecx, 0xb8
call fcn.18001d330
cmp eax, 1
jne case.0x18001551d.9
movsd xmm0, qword [0x18007d268]
movsd qword [rsp + 0x98], xmm0
jmp case.0x18001551d.1
mov ebx, r13d
jmp case.0x18001551d.9
mov r9, rsi
mov dword [rsp + 0x80], r13d
mov r8d, 0xa7
lea rdx, [rsp + 0x80]
mov rcx, r15
call fcn.180023160
mov dword [rsp + 0x98], eax
jmp case.0x18001551d.9
mov rcx, qword [rsi + 0x28]
call qword [rsi + 0x20]
test al, al
je case.0x18001551d.9
mov edi, 0x76
mov eax, edi
sub eax, 0x75
je 0x180015623
cmp eax, 1
jne 0x180015626
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor r8d, r8d
mov rcx, rsi
mov ebx, eax
lea edx, [r8 + 0x70]
call fcn.180036280
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
sub ecx, ebx
mul ecx
mov ebx, edx
shr ebx, 6
jmp 0x180015626
call qword [rsi + 0x50]
dec edi
cmp edi, 0x74
ja 0x1800155e8
jmp case.0x18001551d.9
mov r9, qword [0x1800826f8]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0x115
xor ecx, ecx
call fcn.18001f900
test al, al
je 0x180015697
mov r9, qword [0x1800826f8]
lea rcx, [rsp + 0x80]
xor r8d, r8d
mov byte [rsp + 0x80], 1
mov edx, 0xfd
call fcn.18000cbe0
mov edx, 0x15
mov rcx, rsi
call fcn.18001cef0
test al, al
jne case.0x18001551d.9
mov rdx, qword [0x1800826f8]
mov ecx, 0x99
call fcn.180013790
mov dword [rsp + 0x98], r13d
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [0x1800826f8]
mov ecx, 0x99
call fcn.180013790
jmp case.0x18001551d.9
mov dword [rsp + 0x98], ebx
inc ebp
lea eax, [rbp + 0x14]
cmp eax, r14d
jb 0x180015500
jmp case.0x18001551d.1
Function at 0x18001d520
Capabilities:
Read file on windows

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, 0x50
lea eax, [r9 + 0x288]
mov r14d, r9d
mov dword [rsp + 0x20], eax
mov r13, rdx
cmp r9d, eax
jae 0x18001d5bb
mov esi, dword [rsp + 0xa8]
mov edi, dword [rsp + 0xa8]
mov r12d, dword [rsp + 0x30]
mov ebx, dword [rsp + 0xa8]
nop dword [rax]
cmp r14d, 0x127
ja 0x18001d69b
je 0x18001d5f7
mov eax, r14d
sub eax, 5
je 0x18001d5e2
sub eax, 0xb6
je 0x18001d5da
cmp eax, 0x18
jne 0x18001d6be
mov r9, qword [rsp + 0xb0]
lea edx, [rax - 0x10]
lea r8d, [rax - 0x17]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
sete byte [rsp + 0xa8]
mov eax, dword [rsp + 0xa8]
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor r12d, r12d
jmp 0x18001d6be
xor r8d, r8d
mov edx, 0x8e
mov rcx, r13
call fcn.18001da30
jmp 0x18001d6be
mov rax, qword [rsp + 0xb0]
mov r12d, 0xffffffff
mov r15d, dword [r13]
mov edi, 0x93
mov ebp, dword [rax]
mov eax, edi
sub eax, 0x8f
je 0x18001d64e
sub eax, 1
je 0x18001d671
sub eax, 3
je 0x18001d631
cmp eax, 1
jne 0x18001d663
mov ebx, esi
mov edi, esi
jmp 0x18001d6be
cmp esi, r12d
jne 0x18001d663
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x18001d631
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0xb
je 0x18001d631
jmp 0x18001d663
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x38], 0xc00c642d
mov qword [rsp + 0x40], rbp
inc edi
cmp edi, 0x97
jb 0x18001d610
mov edi, ebx
jmp 0x18001d6be
lea r8, [rsp + 0x38]
mov edx, 0x8010641c
mov ecx, r15d
call fcn.180022ce0
test eax, eax
je 0x18001d695
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
neg ebx
mov edi, ebx
jmp 0x18001d6be
xor ebx, ebx
mov edi, ebx
jmp 0x18001d6be
mov eax, r14d
sub eax, 0x193
je 0x18001d6b0
cmp eax, 0x6c
je 0x18001d5bb
jmp 0x18001d6be
test edi, edi
jne 0x18001d6da
mov dword [rcx], r12d
mov dword [rsp + 0xa8], edi
add r14d, 0x6c
cmp r14d, dword [rsp + 0x20]
jae 0x18001d5bb
mov rcx, qword [rsp + 0x90]
jmp 0x18001d570
mov eax, edi
jmp 0x18001d5c2