joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140061300
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140391878]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rax, qword [rax + rcx*8 + 0x18]
add rax, qword [rdx]
add rsp, 0x28
ret

Function at 0x140061330
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140391878]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, qword [rax + 0x338]
mov rcx, qword [rax + 0x10]
mov qword [rax + rdx*8 + 0x18], rcx
inc qword [rax + 0x338]
add rsp, 0x28
ret

Function at 0x1400613d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rcx
movsxd rbx, edx
mov ecx, dword [0x140391878]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [0x140398de0]
xor edx, edx
mov rsi, rax
mov rax, qword [r14]
mov r8d, dword [rsi + 0x10]
sub r8d, ebx
movsxd rdi, r8d
lea r9, [rdi + 0xa]
test rax, rax
jne 0x140061424
mov r8, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x14006142d
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [r14], rax
mov rcx, rax
mov rdx, qword [rsi]
shr rdi, 1
add rdx, rbx
mov r8d, edi
call fcn.140061890
mov rdi, qword [rsp + 0x40]
mov qword [rsi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x140061530
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140391878]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add qword [rax + 0x10], 2
add rsp, 0x28
ret

Function at 0x140061550
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x140398de0], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140391878], eax
add rsp, 0x28
jmp fcn.140061830

Function at 0x140061580
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rbp, ecx
mov esi, edx
mov ecx, dword [0x140391878]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp esi, 0xffffffff
jne 0x1400615b0
mov esi, dword [rax + 0x10]
mov eax, dword [rax + 0x10]
mov r8, qword [rbx + 8]
lea edx, [rax + rbp*2]
movsxd rax, edx
lea rcx, [r8 - 4]
cmp rax, rcx
jl 0x1400615d1
lea eax, [rdx + 0x4000]
movsxd r9, eax
jmp 0x1400615e3
mov eax, 0x100000
cmp r8, rax
jle 0x140061600
cmp edx, eax
cmovl edx, eax
mov r9d, edx
mov r8, qword [rbx]
xor edx, edx
mov qword [rbx + 8], r9
add r9, 0xa
mov rcx, qword [0x140398de0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx], rax
mov rax, qword [rbx]
movsxd rdx, esi
mov rsi, qword [rsp + 0x40]
add rax, rdx
lea rcx, [rdx + rbp*2]
mov rbp, qword [rsp + 0x38]
mov qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140061630
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x140391878]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [rbx + rbx]
movsxd rdx, ecx
sub qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
ret

Function at 0x140061660
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140391878]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edx, edx
mov qword [rax + 0x10], rbx
mov rax, qword [rax]
mov word [rbx + rax], dx
add rsp, 0x20
pop rbx
ret

Function at 0x140061690
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140391878]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax]
cmp rbx, rcx
jb 0x1400616c4
mov rdx, qword [rax + 0x10]
add rdx, rcx
cmp rbx, rdx
ja 0x1400616c4
sub ebx, ecx
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400616d0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140391878]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec rbx
mov rax, qword [rax]
add rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140061700
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140391878]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rbx, qword [rax]
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140061830
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x140398de0]
xor edx, edx
mov r8d, 0x340
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x140398de0]
xor edx, edx
mov rbx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], 0x10
mov rdx, rbx
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x338], rax
mov ecx, dword [0x140391878]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x140071d40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, qword [rcx + 0x70]
mov rbp, rcx
mov r14, rdx
mov ecx, dword [rsi + 0x18]
cmp ecx, 0xc
jle 0x140071d7d
mov eax, 0x70
mov dword [rbp + 0x60], eax
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
cmp dword [rsi + 0x2c], ecx
jge 0x140071e60
movzx ecx, byte [rsi + 0x50]
test cl, cl
jne 0x140071e31
mov r9, qword [rbp + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x140071dbc
mov r8d, 1
lea rdx, [rsi + 0x50]
mov rcx, rbp
call rax
cdqe
jmp 0x140071dd1
mov r9, qword [r9 + 0x38]
lea rcx, [rsi + 0x50]
mov edx, 1
mov r8d, edx
call fcn.1400923a4
cmp rax, 1
jne 0x140071ed6
movzx eax, byte [rsi + 0x50]
test al, al
je 0x140071eca
mov r9, qword [rbp + 0x70]
mov r10, qword [r9 + 0x40]
test r10, r10
je 0x140071e05
mov r8d, eax
lea rdx, [rsi + 0x51]
mov rcx, rbp
call r10
cdqe
jmp 0x140071e1a
mov r9, qword [r9 + 0x38]
lea rcx, [rsi + 0x51]
mov r8, rax
mov edx, 1
call fcn.1400923a4
movzx ecx, byte [rsi + 0x50]
cmp rax, rcx
jne 0x140071ed6
movzx edx, byte [rsi + 0x51]
mov byte [rsi + 0x51], 2
jmp 0x140071e3f
movzx eax, byte [rsi + 0x51]
movzx edx, byte [rax + rsi + 0x50]
inc al
mov byte [rsi + 0x51], al
dec cl
movzx eax, dl
mov byte [rsi + 0x50], cl
mov ecx, dword [rsi + 0x2c]
shl eax, cl
or dword [rsi + 0x30], eax
lea eax, [rcx + 8]
mov dword [rsi + 0x2c], eax
mov ecx, dword [rsi + 0x18]
cmp eax, ecx
jl 0x140071d90
movsxd rax, ecx
lea rcx, [0x1400b8d50]
movzx ecx, word [rcx + rax*2]
and ecx, dword [rsi + 0x30]
mov dword [r14], ecx
mov edx, dword [rsi + 0x18]
mov ecx, edx
shr dword [rsi + 0x30], cl
sub dword [rsi + 0x2c], edx
mov ecx, dword [rsi + 0x14]
cmp ecx, 0x1001
jge 0x140071eaa
mov r8d, dword [rsi + 0x1c]
inc ecx
mov dword [rsi + 0x14], ecx
cmp ecx, r8d
jle 0x140071eaa
cmp edx, 0xc
jge 0x140071eaa
lea ecx, [r8 + r8]
mov dword [rsi + 0x1c], ecx
lea ecx, [rdx + 1]
mov dword [rsi + 0x18], ecx
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, 0x70
mov dword [rbp + 0x60], eax
xor eax, eax
jmp 0x140071eaf
mov eax, 0x66
mov dword [rbp + 0x60], eax
xor eax, eax
jmp 0x140071eaf
Function at 0x140072260
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x70]
mov rsi, rdx
mov rbx, rcx
mov rax, qword [rdi + 0x40]
test rax, rax
je 0x140072293
mov r8d, 1
lea rdx, [rsp + 0x30]
call rax
cdqe
jmp 0x1400722a9
mov r9, qword [rdi + 0x38]
lea rcx, [rsp + 0x30]
mov edx, 1
mov r8d, edx
call fcn.1400923a4
cmp rax, 1
jne 0x140072307
movzx ecx, byte [rsp + 0x30]
lea rax, [rdi + 0x50]
test cl, cl
je 0x140072320
mov qword [rsi], rax
mov byte [rax], cl
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x1400722e3
mov rdx, qword [rsi]
mov rcx, rbx
movzx r8d, byte [rsp + 0x30]
inc rdx
call rax
cdqe
jmp 0x1400722fd
mov rcx, qword [rsi]
mov edx, 1
movzx r8d, byte [rsp + 0x30]
inc rcx
mov r9, qword [r9 + 0x38]
call fcn.1400923a4
movzx ecx, byte [rsp + 0x30]
cmp rax, rcx
je 0x14007232a
mov dword [rbx + 0x60], 0x66
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor ecx, ecx
mov qword [rsi], rcx
mov byte [rax], cl
mov dword [rdi + 0x34], ecx
mov rbx, qword [rsp + 0x38]
mov eax, 1
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140072340
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx + 0x70]
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rsi + 0x40]
test rax, rax
je 0x140072373
mov r8d, 1
lea rdx, [rsp + 0x30]
call rax
cdqe
jmp 0x140072389
mov r9, qword [rsi + 0x38]
lea rcx, [rsp + 0x30]
mov edx, 1
mov r8d, edx
call fcn.1400923a4
cmp rax, 1
jne 0x1400723e7
movzx ecx, byte [rsp + 0x30]
test cl, cl
je 0x140072400
lea rax, [rsi + 0x50]
mov qword [rdi], rax
mov byte [rax], cl
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x1400723c3
mov rdx, qword [rdi]
mov rcx, rbx
movzx r8d, byte [rsp + 0x30]
inc rdx
call rax
cdqe
jmp 0x1400723dd
mov rcx, qword [rdi]
mov edx, 1
movzx r8d, byte [rsp + 0x30]
inc rcx
mov r9, qword [r9 + 0x38]
call fcn.1400923a4
movzx ecx, byte [rsp + 0x30]
cmp rax, rcx
je 0x140072407
mov dword [rbx + 0x60], 0x66
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rdi], 0
mov rbx, qword [rsp + 0x38]
mov eax, 1
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140072850
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x70]
mov rbx, rcx
test byte [rax], 8
jne 0x140072871
mov dword [rcx + 0x60], 0x6f
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, rbx
call fcn.140072a60
test eax, eax
je 0x140072869
lea rdx, [rbx + 4]
mov rcx, rbx
call fcn.140072a60
test eax, eax
je 0x140072869
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x1400728ae
mov r8d, 3
lea rdx, [rsp + 0x30]
mov rcx, rbx
call rax
cdqe
jmp 0x1400728c5
mov r9, qword [r9 + 0x38]
lea rcx, [rsp + 0x30]
mov edx, 1
lea r8d, [rdx + 2]
call fcn.1400923a4
cmp rax, 3
je 0x1400728eb
mov rcx, qword [rbx + 0x18]
mov dword [rbx + 0x60], 0x66
call fcn.140073190
xor eax, eax
mov qword [rbx + 0x18], 0
add rsp, 0x20
pop rbx
ret
movzx edx, byte [rsp + 0x30]
mov eax, edx
mov qword [rsp + 0x38], rsi
shr eax, 4
mov ecx, edx
and eax, 7
mov qword [rsp + 0x40], rdi
inc eax
movzx edi, dl
mov dword [rbx + 8], eax
movzx eax, byte [rsp + 0x31]
shr dil, 3
mov dword [rbx + 0xc], eax
and dil, 1
movzx eax, byte [rsp + 0x32]
mov byte [rbx + 0x10], al
test dl, dl
jns 0x140072a39
and ecx, 7
mov eax, 1
inc ecx
xor edx, edx
shl eax, cl
mov ecx, eax
call fcn.140073280
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x140072961
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov dword [rbx + 0x60], 0x6d
add rsp, 0x20
pop rbx
ret
mov byte [rax + 8], dil
xor esi, esi
mov rax, qword [rbx + 0x18]
cmp dword [rax], esi
jle 0x140072a41
xor edi, edi
nop word [rax + rax]
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x1400729a1
mov r8d, 3
lea rdx, [rsp + 0x30]
mov rcx, rbx
call rax
cdqe
jmp 0x1400729b8
mov r9, qword [r9 + 0x38]
lea rcx, [rsp + 0x30]
mov edx, 1
lea r8d, [rdx + 2]
call fcn.1400923a4
mov rcx, qword [rbx + 0x18]
cmp rax, 3
jne 0x140072a13
mov rcx, qword [rcx + 0x10]
inc esi
movzx eax, byte [rsp + 0x30]
mov byte [rdi + rcx], al
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax + 0x10]
movzx eax, byte [rsp + 0x31]
mov byte [rcx + rdi + 1], al
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax + 0x10]
movzx eax, byte [rsp + 0x32]
mov byte [rcx + rdi + 2], al
add rdi, 3
mov rax, qword [rbx + 0x18]
cmp esi, dword [rax]
jl 0x140072980
mov rsi, qword [rsp + 0x38]
mov eax, 1
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
call fcn.140073190
mov rsi, qword [rsp + 0x38]
xor eax, eax
mov rdi, qword [rsp + 0x40]
mov qword [rbx + 0x18], 0
mov dword [rbx + 0x60], 0x66
add rsp, 0x20
pop rbx
ret
mov qword [rbx + 0x18], 0
mov rsi, qword [rsp + 0x38]
mov eax, 1
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
Function at 0x140072a60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r9, qword [rcx + 0x70]
mov rdi, rdx
mov rbx, rcx
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x140072a8e
mov r8d, 2
lea rdx, [rsp + 0x30]
call rax
cdqe
jmp 0x140072aa5
mov r9, qword [r9 + 0x38]
lea rcx, [rsp + 0x30]
mov edx, 1
lea r8d, [rdx + 1]
call fcn.1400923a4
cmp rax, 2
je 0x140072abf
mov dword [rbx + 0x60], 0x66
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx edx, byte [rsp + 0x31]
mov eax, 1
movzx ecx, byte [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
shl edx, 8
or edx, ecx
mov dword [rdi], edx
add rsp, 0x20
pop rdi
ret

Function at 0x140072ae0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov rbx, r8
mov ecx, 0x78
mov rbp, rdx
call fcn.14008cc90
mov rdi, rax
test rax, rax
jne 0x140072b21
test rbx, rbx
je 0x140072c50
mov dword [rbx], 0x6d
jmp 0x140072c6c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov edx, 0x6160
movups xmmword [rdi + 0x10], xmm0
lea ecx, [rax + 1]
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
movups xmmword [rdi + 0x50], xmm0
movups xmmword [rdi + 0x60], xmm0
mov qword [rdi + 0x70], rax
call fcn.14008cc98
mov rsi, rax
test rax, rax
jne 0x140072b74
test rbx, rbx
je 0x140072b65
mov dword [rbx], 0x6d
mov rcx, rdi
call fcn.14008cc7c
xor eax, eax
jmp 0x140072c6c
xor edx, edx
mov r8d, 0x6160
mov rcx, rsi
call fcn.14001eb70
mov qword [rdi + 0x70], rsi
mov qword [rsi], 8
mov qword [rsi + 0x38], 0
mov qword [rsi + 0x40], rbp
mov r9, qword [rdi + 0x70]
mov qword [rdi + 0x68], r14
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x140072bc0
mov r8d, 6
lea rdx, [rsp + 0x58]
mov rcx, rdi
call rax
cdqe
jmp 0x140072bd7
mov r9, qword [r9 + 0x38]
lea rcx, [rsp + 0x58]
mov edx, 1
lea r8d, [rdx + 5]
call fcn.1400923a4
cmp rax, 6
je 0x140072bea
test rbx, rbx
je 0x140072c15
mov dword [rbx], 0x66
jmp 0x140072c15
mov r8d, 3
mov byte [rsp + 0x5e], 0
lea rdx, [rsp + 0x58]
lea rcx, str.GIFVER
call fcn.140091c30
test eax, eax
je 0x140072c29
test rbx, rbx
je 0x140072c15
mov dword [rbx], 0x67
mov rcx, rsi
call fcn.14008cc7c
mov rcx, rdi
call fcn.14008cc7c
xor eax, eax
jmp 0x140072c6c
mov rcx, rdi
call fcn.140072850
test eax, eax
jne 0x140072c54
mov rcx, rsi
call fcn.14008cc7c
mov rcx, rdi
call fcn.14008cc7c
test rbx, rbx
je 0x140072c50
mov dword [rbx], 0x68
xor eax, eax
jmp 0x140072c6c
mov dword [rdi + 0x60], 0
cmp byte [rsp + 0x5b], 0x39
sete al
mov byte [rsi + 0x6158], al
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14008c16c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

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
cmp dword [0x140398110], 0
lea rbx, [0x140398120]
mov r14, rdx
mov r15, rcx
jne 0x14008c1b9
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140398114], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140398110], 1
mov ecx, dword [0x140398114]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14008c28e
mov rcx, qword [0x140391b98]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14008c2b9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140398118]
test rax, rax
je 0x14008c209
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140398118], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rbp + 0x20]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rdi
mov dword [rsp + 0x20], 0x100000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x14008c2d4]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140398114]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140391b98]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14008c2b9
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
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

Function at 0x14008cae0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14008cb08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14008cb08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140092ab4
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.14008c970
sub rsp, rax
mov rax, qword [0x1403905e8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001bb50
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140092b03
mov rax, rbp
jmp 0x140092c0b
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 + 0x392250]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001d560
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x392250]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140092c07
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 0x140092c07
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001d560
test rax, rax
js 0x140092c07
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140092c07
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140092bf9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140092bf9
cmp byte [rcx], 0xd
jne 0x140092bdf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140092bee
cmp byte [rcx + 1], 0xa
jne 0x140092bee
inc rcx
jmp 0x140092bee
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x390ee0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140092bc1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140092c0b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14008c6a0
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 0x14009ffd4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14009ffea
mov al, 1
jmp 0x1400a004a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14009fffb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400a0048
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400146a8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a0048
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400a0048
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a0048
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400a004a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x4137c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41394b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x006d6c30]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x413825
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x413834
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x413853
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x413863
cmp rbx, 0x1000
jae 0x41382b
jmp 0x4138cd
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x413875
xor edx, edx
jmp 0x4138c4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x006d6c30]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x413859
jmp 0x413848
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x006d6c30]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x00547508]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x00547c46]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x0054a835]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS