joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180089a98
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x1800e8bf0]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180089ad2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180089ad7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180089b20
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.LIBPQ.dll_Ordinal_1
cmp byte [rcx + rax], 0
je 0x180089b20
dec r8
sub rdx, 1
jne 0x180089b06
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1800a2bb8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1800a2bef
call fcn.1800999b8
mov dword [rax], reloc.LIBPQ.dll_Ordinal_22
call fcn.180099de4
xor eax, eax
jmp 0x1800a2c81
mov rdx, r9
mov rcx, r8
call fcn.1800a2b54
mov rbx, rax
test rax, rax
je 0x1800a2c7e
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x1800a2a88]
mov eax, dword [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1800a2c6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180099948
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1800a2c52
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1800a2c61
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800a7350
jmp 0x1800a2c7e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800a2c7b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800a648c
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 0x1800a64fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800a64fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800a64fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800a64fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800a64fb
cmp dword [rcx + 0x84], 0xe
jbe 0x1800a64fb
cmp dword [rcx + 0xf8], 0
je 0x1800a64fb
mov ecx, ebx
call fcn.1800a65a0
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.1800a6394
nop
cmp dword [rbp + 0x20], 0
jne 0x1800a655c
call fcn.1800af43c
cmp eax, 1
jne 0x1800a654c
xor dl, dl
jmp 0x1800a6556
call fcn.1800b0810
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1800a6567
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800a6570
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800a648c

Function at 0x1800a80f8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18022c050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1800a815d
test rax, rax
jne 0x1800a814b
lea r9, [0x1800eca10]
lea r8, [0x1800eca08]
lea rdx, [0x1800eca10]
lea ecx, [rax + 0xa]
call fcn.1800a7d70
test rax, rax
je 0x1800a815d
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.1800b9b70
jmp 0x1800a8177
xor edx, edx
mov rcx, rbp
call fcn.1800a83e8
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1800ac9a0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800ac9b6
mov al, 1
jmp 0x1800aca22
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800ac9c7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800aca20
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800b68e8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800aca20
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800aca20
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800aca20
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800aca22
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800ae2a8
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.18008b970
sub rsp, rax
mov rax, qword [0x18021b280]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800ab85c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800ae2f7
mov rax, rbp
jmp 0x1800ae403
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x222210]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800af2b0
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x222210]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800ae3ff
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800ae3ff
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800af2b0
test rax, rax
js 0x1800ae3ff
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800ae3ff
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800ae3f1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800ae3f1
cmp byte [rcx], 0xd
jne 0x1800ae3d7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800ae3e6
cmp byte [rcx + 1], 0xa
jne 0x1800ae3e6
inc rcx
jmp 0x1800ae3e6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x21b860]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800ae3b9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800ae403
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18008ab20
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 0x1800ae598
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x180222210]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x1800ae5ee
cmp word [rdx], r9w
jne 0x1800ae5ee
or byte [rax + rbp*8 + 0x38], 4
jmp 0x1800ae5f3
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x1800ae772
mov r11d, Ordinal_15
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x1800ae73d
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x1800ae63b
cmp rcx, r8
jae 0x1800ae65b
cmp word [rcx], r9w
jne 0x1800ae63b
add rax, 4
mov edx, r9d
jmp 0x1800ae63e
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x1800ae610
jmp 0x1800ae772
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800ae736
cmp dword [rsp + 0x80], edi
je 0x1800ae736
lea r9, [0x180222210]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x1800ae710
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x1800ae6c3
mov word [rbx], bp
jmp 0x1800ae76f
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], Ordinal_15
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x1800ae6de
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x1800ae76f
cmp word [rsp + 0x70], bp
jne 0x1800ae71c
cmp rbx, rsi
je 0x1800ae6bb
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800af2b8
cmp word [rsp + 0x70], bp
je 0x1800ae772
mov word [rbx], Ordinal_15
jmp 0x1800ae76f
mov rcx, r15
lea r9, [0x180222210]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1800ae76c
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1800ae772
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800b1e4c
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 0x1800b1e7c
xor eax, eax
jmp 0x1800b1f3f
mov rbp, rbx
cmp word [rax], si
je 0x1800b1ea1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800b1e88
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800b1e84
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.1800aa1c0
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1800b1ee2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800b1e75
call fcn.1800a73b0
mov rdi, rax
test rax, rax
jne 0x1800b1ef8
xor ecx, ecx
call fcn.1800a7350
jmp 0x1800b1ed7
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.1800aa1c0
test eax, eax
jne 0x1800b1f29
mov rcx, rdi
call fcn.1800a7350
jmp 0x1800b1f33
xor ecx, ecx
call fcn.1800a7350
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 0x1800b4a44
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x1800b4ab7
cmp word [rcx], si
je 0x1800b4ab7
lea rdx, [0x1800f32c0]
call fcn.1800b86b0
test eax, eax
je 0x1800b4ab7
lea rdx, [0x1800f32d8]
mov rcx, rbx
call fcn.1800b86b0
test eax, eax
jne 0x1800b4aad
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1800b4ad4
mov eax, dword [rsp + 0x30]
jmp 0x1800b4ae6
mov rcx, rbx
call fcn.1800a2cc4
jmp 0x1800b4ae6
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1800b4ad8
xor eax, eax
jmp 0x1800b4ae6
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1800b4ae6
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800b4af8
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.1800a7890
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1800b4b9b
cmp edi, dword [rsp + 0x30]
je 0x1800b4b94
test ebp, ebp
je 0x1800b4b94
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x1800b4b70
sub dx, 0x61
cmp dx, 0x19
ja 0x1800b4b7c
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x1800b4b5d
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x1800b4b80
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x1800b4b9d
mov eax, 1
jmp 0x1800b4b9d
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800b91b0
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.1800af2b8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800af2b8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800b92fd
cmp rax, 0xffffffffffffffff
je 0x1800b92fd
xor edi, edi
test rbp, rbp
jle 0x1800b92ab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800a72d0
mov rbx, rax
test rax, rax
jne 0x1800b9238
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800b92a1
mov edx, 0x8000
mov ecx, r14d
call fcn.1800b9034
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.1800ad5f8
cmp eax, 0xffffffff
je 0x1800b9281
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800b9248
mov edx, r15d
mov ecx, r14d
call fcn.1800b9034
jmp 0x1800b92a1
cmp byte [rsi + 0x38], dil
je 0x1800b9298
cmp dword [rsi + 0x34], 5
jne 0x1800b9298
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], Ordinal_15
cmp byte [rsi + 0x30], dil
je 0x1800b92a1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800a7350
jmp 0x1800b930f
jns 0x1800b930f
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800af2b8
cmp rax, 0xffffffffffffffff
jne 0x1800b92c9
cmp byte [rsi + 0x30], dil
je 0x1800b930f
jmp 0x1800b9305
mov ecx, r14d
call fcn.1800b68e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800b930f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, Ordinal_15
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], Ordinal_15
jmp 0x1800b930f
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800b930a
mov edi, dword [rsi + 0x2c]
jmp 0x1800b930f
mov edi, reloc.LIBPQ.dll_Ordinal_22
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800af2b8
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 0x1800b97c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800b97e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800b97e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180007620
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword gs:[0x30]
xor ebx, ebx
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rcx, qword [rax + 0x20]
add rax, 0x20
cmp rcx, rax
je 0x180007650
mov rax, qword [rcx + 0x20]
jmp 0x180007653
mov rax, rbx
mov qword [0x18003a2c0], rax
call fcn.180003db0
mov rdi, rax
test rax, rax
je 0x18000780c
mov ecx, 0x20
mov qword [rsp + 0x38], rbx
call fcn.18000a730
movdqa xmm0, xmmword [0x18002a760]
xor edx, edx
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [str.Font_Roboto.Roboto]
movups xmmword [rax], xmm0
movzx ecx, word [0x18002a9e0]
mov word [rax + 0x10], cx
lea rcx, [rsp + 0x30]
mov byte [rax + 0x12], bl
call fcn.180001bd0
mov rdx, qword [rsp + 0x48]
mov qword [0x18003a2e0], rax
cmp rdx, 0xf
jbe 0x1800076fc
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800076f0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007817
call fcn.18000a76c
mov rax, qword [0x18003a2e0]
movabs rdx, 0xa399c92acc280838
movabs rcx, 0x534a368d2e0e48f8
mov qword [rsp + 0x30], rcx
movabs rcx, 0xe495317679a7d9b9
mov qword [rsp + 0x38], rcx
movabs rcx, 0xff8a12d92c7a66da
movdqa xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x40], rcx
movabs rcx, 0x351553e34769269d
mov qword [rsp + 0x20], rcx
movabs rcx, 0x9ca5114c59d3b7d6
mov qword [rsp + 0x28], rcx
movabs rcx, 0xff8a12d92c701eff
xorps xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x48], rdx
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rdx
mov rdx, rax
xorps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.18000a310
mov rax, qword [rdi + 0x180]
test rax, rax
je 0x18000780c
mov rax, qword [rax + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x18000780c
mov rdi, qword [rdx + 0x70]
test rdi, rdi
je 0x18000780c
cmp qword [rdx + 0x30], rbx
je 0x18000780c
mov ecx, 0x20
call fcn.18000a730
test rax, rax
je 0x1800077da
mov rcx, rax
call fcn.18000a360
mov rbx, rax
mov rdx, rdi
mov rcx, rbx
call fcn.18000a3a0
mov r8d, 0x63
lea rdx, [0x180007890]
mov rcx, rbx
call fcn.18000a380
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax + 0x318]
mov qword [0x18003a750], rcx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call fcn.18001156c
int3
Function at 0x1800166f0
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 0x18001675f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001675f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18001675f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18001675f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18001675f
cmp dword [rcx + 0x84], 0xe
jbe 0x18001675f
cmp dword [rcx + 0xf8], 0
je 0x18001675f
mov ecx, ebx
call fcn.180016810
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.1800165ec
nop
cmp dword [rbp + 0x20], 0
je 0x1800167ad
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800167b8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800166f0
Function at 0x18001c990
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 0x18001c9c0
xor eax, eax
jmp 0x18001ca83
mov rbp, rbx
cmp word [rax], si
je 0x18001c9e5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001c9cc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001c9c8
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.18001c8b0
movsxd r14, eax
test eax, eax
jne 0x18001ca23
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001c9b9
mov rcx, r14
call fcn.180017b9c
mov rdi, rax
test rax, rax
jne 0x18001ca3c
xor ecx, ecx
call fcn.1800180b8
jmp 0x18001ca18
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.18001c8b0
test eax, eax
jne 0x18001ca6d
mov rcx, rdi
call fcn.1800180b8
jmp 0x18001ca77
xor ecx, ecx
call fcn.1800180b8
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 0x180020804
Capabilities:
Get file size

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

Function at 0x180023250
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180023278
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180023278
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140007b60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140024020]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov rbp, rcx
xor ecx, ecx
mov qword [rdx + 0x10], rcx
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x140007b9a
mov rax, qword [rdx]
mov word [rax], cx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rcx
mov word [rsp + 0x20], cx
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x140007bfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x140007cae
test eax, eax
jle 0x140007be7
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
mov rdx, rbp
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.140006e60
jmp 0x140007cae
mov eax, 2
mul r14
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.140013dcc
mov rsi, rax
mov r8d, r14d
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140007bca
nop
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140007c30
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140005160
mov rcx, rsi
call fcn.140013b00
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14000f720
test al, al
je 0x140007c8e
lea rax, [rsp + 0x20]
cmp rdi, rax
je 0x140007c8a
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140005160
mov bl, 1
jmp 0x140007cb0
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r8, qword [rsp + 0x20]
mov rdx, rbp
lea rcx, [0x14001d990]
call fcn.140006a70
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140007cf5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007cf0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007cf0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013b00
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140013ae0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret