joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002230
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14007a040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x1400c5ed8]
lea rdx, [rsp + 0x28]
mov rdi, qword [0x1400c5eb0]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
sub eax, dword [rsp + 0x28]
mov qword [rsp + 0x40], 0
movd xmm1, eax
mov eax, dword [rsp + 0x34]
sub eax, dword [rsp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x40]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x1400c5ee0]
cvtsi2ss xmm0, qword [0x1400c5ee8]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x1400c5ee0], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x140], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x141], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [0x1400c5eb0]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x143], 0
mov byte [rdi + 0x142], al
cmp byte [rbx + 0x397], 0
je 0x14000236f
cvttss2si eax, dword [rbx + 0x128]
mov rcx, qword [0x1400c5ed8]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], eax
cvttss2si eax, dword [rbx + 0x12c]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x14000236f
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx + 0x128], 0xff7fffff
mov dword [rbx + 0x12c], 0xff7fffff
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x1400023ee
mov rdx, qword [0x1400c5ed8]
cmp rax, rdx
je 0x1400023a7
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1400023ee
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400023ee
mov rcx, qword [0x1400c5ed8]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1400023ee
movd xmm0, dword [rsp + 0x20]
movd xmm1, dword [rsp + 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x128], xmm0
movss dword [rbx + 0x12c], xmm1
cmp byte [rdi + 0xc8], 0
je 0x1400023fe
mov eax, 0xffffffff
jmp 0x14000240b
mov rax, qword [0x1400c5eb0]
mov eax, dword [rax + 0x1f08]
cmp dword [0x1400c487c], eax
je 0x14000241e
mov dword [0x1400c487c], eax
call fcn.140001de0
call fcn.140001f60
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400343b0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140003d80
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 0x140003ddd
lea rbx, [0x140062fc0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140003dc4
cmp r10, 2
jb 0x140003dc4
cmp byte [r9], r8b
jne 0x140003dc4
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 0x140003da0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140003e1f
lea rbx, [0x140062fc0]
cmp r8b, 0x23
jne 0x140003e03
cmp byte [r9], r8b
jne 0x140003e03
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 0x140003df0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003f60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140003f7a
mov qword [r8], 0
lea rdx, [0x140062d0c]
call fcn.140003e30
mov rbx, rax
test rax, rax
jne 0x140003f9a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.14003b4a8
mov esi, eax
cmp eax, 0xffffffff
je 0x140004068
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.14003bfa0
test eax, eax
jne 0x140004068
mov rcx, rbx
call fcn.14003b4a8
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140004068
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.14003bfa0
test eax, eax
jne 0x140004068
cmp rdi, 0xffffffffffffffff
je 0x140004068
mov rax, qword [0x1400c5eb0]
test rax, rax
je 0x14000400a
inc dword [rax + 0x3b0]
mov rcx, rdi
call fcn.1400442b0
mov rsi, rax
test rax, rax
je 0x140004068
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.14003ec44
mov rcx, rbx
cmp rax, rdi
je 0x140004056
call fcn.14003bc98
mov rax, qword [0x1400c5eb0]
test rax, rax
je 0x14000404c
dec dword [rax + 0x3b0]
mov rcx, rsi
call fcn.14003e9d0
jmp 0x140004070
call fcn.14003bc98
test r14, r14
je 0x140004063
mov qword [r14], rdi
mov rax, rsi
jmp 0x140004072
mov rcx, rbx
call fcn.14003bc98
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140005bb0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xc8]
mov rax, qword [rcx + 0xd0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140062fc0]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, qword [0x1400c5eb0]
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rax + 0x1bec], ebx
jne 0x140005c3d
mov dword [rax + 0x1bf0], ebx
cmp dword [rax + 0x1c28], ebx
jne 0x140005c4c
mov byte [rax + 0x1c2c], 1
cmp dword [rax + 0x1bd4], ebx
jne 0x140005c63
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.140015130
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14000fa20
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14007a040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400c5eb0]
mov edi, edx
cmp byte [rbx + 0x1f0d], 0
jne 0x14000fa81
cmp byte [rbx + 0x1f0e], 0
jne 0x14000fa81
movsx r9d, word [rbx + 0x2fe6]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140003d00
test dil, 1
je 0x14000fba8
jmp 0x14000fb0a
movss xmm1, dword [rbx + 0x163c]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x2fe6]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140071458]
mulss xmm1, dword [0x140071444]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1cb0], rax
mov dword [rbx + 0x1c9c], 1
movss dword [rbx + 0x1ca8], xmm0
movss dword [rbx + 0x1cac], xmm1
movss xmm0, dword [rbx + 0x16a8]
mulss xmm0, dword [0x1400713bc]
or dword [rbx + 0x1c98], 0x41
movss dword [rbx + 0x1cf8], xmm0
call fcn.140003d00
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14000fb60
lea r11, [0x140062fc0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x14000fb43
cmp byte [r8], r9b
jne 0x14000fb43
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14000fb30
not ecx
call fcn.140009b60
test rax, rax
je 0x14000fba8
cmp byte [rax + 0x8e], 0
je 0x14000fba8
mov byte [rax + 0x96], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x2fe6]
mov edx, 0x10
movsx r9d, word [rbx + 0x2fe6]
call fcn.140003d00
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000c280
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400343b0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14002d8a0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, r8
mov r14, rdx
mov rsi, rcx
movzx r12d, byte [r8]
movabs rax, 0xcbf29ce484222325
xor r12, rax
movabs rcx, 0x100000001b3
imul r12, rcx
movzx eax, byte [r8 + 1]
xor r12, rax
imul r12, rcx
movzx eax, byte [r8 + 2]
xor r12, rax
imul r12, rcx
movzx eax, byte [r8 + 3]
xor r12, rax
imul r12, rcx
mov rcx, qword [rsi + 0x30]
and rcx, r12
add rcx, rcx
mov rax, qword [rsi + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
lea rdx, [rsi + 8]
mov r15, qword [rdx]
cmp rbx, r15
jne 0x14002d927
mov rbx, r15
mov rbp, r15
jmp 0x14002d96a
mov rcx, qword [rax + rcx*8]
mov eax, dword [r8]
cmp eax, dword [rbx + 0x10]
je 0x14002d941
cmp rbx, rcx
je 0x14002d964
mov rbx, qword [rbx + 8]
cmp eax, dword [rbx + 0x10]
jne 0x14002d933
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r15, rbx
mov rbp, rbx
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [rsi + 0x10], rax
je 0x14002dac9
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], 0
mov ecx, 0x18
call fcn.1400343d0
mov rdi, rax
mov qword [rsp + 0x28], rax
mov rax, qword [r13]
mov qword [rdi + 0x10], rax
mov rcx, qword [rsi + 0x10]
add rcx, 1
xorps xmm0, xmm0
js 0x14002d9ba
cvtsi2ss xmm0, rcx
jmp 0x14002d9cf
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [rsi + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x14002d9e2
cvtsi2ss xmm1, rcx
jmp 0x14002d9f7
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rsi]
seta al
test al, al
je 0x14002da61
mov rcx, rsi
call fcn.14002db00
mov rcx, qword [rsi + 0x30]
and rcx, r12
add rcx, rcx
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + rcx*8 + 8]
mov rbx, qword [rsi + 8]
cmp rax, rbx
jne 0x14002da34
mov qword [rsp + 0x28], 0
jmp 0x14002da54
mov rdx, qword [rdx + rcx*8]
mov ecx, dword [rdi + 0x10]
cmp ecx, dword [rax + 0x10]
je 0x14002da51
mov rbx, rax
cmp rax, rdx
je 0x14002da95
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x14002da40
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rbp, rbx
mov r15, qword [rsp + 0x20]
mov rdx, qword [rbx + 8]
inc qword [rsi + 0x10]
mov qword [rdi], r15
mov qword [rdi + 8], rdx
mov qword [rdx], rdi
mov qword [rbx + 8], rdi
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x30]
and rax, r12
add rax, rax
mov r8, qword [rcx + rax*8]
cmp r8, qword [rsi + 8]
jne 0x14002daa5
mov qword [rcx + rax*8], rdi
jmp 0x14002dab7
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
jmp 0x14002da59
cmp r8, rbp
jne 0x14002dab0
mov qword [rcx + rax*8], rdi
jmp 0x14002dabc
cmp qword [rcx + rax*8 + 8], rdx
jne 0x14002dabc
mov qword [rcx + rax*8 + 8], rdi
mov qword [r14], rdi
mov byte [r14 + 8], 1
jmp 0x14002d949
lea rcx, str.unordered_map_set_too_long
call fcn.140033d48
int3
Function at 0x14002dbb0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rdi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x14002db25
cvtsi2ss xmm0, rdx
jmp 0x14002db3a
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call fcn.1400542ac
movss xmm1, dword [0x1400714ec]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x14002db68
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x14002db68
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x14002db9a
cmp rbx, 0x200
jae 0x14002db97
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x14002db9a
mov rbx, rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14002dbb0
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14002dd5d
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14002d760
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14002dd26
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14002dca0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14002dd15
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14002dcdd
mov r10, qword [rdx]
cmp r10, rax
je 0x14002dcd7
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14002dd15
cmp r9, rdx
je 0x14002dcf1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x14002dd37
cmp r9, rdx
jne 0x14002dce2
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14002dc50
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14002dd15
lea rcx, str.invalid_hash_bucket_count
call fcn.140033d48
int3
Function at 0x140033d6c
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, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140033da6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140033dab
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 0x140033df4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140059610]
cmp byte [rcx + rax], 0
je 0x140033df4
dec r8
sub rdx, 1
jne 0x140033dda
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14003513c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140035186
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140035186
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140035186
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140035186
cmp dword [rcx + 0x84], 0xe
jbe 0x140035186
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140035188
xor al, al
add rsp, 0x28
ret
Function at 0x14003b25c
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.140053d20
sub rsp, rax
mov rax, qword [0x14007a040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004619c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003b2ab
mov rax, rbp
jmp 0x14003b3b3
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 + 0xc5610]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004642c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xc5610]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003b3af
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 0x14003b3af
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004642c
test rax, rax
js 0x14003b3af
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003b3af
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003b3a1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003b3a1
cmp byte [rcx], 0xd
jne 0x14003b387
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003b396
cmp byte [rcx + 1], 0xa
jne 0x14003b396
inc rcx
jmp 0x14003b396
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7a360]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003b369
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003b3b3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400343b0
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 0x140044c68
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140044a64
Function at 0x140046bb0
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, [0x1400c5610]
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 0x140046c07
cmp word [rdx], r13w
jne 0x140046c07
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140046c0c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140046d31
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140046d52
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140046c45
mov rdx, r9
mov word [rbx], cx
jmp 0x140046c6c
cmp r9, r8
jae 0x140046c7c
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 0x140046c26
jmp 0x140046d31
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 0x140046d26
cmp dword [rsp + 0x80], esi
je 0x140046d26
lea r8, [0x1400c5610]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140046cfe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140046cce
mov word [rbx], r13w
jmp 0x140046d2e
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 0x140046cdb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140046d2e
cmp word [rsp + 0x70], r13w
jne 0x140046d0b
cmp rbx, r14
je 0x140046cc8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140046434
cmp word [rsp + 0x70], r13w
je 0x140046d31
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, [0x1400c5610]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140046d2b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140046d31
Function at 0x140049884
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004989a
mov al, 1
jmp 0x1400498fa
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400498ab
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400498f8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004e290
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400498f8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400498f8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400498f8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400498fa
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004d6f0
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 0x14004d720
xor eax, eax
jmp 0x14004d7e3
mov rbp, rbx
cmp word [rax], si
je 0x14004d745
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004d72c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004d728
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.14004d610
movsxd r14, eax
test eax, eax
jne 0x14004d783
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004d719
mov rcx, r14
call fcn.140049ec0
mov rdi, rax
test rax, rax
jne 0x14004d79c
xor ecx, ecx
call fcn.140047e2c
jmp 0x14004d778
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.14004d610
test eax, eax
jne 0x14004d7cd
mov rcx, rdi
call fcn.140047e2c
jmp 0x14004d7d7
xor ecx, ecx
call fcn.140047e2c
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