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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14026e1a0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400503da
cmp word [rdx], r12w
jne 0x1400503da
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400503e0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14005053b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140050516
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140050419
mov rcx, r9
jmp 0x14005043c
cmp r9, rdx
jae 0x140050453
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400503fd
jmp 0x14005053b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140050510
cmp dword [rsp + 0x80], edi
je 0x140050510
mov rdx, r14
lea r11, [0x14026e1a0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400504e9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400504bc
mov word [rbx], r12w
jmp 0x140050537
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400504c5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140050537
cmp word [rsp + 0x70], r12w
jne 0x1400504f6
cmp rbx, rsi
je 0x1400504b6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14004da74
cmp word [rsp + 0x70], r12w
je 0x14005053b
mov word [rbx], r13w
jmp 0x140050537
lea r11, [0x14026e1a0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140050533
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14005053b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140050d90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140050dc2
call fcn.140046d88
mov dword [rax], 0x16
call fcn.140046c4c
jmp 0x140050ee1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140050ee1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140050ee1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140050df1
lock or dword [rcx + 0x14], 0x10
jmp 0x140050ee1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140050e05
call fcn.14005425c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14004ce90
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140050828
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140050ecf
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140050e9a
mov rcx, rsi
call fcn.14004ce90
cmp eax, edi
je 0x140050e85
mov rcx, rsi
call fcn.14004ce90
cmp eax, 0xfffffffe
je 0x140050e85
mov rcx, rsi
call fcn.14004ce90
movsxd rbx, eax
lea r14, [0x14026e1a0]
mov rcx, rsi
sar rbx, 6
call fcn.14004ce90
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140050e8c
lea rdx, [0x14026c2f0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140050e9a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140050ebe
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140050ebe
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140050ebe
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140050ee4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140052660
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 0x1400526e7
mov rsi, rbx
cmp word [rax], bp
je 0x1400526a6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140052690
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14005268c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004edfc
mov rdi, rax
test rax, rax
je 0x1400526d4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400452f0
mov rbp, rdi
xor ecx, ecx
call fcn.14004ce54
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 0x140057140
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.14004da74
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004da74
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140057290
cmp rax, 0xffffffffffffffff
je 0x140057290
xor edi, edi
test rbp, rbp
jle 0x14005723b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400513a8
mov rbx, rax
test rax, rax
jne 0x1400571c8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140057231
mov edx, 0x8000
mov ecx, r14d
call fcn.14004c03c
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.14004e768
cmp eax, 0xffffffff
je 0x140057211
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400571d8
mov edx, r15d
mov ecx, r14d
call fcn.14004c03c
jmp 0x140057231
cmp byte [rsi + 0x38], dil
je 0x140057228
cmp dword [rsi + 0x34], 5
jne 0x140057228
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140057231
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004ce54
jmp 0x1400572a4
jns 0x1400572a4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004da74
cmp rax, 0xffffffffffffffff
jne 0x14005725c
cmp byte [rsi + 0x30], dil
je 0x1400572a4
mov edi, dword [rsi + 0x2c]
jmp 0x1400572a4
mov ecx, r14d
call fcn.140053158
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400572a4
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 0x1400572a4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14005729d
mov eax, dword [rsi + 0x2c]
jmp 0x1400572a2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004da74
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 0x180002370
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180002398
xor eax, eax
lea r8, [0x180001d30]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180003a60
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x180003abd
lea rbx, [0x1800379b0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180003aa4
cmp r10, 2
jb 0x180003aa4
cmp byte [r9], r8b
jne 0x180003aa4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180003a80
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180003aff
lea rbx, [0x1800379b0]
cmp r8b, 0x23
jne 0x180003ae3
cmp byte [r9], r8b
jne 0x180003ae3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180003ad0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180003c40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180003c5a
mov qword [r8], 0
lea rdx, [0x18003bd24]
call fcn.180003b10
mov rbx, rax
test rax, rax
jne 0x180003c7a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180003d65
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180003d65
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180003d65
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180003d65
cmp rdi, 0xffffffffffffffff
je 0x180003d65
mov rax, qword [0x180042af8]
test rax, rax
je 0x180003cf6
inc dword [rax + 0x3b0]
mov rdx, qword [0x180042b00]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x180003d65
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x180003d52
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180042af8]
test rax, rax
je 0x180003d41
dec dword [rax + 0x3b0]
mov rdx, qword [0x180042b00]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x180003d6e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180003d60
mov qword [r14], rdi
mov rax, rsi
jmp 0x180003d70
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x180005510
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xc8]
mov rax, qword [rcx + 0xd0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x1800379b0]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, qword [0x180042af8]
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rax + 0x1c6c], ebx
jne 0x18000559d
mov dword [rax + 0x1c70], ebx
cmp dword [rax + 0x1ca8], ebx
jne 0x1800055ac
mov byte [rax + 0x1cac], 1
cmp dword [rax + 0x1c54], ebx
jne 0x1800055c3
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.1800169f0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180010d60
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x180042030]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x180042af8]
mov edi, ecx
cmp byte [rbx + 0x1fb5], 0
jne 0x180010dc1
cmp byte [rbx + 0x1fb6], 0
jne 0x180010dc1
movsx r9d, word [rbx + 0x3096]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.180003950
test dil, 1
je 0x180010ee8
jmp 0x180010e4a
movss xmm1, dword [rbx + 0x1628]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x3096]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x18003c730]
mulss xmm1, dword [0x18003c724]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1d30], rax
mov dword [rbx + 0x1d1c], 1
movss dword [rbx + 0x1d28], xmm0
movss dword [rbx + 0x1d2c], xmm1
movss xmm0, dword [rbx + 0x1684]
mulss xmm0, dword [0x18003c6a0]
or dword [rbx + 0x1d18], 0x41
movss dword [rbx + 0x1d78], xmm0
call fcn.180003950
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x180010ea0
lea r11, [0x1800379b0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x180010e83
cmp byte [r8], r9b
jne 0x180010e83
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180010e70
not ecx
call fcn.18000a8d0
test rax, rax
je 0x180010ee8
cmp byte [rax + 0x8e], 0
je 0x180010ee8
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x3096]
mov edx, 0x10
movsx r9d, word [rbx + 0x3096]
call fcn.180003950
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.18000d060
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180034dc0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180015810
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x3138], 0
lea rbx, [rcx + 0x3140]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1800158b7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18001586a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180017700
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180004200
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x3138]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x3148]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x180042b08]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1800158bf
mov rcx, rbx
call fcn.180004200
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180016070
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x180042af8]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x30d4], ecx
test rbx, rbx
je 0x1800160df
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.1800160f0
lea rdx, [0x18003bd28]
mov rcx, rbx
mov rdi, rax
call fcn.180003b10
mov rbx, rax
test rax, rax
je 0x1800160da
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x180033bc0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp dword [rcx + 0xc], ebx
jbe 0x180033c0c
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180033c05
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180033bd9
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x180042b20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]

Function at 0x180033c30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x40]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180042bd0]
mov r8, qword [rbx]
mov al, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rbp, [r8 - 5]
cmove rbp, r8
lea rdi, [r8 - 5]
test al, al
lea r14, [rcx*2 + 5]
cmove rdi, r8
mov rdx, r14
mov rcx, rdi
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180033c9b
mov eax, 0xa
jmp 0x180033d27
test esi, esi
je 0x180033cbd
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180033cde
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180033cde
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180033cd8
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180033cde
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
mov al, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1800340d8
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x1800340ef
cmp r8b, 0x90
je 0x1800340ef
cmp r8b, 0xcc
jne 0x180034111
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18003410d
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x180034111
add edx, r10d
cmp edx, r9d
jb 0x1800340fd
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x180034478
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rsi, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x1800344c2
lea rax, [rdi - 0x40000000]
cmp rsi, rax
cmovb rsi, rax
mov rbx, qword [0x180042bc8]
lea r15, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r15
cmovbe r15, qword [rbp - 0x50]
sub r15, 0xfff
test rbx, rbx
je 0x1800344ff
cmp rbx, rsi
jb 0x1800344fa
cmp rbx, r15
jae 0x1800344fa
cmp qword [rbx + 8], 0
jne 0x18003465b
mov rbx, qword [rbx]
jmp 0x1800344e0
mov r14, rdi
cmp rdi, rsi
jb 0x180034583
mov r12d, dword [rbp - 0x38]
xor edx, edx
mov rax, r14
div r12
sub r14, rdx
sub r14, r12
cmp r14, rsi
jb 0x18003457a
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003457a
cmp dword [rbp - 0x10], 0x10000
je 0x18003454a
mov r14, qword [rbp - 0x28]
cmp r14, r12
jb 0x18003457a
jmp 0x180034516
test r14, r14
je 0x18003457a
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18003461b
cmp r14, rsi
jae 0x180034507
test rbx, rbx
jne 0x18003461b
cmp rdi, r15
ja 0x18003465b
mov r14d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov esi, r14d
div r14
mov eax, r14d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18003465b
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003465b
cmp dword [rbp - 0x10], 0x10000
je 0x1800345f1
xor edx, edx
lea edi, [r14 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div rsi
sub rdi, rdx
cmp rdi, r15
jmp 0x1800345aa
test rdi, rdi
je 0x18003465b
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x18003457d
and qword [rbx + 8], 0
lea rcx, [rbx + 0x40]
and dword [rbx + 0x10], 0
mov rdx, rcx
sub rdx, rbx
mov rax, qword [rbx + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rbx + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x18003462e
mov rax, qword [0x180042bc8]
mov qword [rbx], rax
mov qword [0x180042bc8], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140001000
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x13d0
call fcn.1400023f0
sub rsp, rax
movaps xmmword [rsp + 0x13c0], xmm6
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, 1
mov r15d, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp r15d, eax
mov r14d, r15d
mov r12d, eax
cmovl r14d, eax
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x13a4], 0xffffffff
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, ebx
mov dword [rsp + rbx*4 + 0x24], eax
inc rbx
cmp rbx, 0x270
jb 0x140001080
movss xmm6, dword [0x1400032f0]
btc r14d, 0x1f
xor edx, edx
mov dword [rsp + 0x20], 0x270
lea r13d, [r14 - 0x7fffffff]
mov eax, r13d
mov ebx, r13d
neg eax
div r13d
mov edi, edx
nop word [rax + rax]
lea rcx, [rsp + 0x20]
call fcn.140001430
cmp r14d, 0x7fffffff
jne 0x1400010ff
add eax, 0x80000000
lea rcx, [rsp + 0x20]
xor eax, 0x80000000
cdq
idiv r15d
mov ebp, edx
call fcn.140001430
jmp 0x14000116b
mov eax, eax
imul rax, rbx
cmp eax, ebx
jae 0x140001124
cmp eax, edi
jae 0x140001124
nop dword [rax]
lea rcx, [rsp + 0x20]
call fcn.140001430
mov eax, eax
imul rax, rbx
cmp eax, edi
jb 0x140001110
shr rax, 0x20
lea rcx, [rsp + 0x20]
add eax, 0x80000000
xor eax, 0x80000000
cdq
idiv r15d
mov esi, edx
call fcn.140001430
mov eax, eax
mov ebp, esi
imul rax, rbx
cmp eax, r13d
jae 0x140001167
cmp eax, edi
jae 0x140001167
lea rcx, [rsp + 0x20]
call fcn.140001430
mov eax, eax
imul rax, rbx
cmp eax, edi
jb 0x140001153
shr rax, 0x20
add eax, 0x80000000
mov ecx, ebp
xor eax, 0x80000000
cdq
idiv r12d
call qword [sym.imp.USER32.dll_SetCursorPos]
lea rcx, [rsp + 0x20]
call fcn.140001430
mov ecx, eax
imul rax, rcx, 0xb
cmp eax, 3
ja 0x1400011ab
lea rcx, [rsp + 0x20]
call fcn.140001430
mov ecx, eax
imul rax, rcx, 0xb
cmp eax, 4
jb 0x140001196
shr rax, 0x20
add eax, 0x80000000
xor eax, 0x80000000
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm6
cvttss2si rcx, xmm0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400010d0