joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400497d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.14004df40
sub rsp, rax
mov rax, qword [0x14008c000]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x140049892
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14005ca8c
cmp rax, 1
jne 0x1400498ee
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14004986f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140049863
cmp rcx, 1
jb 0x1400498ee
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140049830
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1400498c3
lea rcx, [rsp + 0x80]
call fcn.14005f63c
jmp 0x1400498c5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14004dc70
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14005c838
int3
Function at 0x14004a760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp byte [0x14008ebf6], 0
mov rbp, r8
mov rsi, rdx
mov r14, rcx
jne 0x14004a7f0
mov edx, 3
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14008ea00], rax
mov ebx, dword [rax]
lea rcx, [rax + 4]
mov qword [0x14008ea00], rcx
lea rdi, [rcx + 4]
mov r8d, dword [rcx]
mov rdx, rdi
xor ecx, ecx
mov qword [0x14008ea00], rdi
call fcn.1400486c0
cmp eax, ebx
jne 0x14004a993
mov byte [0x14008ebf6], 1
jmp 0x14004a7f7
mov rdi, qword [0x14008ea00]
lea rdx, [0x14006e1b0]
mov rcx, rbp
call fcn.14005c4e0
test eax, eax
je 0x14004a8b1
cmp byte [0x14008ebf5], 1
je 0x14004a8b1
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x14008f920], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x14008f928], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x14008f930], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x14008f938], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x14008f940], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x14008f948], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x14008f950], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x14008f958], rax
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rdi, qword [0x14008ea00]
mov byte [0x14008ebf5], 1
mov rcx, qword [rax + 0x10]
add rcx, 0xdc0
mov qword [0x140090cf0], rcx
mov rdx, rdi
mov rax, rbp
sub rdx, rbp
nop word [rax + rax]
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x14004a8d7
inc rax
test cl, cl
jne 0x14004a8c0
mov ecx, r9d
jmp 0x14004a8dc
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [rdi + rax + 1], r9b
lea rax, [rax + 1]
jne 0x14004a8e3
lea rdx, [rdi + rax]
mov eax, dword [rdi + rax + 1]
add rdx, 5
test ecx, ecx
je 0x14004a948
nop
add rdx, rax
mov rax, rbp
mov r8, rdx
sub r8, rbp
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x14004a925
inc rax
test cl, cl
jne 0x14004a910
mov ecx, r9d
jmp 0x14004a92a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x14004a931
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x14004a900
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x14004a978
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rsi
mov rcx, r14
call fcn.140046ff0
add rsi, 8
sub rbx, 1
jne 0x14004a960
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.1400591f4
call fcn.14005c838
int3
Function at 0x14004d820
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14008c000]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x14004d8d1
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14005ca8c
cmp rax, 1
jne 0x14004d907
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14004d8ad
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14004d8a0
cmp rcx, 1
jb 0x14004d907
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14004d870
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14004dc70
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14005c838
int3
Function at 0x14004d9d0
Capabilities:
Set environment variable

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0xb0
mov rax, qword [0x14008c000]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x14008f038]
mov rbx, r8
mov rdi, rdx
mov r15, rcx
test rax, rax
jne 0x14004da20
lea rcx, [0x14006df3c]
call qword [sym.imp.python39.dll_PyImport_ImportModule]
mov qword [0x14008f038], rax
test rax, rax
je 0x14004dbdd
mov qword [rsp + 0xa8], rbp
lea rdx, str.environ
mov qword [rsp + 0xa0], rsi
mov rcx, rax
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], r14
call qword [sym.imp.python39.dll_PyObject_GetAttrString]
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.python39.dll_PyUnicode_FromString]
mov r14, rax
test rbx, rbx
je 0x14004dac5
mov rdx, rbx
mov rcx, rdi
call fcn.14004d820
mov rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.python39.dll_PyUnicode_FromWideChar]
mov rdx, r14
mov rcx, rbp
mov r8, rax
mov rbx, rax
call qword [sym.imp.python39.dll_PyObject_SetItem]
test eax, eax
je 0x14004daac
mov ecx, 1
call qword [sym.imp.python39.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python39.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x14004db7a
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14004db7a
movzx eax, byte [rdi]
lea rbx, [rsp + 0x30]
xor r12d, r12d
mov esi, 0x28
mov word [rsp + 0x30], r12w
test al, al
je 0x14004db55
nop
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r12b
lea rcx, [rsp + 0x24]
call fcn.14005ca8c
cmp rax, 1
jne 0x14004dbd7
mov rcx, rsi
mov rax, rbx
cmp word [rbx], r12w
je 0x14004db2d
nop dword [rax]
nop dword [rax + rax]
add rax, 2
dec rcx
cmp word [rax], r12w
jne 0x14004db20
cmp rcx, 1
jb 0x14004dbd7
movzx ecx, word [rsp + 0x24]
inc rdi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r12w
dec rsi
movzx eax, byte [rdi]
test al, al
jne 0x14004dae0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.python39.dll_PyObject_DelItem]
test eax, eax
je 0x14004db7a
mov rcx, r15
call fcn.140037fa0
sub qword [r14], 1
jne 0x14004db8a
mov rax, qword [r14 + 8]
mov rcx, r14
call qword [rax + 0x30]
sub qword [rbp], 1
jne 0x14004db9b
mov rax, qword [rbp + 8]
mov rcx, rbp
call qword [rax + 0x30]
mov r12, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14004dc70
add rsp, 0xb0
pop r15
pop rdi
pop rbx
ret
call fcn.14005c838
int3
call fcn.14005c838
int3

Function at 0x14004e6a4
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14005266b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005266b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005266b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005266b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005266b
cmp dword [rcx + 0x84], 0xe
jbe 0x14005266b
cmp dword [rcx + 0xf8], 0
je 0x14005266b
mov ecx, ebx
call fcn.14005271c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400524f8
nop
cmp dword [rbp + 0x20], 0
je 0x1400526b9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400526c4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400525fc

Function at 0x140052800
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14005266b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005266b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005266b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005266b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005266b
cmp dword [rcx + 0x84], 0xe
jbe 0x14005266b
cmp dword [rcx + 0xf8], 0
je 0x14005266b
mov ecx, ebx
call fcn.14005271c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400524f8
nop
cmp dword [rbp + 0x20], 0
je 0x1400526b9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400526c4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400525fc
Function at 0x140064460
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 0x1400644e7
mov rsi, rbx
cmp word [rax], bp
je 0x1400644a6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140064490
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14006448c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14005f728
mov rdi, rax
test rax, rax
je 0x1400644d4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14006a7e0
mov rbp, rdi
xor ecx, ecx
call fcn.140060524
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 0x140066bec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140066c02
mov al, 1
jmp 0x140066c62
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140066c13
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140066c60
mov ecx, dword [rcx + 0x18]
nop
call fcn.140064c04
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140066c60
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140066c60
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140066c60
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140066c62
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14006a5c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14006a5e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14006a5e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x22bb813a0
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov dword [rbp - 0x60], 0x130
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd8], rax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32First
cmp eax, 1
sete al
test al, al
je 0x22bb8144a
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32Next
cmp eax, 1
sete al
test al, al
je 0x22bb8144a
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, qword [rbp + 0xf0]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__stricmp]
call rax
test eax, eax
sete al
test al, al
je 0x22bb813f1
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 0x58]
jmp 0x22bb81462
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x160
pop rbp
ret

Function at 0x22bb8146b
Capabilities:
Get graphical window text

Disassembly:
push rbp
sub rsp, 0x820
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x7b0], rcx
mov qword [rbp + 0x7b8], rdx
lea rax, [rbp - 0x60]
mov r8d, 0x800
mov rdx, rax
mov rcx, qword [rbp + 0x7b0]
mov rax, qword [sym.imp.USER32.dll_GetWindowTextW]
call rax
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_CharUpperW]
call rax
lea rax, [rbp - 0x60]
lea rdx, str.SYSINTERNALS
mov rcx, rax
call sym.wcsstr
test rax, rax
setne al
test al, al
je 0x22bb814e0
mov rax, qword [rbp + 0x7b8]
mov dword [rax], 1
mov eax, 1
add rsp, 0x820
pop rbp
ret
Function at 0x22bb81b10
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x22bb81b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x22bba0054]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x22bb81d30
mov rax, qword [0x22bba0058]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x22bb81bcc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x22bb81c57
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x22bb81bb0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x22bb81d8d
mov rax, qword [0x22bba0058]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x22bba0058]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x22bb81d72
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x22bb81c50
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x22bb81ce0
add dword [0x22bba0054], 1
cmp ebx, 8
jae 0x22bb81c88
test bl, 4
jne 0x22bb81d40
test ebx, ebx
je 0x22bb81c79
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x22bb81d60
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x22bb81c79
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x22bb81cba
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x22bba0058]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x22bb81c50
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x22bb81bd7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x22bb81c79
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x22bb81c79
mov rax, qword [0x22bba0058]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x22bb82090
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x22bba0080]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x22bba0060]
test rbx, rbx
je 0x22bb820e4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x22bb820db
test r12, r12
je 0x22bb820db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x22bb820c0
lea rcx, [0x22bba0080]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x22bb82310
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x22bb82320
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x22bb82330
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x22bb82375
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x22bb8236c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x22bb82377
add rax, 0x28
cmp rax, r9
jne 0x22bb82358
xor eax, eax
ret

Function at 0x22bb82420
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x22bb9d860]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x22bb82499
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x22bb82499
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x22bb82496
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x22bb8248d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x22bb82499
add r8, 0x28
cmp r8, r9
jne 0x22bb82478
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x22bb82580
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x22bb9d860]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x22bb825ef
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x22bb825ef
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x22bb825ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x22bb825e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x22bb825f8
add rax, 0x28
cmp rax, r9
jne 0x22bb825d0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x22bb82610
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x22bb9d860]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x22bb82688
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x22bb82688
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x22bb82688
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x22bb82688
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x22bb8267c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x22bb82690
add rdx, 0x28
cmp rdx, r10
jne 0x22bb82668
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x22bb826a0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x22bb826ae
mov edx, dword [rax + 0xc]
test edx, edx
je 0x22bb82685
test r8d, r8d
jg 0x22bb82698
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00405520]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00405530]
mov dword [rax], 1
mov rax, qword [0x00405540]
mov dword [rax], 1
mov rax, qword [0x00405510]
mov dword [rax], 1
mov rax, qword [0x00405400]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00405500]
mov dword [0x00408008], 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 [0x004054c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004053b0]
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 0x401550
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
call rax
test eax, eax
je 0x401573
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
nop
add rsp, 0x20
pop rbp
ret

Function at 0x40157a
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov byte [rbp + 0xdf], 0
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0xffffffffffffffff
jne 0x4015c2
mov eax, 0
jmp 0x40164f
mov dword [rbp - 0x60], 0x130
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0xd0]
mov rdx, rax
call sym.Process32First
test eax, eax
jne 0x4015fa
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x40164f
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, qword [rbp + 0xf0]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x40161e
mov byte [rbp + 0xdf], 1
jmp 0x401635
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0xd0]
mov rdx, rax
call sym.Process32Next
test eax, eax
jne 0x4015fa
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
movzx eax, byte [rbp + 0xdf]
add rsp, 0x160
pop rbp
ret