joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010e03c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2fd0]
mov eax, 0x30d0
call fcn.14011a0f0
sub rsp, rax
mov rax, qword [0x140183c48]
xor rax, rsp
mov qword [rbp + 0x2fc0], rax
mov rsi, r8
mov rdi, rdx
mov r12, rcx
mov rax, rdx
mov r9, r8
sub r9, rdx
movzx edx, word [rax]
movzx r8d, word [rax + r9]
sub edx, r8d
jne 0x14010e09a
add rax, 2
test r8d, r8d
jne 0x14010e084
test edx, edx
je 0x14010e29f
xor r14b, r14b
lea rdx, [rbp + 0x1fc0]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movzx ecx, word [rbp + 0x1fc0]
call fcn.140127398
mov r15d, eax
mov r13d, 1
cmp word [rbp + 0x1fc0], 0x5c
je 0x14010e110
cmp word [rsi], 0x5c
je 0x14010e110
cmp word [rdi], 0x5c
je 0x14010e110
movzx ecx, word [rsi]
call fcn.140127398
mov ebx, eax
movzx ecx, word [rdi]
call fcn.140127398
cmp word [rsi + 2], 0x3a
cmovne ebx, r15d
cmp word [rdi + 2], 0x3a
cmovne eax, r15d
movzx r14d, r14b
cmp ebx, eax
cmovne r14d, r13d
mov rcx, rdi
call fcn.140085aac
test al, al
je 0x14010e166
lea rcx, [rsp + 0x20]
call fcn.1400841a8
nop
mov r8d, 9
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400847d0
test al, al
je 0x14010e1c3
lea rcx, [rsp + 0x20]
call fcn.1400842b0
test al, al
je 0x14010e1c3
mov rcx, rdi
call fcn.14008579c
test al, al
je 0x14010e1c3
lea rcx, [rsp + 0x20]
call fcn.1400841f0
test r14b, r14b
jne 0x14010e17e
mov rdx, rdi
mov rcx, rsi
call fcn.140086354
test al, al
jne 0x14010e29f
lea rcx, [rsp + 0x20]
call fcn.1400841a8
nop
lea rcx, [rbp + 0xf70]
call fcn.1400841a8
nop
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.1400847d0
test al, al
jne 0x14010e1d7
mov rdx, rsi
lea rcx, [0x1401cb7d8]
call fcn.14007e770
mov ebx, 0xa
jmp 0x14010e264
lea rcx, [rsp + 0x20]
call fcn.1400841f0
mov eax, 0xf
jmp 0x14010e2a1
mov r8d, 0x12
mov rdx, rdi
lea rcx, [rbp + 0xf70]
call fcn.140084460
test al, al
jne 0x14010e1f7
mov ebx, 0xf
jmp 0x14010e264
xor edx, edx
lea rcx, [0x1401cb7d8]
call fcn.14007e898
or r9, 0xffffffffffffffff
lea r8, [rbp + 0xf70]
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.14010daf0
mov r14d, eax
lea rcx, [rsp + 0x20]
call fcn.1400842b0
lea rcx, [rbp + 0xf70]
call fcn.1400842b0
mov dl, r13b
lea rcx, [0x1401cb7d8]
call fcn.14007e898
test r14d, r14d
je 0x14010e27f
mov rcx, rdi
call fcn.14008579c
mov eax, 0xe
lea ebx, [rax - 4]
cmp r14d, ebx
cmove r14d, eax
mov ebx, r14d
lea rcx, [rbp + 0xf70]
call fcn.1400841f0
nop
lea rcx, [rsp + 0x20]
call fcn.1400841f0
mov eax, ebx
jmp 0x14010e2a1
mov rcx, rsi
call fcn.14008579c
nop
lea rcx, [rbp + 0xf70]
call fcn.1400841f0
nop
lea rcx, [rsp + 0x20]
call fcn.1400841f0
xor eax, eax
mov rcx, qword [rbp + 0x2fc0]
xor rcx, rsp
call fcn.14011a150
mov rbx, qword [rsp + 0x3110]
add rsp, 0x30d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14010e920
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rsi, [0x14022d020]
mov rcx, rsi
mov rdi, rdx
call fcn.14007a4a4
mov r8d, 0x12345678
mov r9d, 0x23456789
mov dword [rbx + 0x1e8], r8d
mov edx, 0x34567890
mov dword [rbx + 0x1ec], r9d
jmp 0x14010e9b1
movsx rcx, al
mov eax, r8d
xor rcx, rax
shr r8d, 8
movzx eax, cl
xor r8d, dword [rsi + rax*4]
movzx eax, r8b
add eax, r9d
mov dword [rbx + 0x1e8], r8d
imul r9d, eax, 0x8088405
mov eax, edx
shr edx, 8
inc r9d
mov ecx, r9d
mov dword [rbx + 0x1ec], r9d
shr rcx, 0x18
xor rcx, rax
movzx eax, cl
xor edx, dword [rsi + rax*4]
inc rdi
mov dword [rbx + 0x1f0], edx
mov al, byte [rdi]
test al, al
jne 0x14010e965
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14010e9d0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

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 r15
sub rsp, 0x30
cmp byte [0x1401abd48], 0
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x14010eab2
cmp byte [rcx + 4], 0
je 0x14010ea1d
mov r8d, edi
add rcx, 8
imul r8d, esi
call fcn.1400d5a54
jmp 0x14010eab2
mov r10, rsi
mov r11, rbp
imul r10, rdi
test r10, r10
je 0x14010eab2
lea r15, [0x14022d020]
movsx rax, byte [r11]
mov r8d, dword [rbx + 0x1f0]
mov r9d, r8d
mov edx, dword [rbx + 0x1e8]
and r9d, 0xfffd
xor rax, rdx
or r9d, 2
movzx ecx, al
shr edx, 8
xor edx, dword [r15 + rcx*4]
movzx eax, dl
add eax, dword [rbx + 0x1ec]
imul eax, eax, 0x8088405
mov dword [rbx + 0x1e8], edx
inc eax
mov dword [rbx + 0x1ec], eax
shr rax, 0x18
xor rax, r8
shr r8d, 8
movzx eax, al
xor r8d, dword [r15 + rax*4]
mov eax, r9d
xor eax, 1
mov dword [rbx + 0x1f0], r8d
imul eax, r9d
shr eax, 8
xor byte [r11], al
inc r11
sub r10, 1
jne 0x14010ea37
and dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.14010d65c
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret

Function at 0x140116e60
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140116e9d
test al, 0x10
jne 0x140116e99
and eax, 0xffffffdf
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140116e9d
mov al, 1
jmp 0x140116eb5
lea rdx, [rdi + 0x64bb20]
mov ecx, 0x11
lea r8, [rsp + 0x38]
call fcn.140018d50
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140118314
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14011838c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14011838c
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14011838c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140118380
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14011839e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14011836e
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14011838e

Function at 0x14011ae64
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14011aeae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14011aeae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14011aeae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14011aeae
cmp dword [rcx + 0x84], 0xe
jbe 0x14011aeae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14011aeb0
xor al, al
add rsp, 0x28
ret
Function at 0x140128cac
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14022e380]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140128d0a
cmp word [rdx], r12w
jne 0x140128d0a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140128d10
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140128e6b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140128e46
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140128d49
mov rcx, r9
jmp 0x140128d6c
cmp r9, rdx
jae 0x140128d83
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140128d2d
jmp 0x140128e6b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140128e40
cmp dword [rsp + 0x80], edi
je 0x140128e40
mov rdx, r14
lea r11, [0x14022e380]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140128e19
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140128dec
mov word [rbx], r12w
jmp 0x140128e67
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140128df5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140128e67
cmp word [rsp + 0x70], r12w
jne 0x140128e26
cmp rbx, rsi
je 0x140128de6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140128c08
cmp word [rsp + 0x70], r12w
je 0x140128e6b
mov word [rbx], r13w
jmp 0x140128e67
lea r11, [0x14022e380]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140128e63
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140128e6b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140131bdc
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.140128c08
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140128c08
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140131d2c
cmp rax, 0xffffffffffffffff
je 0x140131d2c
xor edi, edi
test rbp, rbp
jle 0x140131cd7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140130e40
mov rbx, rax
test rax, rax
jne 0x140131c64
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140131ccd
mov edx, 0x8000
mov ecx, r14d
call fcn.14012b494
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.14012a09c
cmp eax, 0xffffffff
je 0x140131cad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140131c74
mov edx, r15d
mov ecx, r14d
call fcn.14012b494
jmp 0x140131ccd
cmp byte [rsi + 0x38], dil
je 0x140131cc4
cmp dword [rsi + 0x34], 5
jne 0x140131cc4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140131ccd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14012ec94
jmp 0x140131d40
jns 0x140131d40
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140128c08
cmp rax, 0xffffffffffffffff
jne 0x140131cf8
cmp byte [rsi + 0x30], dil
je 0x140131d40
mov edi, dword [rsi + 0x2c]
jmp 0x140131d40
mov ecx, r14d
call fcn.140131acc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140131d40
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 0x140131d40
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140131d39
mov eax, dword [rsi + 0x2c]
jmp 0x140131d3e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140128c08
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 0x1401320a4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1401320d6
call fcn.14012a8ac
mov dword [rax], 0x16
call fcn.140121218
jmp 0x1401321f5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401321f5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401321f5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140132105
lock or dword [rcx + 0x14], 0x10
jmp 0x1401321f5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140132119
call fcn.140137124
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14012b3fc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140129158
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1401321e3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1401321ae
mov rcx, rsi
call fcn.14012b3fc
cmp eax, edi
je 0x140132199
mov rcx, rsi
call fcn.14012b3fc
cmp eax, 0xfffffffe
je 0x140132199
mov rcx, rsi
call fcn.14012b3fc
movsxd rbx, eax
lea r14, [0x14022e380]
mov rcx, rsi
sar rbx, 6
call fcn.14012b3fc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1401321a0
lea rdx, [0x140184040]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401321ae
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1401321d2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1401321d2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1401321d2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1401321f8
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1401324b4
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.14011a0f0
sub rsp, rax
mov rax, qword [0x140183c48]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14012b3fc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140132503
mov rax, rbp
jmp 0x14013260b
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 + 0x22e380]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140128c00
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x22e380]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140132607
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140132607
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140128c00
test rax, rax
js 0x140132607
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140132607
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401325f9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401325f9
cmp byte [rcx], 0xd
jne 0x1401325df
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401325ee
cmp byte [rcx + 1], 0xa
jne 0x1401325ee
inc rcx
jmp 0x1401325ee
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x183cb0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401325c1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14013260b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14011a150
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 0x140134828
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 0x140134858
xor eax, eax
jmp 0x14013491b
mov rbp, rbx
cmp word [rax], si
je 0x14013487d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140134864
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140134860
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.140131dd0
movsxd r14, eax
test eax, eax
jne 0x1401348bb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140134851
mov rcx, r14
call fcn.14012ecd0
mov rdi, rax
test rax, rax
jne 0x1401348d4
xor ecx, ecx
call fcn.14012ec94
jmp 0x1401348b0
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.140131dd0
test eax, eax
jne 0x140134905
mov rcx, rdi
call fcn.14012ec94
jmp 0x14013490f
xor ecx, ecx
call fcn.14012ec94
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 0x140137ed8
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.1401271c8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140137f62
cmp byte [rbp - 0x21], r15b
je 0x140137f5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140137f98
call fcn.140131128
test eax, eax
jne 0x140137f84
cmp byte [rbp - 0x21], r15b
je 0x140137f7c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140137f98
cmp byte [rbp - 0x21], r15b
je 0x140137f95
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.140127a88
test eax, eax
jne 0x140138038
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401271c8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140137fd7
cmp byte [rbp - 0x21], r15b
je 0x14013800c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14013800c
call fcn.140131128
test eax, eax
jne 0x140137ff8
cmp byte [rbp - 0x21], r15b
je 0x140137ff1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14013800c
cmp byte [rbp - 0x21], r15b
je 0x140138009
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.140127a88
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140138038
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14013803b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140138049
mov rcx, rdi
call fcn.14012ec94
cmp byte [rbp + 0x3f], r15b
je 0x140138058
mov rcx, qword [rbp + 0x27]
call fcn.14012ec94
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 0x140139770
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140139798
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140139798
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003c40
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140003c9d
lea rbx, [0x1400671c0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140003c84
cmp r10, 2
jb 0x140003c84
cmp byte [r9], r8b
jne 0x140003c84
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140003c60
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140003cdf
lea rbx, [0x1400671c0]
cmp r8b, 0x23
jne 0x140003cc3
cmp byte [r9], r8b
jne 0x140003cc3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140003cb0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003ea0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x140003ecf
mov r8d, 0x645
lea rdx, str.C:UserszenDownloadsimgui_injector_mainimgui_injector_mainimguiimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x140003edb
mov qword [rdi], 0
lea rdx, [0x140065068]
mov rcx, rbx
call fcn.140003cf0
mov rbx, rax
test rax, rax
jne 0x140003efd
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140003fd6
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003fd6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140003fd6
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003fd6
cmp rsi, 0xffffffffffffffff
je 0x140003fd6
mov rax, qword [0x14007af00]
test rax, rax
je 0x140003f73
inc dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140003fd6
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x140003fc3
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14007af00]
test rax, rax
je 0x140003fb8
dec dword [rax + 0x3b0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140003fdf
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140003fd1
mov qword [rdi], rsi
mov rax, rbp
jmp 0x140003fe1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140006ca0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x108], 0
mov rbx, rcx
mov edi, edx
jg 0x140006cd6
mov r8d, 0x6d1
lea rdx, str.C:UserszenDownloadsimgui_injector_mainimgui_injector_mainimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd r8, dword [rbx + 0x108]
mov rax, qword [rbx + 0x110]
mov edx, dword [rax + r8*4 - 4]
lea r8, [0x1400671c0]
not edx
movzx eax, dil
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x39]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x3a]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x3b]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x14007af00]
xor edx, dword [r8 + rcx*4]
not edx
cmp dword [rax + 0x1d6c], edx
jne 0x140006d50
mov dword [rax + 0x1d70], edx
cmp dword [rax + 0x1da8], edx
jne 0x140006d5f
mov byte [rax + 0x1dac], 1
mov rbx, qword [rsp + 0x30]
mov eax, edx
add rsp, 0x20
pop rdi
ret