joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029574
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.14001cb14
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001cb14
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400296c4
cmp rax, 0xffffffffffffffff
je 0x1400296c4
xor edi, edi
test rbp, rbp
jle 0x14002966f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f794
mov rbx, rax
test rax, rax
jne 0x1400295fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029665
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a4b0
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.14001d7f0
cmp eax, 0xffffffff
je 0x140029645
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002960c
mov edx, r15d
mov ecx, r14d
call fcn.14001a4b0
jmp 0x140029665
cmp byte [rsi + 0x38], dil
je 0x14002965c
cmp dword [rsi + 0x34], 5
jne 0x14002965c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029665
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001adf4
jmp 0x1400296d8
jns 0x1400296d8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001cb14
cmp rax, 0xffffffffffffffff
jne 0x140029690
cmp byte [rsi + 0x30], dil
je 0x1400296d8
mov edi, dword [rsi + 0x2c]
jmp 0x1400296d8
mov ecx, r14d
call fcn.140018fe8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400296d8
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 0x1400296d8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400296d1
mov eax, dword [rsi + 0x2c]
jmp 0x1400296d6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001cb14
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 0x14002a7d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002a7f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002a7f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140f60a40
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f60a4a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f60a73
pop rbp
sub rbp, 0x33
sub rbp, 0xf60a40
sub rsp, 0x20
jmp 0x140f60a92
mov rax, 0xf60a40
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x6ebebedd
ret 0xbedd
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f60ab1
jmp 0x140f60ac8
xchg ebp, eax
push rsp
xor al, 0x56
push rsp
loope 0x140f60aac
fstp st(5)
xchg ebp, eax
pop rsp
sbb al, 0xd5
invalid

Function at 0x1424d80
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1424d8d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1424d9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1424d85
lea eax, [rcx + 1]
jmp 0x1424dab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1424dbe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1424da4
sub eax, 3
jb 0x1424dde
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1424e2d
sar eax, 1
movsxd rbp, eax
jb 0x1424e14
jmp 0x1424dec
add ebx, ebx
jne 0x1424dea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1424e14
inc ecx
add ebx, ebx
jne 0x1424dfa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1424e14
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1424e0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1424dfc
add ecx, 2
jmp 0x1424e19
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01424d42
jmp 0x1424d8d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1010000]
mov eax, dword [rdi]
or eax, eax
je 0x1424e89
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1024000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1424e39
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1424e83
mov qword [rbx], rax
add rbx, 8
jmp 0x1424e59
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1424ecd
cmp al, 0xef
ja 0x1424eb5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1424e95
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1424ea4
mov eax, dword [rdi]
add rdi, 4
jmp 0x1424ea4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1424f21
sub rsp, 0xffffffffffffff80
jmp 0x45bb20
Function at 0x180001160
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001191
xor eax, eax
lea r8, [0x180001030]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180009170
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 0x1800091a0
xor eax, eax
jmp 0x180009263
mov rbp, rbx
cmp word [rax], si
je 0x1800091c5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800091ac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800091a8
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.1800090c0
movsxd r14, eax
test eax, eax
jne 0x180009203
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180009199
mov rcx, r14
call fcn.18000a360
mov rdi, rax
test rax, rax
jne 0x18000921c
xor ecx, ecx
call fcn.180006d3c
jmp 0x1800091f8
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.1800090c0
test eax, eax
jne 0x18000924d
mov rcx, rdi
call fcn.180006d3c
jmp 0x180009257
xor ecx, ecx
call fcn.180006d3c
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 0x18000d7dc
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 0x18000d80c
xor eax, eax
jmp 0x18000d8cf
mov rbp, rbx
cmp word [rax], si
je 0x18000d831
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000d818
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000d814
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.18000d6fc
movsxd r14, eax
test eax, eax
jne 0x18000d86f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000d805
mov rcx, r14
call fcn.18000a148
mov rdi, rax
test rax, rax
jne 0x18000d888
xor ecx, ecx
call fcn.1800092ec
jmp 0x18000d864
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.18000d6fc
test eax, eax
jne 0x18000d8b9
mov rcx, rdi
call fcn.1800092ec
jmp 0x18000d8c3
xor ecx, ecx
call fcn.1800092ec
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 0x180012e7c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180012e92
mov al, 1
jmp 0x180012ef2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180012ea3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180012ef0
mov ecx, dword [rcx + 0x18]
nop
call fcn.18000fa98
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180012ef0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180012ef0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180012ef0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180012ef2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180014228
Capabilities:
Set environment variable

Disassembly:
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.18000bac4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1800142b2
cmp byte [rbp - 0x21], r15b
je 0x1800142ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1800142e8
call fcn.18000dfe0
test eax, eax
jne 0x1800142d4
cmp byte [rbp - 0x21], r15b
je 0x1800142cc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1800142e8
cmp byte [rbp - 0x21], r15b
je 0x1800142e5
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.18000be20
test eax, eax
jne 0x180014388
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18000bac4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x180014327
cmp byte [rbp - 0x21], r15b
je 0x18001435c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18001435c
call fcn.18000dfe0
test eax, eax
jne 0x180014348
cmp byte [rbp - 0x21], r15b
je 0x180014341
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18001435c
cmp byte [rbp - 0x21], r15b
je 0x180014359
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.18000be20
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x180014388
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18001438b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x180014399
mov rcx, rdi
call fcn.1800092ec
cmp byte [rbp + 0x3f], r15b
je 0x1800143a8
mov rcx, qword [rbp + 0x27]
call fcn.1800092ec
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 0x1800146d0
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.1800153a4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800153a4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180014820
cmp rax, 0xffffffffffffffff
je 0x180014820
xor edi, edi
test rbp, rbp
jle 0x1800147cb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18000bd94
mov rbx, rax
test rax, rax
jne 0x180014758
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800147c1
mov edx, 0x8000
mov ecx, r14d
call fcn.180014554
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.1800105f0
cmp eax, 0xffffffff
je 0x1800147a1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180014768
mov edx, r15d
mov ecx, r14d
call fcn.180014554
jmp 0x1800147c1
cmp byte [rsi + 0x38], dil
je 0x1800147b8
cmp dword [rsi + 0x34], 5
jne 0x1800147b8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800147c1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800092ec
jmp 0x180014834
jns 0x180014834
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800153a4
cmp rax, 0xffffffffffffffff
jne 0x1800147ec
cmp byte [rsi + 0x30], dil
je 0x180014834
mov edi, dword [rsi + 0x2c]
jmp 0x180014834
mov ecx, r14d
call fcn.18000fa98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180014834
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 0x180014834
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18001482d
mov eax, dword [rsi + 0x2c]
jmp 0x180014832
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800153a4
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 0x180014864
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
lea r9, [0x1800243d0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1800148bb
cmp word [rdx], r13w
jne 0x1800148bb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800148c0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800149e5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180014a06
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800148f9
mov rdx, r9
mov word [rbx], cx
jmp 0x180014920
cmp r9, r8
jae 0x180014930
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1800148da
jmp 0x1800149e5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800149da
cmp dword [rsp + 0x80], esi
je 0x1800149da
lea r8, [0x1800243d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800149b2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180014982
mov word [rbx], r13w
jmp 0x1800149e2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18001498f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800149e2
cmp word [rsp + 0x70], r13w
jne 0x1800149bf
cmp rbx, r14
je 0x18001497c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800153a4
cmp word [rsp + 0x70], r13w
je 0x1800149e5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
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
lea r8, [0x1800243d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800149df
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800149e5
Function at 0x140001390
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x690
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x680], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400013e2
mov r9d, 0x10
lea r8, [0x140006554]
lea rdx, str.Error_Creating_Process_Snapshot
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140001492
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001489
lea r8, [rsp + 0x4c]
mov edx, 0x104
lea rcx, [rsp + 0x470]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, 0x104
lea rcx, [rsp + 0x470]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea r8, str.GTAProcess.exe
mov edx, 0x104
lea rcx, [rsp + 0x260]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, 0x104
lea rcx, [rsp + 0x260]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x470]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov rcx, rbx
test rax, rax
jne 0x1400014ad
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.140003f30
add rsp, 0x690
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140001494
Function at 0x1400014c0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, r8
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rbx, qword [rsp + 0x80]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov dword [rsp + 0x30], 1
cmp rbx, qword [rsp + 0x88]
jae 0x140001645
nop word [rax + rax]
mov r9d, 0x30
lea r8, [rsp + 0x48]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp rax, 0x30
jne 0x140001630
cmp dword [rsp + 0x68], 0x1000
jne 0x140001624
mov eax, dword [rsp + 0x6c]
cmp eax, 0x40
je 0x140001581
cmp eax, 4
jne 0x140001624
mov rcx, qword [rsp + 0x60]
call fcn.140003f94
mov rbp, rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
mov r8, rbp
mov rdx, qword [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000161c
mov rbx, r15
mov rcx, qword [rsp + 0xa8]
add rcx, 0xfffffffffffffff0
je 0x14000161c
mov rax, qword [rbx + rbp]
cmp rax, qword [rsi]
jne 0x140001608
mov rax, qword [rbx + rbp + 8]
cmp rax, qword [rsi + 8]
jne 0x140001608
mov rcx, qword [rsp + 0x48]
add rcx, rbx
mov qword [rsp + 0x38], rcx
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x1400015fb
mov qword [rdx], rcx
add qword [rdi + 8], 8
jmp 0x140001608
lea r8, [rsp + 0x38]
mov rcx, rdi
call fcn.140003c10
inc rbx
mov rax, qword [rsp + 0xa8]
add rax, 0xfffffffffffffff0
cmp rbx, rax
jb 0x1400015c6
mov rcx, rbp
call fcn.140003f50
mov rbx, qword [rsp + 0x48]
add rbx, qword [rsp + 0x60]
jmp 0x140001637
mov ecx, dword [rsp + 0x7c]
add rbx, rcx
cmp rbx, qword [rsp + 0x88]
jb 0x140001540
mov rax, rdi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140003f30
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400048b8
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, qword [rcx + 0x10]
test rdi, rdi
mov qword [rbp - 0x10], rcx
je 0x140003a10
mov rbx, qword [rcx + 8]
add rdi, rbx
mov cl, byte [rbx]
movzx r14d, cl
test r14b, r14b
js 0x140003a27
inc rbx
jmp 0x140003ab9
xor esi, esi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 2
mov qword [rbp - 0x20], rsi
jmp 0x140003b61
mov eax, r14d
and eax, 0x1f
movzx edx, byte [rbx + 1]
and edx, 0x3f
cmp r14b, 0xdf
jbe 0x140003a6d
movzx r14d, byte [rbx + 2]
shl edx, 6
and r14d, 0x3f
or r14d, edx
cmp cl, 0xf0
jb 0x140003a7b
movzx ecx, byte [rbx + 3]
add rbx, 4
and eax, 7
shl eax, 0x12
shl r14d, 6
and ecx, 0x3f
or ecx, r14d
or ecx, eax
mov r14d, ecx
jmp 0x140003a85
add rbx, 2
shl eax, 6
or eax, edx
mov r14d, eax
jmp 0x140003ab9
add rbx, 3
shl eax, 0xc
or r14d, eax
cmp r14d, 0xffff
jbe 0x140003ab9
lea ecx, [r14 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov eax, 1
mov r15d, r14d
mov r14d, ecx
jmp 0x140003abe
xor r15d, r15d
xor eax, eax
mov rcx, rdi
sub rcx, rbx
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovae rdx, rcx
shr rdx, 2
add rdx, rax
cmp rdx, 4
mov r12d, 3
cmovae r12, rdx
movabs rax, 0x3fffffffffffffff
cmp rdx, rax
jae 0x140003bdd
lea rsi, [r12*2 + 2]
mov al, byte [0x1406a72b1]
xor ecx, ecx
mov rdx, rsi
call fcn.14006ef50
test rax, rax
je 0x140003be4
inc r12
mov word [rax], r14w
lea rcx, [rbp - 0x48]
mov qword [rcx], r12
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], 1
lea rdx, [rbp - 0x30]
mov qword [rdx], rbx
mov qword [rdx + 8], rdi
mov word [rdx + 0x10], r15w
call fcn.1400694f0
movups xmm0, xmmword [rbp - 0x48]
movaps xmmword [rbp - 0x30], xmm0
mov rsi, qword [rbp - 0x38]
mov qword [rbp - 0x20], rsi
cmp rsi, qword [rbp - 0x30]
jne 0x140003b6a
lea rcx, [rbp - 0x30]
call fcn.140068cb0
mov rdi, qword [rbp - 0x28]
mov word [rdi + rsi*2], 0
mov rcx, rdi
call qword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x140003b85
xor esi, esi
jmp 0x140003b95
call qword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rbx, qword [rbp - 0x10]
cmp qword [rbp - 0x30], 0
je 0x140003bb2
mov rcx, qword [0x1406a7220]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbx], 0
je 0x140003bcb
mov r8, qword [rbx + 8]
mov rcx, qword [0x1406a7220]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
call fcn.140008630
jmp 0x140003bf1
mov ecx, 2
mov rdx, rsi
call fcn.1400d60e0
ud2