joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002b50
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 0x140002bad
lea rbx, [0x14003e910]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002b94
cmp r10, 2
jb 0x140002b94
cmp byte [r9], r8b
jne 0x140002b94
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 0x140002b70
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002bef
lea rbx, [0x14003e910]
cmp r8b, 0x23
jne 0x140002bd3
cmp byte [r9], r8b
jne 0x140002bd3
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 0x140002bc0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002d30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140002d4a
mov qword [r8], 0
lea rdx, [0x14003e470]
call fcn.140002c00
mov rbx, rax
test rax, rax
jne 0x140002d6a
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 0x140002e43
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002e43
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140002e43
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 0x140002e43
cmp rdi, 0xffffffffffffffff
je 0x140002e43
mov rax, qword [0x14004a750]
test rax, rax
je 0x140002de0
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140002e43
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 0x140002e30
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14004a750]
test rax, rax
je 0x140002e25
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002e4c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140002e3e
mov qword [r14], rdi
mov rax, rsi
jmp 0x140002e4e
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 0x140006230
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov r11, rcx
lea rdi, [0x14003e910]
movsxd rcx, dword [rcx + 0xf0]
mov r10d, edx
shr r10d, 0x18
mov r8d, edx
shr r8d, 8
mov r9d, edx
mov rax, qword [r11 + 0xf8]
shr r9d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r8b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, r10
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
mov rcx, qword [r11]
not ebx
cmp dword [rcx + 0x3f20], ebx
jne 0x1400062c4
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.140019b00
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140009910
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, qword [0x14004a750]
mov r14d, edx
movaps xmmword [rsp + 0x30], xmm6
mov rbx, qword [rdi + 0x3ed8]
cmp qword [rbx + 0x1a8], 0
movss xmm3, dword [rbx + 0x250]
movss xmm5, dword [rbx + 0x254]
jne 0x140009962
cmp qword [rdi + 0x4b30], 0
je 0x14000996a
movss xmm3, dword [rbx + 0x220]
cvttss2si eax, dword [r8]
xor r15d, r15d
subss xmm3, dword [rbx + 0x100]
subss xmm5, dword [rbx + 0x104]
xorps xmm4, xmm4
movd xmm1, eax
cvttss2si eax, dword [r8 + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
ucomiss xmm1, xmm4
cvtdq2ps xmm0, xmm0
jp 0x1400099a5
mov eax, 1
je 0x1400099a8
mov eax, r15d
ucomiss xmm0, xmm4
jp 0x1400099b5
jne 0x1400099b5
mov r15d, 2
movss xmm2, dword [0x1400436b0]
or r15d, eax
comiss xmm4, xmm1
jb 0x1400099cd
addss xmm1, xmm3
maxss xmm1, xmm2
comiss xmm4, xmm0
jb 0x1400099da
addss xmm0, xmm5
maxss xmm0, xmm2
or dword [rdi + 0x47b0], 2
xor edx, edx
movss dword [rdi + 0x47d0], xmm1
movss dword [rdi + 0x47d4], xmm0
mov dword [rdi + 0x47b8], 1
mov r9, qword [rbx + 8]
test rcx, rcx
je 0x140009a23
mov dword [rsp + 0x28], r14d
lea r8, str._s__s__08X
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
call fcn.140002a30
jmp 0x140009a39
lea r8, str._s__08X
mov dword [rsp + 0x20], r14d
lea rcx, [rsp + 0x60]
call fcn.140002a30
mov rcx, qword [rsp + 0x60]
xor edx, edx
movss xmm6, dword [rdi + 0x37f8]
mov r8d, 0x1000107
call fcn.14000c5a0
mov rsi, qword [rdi + 0x3ed8]
movzx ebp, al
movss dword [rdi + 0x37f8], xmm6
cmp word [rsi + 0xc2], 1
mov dword [rsi + 0x80], r14d
mov byte [rsi + 0xd2], r15b
jne 0x140009a8a
movsd xmm0, qword [rsi + 0x20]
movsd qword [rbx + 0x100], xmm0
mov r9d, r14d
lea rdx, [0x14003d961]
not r9d
lea r10, [0x14003e910]
mov ebx, r9d
mov r8b, 0x23
cmp r8b, 0x23
jne 0x140009ab7
cmp byte [rdx], r8b
jne 0x140009ab7
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x140009aa4
not ebx
cmp dword [rdi + 0x3f38], ebx
jne 0x140009ae7
xor edx, edx
xor ecx, ecx
call fcn.1400062e0
cmp dword [rdi + 0x48c8], r14d
jne 0x140009b2d
cmp word [rsi + 0x15c], 0
jne 0x140009b03
cmp byte [rsi + 0x162], 0
je 0x140009b2d
xor edx, edx
mov rcx, rsi
call fcn.14000e9d0
xor edx, edx
mov rcx, rsi
call fcn.140014b80
mov rdx, rsi
mov ecx, ebx
call fcn.1400062e0
mov eax, dword [rdi + 0x48ec]
mov dword [rdi + 0x3f60], eax
mov rbx, qword [rsp + 0x68]
movzx eax, bpl
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140012ca0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14004a040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14004a750]
mov edi, ecx
cmp byte [rbx + 0x4a79], 0
jne 0x140012d01
cmp byte [rbx + 0x4a7a], 0
jne 0x140012d01
movsx r9d, word [rbx + 0x5bb2]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400029b0
test dil, 2
je 0x140012e2f
jmp 0x140012d8c
movss xmm1, dword [rbx + 0x3894]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5bb2]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1400436d4]
mov edx, 0x10
mulss xmm1, dword [0x1400436cc]
addss xmm0, dword [rbx + 0xe00]
addss xmm1, dword [rbx + 0xe04]
mov qword [rbx + 0x47c8], rax
mov dword [rbx + 0x47b4], 1
movss dword [rbx + 0x47c0], xmm0
movss dword [rbx + 0x47c4], xmm1
movss xmm0, dword [rbx + 0x38f0]
mulss xmm0, dword [0x14004360c]
or dword [rbx + 0x47b0], 0x41
movss dword [rbx + 0x4810], xmm0
call fcn.1400029b0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140012de0
lea r11, [0x14003e910]
nop dword [rax]
cmp r9b, 0x23
jne 0x140012dc3
cmp byte [r8], r9b
jne 0x140012dc3
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 0x140012db0
not ecx
call fcn.140009e60
test rax, rax
je 0x140012e2f
cmp byte [rax + 0xb6], 0
je 0x140012e2f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5bb2]
movsx r9d, word [rbx + 0x5bb2]
call fcn.1400029b0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000c5a0
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003b6b0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400182f0
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 + 0x5ca0], 0
lea rbx, [rcx + 0x5ca8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140018397
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001834a
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.14001a770
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003250
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5ca0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5cb0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14004a748]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001839f
mov rcx, rbx
call fcn.140003250
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140018820
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14004a750]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140018883
mov qword [rsp], rbx
lea rbx, [0x14003e910]
nop dword [rax]
cmp r9b, 0x23
jne 0x140018863
cmp byte [r8], r9b
jne 0x140018863
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140018850
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5c10]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x1400188b7
mov r10, qword [r10 + 0x5c18]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x1400188be
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x1400188a4
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140038bc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x14004a040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, qword [0x14004a878]
test rbx, rbx
je 0x140038e23
mov rcx, qword [0x14004a8d8]
add rcx, 0x150
movaps xmmword [rsp + 0x90], xmm6
call fcn.14003b350
lea rcx, [rbx + 0x30c]
movaps xmm6, xmm0
call fcn.14003b400
movsd xmm2, qword [0x140043650]
xorps xmm1, xmm1
cvtss2sd xmm1, xmm0
subsd xmm6, xmm1
comisd xmm2, xmm6
jb 0x140038e1b
mov r8d, 0x6e
movaps xmmword [rsp + 0x80], xmm7
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140038410
movups xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x40]
movsd xmm1, qword [rsp + 0x30]
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x40], xmm0
movsd qword [rsp + 0x50], xmm1
call fcn.140037fe0
movsd xmm6, qword [rsp + 0x20]
xorps xmm4, xmm4
ucomisd xmm6, xmm4
movss xmm7, dword [0x14004a0b4]
xorps xmm3, xmm3
xorps xmm2, xmm2
jp 0x140038c8e
je 0x140038cf5
mov eax, dword [0x14004a8f8]
movd xmm5, eax
cvtdq2pd xmm5, xmm5
comisd xmm6, xmm5
jbe 0x140038cd1
movaps xmm3, xmm5
add eax, eax
subsd xmm3, xmm6
cvtps2pd xmm0, xmm7
xorps xmm3, xmmword [0x140043b30]
divsd xmm3, xmm0
movd xmm0, eax
movaps xmm1, xmm3
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm5
comisd xmm1, xmm0
jbe 0x140038cd1
xorps xmm3, xmm3
comisd xmm5, xmm6
jbe 0x140038cf5
movaps xmm3, xmm6
cvtps2pd xmm0, xmm7
subsd xmm3, xmm5
divsd xmm3, xmm0
movaps xmm0, xmm3
addsd xmm0, xmm5
comisd xmm4, xmm0
jbe 0x140038cf5
xorps xmm3, xmm3
movsd xmm5, qword [rsp + 0x28]
ucomisd xmm5, xmm4
jp 0x140038d03
je 0x140038d6a
mov eax, dword [0x14004a914]
movd xmm6, eax
cvtdq2pd xmm6, xmm6
comisd xmm5, xmm6
jbe 0x140038d46
movaps xmm2, xmm6
add eax, eax
subsd xmm2, xmm5
cvtps2pd xmm0, xmm7
xorps xmm2, xmmword [0x140043b30]
divsd xmm2, xmm0
movd xmm0, eax
movaps xmm1, xmm2
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm6
comisd xmm1, xmm0
jbe 0x140038d46
xorps xmm2, xmm2
comisd xmm6, xmm5
jbe 0x140038d6a
movaps xmm2, xmm5
cvtps2pd xmm0, xmm7
subsd xmm2, xmm6
divsd xmm2, xmm0
movaps xmm0, xmm2
addsd xmm0, xmm6
comisd xmm4, xmm0
jbe 0x140038d6a
xorps xmm2, xmm2
xor eax, eax
mov qword [rsp + 0x54], 0x4001
mov qword [rsp + 0x40], rax
mov edx, 0x1000
mov qword [rsp + 0x5c], rax
xor ecx, ecx
mov dword [rsp + 0x64], eax
mov r9d, 0x40
mov dword [rsp + 0x50], eax
mov r8d, edx
cvttsd2si eax, xmm3
mov dword [rsp + 0x48], eax
cvttsd2si eax, xmm2
mov dword [rsp + 0x4c], eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movaps xmm7, xmmword [rsp + 0x80]
mov rbx, rax
test rax, rax
je 0x140038e1b
movups xmm0, xmmword [0x14004a828]
mov r8d, 0x28
lea rdx, [rsp + 0x40]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x14004a838]
movsd qword [rax + 0x10], xmm1
mov ecx, dword [0x14004a840]
mov dword [rax + 0x18], ecx
movzx ecx, word [0x14004a844]
mov word [rax + 0x1c], cx
mov ecx, 1
call rbx
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
movaps xmm6, xmmword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14003b6b0
add rsp, 0xa0
pop rbx
ret
Function at 0x14003c360
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003c3aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003c3aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003c3aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003c3aa
cmp dword [rcx + 0x84], 0xe
jbe 0x14003c3aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003c3ac
xor al, al
add rsp, 0x28
ret
Function at 0x14006da80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x2260
call fcn.1400ecec0
sub rsp, rax
lea rax, [rsp + 0x2290]
mov r8, rcx
lea rcx, [rsp + 0x1260]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
movzx esi, dl
lea rbx, [rsp + 0x1260]
lea rdi, [0x1400ef7e4]
call fcn.14006d830
test al, al
jne 0x14006dad4
add rsp, 0x2260
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x2298], r15
xor r15d, r15d
test sil, sil
je 0x14006db96
mov rsi, qword [rsp + 0x2290]
lea rax, [0x14010f800]
mov r9, rsi
mov qword [rsp + 0x2280], rbp
lea r8, str.__s_s
mov qword [rsp + 0x2288], r14
mov edx, 0x800
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x260]
call fcn.1400ce300
movsxd rbp, eax
lea r14d, [rbp + 1]
cmp r14d, 0x800
jg 0x14006db6e
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006db6e
movsxd rax, r14d
lea rbx, [rsp + 0x260]
mov ecx, SafeArrayAllocDescriptor
mov word [rsp + rbp*2 + 0x260], cx
mov word [rsp + rax*2 + 0x260], r15w
jmp 0x14006db7e
cmp rsi, qword [0x14012bb90]
jne 0x14006db86
mov rbx, qword [0x14012bb88]
lea rdi, [rsp + 0x1260]
mov rbp, qword [rsp + 0x2280]
mov r14, qword [rsp + 0x2288]
mov qword [rsp + 0x48], r15
lea rcx, [0x14012afc0]
mov byte [rsp + 0x40], r15b
xor r9d, r9d
mov byte [rsp + 0x38], r15b
mov r8, rdi
mov qword [rsp + 0x30], r15
mov rdx, rbx
mov qword [rsp + 0x28], r15
mov byte [rsp + 0x20], r15b
call fcn.1400612f0
mov r15, qword [rsp + 0x2298]
test eax, eax
setne al
add rsp, 0x2260
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000a2f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1400a9180]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x80], 0
jg 0x14000a324
xor eax, eax
jmp 0x14000a4d1
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x14000a34c
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.14000a4f0
jmp 0x14000a4d1
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
call fcn.140006020
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x14000a3e9
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.1400026c0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x70]
call fcn.140007bd0
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.1400073b0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call fcn.140007ae0
nop
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x14000a4c1
mov rcx, qword [rsp + 0x70]
call fcn.140006810
mov qword [rsp + 0x38], 0xfff
cmp qword [rsp + 0x40], 0xfff
jbe 0x14000a489
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.1400600b4
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x28], 0xfff
je 0x14000a487
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x14000a4d1
jmp 0x14000a40f
cmp qword [rsp + 0x40], 0
jbe 0x14000a4c1
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.1400600b4
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140058f20
add rsp, 0x68
ret
Function at 0x1400115e0
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0x170
mov rax, qword [0x1400a9180]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword gs:[0x60]
xor r13d, r13d
mov rcx, qword [rax + 0x18]
mov rsi, qword [rcx + 0x20]
test rsi, rsi
je 0x1400116e3
mov ebp, 0x104
movzx eax, word [rsi + 0x48]
test ax, ax
je 0x1400116e3
cmp ax, bp
jae 0x1400116e3
mov rax, qword [rsi + 0x50]
mov ebx, r13d
cmp word [rax], bx
je 0x140011670
mov rdi, r13
mov rcx, r13
nop word [rax + rax]
movzx ecx, word [rcx + rax]
call fcn.140067524
inc ebx
mov byte [rsp + rdi + 0x50], al
mov rax, qword [rsi + 0x50]
mov edi, ebx
lea rcx, [rbx + rbx]
cmp word [rcx + rax], r13w
jne 0x140011650
mov eax, ebx
cmp rax, rbp
jae 0x14001189d
lea rcx, [rsp + 0x50]
mov byte [rsp + rax + 0x50], r13b
mov ebx, r13d
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdx, eax
mov rcx, r13
test eax, eax
je 0x1400116d7
nop dword [rax + rax]
movsx eax, byte [rsp + rcx + 0x50]
inc rcx
add eax, ebx
imul ebx, eax, 0x1001
mov eax, ebx
shr eax, 6
xor ebx, eax
cmp rcx, rdx
jne 0x1400116a0
lea eax, [rbx + rbx*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
cmp eax, 0xf3bbd1e
je 0x140011894
mov rsi, qword [rsi]
test rsi, rsi
jne 0x140011622
mov rbp, r13
mov qword [rsp + 0x1a0], r12
mov edx, 0xf4139c33
mov rcx, rbp
mov qword [rsp + 0x1b0], r15
call fcn.140012170
mov edx, 0xd493e7be
mov rcx, rbp
mov r12, rax
call fcn.140012170
mov edx, 0x81e8fadf
mov rcx, rbp
mov r15, rax
call fcn.140012170
mov r9d, 0x32c8
mov qword [rsp + 0x28], r13
mov r8, rax
mov dword [rsp + 0x20], r13d
xor edx, edx
xor ecx, ecx
call r12
mov edx, 0x2710
mov rcx, rax
mov rdi, rax
call r15
cmp eax, 0x102
jne 0x140011866
mov ebx, r13d
nop dword [rax]
xor edx, edx
mov rcx, rdi
call r15
test eax, eax
je 0x140011773
inc ebx
cmp ebx, 0xffffffff
jne 0x140011760
cmp ebx, 0x26000
jl 0x140011866
mov edx, 0xfe2783b7
mov qword [rsp + 0x1a8], r14
mov rcx, rbp
call fcn.140012170
mov edx, 0x132cdd14
mov rcx, rbp
mov rsi, rax
call fcn.140012170
mov edx, 0x4dd2952d
mov rcx, rbp
mov r14, rax
call fcn.140012170
mov edx, 0xac013f4
mov rcx, rbp
mov rbx, rax
call fcn.140012170
mov edx, 0x35cd729d
mov rcx, rbp
mov rdi, rax
call fcn.140012170
mov qword [rsp + 0x30], r13
lea rcx, str.tank.bin
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rbp, rax
call rsi
xor edx, edx
mov rcx, rax
mov rsi, rax
call rbx
mov edx, eax
xor ecx, ecx
mov r9d, 0x40
mov ebx, eax
mov r8d, 0x3000
call rdi
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call r14
mov rcx, rsi
call rbp
xor r9d, r9d
mov qword [rsp + 0x28], r13
mov r8, rdi
mov dword [rsp + 0x20], r13d
xor edx, edx
xor ecx, ecx
call r12
mov edx, 0xffffffff
mov rcx, rax
call r15
mov r14, qword [rsp + 0x1a8]
mov r12, qword [rsp + 0x1a0]
mov r15, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140058f20
add rsp, 0x170
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rbp, qword [rsi + 0x20]
jmp 0x1400116e6
call fcn.140059854
int3
Function at 0x140012170
Capabilities:
Encode data using xor
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov r15d, edx
mov rbp, rcx
test rcx, rcx
je 0x140012310
test edx, edx
je 0x140012310
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140012310
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140012310
movups xmm0, xmmword [rax + 0x18]
lea rcx, [rsp + 0x20]
xor esi, esi
movups xmm1, xmmword [rax + 0x28]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [rcx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm1
mov r12d, dword [rsp + 0x90]
add r12, rbp
mov r13d, dword [r12 + 0x20]
mov ecx, dword [r12 + 0x1c]
add r13, rbp
mov edx, dword [r12 + 0x24]
add rcx, rbp
add rdx, rbp
mov qword [rsp + 0x150], rcx
mov qword [rsp + 0x160], rdx
cmp dword [r12 + 0x14], esi
jbe 0x140012310
nop dword [rax]
movzx eax, word [rdx + rsi*2]
xor ebx, ebx
mov edi, dword [r13 + rsi*4]
add rdi, rbp
mov r14d, dword [rcx + rax*4]
mov rcx, rdi
add r14, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
movsxd rdx, eax
test eax, eax
je 0x1400122f0
nop word [rax + rax]
movsx eax, byte [rdi + rcx]
inc rcx
add eax, ebx
imul ebx, eax, 0x1001
mov eax, ebx
shr eax, 6
xor ebx, eax
cmp rcx, rdx
jne 0x1400122c0
lea eax, [rbx + rbx*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
cmp r15d, eax
je 0x14001230b
inc esi
cmp esi, dword [r12 + 0x14]
jae 0x140012310
mov rcx, qword [rsp + 0x150]
mov rdx, qword [rsp + 0x160]
jmp 0x140012290
mov rax, r14
jmp 0x140012312
xor eax, eax
mov rbx, qword [rsp + 0x158]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret