joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401040
Capabilities:
Encode data using xor

Disassembly:
mov eax, r9d
shr eax, 4
and r9d, 0xf
jne 0x401125
test eax, eax
je 0x401122
push rbp
sub eax, 1
shl rax, 4
mov rbp, rsp
push r15
mov r15, r8
push r14
mov r14, rcx
push r13
mov r13, rdx
push r12
push rdi
lea rdi, [r8 + rax + 0x10]
push rsi
lea rsi, [rcx + 0x1e4]
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
lea rbx, [rsp + 0x20]
lea r12, [rsp + 0x30]
mov rdx, rsi
mov rax, rbx
nop dword [rax + rax]
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
lea rcx, [rsp + 0x30]
cmp rax, rcx
jne 0x4010a0
xor eax, eax
nop word [rax + rax]
movzx edx, byte [r13 + rax]
mov byte [r14 + rax + 0x1e4], dl
add rax, 1
cmp rax, 0x10
jne 0x4010c0
mov rdx, rsi
mov r8, r15
mov rcx, r14
call fcn.00401320
mov rdx, rbx
mov rax, r15
nop dword [rax]
movzx ecx, byte [rdx]
add rdx, 1
xor byte [rax], cl
add rax, 1
cmp r12, rdx
jne 0x4010f0
add r15, 0x10
add r13, 0x10
cmp r15, rdi
jne 0x401095
lea rsp, [rbp - 0x38]
xor eax, eax
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
xor eax, eax
ret
mov eax, 0xffffffff
ret

Function at 0x401190
Capabilities:
Encode data using xor

Disassembly:
mov eax, r9d
shr eax, 4
and r9d, 0xf
jne 0x401227
test eax, eax
je 0x401224
push r12
sub eax, 1
mov r12, r8
push rbp
shl rax, 4
push rdi
lea rbp, [rdx + rax + 0x10]
lea rdi, [rcx + 0x1e4]
push rsi
mov rsi, rdx
push rbx
mov rbx, rcx
sub rsp, 0x20
nop
xor eax, eax
movzx edx, byte [rsi + rax]
xor byte [rbx + rax + 0x1e4], dl
add rax, 1
cmp rax, 0x10
jne 0x4011d2
mov rdx, rdi
mov rcx, rbx
call fcn.00401a30
xor eax, eax
movzx edx, byte [rbx + rax + 0x1e4]
mov byte [r12 + rax], dl
add rax, 1
cmp rax, 0x10
jne 0x4011f4
add rsi, 0x10
add r12, 0x10
cmp rsi, rbp
jne 0x4011d0
add rsp, 0x20
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor eax, eax
ret
mov eax, 0xffffffff
ret
Function at 0x404600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x50
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
test rcx, rcx
je 0x404731
test edx, edx
je 0x404731
movsxd r15, dword [rcx + 0x3c]
lea rax, [rcx + r15]
mov r14d, dword [rax + 0x88]
mov qword [rsp + 0x28], rax
add r14, rcx
mov eax, dword [r14 + 0x18]
mov r8d, dword [r14 + 0x20]
test eax, eax
je 0x404731
mov edi, edx
mov rsi, rcx
lea r13d, [rax - 1]
xor r15d, r15d
lea r12, [rcx + r8]
jmp 0x404690
lea rax, [r15 + 1]
cmp r13, r15
je 0x404731
mov r15, rax
mov ebx, dword [r12 + r15*4]
add rbx, rsi
je 0x404680
xor edx, edx
mov r8d, 1
mov rcx, rbx
call fcn.00404370
cmp edi, eax
jne 0x404680
mov rax, qword [rsp + 0x28]
lea rcx, [rsi + r15*2]
mov edx, dword [rax + 0x8c]
mov eax, dword [r14 + 0x24]
movzx ecx, word [rcx + rax]
mov eax, dword [r14 + 0x1c]
lea rcx, [rsi + rcx*4]
mov eax, dword [rcx + rax]
add rax, rsi
mov qword [rsp + 0x38], rax
cmp rax, r14
jb 0x404733
add rdx, rsi
add r14, rdx
cmp rax, r14
jae 0x404733
mov rcx, rbx
call fcn.00407510
mov qword [rsp + 0x48], rbx
mov word [rsp + 0x40], ax
add eax, 1
mov word [rsp + 0x42], ax
mov rax, qword [0x00411cb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x68]
test rax, rax
je 0x404731
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea r9, [rsp + 0x38]
mov rcx, rsi
call rax
test eax, eax
js 0x404731
mov rax, qword [rsp + 0x38]
jmp 0x404733
xor eax, eax
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x4066a0
Capabilities:
Access peb ldr_data
Get ntdll base address
Populate syswhispers2 syscall list
Resolve function by parsing pe exports

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov rdx, qword [rcx + 0x30]
test rdx, rdx
je 0x40689c
push r15
xor r9d, r9d
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rdx
movsxd rdx, dword [rdx + 0x3c]
mov eax, dword [rbx + rdx + 0x88]
test eax, eax
je 0x406710
lea r9, [rbx + rax]
mov edx, dword [r9 + 0xc]
add rdx, rbx
mov r8d, dword [rdx]
or r8d, 0x20202020
cmp r8d, 0x6c64746e
jne 0x406710
mov eax, dword [rdx + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x406725
mov rcx, qword [rcx]
mov rdx, qword [rcx + 0x30]
test rdx, rdx
jne 0x4066d1
test r9, r9
je 0x406898
mov ebp, dword [r9 + 0x1c]
mov r15d, dword [r9 + 0x24]
xor r13d, r13d
lea rax, [rbp + rbx]
add r15, rbx
lea rbp, [0x00417008]
mov qword [rsp + 0x28], rax
mov eax, dword [r9 + 0x18]
lea edx, [rax - 1]
mov eax, dword [r9 + 0x20]
lea rdi, [r15 + rdx*2]
add rax, rbx
lea r12, [rax + rdx*4]
jmp 0x406774
sub r12, 4
lea rax, [rdi - 2]
cmp r15, rdi
je 0x406800
mov rdi, rax
mov edx, dword [r12]
add rdx, rbx
movzx eax, word [rdx]
cmp ax, 0x775a
jne 0x406760
mov r14d, r13d
mov rsi, rbp
mov r9d, 0x1deb8ac6
shl r14, 4
add r14, rbp
cmp byte [rdx], 0
je 0x4067bd
xor r10d, r10d
jmp 0x4067a5
movzx eax, word [rdx + rax]
mov ecx, r9d
add r10d, 1
ror ecx, 8
add eax, ecx
xor r9d, eax
mov eax, r10d
cmp byte [rdx + rax], 0
jne 0x4067a1
movzx eax, word [rdi]
mov rcx, qword [rsp + 0x28]
mov dword [r14], r9d
add r13d, 1
mov eax, dword [rcx + rax*4]
mov dword [r14 + 4], eax
lea rcx, [rax + rbx]
call fcn.00406510
mov qword [r14 + 8], rax
cmp r13d, 0x258
jne 0x406760
mov dword [section..bss], 0x258
mov r13d, 0x257
jmp 0x406814
mov dword [section..bss], r13d
lea rsi, [0x00417008]
sub r13d, 1
je 0x406882
mov r10d, r13d
nop word [rax + rax]
mov rdx, rsi
xor ecx, ecx
jmp 0x40686e
lea eax, [rcx + 1]
mov r8d, dword [rdx + 4]
mov rcx, rax
shl rax, 4
add rax, rsi
mov r9d, dword [rax + 4]
cmp r8d, r9d
jbe 0x40686a
mov ebx, dword [rdx]
mov r11, qword [rdx + 8]
mov edi, dword [rax]
mov dword [rdx + 4], r9d
mov r9, qword [rax + 8]
mov dword [rdx], edi
mov qword [rdx + 8], r9
mov dword [rax], ebx
mov dword [rax + 4], r8d
mov qword [rax + 8], r11
add rdx, 0x10
cmp ecx, r10d
jne 0x406830
sub r10d, 1
mov eax, r13d
sub eax, r10d
cmp r13d, eax
ja 0x406820
mov eax, 1
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x406887
xor eax, eax
ret
Function at 0x409200
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push rbp
xor eax, eax
mov r8, rcx
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x130
mov qword [rbp + 0x10], rcx
lea r9, [rsp + 0x10]
mov qword [rsp + 8], r9
nop dword [rax]
mov ecx, dword [r8 + rax + 8]
add rax, 4
mov dword [rax + r9 - 4], ecx
cmp rax, 0x20
jne 0x409230
lea r10, [rsp + 0x30]
lea r9, [r10 + 0x40]
mov rcx, r10
movzx eax, byte [rdx]
movzx r8d, byte [rdx + 1]
add rcx, 4
add rdx, 4
shl r8d, 0x10
shl eax, 0x18
or eax, r8d
movzx r8d, byte [rdx - 1]
or eax, r8d
movzx r8d, byte [rdx - 2]
shl r8d, 8
or eax, r8d
mov dword [rcx - 4], eax
cmp r9, rcx
jne 0x409250
lea r9, [r10 + 0xc0]
mov rcx, r10
mov eax, dword [rcx + 0x38]
mov r8d, dword [rcx + 4]
add rcx, 4
mov edx, eax
mov r11d, eax
shr eax, 0xa
rol r11d, 0xd
rol edx, 0xf
xor edx, r11d
mov r11d, r8d
xor edx, eax
mov eax, dword [rcx - 4]
add eax, dword [rcx + 0x20]
rol r11d, 0xe
add edx, eax
mov eax, r8d
shr r8d, 3
ror eax, 7
xor eax, r11d
xor eax, r8d
add eax, edx
mov dword [rcx + 0x3c], eax
cmp r9, rcx
jne 0x409290
mov edx, dword [rsp + 0x2c]
mov r9d, dword [rsp + 0x20]
lea r12, [0x00411de4]
lea r14, [r10 + 0x100]
mov ebx, dword [rsp + 0x28]
mov edi, dword [rsp + 0x24]
mov r15d, 0x428a2f98
mov r8d, dword [rsp + 0x10]
mov r11d, dword [rsp + 0x14]
mov esi, dword [rsp + 0x18]
mov r13d, dword [rsp + 0x1c]
jmp 0x409330
mov r15d, dword [r12]
mov edx, ebx
mov r13d, esi
mov ebx, edi
mov esi, r11d
mov edi, r9d
mov r11d, r8d
add r12, 4
mov r8d, eax
mov r9d, ecx
mov eax, r9d
mov ecx, r9d
add r10, 4
ror ecx, 0xb
ror eax, 6
xor eax, ecx
mov ecx, r9d
rol ecx, 7
xor ecx, eax
mov eax, ebx
xor eax, edi
and eax, r9d
xor eax, ebx
add eax, ecx
add eax, dword [r10 - 4]
add eax, edx
mov edx, r8d
add eax, r15d
ror edx, 2
mov r15d, r8d
lea ecx, [rax + r13]
mov r13d, r8d
and r15d, r11d
ror r13d, 0xd
xor edx, r13d
mov r13d, r8d
rol r13d, 0xa
xor edx, r13d
mov r13d, r8d
or r13d, r11d
and r13d, esi
or r13d, r15d
add edx, r13d
add eax, edx
cmp r14, r10
jne 0x409312
mov dword [rsp + 0x1c], esi
mov rsi, qword [rbp + 0x10]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 8]
mov dword [rsp + 0x14], r8d
lea rdx, [rsi + 8]
lea r8, [rsi + 0x28]
mov dword [rsp + 0x2c], ebx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x24], r9d
mov dword [rsp + 0x10], eax
mov dword [rsp + 0x18], r11d
jmp 0x4093d4
mov eax, dword [rcx]
add dword [rdx], eax
add rdx, 4
add rcx, 4
cmp r8, rdx
jne 0x4093d2
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x409450
Capabilities:
Encode data using base64

Disassembly:
push r12
push rbp
mov rbp, rcx
movabs rcx, 0xaaaaaaaaaaaaaaab
push rdi
mov rdi, r8
push rsi
push rbx
mov rbx, rdx
add rdx, 2
mov rax, rdx
mul rcx
sub rsp, 0x20
shr rdx, 1
lea rcx, [rdx*4]
mov qword [r8], rcx
add ecx, 1
call fcn.00405450
mov rsi, rax
test rax, rax
je 0x4095ad
test rbx, rbx
je 0x40959a
mov rcx, rax
xor r11d, r11d
lea r9, [0x004162e0]
xor edx, edx
jmp 0x409532
movzx r10d, byte [rbp + rdx]
lea r12d, [r11 + 2]
movsxd rdx, r12d
shl r10d, 8
mov r8d, r10d
cmp rdx, rbx
jae 0x4095bb
add r11d, 3
movzx r10d, byte [rbp + rdx]
movsxd rdx, r11d
add r10d, r8d
shl eax, 0x10
add rcx, 4
add eax, r10d
mov r8d, eax
shr r8d, 0x12
movzx r8d, byte [r9 + r8]
mov byte [rcx - 4], r8b
mov r8d, eax
shr r8d, 0xc
and r8d, 0x3f
movzx r8d, byte [r9 + r8]
mov byte [rcx - 3], r8b
mov r8d, eax
and eax, 0x3f
shr r8d, 6
movzx eax, byte [r9 + rax]
and r8d, 0x3f
movzx r8d, byte [r9 + r8]
mov byte [rcx - 1], al
mov byte [rcx - 2], r8b
cmp rbx, rdx
jbe 0x409552
lea r8d, [r11 + 1]
movzx eax, byte [rbp + rdx]
movsxd rdx, r8d
cmp rdx, rbx
jb 0x4094b3
mov r11d, r8d
xor r10d, r10d
xor r8d, r8d
jmp 0x4094dd
movabs rdx, 0xaaaaaaaaaaaaaaab
mov rax, rbx
mul rdx
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rbx, rax
lea rax, [0x00416ad0]
mov eax, dword [rax + rbx*4]
test eax, eax
jle 0x40959a
lea ecx, [rax - 1]
xor edx, edx
jmp 0x409584
mov rdx, rax
mov rax, rdx
not rax
add rax, qword [rdi]
mov byte [rsi + rax], 0x3d
lea rax, [rdx + 1]
cmp rdx, rcx
jne 0x409581
mov rcx, qword [rdi]
mov r8d, 1
xor edx, edx
add rcx, rsi
call fcn.004053e0
add rsp, 0x20
mov rax, rsi
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r11d, r12d
xor r10d, r10d
jmp 0x4094dd
Function at 0x4095d0
Capabilities:
Encode data using base64

Disassembly:
push r12
push rbp
lea rbp, [rdx + rdx]
lea rdx, [rbp + 2]
push rdi
mov rdi, rcx
movabs rcx, 0xaaaaaaaaaaaaaaab
mov rax, rdx
push rsi
mov rsi, r8
mul rcx
push rbx
shr rdx, 1
sub rsp, 0x20
lea rcx, [rdx*4 + 1]
mov qword [r8], rcx
call fcn.00405450
mov rbx, rax
test rax, rax
je 0x40972c
test rbp, rbp
je 0x409719
mov r9, rax
xor r8d, r8d
lea r10, [0x004162e0]
xor ecx, ecx
jmp 0x4096a9
movzx r11d, byte [rdi + rcx]
lea r12d, [r8 + 2]
movsxd rcx, r12d
mov edx, r11d
shl edx, 8
cmp rcx, rbp
jae 0x40973a
add r8d, 3
movzx r11d, byte [rdi + rcx]
movsxd rcx, r8d
add r11d, edx
shl eax, 0x10
add r9, 4
add eax, r11d
mov edx, eax
mov r11d, eax
shr edx, 0x12
shr r11d, 6
movzx edx, byte [r10 + rdx]
and r11d, 0x3f
mov byte [r9 - 4], dl
mov edx, eax
and eax, 0x3f
shr edx, 0xc
movzx eax, byte [r10 + rax]
and edx, 0x3f
movzx edx, byte [r10 + rdx]
mov byte [r9 - 1], al
mov byte [r9 - 3], dl
movzx edx, byte [r10 + r11]
mov byte [r9 - 2], dl
cmp rbp, rcx
jbe 0x4096d0
lea edx, [r8 + 1]
movzx eax, byte [rdi + rcx]
movsxd rcx, edx
cmp rcx, rbp
jb 0x409631
mov r8d, edx
xor r11d, r11d
xor edx, edx
jmp 0x409658
movabs rdx, 0xaaaaaaaaaaaaaaab
mov rax, rbp
mul rdx
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rbp, rax
lea rax, [0x00416ad0]
mov eax, dword [rax + rbp*4]
test eax, eax
jle 0x409719
lea ecx, [rax - 1]
xor edx, edx
jmp 0x409703
mov rdx, rax
mov rax, rdx
not rax
add rax, qword [rsi]
mov byte [rbx + rax], 0x3d
lea rax, [rdx + 1]
cmp rdx, rcx
jne 0x409700
mov rcx, qword [rsi]
mov r8d, 1
xor edx, edx
add rcx, rbx
call fcn.004053e0
add rsp, 0x20
mov rax, rbx
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, r12d
xor r11d, r11d
jmp 0x409658
Function at 0x40a5a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
mov r14, r9
push r13
mov r13, r8
mov r8d, 0x40
push r12
mov r12, rdx
xor edx, edx
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x170
mov qword [rbp + 0x10], rcx
lea rbx, [rsp + 0x40]
lea r15, [rsp + 0x80]
mov rcx, rbx
lea rdi, [rsp + 0xc0]
call fcn.004053e0
mov r8d, 0x40
mov edx, 0x36
mov rcx, r15
call fcn.004053e0
mov r8d, 0x40
mov edx, 0x5c
mov rcx, rdi
call fcn.004053e0
cmp r12, 0x40
jbe 0x40a6df
lea rsi, [rsp + 0x100]
mov rcx, rsi
call fcn.00406d60
mov rdx, qword [rbp + 0x10]
mov r8d, r12d
mov rcx, rsi
lea r12, [rsp + 0x20]
call fcn.00406db0
mov rdx, r12
mov rcx, rsi
call fcn.00406c60
mov r8d, 0x20
mov rdx, r12
mov rcx, rbx
call fcn.004053b0
mov rax, r15
mov rdx, rdi
lea r8, [r15 + 0x40]
nop word cs:[rax + rax]
movzx ecx, byte [rbx]
xor byte [rax], cl
add rax, 1
add rbx, 1
xor byte [rdx], cl
add rdx, 1
cmp rax, r8
jne 0x40a670
mov r9, r12
mov r8, r14
mov rdx, r13
mov rcx, r15
call fcn.004042a0
mov r9, rsi
mov rdx, r12
mov rcx, rdi
mov r8d, 0x20
mov ebx, 0x20
call fcn.004042a0
cmp qword [rbp + 0x38], 0x20
cmovbe rbx, qword [rbp + 0x38]
mov rdx, rsi
mov rcx, qword [rbp + 0x30]
mov r8, rbx
call fcn.004053b0
lea rsp, [rbp - 0x38]
mov rax, rbx
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rdx, qword [rbp + 0x10]
mov r8, r12
mov rcx, rbx
lea rsi, [rsp + 0x100]
lea r12, [rsp + 0x20]
call fcn.004053b0
jmp 0x40a65c
Function at 0x140002038
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400740c0], 0
je 0x14000205b
mov edx, 1
jmp 0x140002222
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor ebx, ebx
mov r8, qword [rax + 0x10]
xor eax, eax
mov rdx, qword [r8 + 0x30]
test rdx, rdx
je 0x1400020be
movsxd rcx, dword [rdx + 0x3c]
mov ecx, dword [rdx + rcx + 0x88]
test ecx, ecx
je 0x1400020b6
lea rax, [rcx + rdx]
mov ecx, dword [rax + 0xc]
add rcx, rdx
mov r9d, dword [rcx]
or r9d, 0x20202020
cmp r9d, 0x6c64746e
jne 0x1400020b6
mov ecx, dword [rcx + 4]
or ecx, 0x20202020
cmp ecx, 0x6c642e6c
je 0x1400020c8
mov r8, qword [r8]
mov rbx, rdx
jmp 0x140002070
test rax, rax
jne 0x1400020cb
jmp 0x140002222
mov rbx, rdx
mov ebp, dword [rax + 0x1c]
mov edi, dword [rax + 0x24]
xor esi, esi
lea r13, [0x1400740c8]
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
add rdi, rbx
add rbp, rbx
lea r10d, [rdx - 1]
add rax, rbx
lea r12, [rax + r10*4]
add r10, r10
add r10, rdi
mov ecx, dword [r12]
add rcx, rbx
cmp word [rcx], 0x775a
jne 0x140002133
call fcn.140001f80
mov r11d, esi
inc esi
shl r11, 4
add r11, r13
mov dword [r11], eax
movzx eax, word [r10]
mov eax, dword [rbp + rax*4]
mov dword [r11 + 4], eax
xor eax, eax
mov qword [r11 + 8], rax
cmp esi, 0x1f4
je 0x140002145
sub r12, 4
lea rax, [r10 - 2]
cmp rdi, r10
je 0x140002145
mov r10, rax
jmp 0x1400020f7
mov dword [0x1400740c0], esi
lea ebp, [rsi - 1]
lea r10, [0x1400740c8]
test ebp, ebp
je 0x1400021ac
lea rdx, [0x1400740c0]
xor ecx, ecx
lea eax, [rcx + 1]
mov r8d, dword [rdx + 0xc]
mov rcx, rax
shl rax, 4
add rax, r10
mov r9d, dword [rax + 4]
cmp r9d, r8d
jae 0x1400021a0
mov edi, dword [rdx + 8]
mov r11, qword [rdx + 0x10]
mov r12d, dword [rax]
mov dword [rdx + 0xc], r9d
mov r9, qword [rax + 8]
mov dword [rdx + 8], r12d
mov qword [rdx + 0x10], r9
mov dword [rax], edi
mov dword [rax + 4], r8d
mov qword [rax + 8], r11
add rdx, 0x10
cmp ecx, ebp
jb 0x140002162
dec ebp
jmp 0x140002155
mov eax, dword [0x1400740cc]
mov r13d, dword [0x1400740dc]
xor edi, edi
lea r15, [0x140070a40]
sub r13d, eax
lea r12, [rbx + rax]
mov r14d, edi
cmp edi, r13d
jae 0x140002051
lea rdx, [r12 + rdi]
mov r8d, 3
mov rcx, r15
inc rdi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1400021c9
lea rdi, [0x1400740c0]
test r14d, r14d
je 0x140002051
add rdi, 0x10
cmp esi, ebp
je 0x140002051
mov ecx, dword [rdi - 4]
mov r8d, r13d
mov edx, r14d
inc ebp
add rcx, rbx
call fcn.140001fa8
mov qword [rdi], rax
jmp 0x1400021fe
mov eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002910
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, 0x1a6
mov r8d, 0xf5
mov edx, 0x402
mov ecx, eax
call qword [sym.imp.USER32.dll_PostThreadMessageA]
xor eax, eax
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x1400029eb
mov rsi, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rsi
mov ecx, 0x514
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call rsi
sub eax, 0x4b0
sub eax, ebx
cmp eax, 0x12b
ja 0x1400029eb
cmp dword [rsp + 0x38], 0x402
jne 0x1400029eb
cmp qword [rsp + 0x40], 0xf5
jne 0x1400029eb
cmp qword [rsp + 0x48], 0x1a6
jne 0x1400029eb
mov r12, qword [0x140071500]
movsxd rbp, dword [r12 + 4]
lea rsi, [r12 + 0x18]
mov rcx, rbp
call sub.msvcrt.dll_malloc
mov rcx, rbp
lea r8, [r12 + 8]
mov edx, ebp
mov rdi, rax
mov rbx, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, rax
call fcn.1400016ca
mov rcx, rbx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_free
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x140002cc0
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.140003b10
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.140003b10
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 0x140002d30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140076094]
mov rbx, rcx
test esi, esi
jle 0x140002e60
mov rax, qword [0x140076098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002e05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d60
mov rcx, rbx
call fcn.140003780
mov rdi, rax
test rax, rax
je 0x140002e82
mov rax, qword [0x140076098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400038c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140076098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002dfe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e10
add dword [0x140076094], 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 [0x140076098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002dfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002cc0
nop dword [rax]
xor esi, esi
jmp 0x140002d88
mov rax, qword [0x140076098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002cc0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002cc0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400033f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140076100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400760e0]
test rbx, rbx
je 0x14000344c
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 0x140003443
test rsi, rsi
je 0x140003443
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003428
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 0x140003780
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003800
Capabilities:
Parse pe header

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

Function at 0x1400038c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400713b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400038df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400038e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret