joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2e3d8b4c0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
push r12
push rsi
push rbx
sub rsp, 0x158
movaps xmmword [rbp - 0x30], xmm6
cmp qword [0x2e3f56318], 0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 0x141], 1
je 0x2e3d8b5ca
lea rcx, [0x2e3e6ae60]
call fcn.2e3e59960
lea rcx, [rbp - 0x130]
mov rdx, qword [rax]
mov qword [rbp - 0x140], rdx
lea rdx, [rbp - 0x140]
mov qword [rax], rdx
mov rdx, rbp
call sub.msvcrt.dll__setjmp
cdqe
mov qword [rbp - 0x138], rax
test rax, rax
jne 0x2e3d8b5f0
xor r12d, r12d
cmp qword [rbp + 0x10], 0
je 0x2e3d8b597
mov rcx, qword [rbp + 0x10]
mov ebx, 7
call sub.msvcrt.dll_strlen
mov rcx, qword [0x2e3f0af50]
cmp rax, rbx
movq xmm6, rax
mov rsi, rax
cmovge rbx, rax
movq xmm0, rbx
punpcklqdq xmm6, xmm0
call fcn.2e3e59960
mov rcx, qword [0x2e3f0fc90]
lea rdx, [rbx + 0x11]
mov r8, rax
call fcn.2e3d88960
mov rdx, qword [rbp + 0x10]
lea r8, [rsi + 1]
movups xmmword [rax], xmm6
lea rcx, [rax + 0x10]
mov r12, rax
call sub.msvcrt.dll_memcpy
mov rcx, r12
call qword [0x2e3f56318]
lea rcx, [0x2e3e6ae60]
mov byte [rbp - 0x141], 0
call fcn.2e3e59960
cmp qword [rbp - 0x138], 0
mov rdx, qword [rax]
mov rdx, qword [rdx]
mov qword [rax], rdx
jne 0x2e3d8b677
movzx eax, byte [rbp - 0x141]
test al, al
jne 0x2e3d8b688
movaps xmm6, xmmword [rbp - 0x30]
add rsp, 0x158
pop rbx
pop rsi
pop r12
pop rbp
ret
lea rcx, [0x2e3e6ae60]
call fcn.2e3e59960
lea rcx, [0x2e3e6ae80]
mov rdx, qword [rax]
mov rdx, qword [rdx]
mov qword [rbp - 0x138], 0
mov qword [rax], rdx
call fcn.2e3e59960
mov rdx, qword [rax]
mov rbx, rax
mov rsi, qword [rdx + 0x28]
test rsi, rsi
je 0x2e3d8b638
add qword [rsi - 0x10], 8
mov rdx, qword [rax]
test rdx, rdx
je 0x2e3d8b666
mov rax, qword [rdx - 0x10]
lea r12, [rdx - 0x10]
sub rax, 8
mov qword [rdx - 0x10], rax
cmp rax, 7
ja 0x2e3d8b666
mov rcx, qword [0x2e3f0af50]
call fcn.2e3e59960
mov rdx, r12
lea rcx, [rax + 0x18]
call fcn.2e3d7eda0
cmp qword [rbp - 0x138], 0
mov qword [rbx], rsi
je 0x2e3d8b5ca
call fcn.2e3d8b3f0
jmp 0x2e3d8b5ca
mov ecx, 2
call qword [fcn.2e3e58d50]
mov rcx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
jmp 0x2e3d8b5d9
Function at 0x2e3d8bd70
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea r13, [0x2e3f56240]
xor r12d, r12d
mov rsi, rcx
mov rbx, rdx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [fcn.2e3e58d50]
jmp 0x2e3d8bdc1
test r12, r12
js 0x2e3d8be14
mov r14, qword [rsi + r12*8]
mov ecx, 1
call rdi
mov rcx, rax
mov rdx, r14
call fcn.2e3e37a10
add r12, 1
jo 0x2e3d8be20
cmp r12, rbx
jl 0x2e3d8bda0
mov rbx, qword [fcn.2e3e58d50]
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x2e3ef23c9]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [rbx - 1]
mov rcx, r12
call fcn.2e3d8b130
call fcn.2e3d8b730
nop
nop word cs:[rax + rax]
sub rsp, 0x28
test rdx, rdx
je 0x2e3d8be60
sub rdx, 1
jo 0x2e3d8be75
mov rax, rdx
add rax, 0x10
jo 0x2e3d8be75
imul r9, r8
not rdx
and rdx, rax
add rcx, r9
lea rax, [rcx + rdx]
add rsp, 0x28
ret
imul r9, r8
mov edx, 0x10
add rcx, r9
lea rax, [rcx + rdx]
add rsp, 0x28
ret
call fcn.2e3d8b730
nop
nop dword [rax + rax]

Function at 0x2e3d95ab0
Capabilities:
Link many functions at runtime

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
lea rcx, [0x2e3ef5d30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x2e3f56a88], rax
mov r12, rax
test rax, rax
je 0x2e3d95bc8
lea r13, str.GetCurrentProcess
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rdx, r13
call rbx
test rax, rax
je 0x2e3d95bd8
mov r12, qword [0x2e3f56a88]
lea r13, str.FormatMessageW
mov qword [0x2e3f568e8], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3d95bf0
mov r12, qword [0x2e3f56a88]
lea r13, str.LocalFree
mov qword [0x2e3f568e0], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3d95c00
mov r12, qword [0x2e3f56a88]
lea r13, str.GetLastError
mov qword [0x2e3f568d8], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3d95c10
mov r12, qword [0x2e3f56a88]
lea r13, str.GetFileAttributesW
mov qword [0x2e3f568d0], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3d95c20
mov r12, qword [0x2e3f56a88]
lea r13, str.Sleep
mov qword [0x2e3f568c8], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3d95c30
mov qword [0x2e3f568c0], rax
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
lea rcx, [0x2e3ef5d00]
call fcn.2e3d87650
nop dword [rax]
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3d95af8
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3d95b1e
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3d95b44
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3d95b6a
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3d95b90
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3d95bb2
Function at 0x2e3dab680
Capabilities:
Link many functions at runtime

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
lea rcx, [0x2e3ef7cd0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x2e3f591e0], rax
mov r12, rax
test rax, rax
je 0x2e3dab830
lea r13, str.IsWow64Process
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rdx, r13
call rbx
test rax, rax
je 0x2e3dab840
mov r12, qword [0x2e3f591e0]
lea r13, str.CloseHandle
mov qword [0x2e3f58820], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3dab850
mov r12, qword [0x2e3f591e0]
lea r13, str.GetExitCodeProcess
mov qword [0x2e3f58818], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3dab860
mov r12, qword [0x2e3f591e0]
lea r13, str.OpenProcess
mov qword [0x2e3f58810], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3dab870
mov r12, qword [0x2e3f591e0]
lea r13, str.VirtualQueryEx
mov qword [0x2e3f58808], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3dab880
mov r12, qword [0x2e3f591e0]
lea r13, str.ReadProcessMemory
mov qword [0x2e3f58800], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3dab890
mov r12, qword [0x2e3f591e0]
lea r13, str.VirtualProtectEx
mov qword [0x2e3f587f8], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3dab8a0
mov r12, qword [0x2e3f591e0]
lea r13, str.VirtualAllocEx
mov qword [0x2e3f587f0], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3dab8b0
mov r12, qword [0x2e3f591e0]
lea r13, str.VirtualFreeEx
mov qword [0x2e3f587e8], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3dab8c0
mov r12, qword [0x2e3f591e0]
lea r13, str.WriteProcessMemory
mov qword [0x2e3f587e0], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3dab8d0
mov qword [0x2e3f587d8], rax
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
lea rcx, [0x2e3ef7ca0]
call fcn.2e3d87650
nop dword [rax]
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3dab6c8
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3dab6ee
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3dab714
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3dab73a
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3dab760
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3dab786
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3dab7ac
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3dab7d2
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3dab7f8
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3dab81e
Function at 0x2e3dab8e0
Capabilities:
Link many functions at runtime

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
lea rcx, [0x2e3ef7c90]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x2e3f591d8], rax
mov r12, rax
test rax, rax
je 0x2e3daba20
lea r13, str.CreateCompatibleDC
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rdx, r13
call rbx
test rax, rax
je 0x2e3daba30
mov r12, qword [0x2e3f591d8]
lea r13, str.CreateCompatibleBitmap
mov qword [0x2e3f587d0], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3daba40
mov r12, qword [0x2e3f591d8]
lea r13, str.SelectObject
mov qword [0x2e3f587c8], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3daba50
mov r12, qword [0x2e3f591d8]
lea r13, str.BitBlt
mov qword [0x2e3f587c0], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3daba60
mov r12, qword [0x2e3f591d8]
lea r13, str.GetBitmapBits
mov qword [0x2e3f587b8], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3daba70
mov r12, qword [0x2e3f591d8]
lea r13, str.DeleteObject
mov qword [0x2e3f587b0], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3daba80
mov r12, qword [0x2e3f591d8]
lea r13, str.DeleteDC
mov qword [0x2e3f587a8], rax
mov rdx, r13
mov rcx, r12
call rbx
test rax, rax
je 0x2e3daba90
mov qword [0x2e3f587a0], rax
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
lea rcx, [0x2e3ef7c60]
call fcn.2e3d87650
nop dword [rax]
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3dab928
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3dab94e
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3dab974
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3dab99a
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3dab9c0
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3dab9e6
mov rdx, r13
mov rcx, r12
call fcn.2e3d88140
jmp 0x2e3daba0c
Function at 0x2e3e37b20
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r13, qword [0x2e3f0b3e0]
mov rbx, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [fcn.2e3e58d50]
lea rdi, [rbx + 0x30]
nop dword [rax]
mov r12, qword [rbx]
mov ecx, 1
add rbx, 8
call rsi
mov rcx, rax
mov rdx, r12
call fcn.2e3e37a10
cmp rdi, rbx
jne 0x2e3e37b50
mov ecx, 1
call rsi
mov r8d, 1
mov edx, 1
lea rcx, [0x2e3f07030]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rsi
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x2e3e3aed0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
test edx, edx
lea eax, [rdx + 3]
mov r8, rcx
mov r9d, edx
cmovns eax, edx
mov ecx, eax
and eax, 0xfffffffc
sar ecx, 2
cdqe
mov edx, ecx
add r8, rax
neg edx
test ecx, ecx
je 0x2e3e3afa8
movsxd rdx, edx
mov ecx, 0x2a
nop
imul eax, dword [r8 + rdx*4], 0xcc9e2d51
add rdx, 1
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, ecx
rol eax, 0xd
lea ecx, [rax + rax*4 - 0x19ab949c]
test edx, edx
jne 0x2e3e3af00
mov eax, r9d
and eax, 3
cmp eax, 2
je 0x2e3e3afa0
cmp eax, 3
je 0x2e3e3af88
cmp eax, 1
je 0x2e3e3af68
xor r9d, ecx
mov eax, r9d
shr eax, 0x10
xor eax, r9d
imul eax, eax, 0x85ebca6b
mov edx, eax
shr edx, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr edx, 0x10
xor eax, edx
ret
xor edx, edx
movzx eax, byte [r8]
xor eax, edx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor ecx, eax
jmp 0x2e3e3af3a
movzx eax, byte [r8 + 2]
shl eax, 0x10
movzx edx, byte [r8 + 1]
shl edx, 8
xor edx, eax
jmp 0x2e3e3af6a
xor eax, eax
jmp 0x2e3e3af90
mov ecx, 0x2a
jmp 0x2e3e3af25

Function at 0x2e3e42bd0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rdx
lea rdx, [0x2e3f07e08]
mov rsi, rcx
call sub.msvcrt.dll_fopen
mov r12, rax
test rax, rax
je 0x2e3e42cb8
xor edx, edx
mov r8d, 2
mov rcx, rax
call sub.msvcrt.dll_fseek
mov rcx, r12
call sub.msvcrt.dll_ftell
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov ebx, eax
call sub.msvcrt.dll_fseek
test ebx, ebx
jle 0x2e3e42c80
movsxd rbp, ebx
mov rcx, rbp
call sub.msvcrt.dll_malloc
mov r8, rbp
mov r9, r12
mov edx, 1
mov rcx, rax
mov r13, rax
call sub.msvcrt.dll_fread
mov r8, rsi
mov dword [rdi], eax
cmp ebx, eax
je 0x2e3e42ca0
lea rdx, str.FILEIO:___s__File_partially_loaded
mov ecx, 4
call fcn.2e3e428c0
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8, rsi
lea rdx, str.FILEIO:___s__Failed_to_read_file
mov ecx, 4
xor r13d, r13d
call fcn.2e3e428c0
jmp 0x2e3e42c60
lea rdx, str.FILEIO:___s__File_loaded_successfully
mov ecx, 3
call fcn.2e3e42a40
jmp 0x2e3e42c60
mov r8, rsi
lea rdx, str.FILEIO:___s__Failed_to_open_file
mov ecx, 4
xor r13d, r13d
call fcn.2e3e428c0
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x2e3e46420
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.2e3e58d50
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.2e3e58d50
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x2e3e46d92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2e3f5e848]
test eax, eax
je 0x2e3e46e2a
lea rax, [0x2e3f5e820]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2e3f5e850]
mov qword [rbp - 8], rax
jmp 0x2e3e46e0e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2e3e46e02
cmp qword [rbp - 0x10], 0
je 0x2e3e46e02
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2e3e46dc8
lea rax, [0x2e3f5e820]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2e3e46e2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2e3e46f30
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2e3e46f58
mov eax, 0
jmp 0x2e3e46fa6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2e3e46f81
mov eax, 0
jmp 0x2e3e46fa6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2e3e46fa1
mov eax, 0
jmp 0x2e3e46fa6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2e3e46fac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2e3e4702a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2e3e47021
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2e3e47021
mov rax, qword [rbp - 8]
jmp 0x2e3e4703f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2e3e46ff4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2e3e478e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], rcx
call sub.msvcrt.dll__errno
mov dword [rax], 0
cmp qword [rbp + 0xe0], 0
jne 0x2e3e47922
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
mov eax, 0
jmp 0x2e3e47b2f
mov rax, qword [rbp + 0xe0]
movzx eax, byte [rax]
test al, al
jne 0x2e3e47945
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
mov eax, 0
jmp 0x2e3e47b2f
mov rcx, qword [rbp + 0xe0]
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
mov dword [rbp + 0xbc], eax
cmp dword [rbp + 0xbc], 0xffffffff
jne 0x2e3e47979
call sub.msvcrt.dll__errno
mov dword [rax], 2
mov eax, 0
jmp 0x2e3e47b2f
mov eax, dword [rbp + 0xbc]
and eax, 0x10
test eax, eax
jne 0x2e3e4799b
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
mov eax, 0
jmp 0x2e3e47b2f
lea rax, [rbp - 0x60]
mov r8d, 0x104
mov rdx, qword [rbp + 0xe0]
mov rcx, rax
call sub.msvcrt.dll__fullpath
lea rax, [rbp - 0x60]
mov rcx, rax
call sub.msvcrt.dll_strlen
add rax, 0x24b
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp + 0xb0], rax
cmp qword [rbp + 0xb0], 0
jne 0x2e3e479f4
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
mov eax, 0
jmp 0x2e3e47b2f
mov rax, qword [rbp + 0xb0]
lea rcx, [rax + 0x244]
lea rax, [rbp - 0x60]
mov rdx, rax
call sub.msvcrt.dll_strcpy
mov rax, qword [rbp + 0xb0]
movzx eax, byte [rax + 0x244]
test al, al
je 0x2e3e47a96
mov rax, qword [rbp + 0xb0]
add rax, 0x244
mov rcx, rax
call sub.msvcrt.dll_strlen
lea rdx, [rax - 1]
mov rax, qword [rbp + 0xb0]
movzx eax, byte [rax + rdx + 0x244]
cmp al, 0x2f
je 0x2e3e47a96
mov rax, qword [rbp + 0xb0]
add rax, 0x244
mov rcx, rax
call sub.msvcrt.dll_strlen
lea rdx, [rax - 1]
mov rax, qword [rbp + 0xb0]
movzx eax, byte [rax + rdx + 0x244]
cmp al, 0x5c
je 0x2e3e47a96
mov rax, qword [rbp + 0xb0]
lea rbx, [rax + 0x244]
mov rcx, rbx
call sub.msvcrt.dll_strlen
add rax, rbx
mov word [rax], 0x5c
mov rax, qword [rbp + 0xb0]
lea rbx, [rax + 0x244]
mov rcx, rbx
call sub.msvcrt.dll_strlen
add rax, rbx
mov word [rax], 0x2a
mov rax, qword [rbp + 0xb0]
mov qword [rax + 0x238], 0xffffffffffffffff
mov rax, qword [rbp + 0xb0]
mov dword [rax + 0x240], 0
mov rax, qword [rbp + 0xb0]
mov dword [rax + 0x128], 0
mov rax, qword [rbp + 0xb0]
mov word [rax + 0x12c], 0
mov rax, qword [rbp + 0xb0]
mov word [rax + 0x12e], 0
mov rax, qword [rbp + 0xb0]
add rax, 0x130
mov r8d, 0x104
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp + 0xb0]
add rsp, 0x148
pop rbx
pop rbp
ret
Function at 0x2e3e5ad04
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x2e3e5ae4e
mov rcx, qword [rbp + 0x10]
call fcn.2e3e5f2dd
cmp eax, 1
jne 0x2e3e5ae41
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x2e3e5adf7
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x2e3e5ae0d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x2e3e5adf3
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x2e3e5ae2c
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.msvcrt.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x2e3e5ae4f
nop
add rsp, 0x90
pop rbp
ret
Function at 0x2e3e5c045
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x2e3e5be6b]
mov rdx, rax
lea rax, [0x2e3f5f2e0]
mov rcx, rax
call fcn.2e3e5b476
mov eax, dword [0x2e3e6d1b0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x2e3e5c098
mov rax, qword [rbp - 0x10]
jmp 0x2e3e5c1f8
call fcn.2e3e5abe0
mov qword [rbp - 0x10], rax
mov rax, qword [0x2e3f64040]
test rax, rax
je 0x2e3e5c0b4
cmp qword [rbp - 0x10], 0
jne 0x2e3e5c0be
mov eax, 0
jmp 0x2e3e5c1f8
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.2e3e5ad04
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x2e3e5c199
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x2e3e6d1b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x2e3e5c1f4
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret