joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401ba578
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 0x1401ba5a8
xor eax, eax
jmp 0x1401ba66b
mov rbp, rbx
cmp word [rax], si
je 0x1401ba5cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401ba5b4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401ba5b0
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.1401b3024
movsxd r14, eax
test eax, eax
jne 0x1401ba60b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401ba5a1
mov rcx, r14
call fcn.1401b2f34
mov rdi, rax
test rax, rax
jne 0x1401ba624
xor ecx, ecx
call fcn.1401b0980
jmp 0x1401ba600
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.1401b3024
test eax, eax
jne 0x1401ba655
mov rcx, rdi
call fcn.1401b0980
jmp 0x1401ba65f
xor ecx, ecx
call fcn.1401b0980
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 0x1401ba688
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401ba70f
mov rsi, rbx
cmp word [rax], bp
je 0x1401ba6ce
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401ba6b8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401ba6b4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401b2f34
mov rdi, rax
test rax, rax
je 0x1401ba6fc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140355870
mov rbp, rdi
xor ecx, ecx
call fcn.1401b0980
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401bdca4
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.1401b0d34
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 0x1401bdd45
cmp ebx, dword [rsp + 0x30]
je 0x1401bdd3e
test esi, esi
je 0x1401bdd3e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401bdd19
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401bdd26
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401bdd03
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401bdd2a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401bdd47
mov eax, 1
jmp 0x1401bdd47
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401befe8
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.1401b6bbc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401b6bbc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401bf138
cmp rax, 0xffffffffffffffff
je 0x1401bf138
xor edi, edi
test rbp, rbp
jle 0x1401bf0e3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401b0908
mov rbx, rax
test rax, rax
jne 0x1401bf070
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401bf0d9
mov edx, 0x8000
mov ecx, r14d
call fcn.1401a46c8
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.1401b53f4
cmp eax, 0xffffffff
je 0x1401bf0b9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401bf080
mov edx, r15d
mov ecx, r14d
call fcn.1401a46c8
jmp 0x1401bf0d9
cmp byte [rsi + 0x38], dil
je 0x1401bf0d0
cmp dword [rsi + 0x34], 5
jne 0x1401bf0d0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1401bf0d9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401b0980
jmp 0x1401bf14c
jns 0x1401bf14c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401b6bbc
cmp rax, 0xffffffffffffffff
jne 0x1401bf104
cmp byte [rsi + 0x30], dil
je 0x1401bf14c
mov edi, dword [rsi + 0x2c]
jmp 0x1401bf14c
mov ecx, r14d
call fcn.1401bb784
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401bf14c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1401bf14c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401bf145
mov eax, dword [rsi + 0x2c]
jmp 0x1401bf14a
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401b6bbc
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 0x1401c1d48
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.1401928d0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401c1dd2
cmp byte [rbp - 0x21], r15b
je 0x1401c1dcd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401c1e08
call fcn.1401b13b4
test eax, eax
jne 0x1401c1df4
cmp byte [rbp - 0x21], r15b
je 0x1401c1dec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401c1e08
cmp byte [rbp - 0x21], r15b
je 0x1401c1e05
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.1401932b8
test eax, eax
jne 0x1401c1ea8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401928d0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401c1e47
cmp byte [rbp - 0x21], r15b
je 0x1401c1e7c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401c1e7c
call fcn.1401b13b4
test eax, eax
jne 0x1401c1e68
cmp byte [rbp - 0x21], r15b
je 0x1401c1e61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401c1e7c
cmp byte [rbp - 0x21], r15b
je 0x1401c1e79
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.1401932b8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401c1ea8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401c1eab
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401c1eb9
mov rcx, rdi
call fcn.1401b0980
cmp byte [rbp + 0x3f], r15b
je 0x1401c1ec8
mov rcx, qword [rbp + 0x27]
call fcn.1401b0980
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 0x1401c2238
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14043c0c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401c2282
call fcn.140193848
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.140193868
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140192ee4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140154c90
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401c228d
lea eax, [rbx + 1]
jmp 0x1401c226f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1401c226d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401c226f
Function at 0x1401d1e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov ebp, dword [rsp + 0xa0]
mov rdi, rcx
mov ecx, ebp
mov r14d, 1
neg ecx
mov ebx, r9d
mov r12d, r8d
mov r15, rdx
mov esi, r14d
mov eax, 0x5a0000
cmp ebp, eax
jg 0x1401d1e60
cmp ecx, eax
jle 0x1401d1e69
inc esi
add eax, 0x5a0000
jmp 0x1401d1e58
lea ecx, [rsi*4]
mov eax, ebp
cdq
idiv ecx
mov ecx, eax
call fcn.1401c9fe0
mov r13d, eax
lea rcx, [rsp + 0x28]
mov eax, 0x55555556
mov r8d, ebx
imul r13d
mov eax, edx
shr eax, 0x1f
add edx, eax
add r13d, edx
mov edx, r12d
call fcn.1401ca070
mov ecx, dword [rsp + 0x2c]
mov edx, r13d
neg ecx
call fcn.1401c67d0
mov ecx, dword [rsp + 0x28]
mov edx, r13d
mov ebx, eax
call fcn.1401c67d0
mov ecx, dword [rsp + 0x2c]
mov edx, eax
add ecx, dword [r15 + 4]
mov eax, dword [rsp + 0x28]
add eax, dword [r15]
mov dword [rsp + 0x28], eax
add eax, ebx
mov dword [rsp + 0x30], eax
lea eax, [rcx + rdx]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x2c], ecx
cmp esi, r14d
jl 0x1401d1fdf
mov r12d, ebp
nop
mov eax, ebp
lea rcx, [rsp + 0x20]
cdq
idiv esi
mov edx, dword [rsp + 0x90]
add eax, dword [rsp + 0x98]
mov r8d, eax
call fcn.1401ca070
mov ecx, dword [rsp + 0x24]
mov edx, r13d
call fcn.1401c67d0
mov ecx, dword [rsp + 0x20]
mov edx, r13d
neg ecx
mov ebx, eax
call fcn.1401c67d0
mov ecx, dword [rsp + 0x20]
mov edx, eax
add ecx, dword [r15]
mov eax, dword [rsp + 0x24]
add ebx, ecx
add eax, dword [r15 + 4]
mov dword [rsp + 0x20], ecx
mov rcx, rdi
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x38], ebx
lea r15d, [rax + rdx]
mov edx, 3
mov dword [rsp + 0x3c], r15d
call fcn.1401d2100
mov r9d, eax
test eax, eax
jne 0x1401d1fd9
mov ecx, dword [rdi]
inc r14d
mov rax, qword [rdi + 8]
add ebp, r12d
mov r8, qword [rdi + 0x10]
lea rdx, [rax + rcx*8]
mov rax, qword [rsp + 0x30]
mov qword [rdx], rax
mov rax, qword [rsp + 0x38]
mov qword [rdx + 8], rax
mov rax, qword [rsp + 0x20]
mov qword [rdx + 0x10], rax
mov word [r8 + rcx], 0x202
mov byte [r8 + rcx + 2], 1
mov eax, dword [rsp + 0x20]
add dword [rdi], 3
add eax, eax
sub eax, ebx
mov byte [rdi + 0x18], r9b
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x24]
add eax, eax
sub eax, r15d
mov r15, qword [rsp + 0x88]
mov dword [rsp + 0x34], eax
cmp r14d, esi
jle 0x1401d1ef0
mov eax, r9d
jmp 0x1401d1fe1
mov byte [rdi + 0x18], 0
jmp 0x1401d1fe1
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401d2bd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov ebp, r8d
mov esi, edx
lea r8d, [rdx + 0x5a0000]
mov rdi, rcx
mov edx, dword [rcx + 0x3c]
lea rcx, [rsp + 0x58]
call fcn.1401ca070
mov r9d, dword [rdi + 8]
add r9d, dword [rsp + 0x58]
mov ecx, dword [rdi + 0xc]
add ecx, dword [rsp + 0x5c]
mov r8d, dword [rdi + 0x5c]
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x44], ecx
test r8d, r8d
js 0x1401d2c66
mov r9d, dword [rdi + 0x40]
lea eax, [r8 + 1]
cmp r9d, eax
ja 0x1401d2c2d
mov dword [rdi + 0x40], r8d
jmp 0x1401d2c62
mov rcx, qword [rdi + 0x48]
dec r9d
mov dword [rdi + 0x40], r9d
mov rax, qword [rcx + r9*8]
mov qword [rcx + r8*8], rax
mov rcx, qword [rdi + 0x50]
movzx eax, byte [rcx + r9]
mov byte [rcx + r8], al
lea ecx, [r9 - 1]
mov rax, qword [rdi + 0x50]
or byte [r8 + rax], 4
mov rax, qword [rdi + 0x50]
or byte [rcx + rax], 8
mov byte [rdi + 0x58], 0
mov eax, dword [rdi + 0x40]
lea rcx, [rdi + 0x40]
mov edx, 1
mov dword [rdi + 0x5c], eax
mov byte [rdi + 0x58], 0
call fcn.1401d2100
test eax, eax
jne 0x1401d2d81
mov r8d, dword [rdi + 0x40]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov qword [rcx + r8*8], rax
mov byte [rdx + r8], 1
inc dword [rdi + 0x40]
mov byte [rdi + 0x58], 0
mov eax, dword [rdi + 8]
sub eax, dword [rsp + 0x58]
mov r8d, dword [rdi + 0x8c]
mov dword [rsp + 0x40], eax
mov eax, dword [rdi + 0xc]
sub eax, dword [rsp + 0x5c]
mov dword [rsp + 0x44], eax
test r8d, r8d
js 0x1401d2d21
mov r9d, dword [rdi + 0x70]
lea eax, [r8 + 1]
cmp r9d, eax
ja 0x1401d2cdc
mov dword [rdi + 0x70], r8d
jmp 0x1401d2d1a
mov rcx, qword [rdi + 0x78]
dec r9d
mov dword [rdi + 0x70], r9d
mov rax, qword [rcx + r9*8]
mov qword [rcx + r8*8], rax
mov rcx, qword [rdi + 0x80]
movzx eax, byte [rcx + r9]
mov byte [rcx + r8], al
lea ecx, [r9 - 1]
mov rax, qword [rdi + 0x80]
or byte [r8 + rax], 4
mov rax, qword [rdi + 0x80]
or byte [rcx + rax], 8
mov byte [rdi + 0x88], 0
mov eax, dword [rdi + 0x70]
lea rcx, [rdi + 0x70]
mov edx, 1
mov dword [rdi + 0x8c], eax
mov byte [rdi + 0x88], 0
call fcn.1401d2100
test eax, eax
jne 0x1401d2d63
mov r9d, dword [rdi + 0x70]
mov rdx, qword [rdi + 0x78]
mov r8, qword [rdi + 0x80]
mov rcx, qword [rsp + 0x40]
mov qword [rdx + r9*8], rcx
mov byte [r8 + r9], 1
inc dword [rdi + 0x70]
mov byte [rdi + 0x88], 0
mov dword [rdi + 0x18], esi
mov byte [rdi + 0x14], 0
mov dword [rdi + 0x24], ebp
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov byte [rdi + 0x58], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401d2f60
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1401d2f7c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1401d2fd0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401d30f5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1401d30f5
test rax, rax
je 0x1401d30f5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x1401d30f5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1401d306a
lea rax, [0x1401d3150]
jmp 0x1401d30c3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1401d30f5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401d30e3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1401d3090
lea rax, [0x1401d3120]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1401d310a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1401da650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov r12d, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.1401c4200
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x1401da6a8
xor eax, eax
add rsp, 0x50
pop r12
pop rdi
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rbp
mov ebp, dword [rbx + 0x40]
mov qword [rsp + 0x48], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x3c]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x34]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x38]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r13d
test r12d, r12d
jg 0x1401da6ff
mov ebx, 0x4b0000
jmp 0x1401da70f
shl r12d, 0x10
mov edx, ecx
mov ecx, r12d
call fcn.1401c67d0
mov ebx, eax
bsr ecx, ebx
bsr eax, edi
shl r13d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x1401da725
mov ecx, r13d
jmp 0x1401da730
mov edx, edi
mov ecx, ebx
call fcn.1401c67d0
mov ecx, eax
mov r8d, dword [rsp + 0x88]
mov eax, r8d
shl eax, 0x10
cmp ecx, eax
jge 0x1401da74c
shl esi, 0x10
mov ecx, esi
jmp 0x1401da812
mov edx, dword [rsp + 0x70]
mov r12d, edx
shl r12d, 0x10
cmp ecx, r12d
jge 0x1401da77f
mov r13d, edx
mov ecx, eax
mov edx, edi
sub r13d, r8d
call fcn.1401c4200
mov ecx, ebx
sub ecx, eax
test r13d, r13d
je 0x1401da7cf
sub r15d, esi
mov r8d, r13d
mov edx, r15d
jmp 0x1401da7b8
mov eax, r14d
shl eax, 0x10
cmp ecx, eax
jl 0x1401da7d3
cmp ecx, r13d
jge 0x1401da80d
mov r15d, dword [rsp + 0x20]
mov edx, edi
sub r15d, r14d
shl r14d, 0x10
mov ecx, r14d
call fcn.1401c4200
sub ebx, eax
test r15d, r15d
je 0x1401da80d
mov esi, dword [rsp + 0x78]
mov r8d, r15d
sub ebp, esi
mov ecx, ebx
mov edx, ebp
call fcn.1401c66a0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.1401c4200
add ebx, eax
jmp 0x1401da81b
mov edx, dword [rsp + 0x70]
mov esi, r14d
mov ecx, r12d
sub esi, edx
mov edx, edi
call fcn.1401c4200
mov ecx, ebx
sub ecx, eax
test esi, esi
je 0x1401da78e
mov edx, dword [rsp + 0x78]
mov r8d, esi
sub edx, r15d
call fcn.1401c66a0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.1401c4200
add ebx, eax
jmp 0x1401da81b
shl ebp, 0x10
mov ecx, ebp
mov edx, edi
call fcn.1401c4200
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r12
pop rdi
pop rbx
jmp fcn.1401c4200
Function at 0x140226770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x14043c0c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x14022690c
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x14022690c
cmp r10d, r14d
jne 0x140226810
sub rbx, 0x10
jmp 0x140226954
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x140226882
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x140226844
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x14022684c
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x14022686b
movzx edx, r11b
mov rcx, rsi
call fcn.140227840
test al, al
jne 0x140226965
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.140227f70
test al, al
jne 0x140226965
mov edx, dword [rsi + 0x64]
lea r9, [0x1402282c0]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1402268ae
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1402265f0
jmp 0x140226902
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.1402265f0
test dil, dil
je 0x1402268fa
cmp byte [rsi + 0x6a], 0
jne 0x1402268fa
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x140226965
sub rbx, 0x10
jmp 0x140226954
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x140226969
mov ebp, dword [rbx]
jmp 0x1402267d0
mov al, 1
jmp 0x140226972
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140154c90
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret