joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013ab40
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov r10, qword [rsp + 0xf0]
mov edi, dword [rcx + 0x1e0]
mov rbx, rcx
mov r11, rdx
mov rbp, rsp
movdqu xmmword [rsp], xmm6
movdqu xmmword [rsp + 0x10], xmm7
movdqu xmmword [rsp + 0x20], xmm8
movdqu xmmword [rsp + 0x30], xmm9
movdqu xmmword [rsp + 0x40], xmm10
movdqu xmmword [rsp + 0x50], xmm11
movdqu xmmword [rsp + 0x60], xmm12
movdqu xmmword [rsp + 0x70], xmm13
movdqu xmmword [rsp + 0x80], xmm14
movdqu xmmword [rsp + 0x90], xmm15
lea rcx, [0x140139e30]
movdqa xmm9, xmmword [rcx]
movdqa xmm10, xmmword [rcx + 0x30]
movdqa xmm11, xmmword [rcx + 0x40]
movdqa xmm13, xmmword [rcx + 0x270]
movdqa xmm12, xmmword [rcx + 0x280]
movdqa xmm15, xmmword [rcx + 0x290]
movdqa xmm14, xmmword [rcx + 0x2b0]
movdqa xmm8, xmmword [rcx + 0x2d0]
movdqu xmm7, xmmword [r9]
sub edi, 1
add rbx, 0xf0
test r10, r10
je 0x14013ac3e
nop
nop word cs:[rax + rax]
movdqu xmm0, xmmword [r8]
movdqa xmm6, xmm0
mov eax, edi
mov rdx, rbx
call fcn.140139950
pxor xmm0, xmm7
movdqu xmmword [r11], xmm0
movdqu xmm7, xmm6
add r11, 0x10
add r8, 0x10
sub r10, 1
jne 0x14013ac10
movdqu xmmword [r9], xmm7
pxor xmm0, xmm0
pxor xmm1, xmm1
pxor xmm2, xmm2
pxor xmm3, xmm3
pxor xmm4, xmm4
pxor xmm5, xmm5
movdqu xmm6, xmmword [rbp]
movdqu xmm7, xmmword [rbp + 0x10]
movdqu xmm8, xmmword [rbp + 0x20]
movdqu xmm9, xmmword [rbp + 0x30]
movdqu xmm10, xmmword [rbp + 0x40]
movdqu xmm11, xmmword [rbp + 0x50]
movdqu xmm12, xmmword [rbp + 0x60]
movdqu xmm13, xmmword [rbp + 0x70]
movdqu xmm14, xmmword [rbp + 0x80]
movdqu xmm15, xmmword [rbp + 0x90]
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140148ae0
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe0
mov edx, dword [0x1402a5108]
mov r12, rcx
lea rbx, [rcx + 0x258]
test edx, edx
je 0x140148cd3
lea rsi, [rsp + 0x20]
lea rdi, [r12 + 0x244]
mov rcx, rsi
call fcn.14010e490
mov rax, qword [r12 + 0x244]
mov rcx, rsi
mov qword [r12 + 0x258], rax
mov rax, qword [rdi + 8]
mov qword [rbx + 8], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x10], eax
mov rdx, qword [r12]
mov qword [r12 + 0x26c], rdx
mov rdx, qword [r12 + 8]
mov qword [r12 + 0x274], rdx
mov rdx, qword [r12 + 0x10]
mov qword [r12 + 0x27c], rdx
mov rdx, qword [r12 + 0x18]
mov qword [r12 + 0x284], rdx
mov rdx, qword [r12 + 0x20]
mov qword [r12 + 0x28c], rdx
mov edx, dword [r12 + 0x28]
mov dword [r12 + 0x294], edx
mov rdx, rbx
call fcn.14010e4a0
mov ebp, eax
mov rax, qword [r12 + 0x258]
mov qword [r12], rax
mov rax, qword [rbx + 8]
mov qword [r12 + 8], rax
mov eax, dword [rbx + 0x10]
mov dword [r12 + 0x10], eax
mov eax, dword [0x1402a50d4]
test eax, eax
je 0x140148bca
cmp r12, qword [0x1402a5168]
je 0x140148c8f
lea r13, [r12 + 0x298]
mov r14, r12
lea rcx, [r14 + 0x40]
mov rax, rbx
mov rdx, r14
cmp rbx, rcx
ja 0x140148c4c
cmp rbx, rdx
cmovbe rdx, r12
add rax, 1
mov rcx, rdx
lea rdx, [rdx + 1]
movzx ecx, byte [rcx]
mov byte [rax - 1], cl
cmp r13, rax
jne 0x140148be4
mov rdx, rbx
mov rcx, rsi
add r14, 0x14
call fcn.14010e4a0
mov rax, qword [rbx]
cmp rdi, r14
mov qword [r14], rax
mov rax, qword [rbx + 8]
mov qword [r14 + 8], rax
mov eax, dword [rbx + 0x10]
mov dword [r14 + 0x10], eax
jne 0x140148bd5
cmp r12, qword [0x1402a5168]
je 0x140148caf
mov ecx, ebp
call fcn.1400eac80
add rsp, 0xe0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rax, qword [r14]
mov qword [rbx], rax
mov rax, qword [r14 + 8]
mov qword [rbx + 8], rax
mov rax, qword [r14 + 0x10]
mov qword [rbx + 0x10], rax
mov rax, qword [r14 + 0x18]
mov qword [rbx + 0x18], rax
mov rax, qword [r14 + 0x20]
mov qword [rbx + 0x20], rax
mov rax, qword [r14 + 0x28]
mov qword [rbx + 0x28], rax
mov rax, qword [r14 + 0x30]
mov qword [rbx + 0x30], rax
mov rax, qword [r14 + 0x38]
mov qword [rbx + 0x38], rax
jmp 0x140148c01
lea rdx, [0x1402a50c0]
xor eax, eax
movzx ecx, byte [rdx + rax]
xor byte [r12 + rax], cl
add rax, 1
cmp rax, 0x14
jne 0x140148c98
jmp 0x140148bca
lea rcx, [0x1402a50c0]
mov r8d, 0x258
mov rdx, r12
call fcn.14010e4f0
mov dword [0x1402a50d4], 1
jmp 0x140148c33
lea r9, str.mix_pool
lea rdx, str.random_csprng.c
lea rcx, str.pool_is_locked
mov r8d, 0x260
call fcn.1400ea370
nop
nop
nop word cs:[rax + rax]
Function at 0x14014d540
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x140156a60
sub rsp, 0x28
movzx edx, cx
and ch, 0x80
mov ecx, edx
je 0x140156b60
call fcn.14014d580
test eax, eax
mov edx, 0x3ffe
mov ecx, 0x3ffe
jne 0x140156bb0
lea eax, [rdx - 0x2c7]
cmp eax, 7
jbe 0x140156bd5
lea eax, [rdx - 0x2d1]
cmp eax, 8
jbe 0x140156bc0
lea eax, [rdx - 0x2ee]
cmp eax, 2
jbe 0x140156bf0
lea eax, [rdx - 0x2f2]
cmp eax, 0x1c
jbe 0x140156c08
lea eax, [rdx - 0x310]
cmp eax, 5
jbe 0x140156c20
lea eax, [rdx - 0x320]
cmp eax, 4
jbe 0x140156c38
lea eax, [rdx - 0x32f]
cmp eax, 7
jbe 0x140156c50
lea eax, [rdx - 0x340]
cmp eax, 7
jbe 0x140156c68
cmp ecx, 0x34c
je 0x140156c98
cmp ecx, 0x350
je 0x140156ca2
lea eax, [rdx - 0x371]
cmp eax, 0xa
jbe 0x140156c80
lea eax, [rdx - 0x400]
cmp eax, 0xf
jbe 0x140156cac
lea eax, [rdx - 0x3ffd]
mov edx, 0x219e
cmp eax, 2
ja 0x140156b73
lea eax, [rcx - 0x3e6f]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
cmp edx, 0xd5
ja 0x140156b90
lea rax, [0x140280ba0]
movsxd rdx, dword [rax + rdx*4]
lea rax, str.Success
lea rcx, str.libgpg_error
add rdx, rax
add rsp, 0x28
jmp fcn.140159040
lea eax, [rdx - 0xd9]
cmp eax, 0x36
ja 0x140156cc4
sub edx, 3
movsxd rdx, edx
jmp 0x140156b68
mov ecx, eax
add rsp, 0x28
jmp fcn.14016b598
lea eax, [rcx - 0x1a4]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rcx - 0x1a2]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rcx - 0x1b8]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rcx - 0x1b9]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rcx - 0x1ba]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rcx - 0x1c4]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rcx - 0x1ce]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rcx - 0x1d7]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rcx - 0x1fe]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
mov edx, 0x1e81
jmp 0x140156b73
mov edx, 0x1e9e
jmp 0x140156b73
lea eax, [rcx - 0x282]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rdx - 0x111]
cmp eax, 8
ja 0x140156ce5
sub edx, 4
lea rax, [0x140280ba0]
movsxd rdx, edx
movsxd rdx, dword [rax + rdx*4]
jmp 0x140156b73
lea eax, [rdx - 0x12c]
cmp eax, 0xd
ja 0x140156d06
sub edx, 0x16
lea rax, [0x140280ba0]
movsxd rdx, edx
movsxd rdx, dword [rax + rdx*4]
jmp 0x140156b73
cmp edx, 0x29a
jne 0x140156a89
mov edx, 0x16af
jmp 0x140156b73
Function at 0x14014eb60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1401724c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14014eb82
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov edx, 4
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
mov rbx, rax
je 0x14014ebb8
mov ecx, dword [0x1401724c0]
mov rdx, rax
mov dword [rax], 0
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
call sub.msvcrt.dll_abort
nop
nop
nop
Function at 0x140156a60
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x140156a60
sub rsp, 0x28
movzx edx, cx
and ch, 0x80
mov ecx, edx
je 0x140156b60
call fcn.14014d580
test eax, eax
mov edx, 0x3ffe
mov ecx, 0x3ffe
jne 0x140156bb0
lea eax, [rdx - 0x2c7]
cmp eax, 7
jbe 0x140156bd5
lea eax, [rdx - 0x2d1]
cmp eax, 8
jbe 0x140156bc0
lea eax, [rdx - 0x2ee]
cmp eax, 2
jbe 0x140156bf0
lea eax, [rdx - 0x2f2]
cmp eax, 0x1c
jbe 0x140156c08
lea eax, [rdx - 0x310]
cmp eax, 5
jbe 0x140156c20
lea eax, [rdx - 0x320]
cmp eax, 4
jbe 0x140156c38
lea eax, [rdx - 0x32f]
cmp eax, 7
jbe 0x140156c50
lea eax, [rdx - 0x340]
cmp eax, 7
jbe 0x140156c68
cmp ecx, 0x34c
je 0x140156c98
cmp ecx, 0x350
je 0x140156ca2
lea eax, [rdx - 0x371]
cmp eax, 0xa
jbe 0x140156c80
lea eax, [rdx - 0x400]
cmp eax, 0xf
jbe 0x140156cac
lea eax, [rdx - 0x3ffd]
mov edx, 0x219e
cmp eax, 2
ja 0x140156b73
lea eax, [rcx - 0x3e6f]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
cmp edx, 0xd5
ja 0x140156b90
lea rax, [0x140280ba0]
movsxd rdx, dword [rax + rdx*4]
lea rax, str.Success
lea rcx, str.libgpg_error
add rdx, rax
add rsp, 0x28
jmp fcn.140159040
lea eax, [rdx - 0xd9]
cmp eax, 0x36
ja 0x140156cc4
sub edx, 3
movsxd rdx, edx
jmp 0x140156b68
mov ecx, eax
add rsp, 0x28
jmp fcn.14016b598
lea eax, [rcx - 0x1a4]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rcx - 0x1a2]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rcx - 0x1b8]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rcx - 0x1b9]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rcx - 0x1ba]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rcx - 0x1c4]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rcx - 0x1ce]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rcx - 0x1d7]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rcx - 0x1fe]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
mov edx, 0x1e81
jmp 0x140156b73
mov edx, 0x1e9e
jmp 0x140156b73
lea eax, [rcx - 0x282]
lea rdx, [0x140280ba0]
cdqe
movsxd rdx, dword [rdx + rax*4]
jmp 0x140156b73
lea eax, [rdx - 0x111]
cmp eax, 8
ja 0x140156ce5
sub edx, 4
lea rax, [0x140280ba0]
movsxd rdx, edx
movsxd rdx, dword [rax + rdx*4]
jmp 0x140156b73
lea eax, [rdx - 0x12c]
cmp eax, 0xd
ja 0x140156d06
sub edx, 0x16
lea rax, [0x140280ba0]
movsxd rdx, edx
movsxd rdx, dword [rax + rdx*4]
jmp 0x140156b73
cmp edx, 0x29a
jne 0x140156a89
mov edx, 0x16af
jmp 0x140156b73
Function at 0x140159540
Capabilities:
Create thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov edx, 0x1078
mov rdi, rcx
mov ecx, 1
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
lea rsi, [rsp + 0x40]
mov dword [rsp + 0x40], 0x18
call sub.msvcrt.dll_calloc
test rax, rax
mov rbx, rax
je 0x140159640
mov qword [rax], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, rsi
mov rdi, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rdi
test rax, rax
mov qword [rbx + 0x50], rax
je 0x140159690
xor r9d, r9d
xor edx, edx
mov r8d, 1
mov rcx, rsi
call rdi
test rax, rax
mov qword [rbx + 0x58], rax
je 0x140159650
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov edx, 1
call rdi
mov rcx, qword [rbx + 0x50]
mov qword [rbx + 0x60], rax
test rcx, rcx
je 0x14015965f
cmp qword [rbx + 0x58], 0
je 0x140159659
test rax, rax
je 0x140159659
lea rdi, [rbx + 0x10]
call fcn.1401594c0
mov rcx, rdi
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [rsp + 0x3c]
xor edx, edx
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x1401590c0]
mov rcx, rsi
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rbx + 8], rax
je 0x14015969d
mov rax, rbx
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14015966e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x14015966e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14015967d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
xor ebx, ebx
call fcn.14014e920
jmp 0x140159640
cmp qword [rbx + 0x58], 0
jne 0x1401595d1
jmp 0x14015966e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rbx + 0x50]
test rcx, rcx
jne 0x140159659
jmp 0x14015965f
Function at 0x1401596c0
Capabilities:
Create thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov edx, 0x1068
mov rdi, rcx
mov ecx, 1
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
lea rsi, [rsp + 0x40]
mov dword [rsp + 0x40], 0x18
call sub.msvcrt.dll_calloc
test rax, rax
mov rbx, rax
je 0x1401597c7
mov qword [rax], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, rsi
mov rdi, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rdi
test rax, rax
mov qword [rbx + 0x48], rax
je 0x140159810
xor r9d, r9d
mov r8d, 1
mov edx, 1
mov rcx, rsi
call rdi
test rax, rax
mov qword [rbx + 0x50], rax
je 0x1401597d2
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, rsi
call rdi
mov qword [rbx + 0x58], rax
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x1401597e4
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1401597db
cmp qword [rbx + 0x58], 0
je 0x1401597db
lea rdi, [rbx + 0x10]
call fcn.1401594c0
mov rcx, rdi
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [rsp + 0x3c]
xor edx, edx
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x1401592a0]
mov rcx, rsi
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rbx + 8], rax
je 0x14015981d
mov rax, rbx
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x1401597f3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1401597f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140159802
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
xor ebx, ebx
call fcn.14014e920
jmp 0x1401597c7
cmp qword [rbx + 0x50], 0
jne 0x140159754
jmp 0x1401597f3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x1401597e4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1401597e4
Function at 0x14015a490
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x1402a5aa4]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x14015a5b0
mov rax, qword [0x1402a5aa8]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x14015a4dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x14015a596
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x14015a4c0
mov rcx, rsi
call fcn.14015b0d0
test rax, rax
mov r12, rax
je 0x14015a5e8
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x1402a5aa8]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.14015b220
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x1402a5aa8]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14015a5cb
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14015a58f
sub eax, 0x40
and eax, 0xffffffbf
je 0x14015a58f
add rbx, qword [0x1402a5aa8]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14015a5b7
add dword [0x1402a5aa4], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x14015a4e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14015a420
mov rax, qword [0x1402a5aa8]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14015a420
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.14015a420
nop
nop dword [rax + rax]

Function at 0x14015ad40
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1402a5d80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402a5d60]
test rbx, rbx
je 0x14015ad94
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14015ad8b
test rsi, rsi
je 0x14015ad8b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14015ad70
lea rcx, [0x1402a5d80]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14015b0d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140285090]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x14015b0f0
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.14015afb0
test eax, eax
je 0x14015b0e8
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x14015b14d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x14015b144
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14015b0e8
add rdx, 0x28
cmp rdx, r9
jne 0x14015b130
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x14015b560
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov r8d, 0xffff
mov dword [0x1402a5de0], 0xffffffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x1402a5de8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14015b5b0
lea rdx, [0x14015b480]
mov ecx, eax
mov dword [0x1402a5dd8], eax
call fcn.14016c200
test eax, eax
jne 0x14015b5b8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14015b5a7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x14015b5c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140285020]
mov rbx, rcx
mov r11d, dword [rsi]
test r11d, r11d
jne 0x14015b5f4
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14015b651
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x14015b6a0
mov esi, dword [0x1402a5dd8]
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
mov r12d, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x14015b660
mov r12, qword [rsi]
cmp rdi, r12
ja 0x14015b710
lea rsi, [rsi + rdi*8]
mov rax, qword [rsi]
test rax, rax
jne 0x14015b5e7
mov rcx, rbx
call fcn.14015b4c0
mov qword [rsi], rax
jmp 0x14015b5e7
call fcn.14015b4c0
mov qword [rbx + 0x10], rax
jmp 0x14015b5e7
lea rcx, [rdi + 0x21]
mov edx, 8
lea r12, [rdi + 0x20]
call sub.msvcrt.dll_calloc
test rax, rax
mov rsi, rax
je 0x14015b7ff
mov qword [rax], r12
mov rdx, rsi
mov ecx, dword [0x1402a5dd8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14015b638
call rbp
jmp 0x14015b638
mov r10d, dword [rsi]
test r10d, r10d
je 0x14015b6c6
mov r9d, dword [0x140172590]
test r9d, r9d
je 0x14015b7c2
lock add dword [0x1402a5de0], 1
jne 0x14015b79b
mov rdi, qword [rbx + 0x10]
test rdi, rdi
je 0x14015b780
mov eax, dword [rsi]
test eax, eax
je 0x14015b601
mov eax, 0xffffffff
lock xadd dword [0x1402a5de0], eax
sub eax, 1
js 0x14015b601
xor r8d, r8d
mov edx, 1
mov rcx, qword [0x1402a5de8]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x14015b601
lea r13, [r12 + r12]
lea rax, [rdi + 0x20]
mov rcx, rsi
cmp rdi, r13
cmova r13, rax
lea rdx, [r13*8 + 8]
call sub.msvcrt.dll_realloc
test rax, rax
mov rsi, rax
je 0x14015b7ff
mov qword [rax], r13
sub r13, r12
lea rcx, [rax + r12*8 + 8]
lea r8, [r13*8]
xor edx, edx
call sub.msvcrt.dll_memset
jmp 0x14015b681
call fcn.14015b560
mov dword [0x140172590], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14015b6b8
mov rdi, qword [rbx + 0x10]
test rdi, rdi
jne 0x14015b601
mov rax, qword [0x1402a5dd0]
lea rdi, [rax + 1]
mov qword [0x1402a5dd0], rdi
mov qword [rbx + 0x10], rdi
jmp 0x14015b6d3
mov edx, 0xffffffff
mov rcx, qword [0x1402a5de8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14015b6c6
lock sub dword [0x1402a5de0], 1
jmp 0x14015b6c6
lock add dword [0x140172594], 1
je 0x14015b75a
mov r8d, dword [0x140172590]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x140172590]
test r8d, r8d
jne 0x14015b769
nop word cs:[rax + rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x14015b7f0
jmp 0x14015b769
call sub.msvcrt.dll_abort
nop
nop
nop word cs:[rax + rax]
cmp qword [rcx], rdx
jae 0x14015b820
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14015b82a
mov qword [rcx + 8], r8
test r9, r9
je 0x14015b834
cmp rdx, qword [rcx]
je 0x14015b840
repz ret
mov qword [rcx + 0x18], r9
ret
Function at 0x14015cbe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x230
mov rbx, rcx
call sub.msvcrt.dll__errno
test rbx, rbx
mov dword [rax], 0
je 0x14015cd82
cmp word [rbx], 0
je 0x14015cd40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14015cd60
test al, 0x10
je 0x14015cd40
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rsi
call sub.msvcrt.dll__wfullpath
mov rcx, rsi
call sub.msvcrt.dll_wcslen
lea rcx, [0x1402843c0]
mov rbx, rax
call sub.msvcrt.dll_wcslen
lea rcx, [0x1402843c4]
add rbx, rax
call sub.msvcrt.dll_wcslen
lea rcx, [rbx + rax + 0x229]
add rcx, rcx
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x14015cd72
lea rdi, [rax + 0x44c]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_wcscpy
cmp word [rbx + 0x44c], 0
jne 0x14015cd00
lea rdx, [0x1402843c4]
mov rcx, rdi
call sub.msvcrt.dll_wcscat
xor edx, edx
xor eax, eax
mov ecx, 0x41
mov word [rbx + 0x236], dx
lea rdx, [rbx + 0x238]
mov word [rbx + 0x234], ax
xor eax, eax
mov qword [rbx + 0x440], 0xffffffffffffffff
mov dword [rbx + 0x448], 0
mov rdi, rdx
mov dword [rbx + 0x230], 0
rep stosq qword [rdi], rax
mov rax, rbx
add rsp, 0x230
pop rbx
pop rsi
pop rdi
ret
mov rcx, rdi
call sub.msvcrt.dll_wcslen
cmp word [rbx + rax*2 + 0x44a], 0x2f
je 0x14015cc99
mov rcx, rdi
call sub.msvcrt.dll_wcslen
cmp word [rbx + rax*2 + 0x44a], 0x5c
je 0x14015cc99
lea rdx, [0x1402843c0]
mov rcx, rdi
call sub.msvcrt.dll_wcscat
jmp 0x14015cc99
xor ebx, ebx
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
mov rax, rbx
add rsp, 0x230
pop rbx
pop rsi
pop rdi
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x14015cced
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x14015cced
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x14015cced