joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180063af8
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.180058c24
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180058c24
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180063c48
cmp rax, 0xffffffffffffffff
je 0x180063c48
xor edi, edi
test rbp, rbp
jle 0x180063bf3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180059934
mov rbx, rax
test rax, rax
jne 0x180063b80
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180063be9
mov edx, 0x8000
mov ecx, r14d
call fcn.18006397c
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.18005ab14
cmp eax, 0xffffffff
je 0x180063bc9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180063b90
mov edx, r15d
mov ecx, r14d
call fcn.18006397c
jmp 0x180063be9
cmp byte [rsi + 0x38], dil
je 0x180063be0
cmp dword [rsi + 0x34], 5
jne 0x180063be0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180063be9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800599ac
jmp 0x180063c5c
jns 0x180063c5c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180058c24
cmp rax, 0xffffffffffffffff
jne 0x180063c14
cmp byte [rsi + 0x30], dil
je 0x180063c5c
mov edi, dword [rsi + 0x2c]
jmp 0x180063c5c
mov ecx, r14d
call fcn.1800602e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180063c5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180063c5c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180063c55
mov eax, dword [rsi + 0x2c]
jmp 0x180063c5a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180058c24
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 0x180065240
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180065268
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180065268
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001bb70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001bbea
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001bbe0
cmp r11, r10
ja 0x14001bc75
cmp r10, rdx
ja 0x14001bc87
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001bbe2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001bbc0
jmp 0x14001bc57
ja 0x14001bbea
mov r11, r10
cmp rax, r8
jne 0x14001bb92
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001bc5b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001bc30
mov r8, r10
sub ecx, r9d
jns 0x14001bc4e
jmp 0x14001bc5d
cmp r10, rdx
je 0x14001bc69
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001bc5d
xor al, 1
cmp r8, rdx
jne 0x14001bc10
jmp 0x14001bc5d
xor eax, eax
jmp 0x14001bc5d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140392c48]
call fcn.14001ed30
lea r8, [0x140392c60]
mov rcx, r11
mov rdx, r10
call fcn.14001f230
lea r8, [0x140392c60]
mov rcx, r10
call fcn.14001f220
int3

Function at 0x14001d840
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [section..rdata]
test rax, rax
je 0x14001d88a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d88a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d88a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d88a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d88a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001d88c
xor al, al
add rsp, 0x28
ret
Function at 0x140001dc0
Capabilities:
Check for debugger via api
Check for process debug object
Check processdebugflags
Check processdebugport

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
call fcn.140027430
mov r14, rax
mov edi, edx
mov ecx, 0x23
call fcn.14002a530
call fcn.140027430
mov rsi, rax
mov ebx, edx
mov r8, qword [0x1428020e8]
test r8, r8
jne 0x140001e23
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x38]
call sub.KERNEL32.dll_QueryPerformanceFrequency
test eax, eax
je 0x14000205a
mov r8, qword [rsp + 0x38]
mov qword [0x1428020e8], r8
test r8, r8
je 0x14000205f
cmp r8, 0x3b9aca00
ja 0x140001e38
mov eax, 0x3b9aca00
xor edx, edx
div r8d
jmp 0x140001e3a
xor eax, eax
lea ecx, [rax - 0x3b9aca00]
xor edx, edx
cmp r8, 2
cmovae ecx, eax
setb al
xor r9d, r9d
cmp r14, rsi
setne r9b
mov r8d, 0xff
cmovae r8d, r9d
test r8b, r8b
jne 0x140001e71
cmp edi, ebx
setne r8b
jb 0x140001f10
cmp r8b, 1
jne 0x140001f10
mov r8, r14
sub r8, rsi
jb 0x14000205f
cmp edi, ebx
jae 0x140001eac
test r8, r8
je 0x14000205f
dec r8
lea r9d, [rdi + 0x3b9aca00]
sub r9d, ebx
cmp r9d, 0x3b9aca00
jae 0x140001ebb
jmp 0x140001ee0
mov r9d, edi
sub r9d, ebx
cmp r9d, 0x3b9aca00
jb 0x140001ee0
mov r10d, r9d
shr r10d, 9
imul r10, r10, 0x44b83
shr r10, 0x27
add r8, r10
jb 0x14000205f
imul r10d, r10d, 0x3b9aca00
sub r9d, r10d
mov dl, al
xor eax, eax
cmp r8, rdx
setne al
mov edx, 0xff
cmovb eax, edx
xor r8d, r8d
cmp r9d, ecx
setne r8b
cmovb r8d, edx
test al, al
cmovne r8d, eax
cmp r8b, 1
jne 0x140002055
cmp rsi, r14
jb 0x140002055
sub rsi, r14
cmp ebx, edi
jae 0x140001f32
test rsi, rsi
je 0x140002055
dec rsi
add ebx, 0x3b9aca00
sub ebx, edi
cmp ebx, 0x3b9aca00
jb 0x140001f53
shr ebx, 9
imul rax, rbx, 0x44b83
shr rax, 0x27
add rsi, rax
jb 0x14000205f
cmp rsi, 0x19
jb 0x140002055
lea rcx, [rsp + 0x38]
call fcn.14004e2c0
cmp byte [rsp + 0x38], 0x12
jne 0x14000205f
call fcn.140036d70
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x2c], 0
call sub.KERNEL32.dll_GetCurrentProcess
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.KERNEL32.dll_CheckRemoteDebuggerPresent
call sub.KERNEL32.dll_GetCurrentProcess
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, 7
mov r9d, 8
call sub.ntdll.dll_NtQueryInformationProcess
call sub.KERNEL32.dll_GetCurrentProcess
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, 0x1f
mov r9d, 4
call sub.ntdll.dll_NtQueryInformationProcess
call sub.KERNEL32.dll_GetCurrentProcess
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x38]
mov rcx, rax
mov edx, 0x1e
mov r9d, 8
call sub.ntdll.dll_NtQueryInformationProcess
cmp dword [rsp + 0x2c], 0
jne 0x140002055
cmp qword [rsp + 0x30], 0
jne 0x140002055
cmp dword [rsp + 0x28], 0
je 0x140002055
cmp qword [rsp + 0x38], 0
jne 0x140002055
mov ecx, 0x80000001
call sub.KERNEL32.dll_SetThreadExecutionState
call fcn.140002070
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14002ae00
call sub.KERNEL32.dll_GetLastError
ud2
Function at 0x140009180
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x428
mov r15d, dword [rdx + 0x58]
lea r12d, [r15 - 1]
cmp r12, r9
jae 0x1400092ac
mov rdi, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rdx, r12
shl rdx, 0xa
add rdx, r8
lea rcx, [rsp + 0x28]
mov r8d, 0x400
call sub.msvcrt.dll_memcpy
mov eax, dword [rbx + 0x44]
cmp rax, 2
jb 0x14000928c
add r14, 0x30
lea ecx, [r15*2 - 1]
mov edx, 1
nop word cs:[rax + rax]
mov r8d, r15d
imul r8d, edx
add r8d, r12d
cmp r8, rdi
jae 0x1400092ac
mov r8d, ecx
shl r8, 0xa
add r8, r14
inc rdx
xor r9d, r9d
nop word cs:[rax + rax]
movups xmm0, xmmword [r8 + r9*8 - 0x30]
movups xmm1, xmmword [r8 + r9*8 - 0x20]
movups xmm2, xmmword [rsp + r9*8 + 0x28]
xorps xmm2, xmm0
movups xmm0, xmmword [rsp + r9*8 + 0x38]
xorps xmm0, xmm1
movups xmm1, xmmword [rsp + r9*8 + 0x48]
movups xmm3, xmmword [rsp + r9*8 + 0x58]
movups xmmword [rsp + r9*8 + 0x28], xmm2
movups xmmword [rsp + r9*8 + 0x38], xmm0
movups xmm0, xmmword [r8 + r9*8 - 0x10]
xorps xmm0, xmm1
movups xmm1, xmmword [r8 + r9*8]
xorps xmm1, xmm3
movups xmmword [rsp + r9*8 + 0x48], xmm0
movups xmmword [rsp + r9*8 + 0x58], xmm1
add r9, 8
cmp r9, 0x80
jne 0x140009220
add ecx, r15d
cmp rdx, rax
jne 0x1400091f0
mov edi, dword [rbx + 0x40]
test rdi, rdi
je 0x1400092ae
mov ecx, 8
mov rdx, rdi
call fcn.1400259b0
mov rcx, rax
mov rax, rdi
test rcx, rcx
jne 0x1400092b5
ud2
xor eax, eax
mov ecx, 1
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdi
lea r8, [rsp + 0x28]
mov r9d, 0x400
mov rdx, rdi
call fcn.1400078c0
nop
add rsp, 0x428
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140016070
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x820
mov ecx, dword [0x140057018]
test ecx, ecx
je 0x14001609a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400160b3
add rax, 8
jmp 0x140016275
lea rcx, section..data
call fcn.140027d80
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140016091
je 0x140016273
mov rax, qword [0x142802030]
cmp rax, 3
jne 0x140016280
mov rsi, qword [0x142802038]
lock inc qword [rsi]
jle 0x140016296
mov eax, 0x60
movups xmm0, xmmword [0x1427fbec0]
movups xmm1, xmmword [0x1427fbeb0]
nop
movups xmmword [rsp + rax - 0x30], xmm0
movups xmmword [rsp + rax - 0x40], xmm1
movups xmmword [rsp + rax - 0x20], xmm1
movups xmmword [rsp + rax - 0x10], xmm0
movups xmmword [rsp + rax], xmm1
movups xmmword [rsp + rax + 0x10], xmm0
movups xmmword [rsp + rax + 0x20], xmm1
movups xmmword [rsp + rax + 0x30], xmm0
sub rax, 0xffffffffffffff80
cmp rax, 0x860
jne 0x1400160f0
movzx eax, byte [0x142802108]
mov edx, 0x980
xor ecx, ecx
call fcn.1400259b0
test rax, rax
je 0x140016296
mov rbx, rax
and rbx, 0xffffffffffffff80
lea rdi, [rbx + 0x80]
mov qword [rbx + 0x78], rax
mov qword [rbx + 0x80], 0
mov qword [rbx + 0x88], rsi
lea rcx, [rbx + 0x90]
lea rdx, [rsp + 0x20]
mov r8d, 0x800
call sub.msvcrt.dll_memcpy
xorps xmm0, xmm0
movaps xmmword [rbx + 0x890], xmm0
mov qword [rbx + 0x8a0], 1
mov qword [rbx + 0x8a8], 0
mov qword [rbx + 0x900], 0
mov rcx, qword [0x142802038]
mov rax, qword [rcx + 0x200]
nop word cs:[rax + rax]
mov qword [rdi], rax
lock cmpxchg qword [rcx + 0x200], rdi
jne 0x1400161c0
movzx eax, byte [0x142802108]
mov edx, 0x10
xor ecx, ecx
call fcn.1400259b0
test rax, rax
je 0x140016296
mov rbx, rax
mov rsi, rax
lea rax, section..data
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov ecx, dword [0x140057018]
test ecx, ecx
je 0x140016298
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140057018]
test ecx, ecx
je 0x1400162ab
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14001626e
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 0x820]
lea rdx, [rax - 1]
mov qword [rcx + 0x820], rdx
cmp qword [rcx + 0x818], 0
jne 0x14001625d
cmp rax, 1
je 0x1400162be
mov rcx, qword [0x142802058]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
jmp 0x140016275
xor eax, eax
add rsp, 0x820
pop rbx
pop rdi
pop rsi
ret
call fcn.140015b80
mov rsi, qword [0x142802038]
lock inc qword [rsi]
jg 0x1400160db
ud2
lea rcx, section..data
call fcn.140027d80
mov ecx, eax
jmp 0x14001620e
lea rcx, section..data
call fcn.140027d80
mov ecx, eax
jmp 0x140016226
call fcn.140015a70
jmp 0x14001625d
Function at 0x14001f560
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140057080]
test ecx, ecx
je 0x14001f58a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14001f5a3
add rax, 8
jmp 0x14001f63a
lea rcx, [0x140057068]
call fcn.140027d80
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14001f581
je 0x14001f5bf
test rsi, rsi
je 0x14001f5c3
mov rdi, qword [rsi]
mov qword [rsi], 0
test rdi, rdi
je 0x14001f5c5
mov rdi, qword [rsi + 8]
jmp 0x14001f5c5
xor eax, eax
jmp 0x14001f63a
xor edi, edi
movzx eax, byte [0x142802108]
mov edx, 0x10
xor ecx, ecx
call fcn.1400259b0
test rax, rax
je 0x14001f662
mov rbx, rax
mov rsi, rax
lea rax, [0x140057068]
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov ecx, dword [0x140057080]
test ecx, ecx
je 0x14001f642
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140057080]
test ecx, ecx
je 0x14001f652
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14001f637
mov rcx, qword [0x142802058]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140057068]
call fcn.140027d80
mov ecx, eax
jmp 0x14001f601
lea rcx, [0x140057068]
call fcn.140027d80
mov ecx, eax
jmp 0x14001f615
ud2
Function at 0x140022500
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140057060]
test ecx, ecx
je 0x14002252a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140022543
add rax, 8
jmp 0x1400225da
lea rcx, [0x140057048]
call fcn.140027d80
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140022521
je 0x1400225d8
test rsi, rsi
je 0x14002255f
cmp dword [rsi], 0
mov dword [rsi], 0
je 0x14002255f
mov rdi, qword [rsi + 4]
jmp 0x140022561
xor edi, edi
movzx eax, byte [0x142802108]
mov edx, 0x10
xor ecx, ecx
call fcn.1400259b0
test rax, rax
je 0x140022602
mov rbx, rax
mov rsi, rax
lea rax, [0x140057048]
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov ecx, dword [0x140057060]
test ecx, ecx
je 0x1400225e2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140057060]
test ecx, ecx
je 0x1400225f2
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1400225d3
mov rcx, qword [0x142802058]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
jmp 0x1400225da
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140057048]
call fcn.140027d80
mov ecx, eax
jmp 0x14002259d
lea rcx, [0x140057048]
call fcn.140027d80
mov ecx, eax
jmp 0x1400225b1
ud2

Function at 0x140025610
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov ecx, dword [0x140057100]
test ecx, ecx
je 0x140025637
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140025650
add rax, 8
jmp 0x1400256eb
lea rcx, [0x1400570e8]
call fcn.140027d80
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14002562e
je 0x1400256e9
movzx eax, byte [0x142802108]
mov edx, 0x10
xor ecx, ecx
call fcn.1400259b0
test rax, rax
je 0x140025713
mov rbx, rax
mov rsi, rax
lea rax, [0x1400570e8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140057100]
test ecx, ecx
je 0x1400256f3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140057100]
test ecx, ecx
je 0x140025703
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1400256e4
mov rax, qword [rdi + 8]
test rax, rax
je 0x1400256d3
lock dec qword [rax]
jne 0x1400256d3
mov rcx, qword [rdi + 8]
call fcn.140023a70
mov rcx, qword [0x142802058]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
jmp 0x1400256eb
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400570e8]
call fcn.140027d80
mov ecx, eax
jmp 0x140025696
lea rcx, [0x1400570e8]
call fcn.140027d80
mov ecx, eax
jmp 0x1400256aa
ud2
Function at 0x140025720
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1400570e0]
test ecx, ecx
je 0x14002574a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140025763
add rax, 8
jmp 0x140025818
lea rcx, [0x1400570c8]
call fcn.140027d80
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140025741
je 0x14002577f
test rsi, rsi
je 0x140025786
mov rdi, qword [rsi]
mov qword [rsi], 0
test rdi, rdi
je 0x140025788
mov rdi, qword [rsi + 8]
jmp 0x140025788
xor eax, eax
jmp 0x140025818
xor edi, edi
movzx eax, byte [0x142802108]
mov edx, 0x10
xor ecx, ecx
call fcn.1400259b0
test rax, rax
je 0x140025840
mov rbx, rax
mov rsi, rax
lea rax, [0x1400570c8]
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov ecx, dword [0x1400570e0]
test ecx, ecx
je 0x140025820
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1400570e0]
test ecx, ecx
je 0x140025830
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140025815
mov rax, qword [rdi + 8]
test rax, rax
je 0x140025804
lock dec qword [rax]
jne 0x140025804
mov rcx, rdi
add rcx, 8
call fcn.140034ff0
mov rcx, qword [0x142802058]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400570c8]
call fcn.140027d80
mov ecx, eax
jmp 0x1400257c4
lea rcx, [0x1400570c8]
call fcn.140027d80
mov ecx, eax
jmp 0x1400257d8
ud2
Function at 0x140026110
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x48], rax
xor r14d, r14d
mov edi, 0xffffffff
xor ebx, ebx
xor r15d, r15d
cmp r8, 0x201
jae 0x1400261b0
jmp 0x14002618f
jae 0x14002625a
cmp r8, 0x201
jae 0x1400261b0
mov esi, 0x200
lea r12, [rsp + 0x98]
mov r13, r8
jmp 0x1400261db
sub r8, r15
sub rbx, r15
cmp rbx, r8
jb 0x140026239
cmp r14, rdi
mov r15d, 0xffffffff
cmovb r15, r14
mov qword [rsp + 0x40], r15
mov rbx, r14
mov rsi, r15
mov r12, qword [rsp + 0x48]
mov r13, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r12
mov edx, r13d
call sub.KERNEL32.dll_GetWindowsDirectoryW
mov ebp, eax
test eax, eax
jne 0x140026200
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400262f3
mov r8d, ebp
cmp r13, r8
jne 0x140026180
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400263ac
add r13, r13
cmp r13, rdi
cmovae r13, rdi
mov r8, r13
cmp r8, 0x201
jb 0x14002618f
jmp 0x1400261b0
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.14004a4d0
mov r14, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
jmp 0x1400261bb
cmp rsi, r8
jb 0x1400263ac
lea r14, [rsp + 0x60]
mov rcx, r14
mov rdx, r12
call fcn.140032350
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
mov rcx, r14
call fcn.1400330d0
mov rax, qword [rsp + 0x58]
cmp byte [rax], 0
jne 0x1400262a8
lea rdx, [0x1427fc570]
lea rcx, [rsp + 0x60]
mov r8d, 3
call case.0x14003361b.43
movabs rdi, 0x8000000000000000
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
lea rcx, [rsp + 0x80]
call fcn.140027300
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
cmp rsi, rdi
jne 0x14002631c
mov rcx, rdi
mov rdx, rbx
call fcn.140030b20
mov rax, qword [rsp + 0x28]
mov qword [rax], rdi
jmp 0x140026361
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
or rax, 1
mov qword [rcx], rax
jmp 0x14002637c
mov r14, qword [rsp + 0x90]
mov rcx, rbx
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x140026343
mov rax, qword [rsp + 0x28]
mov qword [rax], rsi
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r14
jmp 0x140026361
mov rax, qword [rsp + 0x28]
mov qword [rax], rdi
test rsi, rsi
je 0x140026361
mov rcx, qword [0x142802058]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x60], 0
je 0x14002637c
mov r8, qword [rsp + 0x68]
mov rcx, qword [0x142802058]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x30], 0
je 0x140026397
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x142802058]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x140027d80
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x140027e05
mov rax, qword [0x142805038]
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x140027e3c
cmp dword [rsp + 0x2c], 0
je 0x140027e2d
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140027e3e
mov edi, eax
mov rax, qword [0x142802068]
nop dword [rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x142802068], rsi
jne 0x140027de0
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140027e32
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140027e3c
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x140027e32
mov esi, eax
mov ecx, edi
call sub.KERNEL32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x140027e32
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
ud2

Function at 0x140028700
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rsi, rcx
movups xmm0, xmmword [0x1427fc158]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x14002876a
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002879d
test eax, eax
js 0x14002877e
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xa0
pop rsi
ret
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1427fc1b8]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x70]
call fcn.14002bb60
mov rcx, rax
call fcn.140028670
mov ecx, 7
int 0x29
ud2