joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180013e90
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180093038]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov r8d, 0x40
add rbx, qword [0x180098a40]
mov rdx, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [rdx - 5]
cmove rdi, rdx
lea rsi, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180013ef9
mov eax, 0xa
jmp 0x180013f46
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180013f15
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18002f0c0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180013f70
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x180098a4c]
xor edi, edi
mov ebx, edi
test eax, eax
je 0x180014080
mov rcx, qword [0x180098a40]
add rcx, 0x20
test byte [rcx], 2
je 0x180013fb3
inc ebx
add rcx, 0x38
cmp ebx, eax
jb 0x180013f97
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180014080
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 1
call fcn.180013ce0
mov edx, dword [0x180098a4c]
cmp ebx, edx
jae 0x18001400d
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180098a40]
test byte [rcx + rax + 0x20], 2
jne 0x180014007
mov ecx, ebx
call fcn.180013e90
mov edi, eax
test eax, eax
jne 0x18001400d
mov edx, dword [0x180098a4c]
inc ebx
cmp ebx, edx
jb 0x180013fe0
cmp qword [rsp + 0x20], 0
je 0x180014080
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18001406c
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180014058
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180014030
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800985c0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x180014370
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x1800985b8], esi
je 0x1800143c5
cmp rbx, 0x20
jae 0x1800143ae
xor ecx, ecx
jmp 0x1800143b0
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800985b8], esi
jne 0x1800143a4
cmp qword [0x1800985c0], r15
je 0x1800144af
test rdi, rdi
jne 0x1800143e3
call fcn.180013f70
mov ebp, eax
jmp 0x1800144b4
mov ecx, dword [0x180098a4c]
mov ebx, r15d
test ecx, ecx
je 0x18001440f
mov r8, qword [0x180098a40]
mov rax, r8
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x180014419
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180014400
mov ebp, 4
jmp 0x1800144b4
cmp ebx, 0xffffffff
je 0x18001440f
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x1800144a8
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180013ce0
mov ecx, ebx
call fcn.180013e90
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x1800144b4
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180014492
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180014488
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180014460
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800985c0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800144b4
mov ebp, 5
jmp 0x1800144b4
mov ebp, 2
xchg dword [0x1800985b8], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180017370
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x180093038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword gs:[0x30]
lea r8, [0x18006b3c8]
lea rdx, str.kernel32.dll
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call fcn.180014b40
mov rcx, qword gs:[0x30]
mov rdx, rax
mov r8, qword [rcx + 0x60]
lea rcx, [rsp + 0x20]
mov r8, qword [r8 + 0x10]
call fcn.180017290
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x1800174e6
cmp byte [rsp + 0x28], 0
je 0x180017475
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, qword [rcx + 0x10]
mov rcx, qword [rsp + 0x20]
cmp rcx, r8
jbe 0x1800174e6
movsxd rax, dword [r8 + 0x3c]
mov edx, dword [rax + r8 + 0x50]
add rdx, r8
cmp rcx, rdx
jae 0x1800174e6
mov rcx, qword [rcx]
call fcn.180014ad0
test al, al
jne 0x1800174e6
mov rdx, qword [0x1800987a8]
test rdx, rdx
jne 0x18001745a
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rdx, qword [rcx + 0x10]
mov qword [0x1800987a8], rdx
mov rax, qword [rsp + 0x20]
xor ebp, ebp
mov ecx, eax
sub ecx, edx
cmp rax, rdx
mov al, 1
cmova ebp, ecx
mov dword [0x1800987b8], ebp
jmp 0x1800174e8
call rax
xor ebp, ebp
mov r14, rax
mov ebx, ebp
mov r15d, 0x8b48
mov rdx, qword [rsp + 0x20]
cmp word [rdx + rbx], r15w
jne 0x1800174da
movsxd rax, dword [rdx + rbx + 3]
lea rdi, [rdx + rbx]
add rax, 7
add rdi, rax
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rdx, qword [rcx + 0x10]
cmp rdi, rdx
jbe 0x1800174da
movsxd rax, dword [rdx + 0x3c]
mov ecx, dword [rax + rdx + 0x50]
add rcx, rdx
cmp rdi, rcx
jae 0x1800174da
mov rsi, qword [rdi]
mov rcx, rsi
call fcn.180014ad0
test al, al
jne 0x1800174da
cmp rsi, r14
je 0x18001750e
inc rbx
cmp rbx, 0x100
jl 0x180017484
xor al, al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18002f0c0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov rcx, qword [0x1800987a8]
test rcx, rcx
jne 0x180017532
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
mov qword [0x1800987a8], rcx
mov eax, edi
sub eax, ecx
cmp rdi, rcx
cmova ebp, eax
mov al, 1
mov dword [0x1800987b8], ebp
jmp 0x1800174e8
Function at 0x180026f00
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180026f22
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x180026f9c
mov rdi, r14
mov rcx, rbx
call fcn.18000d360
test rax, rax
jle 0x180026f74
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.180031480
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180026f8c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180026f94
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180026f36
sub r14, rdi
jmp 0x180027089
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180026fb3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180026fb5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180026fea
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180031480
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180027086
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x180027025
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x180027061
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18003e27c
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x18002709f
cmp rbp, rax
ja 0x180027031
mov r8, rdi
test rdi, rdi
je 0x180027086
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18003e27c
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x180027089
Function at 0x1800274d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180093038]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1800274fd
xor eax, eax
jmp 0x180027643
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180027537
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180027537
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x180027643
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180027636
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18002757a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180027589
movsx ecx, dil
jmp 0x1800275dd
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x1800275f7
sub eax, 1
je 0x1800275f7
cmp eax, 2
jne 0x180027636
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.18003d2d8
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18002763b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180027624
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.18003dbd4
cmp rsi, rax
jne 0x180027636
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x18002763b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18002f0c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180028930
Capabilities:
Access peb ldr_data

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, 0x50
mov rax, qword [0x180093038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword gs:[0x30]
mov edx, 0x130
mov byte [0x180096290], 0
mov rcx, qword [rax + 0x60]
mov rsi, qword [rcx + 0x10]
mov ecx, dword [0x1800976d0]
movsxd rax, dword [rsi + 0x3c]
mov ebx, dword [rax + rsi + 0x50]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x180098a38], ecx
jle 0x1800289bd
lea rcx, [0x180098a38]
call fcn.18002fa10
cmp dword [0x180098a38], 0xffffffff
jne 0x1800289bd
lea rcx, [0x180098a38]
call fcn.18002f9b0
lea eax, [rbx - 8]
xor ebp, ebp
mov r14d, eax
test eax, eax
je 0x180028a8b
mov rdi, rsi
mov r9, qword [rdi]
add rdi, 8
mov rbx, qword [rdi]
cmp r9, rbx
je 0x180028a7c
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rdx, qword [rcx + 0x10]
cmp r9, rdx
jbe 0x180028a7c
movsxd rax, dword [rdx + 0x3c]
mov ecx, dword [rax + rdx + 0x50]
add rcx, rdx
cmp r9, rcx
jae 0x180028a7c
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, qword [rcx + 0x10]
cmp rbx, r8
jbe 0x180028a7c
movsxd rax, dword [r8 + 0x3c]
mov ecx, dword [rax + r8 + 0x50]
add rcx, r8
cmp rbx, rcx
jae 0x180028a7c
mov r8d, 0x11
lea rcx, str.Conv_NameToString
mov rdx, r9
call fcn.18003d0d0
test eax, eax
jne 0x180028a7c
mov eax, dword [rbx]
cmp eax, 0x284883ec
je 0x180028a7c
cmp eax, 0x4883ec28
je 0x180028a7c
xor r9d, r9d
mov dword [rsp + 0x20], ebp
mov rdx, rbx
lea rcx, str.48_8B_05_________48_85_C0_75___48_8D_15
lea r8d, [r9 + 0x28]
call fcn.180015000
test rax, rax
je 0x180028a8e
mov rax, rdi
sub rax, rsi
cmp rax, r14
jb 0x1800289d0
mov rbx, rbp
mov rdx, qword [0x180098800]
lea rax, str.89_44_____48_01_____E8
mov qword [rsp + 0x30], rax
lea rax, str.48_89_____48_8D_______E8
mov qword [rsp + 0x38], rax
lea rax, str.48_89_______48_89_____E8
mov qword [rsp + 0x40], rax
mov edi, ebp
test rdx, rdx
jne 0x180028b0c
lea rsi, [rsp + 0x30]
cmp edi, 3
jae 0x180028b07
test rbx, rbx
jne 0x180028ad4
mov rdx, rbp
jmp 0x180028af3
mov rcx, qword [rsi]
mov r9b, 1
mov r8d, 0x90
mov dword [rsp + 0x20], 0xffffffff
mov rdx, rbx
call fcn.180015000
mov rdx, rax
inc edi
mov qword [0x180098800], rdx
add rsi, 8
test rdx, rdx
je 0x180028ac5
jmp 0x180028b0c
test rdx, rdx
je 0x180028b3a
mov rcx, qword [0x1800987a8]
test rcx, rcx
jne 0x180028b30
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
mov qword [0x1800987a8], rcx
mov eax, edx
sub eax, ecx
cmp rdx, rcx
cmova ebp, eax
mov dword [0x180098758], ebp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18002f0c0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x140002920
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140002942
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400029bc
mov rdi, r14
mov rcx, rbx
call fcn.140003dc0
test rax, rax
jle 0x140002994
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140021600
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400029ac
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400029b4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140002956
sub r14, rdi
jmp 0x140002a9f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400029d3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400029d5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002a07
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140021600
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140002a9c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002a42
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x140002a7d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14000e4c0
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140002a9c
cmp rbp, rax
ja 0x140002a50
test rbp, rbp
je 0x140002a9c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14000e4c0
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x1400072d8
Capabilities:
Parse pe header

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

Function at 0x140010e98
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140010c94
Function at 0x14001395c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140013972
mov al, 1
jmp 0x1400139d2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140013983
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400139d0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001b8e8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400139d0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400139d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400139d0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400139d2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400166bc
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.140006b80
sub rsp, rax
mov rax, qword [0x140032080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001383c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001670b
mov rax, rbp
jmp 0x140016813
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 + 0x34290]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140017608
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x34290]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001680f
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 0x14001680f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140017608
test rax, rax
js 0x14001680f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001680f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140016801
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140016801
cmp byte [rcx], 0xd
jne 0x1400167e7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400167f6
cmp byte [rcx + 1], 0xa
jne 0x1400167f6
inc rcx
jmp 0x1400167f6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x324b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400167c9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140016813
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140006530
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 0x1400169a8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140034290]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400169ff
cmp word [rdx], r13w
jne 0x1400169ff
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140016a04
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140016b29
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140016b4a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140016a3d
mov rdx, r9
mov word [rbx], cx
jmp 0x140016a64
cmp r9, r8
jae 0x140016a74
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140016a1e
jmp 0x140016b29
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140016b1e
cmp dword [rsp + 0x80], esi
je 0x140016b1e
lea r8, [0x140034290]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140016af6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140016ac6
mov word [rbx], r13w
jmp 0x140016b26
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140016ad3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140016b26
cmp word [rsp + 0x70], r13w
jne 0x140016b03
cmp rbx, r14
je 0x140016ac0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140017610
cmp word [rsp + 0x70], r13w
je 0x140016b29
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140034290]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140016b23
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140016b29
Function at 0x14001b2c8
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 0x14001b2f8
xor eax, eax
jmp 0x14001b3bb
mov rbp, rbx
cmp word [rax], si
je 0x14001b31d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001b304
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001b300
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.1400198a0
movsxd r14, eax
test eax, eax
jne 0x14001b35b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001b2f1
mov rcx, r14
call fcn.1400176b4
mov rdi, rax
test rax, rax
jne 0x14001b374
xor ecx, ecx
call fcn.1400151d8
jmp 0x14001b350
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.1400198a0
test eax, eax
jne 0x14001b3a5
mov rcx, rdi
call fcn.1400151d8
jmp 0x14001b3af
xor ecx, ecx
call fcn.1400151d8
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 0x14001de3c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140013e1c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14001dedd
cmp ebx, dword [rsp + 0x30]
je 0x14001ded6
test esi, esi
je 0x14001ded6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001deb1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001debe
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001de9b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001dec2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001dedf
mov eax, 1
jmp 0x14001dedf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret