joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4597c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45987b
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x004598c0]
mov qword [rsp + 0x10], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00460a20
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00460b60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.004597c0
Function at 0x462c80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x40286f
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00408fc0
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00460b60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x402840
cmp byte [0x0065b236], 0
je 0x462c95
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45fc60
jmp 0x402840

Function at 0x462ca0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x0065b5e0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x0065b236], 0
je 0x462cd5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x0065b900]
aesenc xmm0, xmmword [0x0065b910]
aesenc xmm0, xmmword [0x0065b920]
movq rax, xmm0
ret
jmp 0x4091c0

Function at 0x462ce0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x0065b5e0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x0065b236], 0
je 0x462d16
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x0065b900]
aesenc xmm0, xmmword [0x0065b910]
aesenc xmm0, xmmword [0x0065b920]
movq rax, xmm0
ret
jmp 0x409220

Function at 0x4646a0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x0065b880]
mov qword [rsp + 8], rdx
lea r8d, [0x0065b254]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.00462bc0
add rsp, 0x30
ret
Function at 0x4bdfc0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4be12b
sub rsp, 0x70
mov qword [rsp + 0x68], rbp
lea rbp, [rsp + 0x68]
movups xmmword [rsp + 0x40], xmm15
mov qword [rsp + 0x30], 0
lea rax, [0x00522809]
mov ebx, 6
call fcn.004b3840
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], rbx
movups xmmword [rsp + 0x50], xmm15
mov qword [rsp + 0x60], 0
lea rcx, [0x004be140]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x60], rcx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x2b
nop
call fcn.00402700
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x18]
nop
cmp rcx, 0xffffffffffffffff
je 0x4be0e9
mov rdx, qword [rsp + 0x28]
cmp rdx, rcx
jb 0x4be125
mov qword [rsp + 0x20], rcx
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rbx, rcx
lea rdx, [rsp + 0x50]
call rsi
mov rax, qword [rsp + 0x20]
lea rcx, [rax + 1]
mov rbx, qword [rsp + 0x28]
nop
cmp rbx, rcx
jb 0x4be118
mov rsi, qword [rsp + 0x50]
sub rbx, rax
dec rbx
mov rdi, rbx
neg rbx
sar rbx, 0x3f
and rcx, rbx
mov r8, qword [rsp + 0x38]
lea rax, [r8 + rcx]
mov rbx, rdi
lea rdx, [rsp + 0x50]
call rsi
mov rcx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x68]
add rsp, 0x70
ret
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x28]
lea rdx, [rsp + 0x50]
call rcx
mov rcx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x68]
add rsp, 0x70
ret
mov rax, rcx
mov rcx, rbx
nop
call fcn.00463300
call fcn.00463280
nop
call fcn.00460b60
jmp fcn.004bdfc0
Function at 0x4da320
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x4da583
sub rsp, 0xb0
mov qword [rsp + 0xa8], rbp
lea rbp, [rsp + 0xa8]
test rax, rax
je 0x4da567
mov qword [rsp + 0xb8], rax
mov rbx, qword [rax + 8]
mov rdx, qword [rax]
mov rcx, qword [rax + 0x10]
test rbx, rbx
jne 0x4da36d
xor ebx, ebx
xor ecx, ecx
jmp 0x4da380
mov rax, rdx
call fcn.004cc320
mov rcx, rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x48], rbx
cmp qword [rax + 0x28], 0
je 0x4da49b
mov rcx, qword [rax + 0x18]
mov rax, rcx
nop
call fcn.004767c0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0xb8]
mov r8, qword [rcx + 0x20]
mov r9, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x005220f9]
mov esi, 1
lea rax, [rsp + 0x68]
mov rbx, qword [rsp + 0x88]
call fcn.0044df20
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call fcn.00402700
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
nop
jl 0x4da45e
xor eax, eax
lea rbx, [0x0052210e]
mov ecx, 1
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x60]
lea r8, [0x00522185]
mov r9d, 2
mov r10, qword [rsp + 0x98]
mov r11, qword [rsp + 0x58]
call fcn.0044e000
jmp 0x4da48b
xor eax, eax
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
lea rdi, [0x00551d90]
mov esi, 1
mov r8, qword [rsp + 0x98]
mov r9, qword [rsp + 0x58]
call fcn.0044df20
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov rax, qword [rax + 0x18]
nop
call fcn.004767c0
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x50], rbx
mov rcx, qword [rsp + 0x88]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 8], rdx
mov byte [rsp + 0x10], 0x3a
call fcn.00402700
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x4da52a
xor eax, eax
lea rbx, [0x0052210e]
mov ecx, 1
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x48]
lea r8, [0x00522185]
mov r9d, 2
mov r10, qword [rsp + 0x90]
mov r11, qword [rsp + 0x50]
call fcn.0044e000
jmp 0x4da557
xor eax, eax
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x00551d90]
mov esi, 1
mov r8, qword [rsp + 0x90]
mov r9, qword [rsp + 0x50]
call fcn.0044df20
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
lea rax, [0x005224ec]
mov ebx, 5
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov qword [rsp + 8], rax
call fcn.00460b60
mov rax, qword [rsp + 8]
jmp fcn.004da320
Function at 0x401c80
Capabilities:
Log keystrokes

Disassembly:
push r12
push rbp
push rdi
push rsi
mov esi, ecx
push rbx
mov ebx, r9d
movzx r9d, dx
sub rsp, 0x20
test bh, 1
je 0x401c9c
test cl, cl
je 0x401ce0
cmp dx, 0x58
jbe 0x401d10
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x401cc0
mov r12d, 0xffffffff
add rsp, 0x20
mov eax, r12d
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
movzx r12d, sil
test sil, sil
je 0x401caa
add rsp, 0x20
mov eax, r12d
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, [0x0041a3ca]
mov ecx, 0x1c
xor eax, eax
jmp 0x401cf7
movzx ecx, word [rdx]
add rdx, 0xa
cmp r9w, cx
je 0x401db0
add rax, 1
cmp rax, 0xc
jne 0x401cf0
jmp 0x401caa
lea rax, [0x0041a0e0]
movzx ecx, r8w
mov edx, 2
lea rbp, [rax + r9*8]
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
movzx edi, ax
mov ecx, edi
mov r12d, edi
call qword [sym.imp.msvcrt.dll_isupper]
mov ecx, edi
test eax, eax
jne 0x401d90
call qword [sym.imp.msvcrt.dll_islower]
mov r8d, eax
mov eax, edi
test r8d, r8d
je 0x401d56
mov ecx, edi
call qword [sym.imp.msvcrt.dll_toupper]
test bl, 3
je 0x401d9b
movzx r12d, word [rbp + 6]
cmp r12d, 0xff
jle 0x401ca2
movzx edx, sil
cmp edx, edi
je 0x401d7d
cmp eax, edx
jne 0x401ca2
or r12b, 0xff
add rsp, 0x20
mov eax, r12d
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.msvcrt.dll_tolower]
test bl, 3
jne 0x401d5b
test bl, 0xc
je 0x401df8
movzx r12d, word [rbp + 4]
jmp 0x401d60
lea rdx, [rax + rax*4]
lea rax, [0x0041a3c0]
lea rax, [rax + rdx*2]
test bl, 3
jne 0x401e10
test bl, 0xc
je 0x401e30
movzx r12d, word [rax + 6]
xor eax, eax
test r12d, r12d
setne al
test eax, eax
je 0x401caa
cmp r12d, 0xff
jle 0x401cb0
or r12b, 0xff
jmp 0x401d81
and ebx, 0x10
jne 0x401e20
test sil, sil
jne 0x401d60
movzx r12d, word [rbp]
jmp 0x401d60
movzx r12d, word [rax + 8]
xor eax, eax
test r12d, r12d
setne al
jmp 0x401dd6
movzx r12d, word [rbp + 2]
jmp 0x401d60
and ebx, 0x10
je 0x401e44
movzx r12d, word [rax + 4]
xor eax, eax
test r12d, r12d
setne al
jmp 0x401dd6
movzx r12d, word [rax + 2]
jmp 0x401dde
Function at 0x401e50
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
mov r10d, dword [rcx]
mov r9d, dword [rcx + 0xc]
test r10d, r10d
jne 0x401f58
test r9b, 0x1c
jne 0x401e7d
and r9d, 3
jne 0x401f4d
mov ebx, dword [0x00422068]
test ebx, ebx
je 0x401f4d
movsx ecx, bl
call qword [sym.imp.USER32.dll_VkKeyScanA]
mov dword [rsp + 0x38], 0
movzx ecx, al
cwde
mov byte [rsp + 0x3a], bl
mov qword [rsp + 0x30], 0
mov edx, eax
mov r8d, eax
sar eax, 9
sar edx, 4
sar r8d, 6
and eax, 2
mov word [rsp + 0x36], cx
and r8d, 8
and edx, 0x10
or edx, r8d
or eax, edx
xor edx, edx
mov dword [rsp + 0x3c], eax
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
movzx ecx, byte [0x00422068]
lea rdx, [0x004248a0]
mov r8d, 1
mov word [rsp + 0x38], ax
mov rax, qword [0x00424880]
movdqa xmm1, xmmword [rsp + 0x30]
mov dword [rdx + rax*4], ecx
lea rcx, [rax + rax*4]
lea rdx, [0x00422080]
add rax, 1
lea rdx, [rdx + rcx*4]
and eax, 0x1ff
cmp rax, qword [0x00424888]
mov word [rdx], r8w
movups xmmword [rdx + 4], xmm1
je 0x401ffe
mov qword [0x00424880], rax
mov dword [0x00422064], 1
mov dword [0x00422068], 0
mov rbx, qword [rbp - 8]
leave
ret
movzx edx, word [rcx + 8]
mov rbx, rcx
movsx ecx, byte [rcx + 0xa]
mov dword [rsp + 0x20], 0
movzx r8d, word [rbx + 6]
call fcn.00401c80
mov edx, dword [rbx + 0xc]
test dl, 0x1c
je 0x402014
cmp eax, 0xffffffff
je 0x401e7d
mov dword [0x00422068], 0
mov rdx, qword [0x00424880]
lea rcx, [0x004248a0]
movdqu xmm0, xmmword [rbx]
mov dword [rcx + rdx*4], eax
lea rcx, [rdx + rdx*4]
lea rax, [0x00422080]
add rdx, 1
lea rax, [rax + rcx*4]
and edx, 0x1ff
mov ecx, 1
cmp rdx, qword [0x00424888]
mov word [rax], cx
movups xmmword [rax + 4], xmm0
jne 0x401fe7
lea rax, [rdx + 1]
and eax, 0x1ff
mov qword [0x00424888], rax
mov qword [0x00424880], rdx
mov rbx, qword [rbp - 8]
mov dword [0x00422064], 1
leave
ret
lea rdx, [rax + 1]
and edx, 0x1ff
mov qword [0x00424888], rdx
jmp 0x401f32
and dl, 3
je 0x401f81
movzx edx, word [rbx + 6]
lea ecx, [rdx - 0x60]
cmp cx, 9
ja 0x402053
mov r9d, dword [rbx]
test r9d, r9d
je 0x402045
mov ecx, dword [0x00422068]
lea ecx, [rcx + rcx*4]
lea edx, [rdx + rcx*2 - 0x60]
mov dword [0x00422068], edx
cmp eax, 0xffffffff
jne 0x401f94
jmp 0x401f4d
cmp eax, 0xffffffff
jne 0x401f8a
jmp 0x401f4d
Function at 0x4023c0
Capabilities:
Manipulate console buffer

Disassembly:
push r14
push r13
mov r13, rcx
push r12
mov r12d, edx
push rsi
mov esi, r9d
push rbx
mov ebx, r8d
sub rsp, 0x30
test r8d, r8d
js 0x402460
test r12d, r12d
js 0x402450
mov eax, r12d
movzx r12d, bx
shl eax, 0x10
or r12d, eax
test esi, esi
js 0x402426
xor ecx, ecx
lea r14, [rsp + 0x28]
call fcn.00401a20
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
xor eax, eax
test esi, esi
mov rdx, r14
setne al
mov rcx, r13
mov dword [rsp + 0x2c], eax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
mov rax, qword [0x0041cbe0]
mov edx, r12d
mov rcx, r13
mov dword [rax + 0x44], 0
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
add rsp, 0x30
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
mov rcx, r13
call fcn.00403790
mov r12d, eax
jmp 0x4023e6
call fcn.00403700
mov ebx, eax
jmp 0x4023e1
Function at 0x411ed0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 fcn.00411930
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00411930
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x411f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x0042d134]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x4120e8
mov rax, qword [0x0042d138]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x411f8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x412017
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x411f70
mov rcx, r12
call fcn.00412ca0
mov rbp, rax
test rax, rax
je 0x412122
mov rax, qword [0x0042d138]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00412dd0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0042d138]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x412131
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x412010
sub eax, 4
and eax, 0xfffffffb
jne 0x4120a0
add dword [0x0042d134], 1
cmp ebx, 8
jae 0x412048
test bl, 4
jne 0x4120f0
test ebx, ebx
je 0x412039
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x412110
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x412039
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x41207a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x0042d138]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x412010
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00411ed0
nop dword [rax]
xor edi, edi
jmp 0x411f97
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x412039
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x412039
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00411ed0
mov rax, qword [0x0042d138]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00411ed0
nop
nop dword [rax]
Function at 0x412910
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0042d420]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0042d400]
test rbx, rbx
je 0x412964
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x41295b
test r12, r12
je 0x41295b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x412940
lea rcx, [0x0042d420]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x412ca0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x0041cca0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x412d19
mov rcx, r10
call fcn.00412b70
test eax, eax
je 0x412d19
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x412d16
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x412d0d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x412d19
add r8, 0x28
cmp r8, r9
jne 0x412cf8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x180001310
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001338
xor eax, eax
lea r8, [0x1800010f0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
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 0x18003b359
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea r14, [rdx + riz + 0x2325a959]
mov r11w, 0x9e4f
xchg qword [rsp + 0x20], rdi
bswap rax
jmp 0x18003b3a0
not r14b
clc
call fcn.18003b381
cmc
js 0x18003b473
mov r9d, r14d
jmp 0x18003b476
mov ecx, r9d
push ax
jmp 0x18003b427
neg r11
jo 0x18003b3ea
mov ecx, r9d
push ax
mov dx, 0x3d1c
lea rsp, [rsp + 2]
jmp fcn.18003b6e4
mov dx, 0x3d1c
lea rsp, [rsp + 2]
jmp fcn.18003b6e4
lea r14, [r9 + r10]
lea rax, [rbp + riz + 0x5a1d]
mov al, byte [rsp]
setge dl
add r15, qword [rdi + riz]
jmp 0x18003b400
mov r9d, r14d
add r15, r12
jmp 0x18003b447

Function at 0x18015e1e1
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg word [rsp + 5], ax
xchg word [rsp + 0xb], ax
mov qword [rsp + 5], rsp
lea rsp, [rsp + 4]
jmp 0x18015e1cb
Function at 0x140002b50
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 fcn.140003ec0
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.140003ec0
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 0x140002bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140002cf0
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002c0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002c95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002bf0
mov rcx, rbx
call fcn.140003610
mov rdi, rax
test rax, rax
je 0x140002d12
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003750
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002cf7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002c8e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002ca0
add dword [0x1400090a4], 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 [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002c8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002b50
nop dword [rax]
xor esi, esi
jmp 0x140002c18
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002b50
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002b50
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003280
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x1400032dc
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 0x1400032d3
test rsi, rsi
je 0x1400032d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400032b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]