joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14096c0d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x14096c103
test ecx, ecx
jne 0x14096c152
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14096c110
test ecx, ecx
jne 0x14096c152
mov rcx, rdi
call fcn.14096bfb0
movzx r10d, al
test bl, bl
jne 0x14096c159
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x14096c146.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x14096c2cc]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x14096c146.2
xor r10d, r10d
test bl, bl
je 0x14096c120
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14096c2ae
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x14096c18b
xor edi, edi
jmp 0x14096c208
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x14096c1d0
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x14096c1eb
inc rsi
dec rax
cmp rsi, 1
jne 0x14096c1b0
jmp 0x14096c208
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x14096c1eb
cmp ebx, 0x5c
je 0x14096c1eb
inc rsi
dec rax
cmp rsi, 1
jne 0x14096c1d0
jmp 0x14096c208
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x14096c2bc
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x14096c232
mov al, 9
cmp rdx, 2
je 0x14096c236
cmp rdx, 1
jne 0x14096c246
cmp byte [r9], 0x2e
jne 0x14096c246
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14096c246
mov al, 0xa
jmp 0x14096c246
cmp byte [r9], 0x2e
jne 0x14096c246
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x14096c146.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x14096c146.2
mov esi, 2
jmp case.0x14096c146.2
lea r8, str.library_std_srcpath.rs
call fcn.1409823e0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1409823e0
ud2
Function at 0x14097f260
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x14097f2da
mov r11, rdx
mov rdx, qword [rsp + 0x70]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rbx, r11
movzx edi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rdi]
cmp byte [rbx], bpl
jne 0x14097f2d0
cmp r10, rax
jb 0x14097f36d
cmp r10, rdx
ja 0x14097f381
add rax, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14097f2d2
lea rsi, [rbx + 1]
cmp byte [rax + rbx], cl
mov rbx, rsi
jne 0x14097f2b0
jmp 0x14097f342
ja 0x14097f2da
mov rax, r10
cmp r11, r8
jne 0x14097f280
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14097f346
mov rsi, qword [rsp + 0x78]
add rdx, rsi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea rbx, [rsi + 1]
movzx edi, byte [rsi]
test dil, dil
js 0x14097f320
mov rsi, rbx
sub ecx, edi
jns 0x14097f339
jmp 0x14097f348
cmp rbx, rdx
je 0x14097f353
movzx ebp, byte [rsi + 1]
add rsi, 2
and edi, 0x7f
shl edi, 8
or edi, ebp
sub ecx, edi
js 0x14097f348
xor al, 1
cmp rsi, rdx
jne 0x14097f300
jmp 0x14097f348
xor eax, eax
jmp 0x14097f348
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140982000
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, rax
mov rdx, r10
call fcn.140982400
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1409823f0
ud2

Function at 0x140980e34
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401298e0]
mov dword [rax], 1
mov rax, qword [0x1401298f0]
mov dword [rax], 1
mov rax, qword [0x140129900]
mov dword [rax], 1
mov rax, qword [0x140129880]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14009ac90
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140105790
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x14009ad39
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x14009acfe
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14009acf0
test rax, rax
je 0x14011669e
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x14009acd8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14009ad68
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x14009ad80
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x14009ae21
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x14009ade6
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14009add8
test rax, rax
je 0x1401166a4
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x14009adc0
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400c3d30
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.14009ac90
test rax, rax
je 0x1400c3e70
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [rsp + 0x40]
mov r15d, 0x4e
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov rdi, r14
lea r12, [rsi + 0x28]
lea rbp, [rsp + 0x3e]
mov r13, rax
xor eax, eax
mov word [rsp + 0x40], ax
nop
mov rax, r12
mov rbx, rdi
sub rax, rsi
cmp word [rdi], 0
je 0x1400c3dae
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1400c3da0
test rax, rax
je 0x140116744
mov rcx, rbx
add rsi, 1
add rdi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, rbp
mov byte [rsp + 0x3e], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x3f], 0
call sub.msvcrt.dll_mbstowcs
movzx r15d, byte [rsi]
test r15b, r15b
jne 0x1400c3d90
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rcx, qword [0x14013e6c0]
mov rsi, qword [rax + 0x1f8]
mov rax, qword [0x140129a30]
mov rbx, qword [rax + 0x1b8]
test rcx, rcx
je 0x1400c3ec8
mov rdx, rbx
call fcn.140080f00
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1400b7f70
sub qword [rbx], 1
jne 0x1400c3e56
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x14013df80]
lea rsi, [0x14013df80]
test bl, bl
je 0x1400c3e90
mov rax, qword [0x14013df88]
lea rsi, [0x14013df88]
test rax, rax
jne 0x1400c3e56
cmp byte [0x14013e1a2], 0
jne 0x1400c3ea6
movzx ecx, bl
call fcn.140082f30
mov rdx, 0xffffffffffffffff
lea rcx, [0x14013dfa0]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1400c3ef2
add qword [rax], 1
jmp 0x1400c3e56
mov rcx, qword [0x14013e638]
mov rdi, qword [rax + 0x1a8]
test rcx, rcx
je 0x1400c3efd
mov rdx, rdi
call fcn.140080f00
mov qword [0x14013e6c0], rax
mov rcx, rax
jmp 0x1400c3e23
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x140121cfb]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x14013e638], rax
mov rcx, rax
test rax, rax
je 0x140116744
jmp 0x1400c3edb
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call qword [sym.imp.python311.dll_PyErr_NoMemory]
call sub.msvcrt.dll_abort
nop
Function at 0x1400fb9f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14013df69], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1400fba78
lea rdx, [0x1401257ba]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400fbae0
mov rbx, qword [0x14013de20]
jmp 0x1400fba35
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1400fba30
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1400eabc0
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x14013de20], rax
mov ebx, dword [rax]
mov qword [0x14013de20], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x14013de20], rdx
call fcn.1400fab20
cmp eax, ebx
jne 0x1400fbb48
mov byte [0x14013df69], 1
jmp 0x1400fba0c
cmp byte [0x14013df68], 0
jne 0x1400fba23
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x14013e8c8], rax
call rbx
mov qword [0x14013e8c0], rax
call rbx
mov qword [0x14013e8b8], rax
call rbx
mov qword [0x14013e8b0], rax
call rbx
mov qword [0x14013e8a8], rax
call rbx
mov qword [0x14013e8a0], rax
call rbx
mov qword [0x14013e898], rax
call rbx
mov byte [0x14013df68], 1
mov qword [0x14013e890], rax
jmp 0x1400fba23
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140104470
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140115bf0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140115bf0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x140105142
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14013ed88]
test eax, eax
je 0x1401051da
lea rax, [0x14013ed60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14013ed90]
mov qword [rbp - 8], rax
jmp 0x1401051be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1401051b2
cmp qword [rbp - 0x10], 0
je 0x1401051b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140105178
lea rax, [0x14013ed60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1401051db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1401052e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140105308
mov eax, 0
jmp 0x140105356
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140105331
mov eax, 0
jmp 0x140105356
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140105351
mov eax, 0
jmp 0x140105356
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14010535c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1401053da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1401053d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1401053d1
mov rax, qword [rbp - 8]
jmp 0x1401053ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1401053a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180011023
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x1800144e0
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x70
lea rbp, [rsp + 0x20]
lea rcx, [0x1800203fa]
call fcn.1800111fe
mov dword [rbp + 4], 0
mov dword [rbp + 8], 0
mov r8d, 4
mov rdx, qword [rbp + 0x60]
lea rcx, [rbp + 4]
call fcn.1800110ff
lea r9, [rbp]
mov r8d, 0x40
mov edx, 4
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbp + 0x68]
cmp dword [rbp + 4], eax
je 0x180014581
mov r8d, 4
lea rdx, [rbp + 0x68]
mov rcx, qword [rbp + 0x60]
call fcn.1800110ff
mov r8d, 4
mov rdx, qword [rbp + 0x60]
lea rcx, [rbp + 4]
call fcn.1800110ff
mov eax, dword [rbp + 8]
inc eax
mov dword [rbp + 8], eax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18001453e
lea r9, [rbp]
mov r8d, dword [rbp]
mov edx, 4
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rax, str.9A7
cmp qword [rbp + 0x70], rax
je 0x1800145e0
lea rax, str.992
cmp qword [rbp + 0x70], rax
je 0x1800145e0
lea rax, str.9A0
cmp qword [rbp + 0x70], rax
je 0x1800145e0
lea rax, [0x180019848]
cmp qword [rbp + 0x70], rax
je 0x1800145e0
mov r8d, dword [rbp + 8]
mov rdx, qword [rbp + 0x70]
lea rcx, str.Patch__Code_:__s___d__r_n
call fcn.180011050
lea rsp, [rbp + 0x50]
pop rbp
ret

Function at 0x180011032
Capabilities:
Write file on windows

Disassembly:
jmp 0x180011dc0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x40]
lea rcx, [0x1800200ad]
call fcn.1800111fe
mov qword [rbp], 0
mov dword [rbp + 0xc], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp], rax
cmp qword [rbp], 0xffffffffffffffff
jne 0x180011e42
mov rdx, qword [rbp + 0x60]
lea rcx, str.Error_creating_file__s.
call fcn.1800111ea
jmp 0x180011eac
cmp dword [rbp + 0x70], 0
jbe 0x180011ea2
mov qword [rsp + 0x20], 0
lea r9, [rbp + 8]
mov r8d, dword [rbp + 0x70]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0xc], eax
cmp dword [rbp + 0xc], 0
jne 0x180011e82
mov rdx, qword [rbp + 0x60]
lea rcx, str.Error_writing_to_file__s.
call fcn.1800111ea
jmp 0x180011ea2
mov eax, dword [rbp + 8]
mov rcx, qword [rbp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov eax, dword [rbp + 8]
mov ecx, dword [rbp + 0x70]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0x70], eax
jmp 0x180011e42
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x180011050
Capabilities:
Write file on windows

Disassembly:
jmp 0x180011860
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x40]
lea rcx, [0x1800200ad]
call fcn.1800111fe
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x10], rax
mov edx, 0x80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov dword [rbp + 0x28], 0
cmp qword [0x18001b130], 0
je 0x1800118f1
mov rdx, qword [0x18001b130]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rax, qword [rbp + 0x20]
movsx eax, byte [rax]
test eax, eax
je 0x1800118f1
mov rax, qword [rbp + 0x20]
inc rax
mov qword [rbp + 0x20], rax
jmp 0x1800118d9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
lea rdx, str.T:_d_
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rax, qword [rbp + 0x20]
movsx eax, byte [rax]
test eax, eax
je 0x180011931
mov rax, qword [rbp + 0x20]
inc rax
mov qword [rbp + 0x20], rax
jmp 0x180011919
mov rax, qword [rbp + 0x10]
mov rcx, qword [rbp + 0x20]
sub rcx, rax
mov rax, rcx
mov dword [rbp + 0x28], eax
lea rax, [rbp + 0x88]
mov qword [rbp], rax
mov r8, qword [rbp]
mov rdx, qword [rbp + 0x80]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.USER32.dll_wvsprintfA]
mov ecx, dword [rbp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rbp + 0x28], eax
mov qword [rbp], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 3
mov edx, 4
lea rcx, str.gglog.txt
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x28]
mov r8d, dword [rbp + 0x28]
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x1800110c3
Capabilities:
Get file size
Read file on windows
Terminate process

Disassembly:
jmp 0x180011b50
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x40]
lea rcx, [0x1800200ad]
call fcn.1800111fe
mov qword [rbp], 0
mov dword [rbp + 8], 0
mov dword [rbp + 0xc], 0
mov dword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x20], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp], rax
cmp qword [rbp], 0xffffffffffffffff
jne 0x180011bfc
mov rdx, qword [rbp + 0x80]
lea rcx, str.Error_opening_file__s.
call fcn.1800111ea
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor edx, edx
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0xc], eax
mov eax, dword [rbp + 0xc]
inc eax
mov eax, eax
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x18], rax
mov eax, dword [rbp + 0xc]
inc eax
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0x18]
call fcn.180011181
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x20], rax
cmp dword [rbp + 0xc], 0
jbe 0x180011c9e
mov qword [rsp + 0x20], 0
lea r9, [rbp + 8]
mov r8d, dword [rbp + 0xc]
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x10], eax
cmp dword [rbp + 0x10], 0
jne 0x180011c7e
mov rdx, qword [rbp + 0x80]
lea rcx, str.Error_loading_file__s.
call fcn.1800111ea
jmp 0x180011c9e
mov eax, dword [rbp + 8]
mov rcx, qword [rbp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x20], rax
mov eax, dword [rbp + 8]
mov ecx, dword [rbp + 0xc]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0xc], eax
jmp 0x180011c3b
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x18]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x1800110d2
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x180013da0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x70
lea rbp, [rsp + 0x20]
lea rcx, [0x1800203fa]
call fcn.1800111fe
mov eax, dword [rbp + 0x70]
lea r9, [rbp]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbp + 0x70]
mov r8d, eax
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x60]
call fcn.1800110ff
mov eax, dword [rbp + 0x70]
lea r9, [rbp]
mov r8d, dword [rbp]
mov edx, eax
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rsp, [rbp + 0x50]
pop rbp
ret