joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e4638
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.140002059
sub rsp, rax
mov rax, qword [0x14013d140]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400068ca
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400e4687
mov rax, rbp
jmp 0x1400e4793
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x142290]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140002eeb
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x142290]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400e478f
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e478f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140002eeb
test rax, rax
js 0x1400e478f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400e478f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400e4781
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400e4781
cmp byte [rcx], 0xd
jne 0x1400e4767
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400e4776
cmp byte [rcx + 1], 0xa
jne 0x1400e4776
inc rcx
jmp 0x1400e4776
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x13d690]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400e4749
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400e4793
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140003ac1
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 0x1400e5040
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400e5056
mov al, 1
jmp 0x1400e50c2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400e5067
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400e50c0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140006bae
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400e50c0
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400e50c0
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e50c0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400e50c2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400e54e8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x140142290]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x1400e553e
cmp word [rdx], r9w
jne 0x1400e553e
or byte [rax + rbp*8 + 0x38], 4
jmp 0x1400e5543
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x1400e56c2
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x1400e568d
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x1400e558b
cmp rcx, r8
jae 0x1400e55ab
cmp word [rcx], r9w
jne 0x1400e558b
add rax, 4
mov edx, r9d
jmp 0x1400e558e
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x1400e5560
jmp 0x1400e56c2
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e5686
cmp dword [rsp + 0x80], edi
je 0x1400e5686
lea r9, [0x140142290]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x1400e5660
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x1400e5613
mov word [rbx], bp
jmp 0x1400e56bf
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x1400e562e
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x1400e56bf
cmp word [rsp + 0x70], bp
jne 0x1400e566c
cmp rbx, rsi
je 0x1400e560b
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140001ed8
cmp word [rsp + 0x70], bp
je 0x1400e56c2
mov word [rbx], 0xd
jmp 0x1400e56bf
mov rcx, r15
lea r9, [0x140142290]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400e56bc
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400e56c2
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400f2fac
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400f2fac
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 0x1400f2fdc
xor eax, eax
jmp 0x1400f309f
mov rbp, rbx
cmp word [rax], si
je 0x1400f3001
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400f2fe8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400f2fe4
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.1400052ae
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1400f3042
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400f2fd5
call fcn.140001064
mov rdi, rax
test rax, rax
jne 0x1400f3058
xor ecx, ecx
call fcn.140001294
jmp 0x1400f3037
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.1400052ae
test eax, eax
jne 0x1400f3089
mov rcx, rdi
call fcn.140001294
jmp 0x1400f3093
xor ecx, ecx
call fcn.140001294
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 0x1400f3100
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400f3100
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 0x1400f3187
mov rsi, rbx
cmp word [rax], bp
je 0x1400f3146
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400f3130
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400f312c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140001064
mov rdi, rax
test rax, rax
je 0x1400f3174
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003aee
mov rbp, rdi
xor ecx, ecx
call fcn.140001294
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 0x1400f48a0
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400f48a0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ebx, eax
test eax, eax
je 0x1400f48e8
test rdi, rdi
je 0x1400f48d7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.140001ff5
cmp eax, 1
je 0x1400f48e8
mov eax, 4
jmp 0x1400f492d
call fcn.140006195
cmp eax, 2
jne 0x1400f4924
call fcn.14000209f
test al, al
je 0x1400f4924
call fcn.140004570
test al, al
jne 0x1400f491a
bts esi, 0x15
xor ecx, ecx
mov rdx, rdi
mov r8, rbp
mov r9d, esi
call fcn.1400061f4
jmp 0x1400f492d
call fcn.140005f51
mov rcx, rax
jmp 0x1400f490a
neg ebx
sbb eax, eax
neg eax
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f8458
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x1400f84cb
cmp word [rcx], si
je 0x1400f84cb
lea rdx, [0x14011ecf0]
call fcn.140003b5c
test eax, eax
je 0x1400f84cb
lea rdx, [0x14011ed10]
mov rcx, rbx
call fcn.140003b5c
test eax, eax
jne 0x1400f84c1
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400f84e8
mov eax, dword [rsp + 0x30]
jmp 0x1400f84fa
mov rcx, rbx
call fcn.1400010e1
jmp 0x1400f84fa
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400f84ec
xor eax, eax
jmp 0x1400f84fa
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1400f84fa
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f8568
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.1400023a6
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400f860b
cmp edi, dword [rsp + 0x30]
je 0x1400f8604
test ebp, ebp
je 0x1400f8604
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x1400f85e0
sub dx, 0x61
cmp dx, 0x19
ja 0x1400f85ec
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x1400f85cd
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x1400f85f0
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x1400f860d
mov eax, 1
jmp 0x1400f860d
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140100abc
Capabilities:
Set environment variable

Disassembly:
jmp 0x140100abc
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000313e
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140100b46
cmp byte [rbp - 0x21], r15b
je 0x140100b41
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140100b7c
call fcn.140006c49
test eax, eax
jne 0x140100b68
cmp byte [rbp - 0x21], r15b
je 0x140100b60
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140100b7c
cmp byte [rbp - 0x21], r15b
je 0x140100b79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000704a
test eax, eax
jne 0x140100c1c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000313e
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140100bbb
cmp byte [rbp - 0x21], r15b
je 0x140100bf0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140100bf0
call fcn.140006c49
test eax, eax
jne 0x140100bdc
cmp byte [rbp - 0x21], r15b
je 0x140100bd5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140100bf0
cmp byte [rbp - 0x21], r15b
je 0x140100bed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000704a
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140100c1c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140100c1f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140100c2d
mov rcx, rdi
call fcn.140001294
cmp byte [rbp + 0x3f], r15b
je 0x140100c3c
mov rcx, qword [rbp + 0x27]
call fcn.140001294
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1401028a8
Capabilities:
Clear file content

Disassembly:
jmp 0x1401028a8
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.140001ed8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140001ed8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401029f5
cmp rax, 0xffffffffffffffff
je 0x1401029f5
xor edi, edi
test rbp, rbp
jle 0x1401029a3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140005f88
mov rbx, rax
test rax, rax
jne 0x140102930
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140102999
mov edx, 0x8000
mov ecx, r14d
call fcn.140004f39
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.140005a65
cmp eax, 0xffffffff
je 0x140102979
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140102940
mov edx, r15d
mov ecx, r14d
call fcn.140004f39
jmp 0x140102999
cmp byte [rsi + 0x38], dil
je 0x140102990
cmp dword [rsi + 0x34], 5
jne 0x140102990
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140102999
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140001294
jmp 0x140102a07
jns 0x140102a07
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140001ed8
cmp rax, 0xffffffffffffffff
jne 0x1401029c1
cmp byte [rsi + 0x30], dil
je 0x140102a07
jmp 0x1401029fd
mov ecx, r14d
call fcn.140006bae
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140102a07
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 0x140102a07
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140102a02
mov edi, dword [rsi + 0x2c]
jmp 0x140102a07
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140001ed8
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 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0041ff10]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0041ff20]
mov dword [rax], 1
mov rax, qword [0x0041ff30]
mov dword [rax], 1
mov rax, qword [0x0041ff00]
mov dword [rax], 1
mov rax, qword [0x0041fdf0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x0041fef0]
mov dword [0x00426008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x0041feb0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0041fbe0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401590
Capabilities:
Enumerate processes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x150
mov rsi, rcx
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x401628
lea rdi, [rsp + 0x20]
mov ecx, 0x26
mov eax, 0
rep stosq qword [rdi], rax
mov dword [rsp + 0x20], 0x130
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sym.Process32First
test eax, eax
je 0x40160f
lea rcx, [rsp + 0x4c]
mov rdx, rsi
call sym.strcmp
test eax, eax
je 0x401600
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sym.Process32Next
jmp 0x4015dc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x40161d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0
add rsp, 0x150
pop rbx
pop rsi
pop rdi
ret
mov eax, 0
jmp 0x40161d

Function at 0x4016a1
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
lea rcx, str.Launching_Pixel_Gun_3D_via_Steam...
call dbg.void show<(ConsoleColor)11>(char const*)
lea rcx, str.start_steam:__rungameid_2524890
call sym.system
nop
add rsp, 0x28
ret
Function at 0x4016c3
Capabilities:
Allocate or change rwx memory
Enumerate threads
Inject apc

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rbx, rdx
mov rax, qword [rdx + 8]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
lea r8, [rax + 1]
mov edx, 0
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
test rax, rax
je 0x40178a
mov rax, qword [rbx + 8]
mov qword [rsp + 0x20], 0
lea r9, [rax + 1]
mov r8, qword [rbx]
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40179d
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.LoadLibraryA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
test rax, rax
je 0x4017d3
mov edx, 0
mov ecx, 4
call sym.CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x4017fe
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x30]
mov rcx, rax
call sym.Thread32First
mov ebp, 0
jmp 0x401836
lea rcx, str.Failed_to_allocate_memory_in_remote_process.
call dbg.void show<(ConsoleColor)12>(char const*)
mov eax, 0
jmp 0x4017c6
lea rcx, str.Failed_to_write_DLL_path_to_remote_process.
call dbg.void show<(ConsoleColor)12>(char const*)
mov r9d, 0x8000
mov r8d, 0
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rcx, str.Failed_to_find_LoadLibraryA_address.
call dbg.void show<(ConsoleColor)12>(char const*)
mov r9d, 0x8000
mov r8d, 0
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 0
jmp 0x4017c6
lea rcx, str.Failed_to_take_a_snapshot_of_the_threads.
call dbg.void show<(ConsoleColor)12>(char const*)
mov r9d, 0x8000
mov r8d, 0
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 0
jmp 0x4017c6
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sym.Thread32Next
test eax, eax
je 0x401868
mov ebx, dword [rsp + 0x3c]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcessId]
cmp ebx, eax
jne 0x401829
mov r8d, dword [rsp + 0x38]
mov edx, 0
mov ecx, 0x1f03ff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x401829
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbp, rbp
je 0x40189c
mov r8, r12
mov rdx, rbp
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
test eax, eax
je 0x4018ca
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4017c6
lea rcx, str.Failed_to_open_a_thread_in_the_remote_process.
call dbg.void show<(ConsoleColor)12>(char const*)
mov r9d, 0x8000
mov r8d, 0
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 0
jmp 0x4017c6
lea rcx, str.Failed_to_queue_the_APC_for_DLL_injection.
call dbg.void show<(ConsoleColor)12>(char const*)
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
mov r8d, 0
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 0
jmp 0x4017c6
Function at 0x40b8e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00426624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x40ba68
mov rax, qword [0x00426628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40b92c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x40b9b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x40b910
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40ba9d
mov rax, qword [0x00426628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00426628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40ba80
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40b9ae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x40ba10
add dword [0x00426624], 1
cmp edi, 8
jae 0x40b9e3
test dil, 4
jne 0x40ba54
test edi, edi
je 0x40b9d8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40ba6f
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 0x40b9d8
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 0x40b9fc
jmp 0x40b9d8
add rsi, qword [0x00426628]
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 0x40b9ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40b9d8
xor esi, esi
jmp 0x40b937
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40b9d8
mov rax, qword [0x00426628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x40c1f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00426900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004268e0]
test rbx, rbx
je 0x40c244
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 0x40c23b
test rsi, rsi
je 0x40c23b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40c220
lea rcx, [0x00426900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]