joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015fd8
Capabilities:
Parse pe header

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

Function at 0x14001e778
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001e7e7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001e7e7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001e7e7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001e7e7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001e7e7
cmp dword [rcx + 0x84], 0xe
jbe 0x14001e7e7
cmp dword [rcx + 0xf8], 0
je 0x14001e7e7
mov ecx, ebx
call fcn.14001e898
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001e674
nop
cmp dword [rbp + 0x20], 0
je 0x14001e835
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001e840
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001e778

Function at 0x14001e97c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001e778

Function at 0x14002143c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140021452
mov al, 1
jmp 0x1400214b2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140021463
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400214b0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140028e38
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400214b0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400214b0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400214b0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400214b2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140024230
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.140015a50
sub rsp, rax
mov rax, qword [0x1401990c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002131c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002427f
mov rax, rbp
jmp 0x140024387
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x19b530]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002517c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x19b530]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140024383
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 0x140024383
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002517c
test rax, rax
js 0x140024383
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140024383
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140024375
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140024375
cmp byte [rcx], 0xd
jne 0x14002435b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002436a
cmp byte [rcx + 1], 0xa
jne 0x14002436a
inc rcx
jmp 0x14002436a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1994e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002433d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140024387
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140015130
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 0x14002451c
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, [0x14019b530]
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 0x140024573
cmp word [rdx], r13w
jne 0x140024573
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140024578
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002469d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400246be
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400245b1
mov rdx, r9
mov word [rbx], cx
jmp 0x1400245d8
cmp r9, r8
jae 0x1400245e8
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 0x140024592
jmp 0x14002469d
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 0x140024692
cmp dword [rsp + 0x80], esi
je 0x140024692
lea r8, [0x14019b530]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002466a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002463a
mov word [rbx], r13w
jmp 0x14002469a
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 0x140024647
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002469a
cmp word [rsp + 0x70], r13w
jne 0x140024677
cmp rbx, r14
je 0x140024634
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140025184
cmp word [rsp + 0x70], r13w
je 0x14002469d
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, [0x14019b530]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140024697
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002469d
Function at 0x14002888c
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 0x140028913
mov rsi, rbx
cmp word [rax], bp
je 0x1400288d2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400288bc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400288b8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140025228
mov rdi, rax
test rax, rax
je 0x140028900
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002e650
mov rbp, rdi
xor ecx, ecx
call fcn.140022d30
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 0x14002b38c
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.1400218fc
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 0x14002b42d
cmp ebx, dword [rsp + 0x30]
je 0x14002b426
test esi, esi
je 0x14002b426
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002b401
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002b40e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002b3eb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002b412
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002b42f
mov eax, 1
jmp 0x14002b42f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002d7a4
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.140025184
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140025184
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002d8f4
cmp rax, 0xffffffffffffffff
je 0x14002d8f4
xor edi, edi
test rbp, rbp
jle 0x14002d89f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140021ed0
mov rbx, rax
test rax, rax
jne 0x14002d82c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002d895
mov edx, 0x8000
mov ecx, r14d
call fcn.14001e9f8
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.140022a28
cmp eax, 0xffffffff
je 0x14002d875
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002d83c
mov edx, r15d
mov ecx, r14d
call fcn.14001e9f8
jmp 0x14002d895
cmp byte [rsi + 0x38], dil
je 0x14002d88c
cmp dword [rsi + 0x34], 5
jne 0x14002d88c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002d895
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140022d30
jmp 0x14002d908
jns 0x14002d908
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140025184
cmp rax, 0xffffffffffffffff
jne 0x14002d8c0
cmp byte [rsi + 0x30], dil
je 0x14002d908
mov edi, dword [rsi + 0x2c]
jmp 0x14002d908
mov ecx, r14d
call fcn.140028e38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002d908
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 0x14002d908
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002d901
mov eax, dword [rsi + 0x2c]
jmp 0x14002d906
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140025184
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 0x14002e3b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002e3d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002e3d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2c93616e0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rdi
push rsi
push rbx
mov rax, rcx
lea rcx, [rcx + 0xf]
sub rcx, rdx
cmp rcx, 0x1e
jbe 0x2c93617c4
movdqu xmm1, xmmword [rdx]
movups xmmword [rax], xmm1
movdqu xmm0, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm0
movzx edi, byte [rax + 0x1f]
mov r10d, 8
movzx r9d, byte [rax + 0x1e]
lea r11, [0x2c941b140]
movzx r8d, byte [rax + 0x1d]
lea rbx, [0x2c941b020]
movzx edx, byte [rax + 0x1c]
jmp 0x2c9361789
movzx r8d, r8b
movzx edx, dl
movzx ecx, byte [r11 + r8]
movzx r8d, r9b
movzx r9d, dil
movzx edi, byte [r11 + rdx]
mov edx, r10d
shr edx, 3
movzx r8d, byte [r11 + r8]
xor cl, byte [rbx + rdx]
movzx r9d, byte [r11 + r9]
mov edx, ecx
xor dl, byte [rax]
add r10d, 1
add rax, 4
xor r8b, byte [rax - 3]
xor r9b, byte [rax - 2]
xor dil, byte [rax - 1]
mov byte [rax + 0x1c], dl
mov byte [rax + 0x1d], r8b
mov byte [rax + 0x1e], r9b
mov byte [rax + 0x1f], dil
cmp r10d, 0x3c
je 0x2c93617c0
mov ecx, r10d
and ecx, 7
je 0x2c9361730
cmp ecx, 4
jne 0x2c936175e
movzx edx, dl
movzx r8d, r8b
movzx esi, r9b
movzx ecx, dil
movzx edx, byte [r11 + rdx]
movzx r8d, byte [r11 + r8]
movzx r9d, byte [r11 + rsi]
movzx edi, byte [r11 + rcx]
jmp 0x2c936175e
pop rbx
pop rsi
pop rdi
ret
movzx ecx, byte [rdx]
mov byte [rax], cl
movzx ecx, byte [rdx + 1]
mov byte [rax + 1], cl
movzx ecx, byte [rdx + 2]
mov byte [rax + 2], cl
movzx ecx, byte [rdx + 3]
mov byte [rax + 3], cl
movzx ecx, byte [rdx + 4]
mov byte [rax + 4], cl
movzx ecx, byte [rdx + 5]
mov byte [rax + 5], cl
movzx ecx, byte [rdx + 6]
mov byte [rax + 6], cl
movzx ecx, byte [rdx + 7]
mov byte [rax + 7], cl
movzx ecx, byte [rdx + 8]
mov byte [rax + 8], cl
movzx ecx, byte [rdx + 9]
mov byte [rax + 9], cl
movzx ecx, byte [rdx + 0xa]
mov byte [rax + 0xa], cl
movzx ecx, byte [rdx + 0xb]
mov byte [rax + 0xb], cl
movzx ecx, byte [rdx + 0xc]
mov byte [rax + 0xc], cl
movzx ecx, byte [rdx + 0xd]
mov byte [rax + 0xd], cl
movzx ecx, byte [rdx + 0xe]
mov byte [rax + 0xe], cl
movzx ecx, byte [rdx + 0xf]
mov byte [rax + 0xf], cl
movzx ecx, byte [rdx + 0x10]
mov byte [rax + 0x10], cl
movzx ecx, byte [rdx + 0x11]
mov byte [rax + 0x11], cl
movzx ecx, byte [rdx + 0x12]
mov byte [rax + 0x12], cl
movzx ecx, byte [rdx + 0x13]
mov byte [rax + 0x13], cl
movzx ecx, byte [rdx + 0x14]
mov byte [rax + 0x14], cl
movzx ecx, byte [rdx + 0x15]
mov byte [rax + 0x15], cl
movzx ecx, byte [rdx + 0x16]
mov byte [rax + 0x16], cl
movzx ecx, byte [rdx + 0x17]
mov byte [rax + 0x17], cl
movzx ecx, byte [rdx + 0x18]
mov byte [rax + 0x18], cl
movzx ecx, byte [rdx + 0x19]
mov byte [rax + 0x19], cl
movzx ecx, byte [rdx + 0x1a]
mov byte [rax + 0x1a], cl
movzx ecx, byte [rdx + 0x1b]
mov byte [rax + 0x1b], cl
movzx ecx, byte [rdx + 0x1c]
mov byte [rax + 0x1c], cl
movzx ecx, byte [rdx + 0x1d]
mov byte [rax + 0x1d], cl
movzx ecx, byte [rdx + 0x1e]
mov byte [rax + 0x1e], cl
movzx edx, byte [rdx + 0x1f]
mov byte [rax + 0x1f], dl
jmp 0x2c9361707
Function at 0x2c938dc40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.2c939a4a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.2c939a4a0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x2c938dcb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2c943e614]
test esi, esi
mov rbx, rcx
jle 0x2c938dde0
mov rax, qword [0x2c943e618]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2c938dcfb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2c938dd85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2c938dce0
mov rcx, rbx
call fcn.2c938e510
test rax, rax
mov rdi, rax
je 0x2c938de02
mov rax, qword [0x2c943e618]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2c938e650
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2c943e618]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2c938dde7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2c938dd7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2c938dd90
add dword [0x2c943e614], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x2c943e618]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2c938dd7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2c938dc40
nop dword [rax]
xor esi, esi
jmp 0x2c938dd08
mov rax, qword [0x2c943e618]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.2c938dc40
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.2c938dc40
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2c938e180
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2c943e640]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2c943e620]
test rbx, rbx
je 0x2c938e1dc
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 0x2c938e1d3
test rsi, rsi
je 0x2c938e1d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2c938e1b8
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 0x2c938e510
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x2c938e590
Capabilities:
Parse pe header

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

Function at 0x2c938e650
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
test rax, rax
mov rdi, rcx
je 0x2c93fb678
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
lea rsi, [rsp + 0x2c]
mov ebx, 4
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
test eax, eax
jle 0x2c93fb6c0
cdqe
add rsi, rax
sub rbx, rax
jne 0x2c93fb690
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x2c93fb6cc
call rbp
cmp dword [rax], 4
je 0x2c93fb690
lea rcx, str.random_device_could_not_be_read
call fcn.2c9417fd0
nop
nop
nop
nop
nop
nop
nop
nop
mov rax, qword [0x2c94203a0]
add rax, 0x10
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov rdx, qword [0x2c941fc90]
mov qword [rcx + 8], rax
mov r8d, dword [rdx]
test r8d, r8d
jne 0x2c93fb718
mov edx, dword [rax - 8]
test edx, edx
jle 0x2c93fb723
add edx, 1
mov dword [rax - 8], edx
ret
mov eax, dword [rax - 8]
test eax, eax
jg 0x2c93fb730
mov rax, qword [rcx + 8]
mov dword [rax - 8], 1
ret
mov edx, dword [rdx]
mov rax, qword [rcx + 8]
test edx, edx
je 0x2c93fb740
lock add dword [rax - 8], 1
ret
mov edx, dword [rax - 8]
jmp 0x2c93fb70c
Function at 0x2c9402200
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
movaps xmmword [rsp], xmm6
movaps xmmword [rsp + 0x10], xmm7
movdqa xmm3, xmmword [0x2c941b4c0]
pxor xmm7, xmm7
movdqa xmm4, xmmword [0x2c941b4d0]
movdqa xmm5, xmmword [0x2c941b4e0]
movdqa xmm6, xmmword [0x2c941b4f0]
mov rdx, rcx
lea rcx, [rcx + 0x380]
mov rax, rdx
nop
movdqu xmm0, xmmword [rax]
add rax, 0x10
movdqu xmm1, xmmword [rax - 0xc]
movdqu xmm2, xmmword [rax + 0x624]
pand xmm0, xmm3
pand xmm1, xmm4
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm2
movdqa xmm2, xmm7
psubd xmm2, xmm0
pand xmm2, xmm6
movdqa xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x2c9402240
mov eax, dword [rdx + 0x388]
mov ecx, dword [rdx + 0x38c]
movq xmm0, qword [rdx + 0x380]
movq xmm1, qword [0x2c941b4c0]
movq xmm2, qword [0x2c941b4d0]
and eax, 0x80000000
pand xmm0, xmm1
and ecx, 0x7fffffff
movq xmm1, qword [rdx + 0x384]
or eax, ecx
pand xmm1, xmm2
por xmm0, xmm1
movdqa xmm2, xmm0
mov ecx, eax
movq xmm1, qword [rdx + 0x9b4]
psrld xmm2, 1
shr ecx, 1
and eax, 1
xor ecx, dword [rdx + 0x9bc]
neg eax
pxor xmm1, xmm2
and eax, 0x9908b0df
movq xmm2, qword [0x2c941b4e0]
pand xmm0, xmm2
pxor xmm2, xmm2
psubd xmm2, xmm0
movq xmm0, qword [0x2c941b4f0]
xor eax, ecx
mov dword [rdx + 0x388], eax
lea rcx, [rdx + 0x9bc]
pand xmm0, xmm2
lea rax, [rdx + 0x38c]
pxor xmm1, xmm0
pxor xmm2, xmm2
movq qword [rdx + 0x380], xmm1
movdqu xmm0, xmmword [rax]
add rax, 0x10
movdqu xmm1, xmmword [rax - 0xc]
movdqu xmm7, xmmword [rax - 0x39c]
pand xmm0, xmm3
pand xmm1, xmm4
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm7
movdqa xmm7, xmm2
psubd xmm7, xmm0
pand xmm7, xmm6
movdqa xmm0, xmm7
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x2c9402343
mov eax, dword [rdx + 0x9bc]
mov qword [rdx + 0x9c0], 0
mov ecx, dword [rdx]
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
and eax, 0x80000000
and ecx, 0x7fffffff
or eax, ecx
mov ecx, eax
and eax, 1
shr ecx, 1
xor ecx, dword [rdx + 0x630]
neg eax
and eax, 0x9908b0df
xor eax, ecx
mov dword [rdx + 0x9bc], eax
add rsp, 0x28
ret
Function at 0x2c9417450
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x2c941af40]
jmp 0x2c938f380