joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180281298
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x180281310
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x180281310
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x180281310
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x180281304
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x180281322
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1802812f2
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x180281312

Function at 0x180281a80
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180281aba
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180281abf
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180281b08
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18043d7b0]
cmp byte [rcx + rax], 0
je 0x180281b08
dec r8
sub rdx, 1
jne 0x180281aee
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x18029d0c8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1802868f0
sub rsp, rax
mov rax, qword [0x1804c8100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1802a3584
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18029d117
mov rax, rbp
jmp 0x18029d21f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4e2a90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1802adfc0
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x4e2a90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18029d21b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18029d21b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1802adfc0
test rax, rax
js 0x18029d21b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18029d21b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18029d20d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18029d20d
cmp byte [rcx], 0xd
jne 0x18029d1f3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18029d202
cmp byte [rcx + 1], 0xa
jne 0x18029d202
inc rcx
jmp 0x18029d202
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4c8510]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18029d1d5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18029d21f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180286db0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1802a46dc
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x1802a46fb
call fcn.1802b2540
jmp 0x1802a47b0
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.18028f470
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x1802a4746
cmp byte [rbp - 0x38], 0
je 0x1802a477b
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1802a477b
call fcn.1802aaa54
test eax, eax
jne 0x1802a4767
cmp byte [rbp - 0x38], al
je 0x1802a475f
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1802a477b
cmp byte [rbp - 0x38], 0
je 0x1802a4778
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.1802a4124
test eax, eax
je 0x1802a4794
or ebx, 0xffffffff
jmp 0x1802a479f
mov rcx, qword [rbp - 0x20]
call fcn.1802b2540
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x1802a47ae
mov rcx, qword [rbp - 0x20]
call fcn.1802aa308
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x1802acf98
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1802acfca
call fcn.18028e310
mov dword [rax], 0x16
call fcn.18028dda0
jmp 0x1802ad0e9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1802ad0e9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1802ad0e9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1802acff9
lock or dword [rcx + 0x14], 0x10
jmp 0x1802ad0e9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1802ad00d
call fcn.1802ae1b8
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1802a3584
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1802ad7e8
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1802ad0d7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1802ad0a2
mov rcx, rsi
call fcn.1802a3584
cmp eax, edi
je 0x1802ad08d
mov rcx, rsi
call fcn.1802a3584
cmp eax, 0xfffffffe
je 0x1802ad08d
mov rcx, rsi
call fcn.1802a3584
movsxd rbx, eax
lea r14, [0x1804e2a90]
mov rcx, rsi
sar rbx, 6
call fcn.1802a3584
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1802ad094
lea rdx, [0x1804c84c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1802ad0a2
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1802ad0c6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1802ad0c6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1802ad0c6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1802ad0ec
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1802ad33c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1804e2a90]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1802ad39a
cmp word [rdx], r12w
jne 0x1802ad39a
or byte [rax + r8*8 + 0x38], cl
jmp 0x1802ad3a0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1802ad4fb
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1802ad4d6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1802ad3d9
mov rcx, r9
jmp 0x1802ad3fc
cmp r9, rdx
jae 0x1802ad413
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1802ad3bd
jmp 0x1802ad4fb
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1802ad4d0
cmp dword [rsp + 0x80], edi
je 0x1802ad4d0
mov rdx, r14
lea r11, [0x1804e2a90]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1802ad4a9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1802ad47c
mov word [rbx], r12w
jmp 0x1802ad4f7
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1802ad485
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1802ad4f7
cmp word [rsp + 0x70], r12w
jne 0x1802ad4b6
cmp rbx, rsi
je 0x1802ad476
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1802adfc8
cmp word [rsp + 0x70], r12w
je 0x1802ad4fb
mov word [rbx], r13w
jmp 0x1802ad4f7
lea r11, [0x1804e2a90]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1802ad4f3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1802ad4fb
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1802b4ab0
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 0x1802b4ae0
xor eax, eax
jmp 0x1802b4ba3
mov rbp, rbx
cmp word [rax], si
je 0x1802b4b05
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1802b4aec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1802b4ae8
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.1802b22e8
movsxd r14, eax
test eax, eax
jne 0x1802b4b43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1802b4ad9
mov rcx, r14
call fcn.1802ae224
mov rdi, rax
test rax, rax
jne 0x1802b4b5c
xor ecx, ecx
call fcn.1802aa308
jmp 0x1802b4b38
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.1802b22e8
test eax, eax
jne 0x1802b4b8d
mov rcx, rdi
call fcn.1802aa308
jmp 0x1802b4b97
xor ecx, ecx
call fcn.1802aa308
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 0x1802b4bc0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1802b4c47
mov rsi, rbx
cmp word [rax], bp
je 0x1802b4c06
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1802b4bf0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1802b4bec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1802ae224
mov rdi, rax
test rax, rax
je 0x1802b4c34
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1802bc970
mov rbp, rdi
xor ecx, ecx
call fcn.1802aa308
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1802bbdf0
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1802adfc8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1802adfc8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1802bbf40
cmp rax, 0xffffffffffffffff
je 0x1802bbf40
xor edi, edi
test rbp, rbp
jle 0x1802bbeeb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1802aa290
mov rbx, rax
test rax, rax
jne 0x1802bbe78
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1802bbee1
mov edx, 0x8000
mov ecx, r14d
call fcn.1802bbc78
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1802acc88
cmp eax, 0xffffffff
je 0x1802bbec1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1802bbe88
mov edx, r15d
mov ecx, r14d
call fcn.1802bbc78
jmp 0x1802bbee1
cmp byte [rsi + 0x38], dil
je 0x1802bbed8
cmp dword [rsi + 0x34], 5
jne 0x1802bbed8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1802bbee1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1802aa308
jmp 0x1802bbf54
jns 0x1802bbf54
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1802adfc8
cmp rax, 0xffffffffffffffff
jne 0x1802bbf0c
cmp byte [rsi + 0x30], dil
je 0x1802bbf54
mov edi, dword [rsi + 0x2c]
jmp 0x1802bbf54
mov ecx, r14d
call fcn.1802a3a58
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1802bbf54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1802bbf54
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1802bbf4d
mov eax, dword [rsi + 0x2c]
jmp 0x1802bbf52
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1802adfc8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1802bc420
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1802bc448
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1802bc448
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14004b9e0
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x18
cmp dword [0x140135780], 0
jne 0x14004bbb4
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x18]
mov r9, qword [rcx + 0x10]
mov rax, qword [r9 + 0x30]
test rax, rax
je 0x14004bbbe
mov r8, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r8 + 0x88]
test ecx, ecx
je 0x14004ba4e
lea rdx, [r8 + rcx]
mov ecx, dword [r8 + rcx + 0xc]
mov eax, dword [rcx + r8]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x14004ba4e
mov eax, dword [rcx + r8 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x14004ba5a
mov r9, qword [r9]
mov rax, qword [r9 + 0x30]
test rax, rax
jne 0x14004ba11
test rdx, rdx
je 0x14004bbbe
mov qword [rsp + 0x20], rbx
mov ebx, dword [rdx + 0x18]
mov qword [rsp + 0x28], rbp
mov ebp, dword [rdx + 0x24]
mov qword [rsp + 0x30], rsi
add rbp, r8
mov esi, dword [rdx + 0x1c]
mov qword [rsp + 0x10], rdi
add rsi, r8
mov edi, dword [rdx + 0x20]
mov qword [rsp + 8], r14
add rdi, r8
mov qword [rsp], r15
lea r14, [0x140135780]
xor r10d, r10d
mov r15d, 0x775a
nop word [rax + rax]
lea eax, [rbx - 1]
mov edx, dword [rdi + rax*4]
add rdx, r8
cmp word [rdx], r15w
jne 0x14004bb15
xor r11d, r11d
mov r9d, 0xf51b3be5
mov rax, rdx
nop dword [rax + rax]
movzx eax, word [rax]
mov ecx, r9d
ror ecx, 8
inc r11d
add ecx, eax
mov eax, r11d
add rax, rdx
xor r9d, ecx
cmp byte [rax], 0
jne 0x14004bad0
lea rdx, [r10*8]
inc r10d
mov dword [rdx + r14 + 4], r9d
lea eax, [rbx - 1]
movzx eax, word [rbp + rax*2]
mov eax, dword [rsi + rax*4]
mov dword [rdx + r14 + 8], eax
cmp r10d, 0x1f4
je 0x14004bb1a
add ebx, 0xffffffff
jne 0x14004bab0
mov r15, qword [rsp]
lea eax, [r10 - 1]
mov rsi, qword [rsp + 0x30]
xor r9d, r9d
mov rbp, qword [rsp + 0x28]
mov dword [0x140135780], r10d
test eax, eax
je 0x14004bba5
nop word [rax + rax]
mov ecx, r10d
xor eax, eax
sub ecx, r9d
cmp ecx, 1
je 0x14004bb99
nop dword [rax]
mov edx, eax
lea r11d, [rax + 1]
mov ebx, dword [r14 + r11*8 + 8]
mov edi, dword [r14 + rdx*8 + 8]
cmp edi, ebx
jbe 0x14004bb89
mov ecx, dword [r14 + rdx*8 + 4]
mov eax, dword [r14 + r11*8 + 4]
mov dword [r14 + rdx*8 + 4], eax
mov dword [r14 + r11*8 + 4], ecx
mov dword [r14 + rdx*8 + 8], ebx
mov dword [r14 + r11*8 + 8], edi
mov r10d, dword [0x140135780]
mov ecx, r10d
mov eax, r11d
sub ecx, r9d
dec ecx
cmp r11d, ecx
jb 0x14004bb50
inc r9d
lea eax, [r10 - 1]
cmp r9d, eax
jb 0x14004bb40
mov rdi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x20]
mov r14, qword [rsp + 8]
mov eax, 1
add rsp, 0x18
ret
xor eax, eax
add rsp, 0x18
ret
Function at 0x14004cdf0
Capabilities:
Check for outputdebugstring error
Check for peb beingdebugged flag
Patch process command line
Print debug messages

Disassembly:
sub rsp, 0x88
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rax, qword gs:[0x60]
cmp byte [rax + 2], 0
jne 0x14004cf1d
test byte [rax + 0xbc], 0x70
jne 0x14004cf1d
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [0x140132984]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x14004cf1d
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x80], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [0x140132948]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14004ce7d
xor edi, edi
jmp 0x14004ce90
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x30
lea r8, [rsp + 0x30]
mov rbx, rax
xor edx, edx
lea rax, [rsp + 0x68]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call rdi
mov rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x70]
add rdx, 0x50
mov qword [rsp + 0x60], 0xffffffffffffffff
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test byte [rsp + 0x60], 4
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
jne 0x14004cf1d
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140056790
add rsp, 0x88
ret
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140056790
add rsp, 0x88
ret

Function at 0x14004f440
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x4bd33f2f
call fcn.14004bbd0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14004fc80
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x35d5335b
call fcn.14004bbd0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140051c80
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x80afd272
call fcn.14004bbd0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x1400576a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400576ea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400576ea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400576ea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400576ea
cmp dword [rcx + 0x84], 0xe
jbe 0x1400576ea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400576ec
xor al, al
add rsp, 0x28
ret

Function at 0x14001124e
Capabilities:
Terminate process

Disassembly:
jmp 0x140013850
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112e9
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014ba0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014bc0
xor al, al
jmp 0x140014c41
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014bd3
xor al, al
jmp 0x140014c41
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014bfd
xor al, al
jmp 0x140014c41
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014c11
xor al, al
jmp 0x140014c41
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014c23
xor al, al
jmp 0x140014c41
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014c3f
xor al, al
jmp 0x140014c41
mov al, 1
add rsp, 0x38
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140012050]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140012060]
mov dword [rax], 1
mov rax, qword [0x140012070]
mov dword [rax], 1
mov rax, qword [0x140012000]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140012040]
mov dword [0x14001500c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140012130]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140012110]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140011f90]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a