joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005c90
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14000ccc0], rbx
je 0x140005cdc
cmp rax, rbx
jne 0x140005ccf
mov ebx, 1
mov esi, ebx
jmp 0x140005ce1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140005cb4
mov ebx, 1
mov eax, dword [0x14000ccc8]
cmp eax, ebx
jne 0x140005cf7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140005d5c
mov eax, dword [0x14000ccc8]
test eax, eax
jne 0x140005d56
mov dword [0x14000ccc8], ebx
lea r15, [0x1400074d0]
lea rdi, [0x1400074b8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140005d48
test eax, eax
jne 0x140005d4c
cmp qword [rdi], 0
je 0x140005d3d
mov rax, qword [rdi]
mov rcx, qword [0x140007468]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140005d1e
test eax, eax
je 0x140005d5c
mov eax, 0xff
jmp 0x140005e38
mov dword [0x14000b204], ebx
mov eax, dword [0x14000ccc8]
cmp eax, ebx
jne 0x140005d83
lea rdx, [0x1400074b0]
lea rcx, [0x140007470]
call sub.msvcrt.dll__initterm
mov dword [0x14000ccc8], 2
test esi, esi
jne 0x140005d90
xor eax, eax
xchg qword [0x14000ccc0], rax
cmp qword [0x14000ccd0], 0
je 0x140005dc4
lea rcx, [0x14000ccd0]
call fcn.140006200
test eax, eax
je 0x140005dc4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000ccd0]
mov r9, qword [0x140007468]
call r9
mov r8, qword [0x14000b218]
mov rdx, qword [0x14000b210]
mov ecx, dword [0x14000b208]
call fcn.140001c1c
mov dword [0x14000b200], eax
cmp dword [0x14000b220], 0
jne 0x140005df4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000b204], 0
jne 0x140005e09
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000b200]
jmp 0x140005e38
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14017c000
add rsp, 0x28
jmp 0x140005c90

Function at 0x1400060ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006138
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140006130
cmp dword [rcx + 0x3c], edx
jl 0x140006130
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140006130
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140006138
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400018a0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x110
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rbx, rcx
xor r14d, r14d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [r11 - 0x74], xmm0
movups xmmword [r11 - 0x64], xmm0
movups xmmword [r11 - 0x54], xmm0
movups xmmword [r11 - 0x44], xmm0
mov dword [r11 - 0x34], eax
mov dword [rsp + 0x90], 0x68
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
mov edi, dword [rcx + 0x10]
mov r8, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x140001920
mov r8, qword [rcx]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
lea r9d, [rdi + 1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rsi, eax
mov eax, 2
mul rsi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140004164
mov rbp, rax
cmp qword [rbx + 0x18], 0xf
jbe 0x140001963
mov rbx, qword [rbx]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbp
lea r9d, [rdi + 1]
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rdx, rbp
lea rcx, [rsp + 0x70]
call fcn.1400032c0
mov rcx, rbp
call fcn.140004120
nop
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], 7
cmova rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140001a1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.CreateProcess_failed__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003a70
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x1400065f8]
call fcn.140003a70
jmp 0x140001a42
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x140001a8a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004120
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140004100
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140002140
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rdx
mov r14, rcx
mov rbp, qword [rdx + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, rbp
cmp rax, 9
jb 0x14000232b
cmp qword [rdx + 0x18], 0xf
jbe 0x14000218d
mov rsi, qword [rdx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
lea r15, [rbp + 9]
mov ebx, 0xf
lea rdi, [rsp + 0x28]
cmp r15, rbx
jbe 0x14000222b
mov rbx, r15
or rbx, 0xf
cmp rbx, rcx
jbe 0x1400021ed
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140004128
test rax, rax
je 0x1400022fb
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140002226
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140002215
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002331
jmp 0x1400021ce
test rcx, rcx
je 0x140002224
call fcn.140004128
mov rdi, rax
jmp 0x140002226
xor edi, edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], rbx
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str.MyApp.exe]
movsd qword [rdi + rbp], xmm0
movzx eax, byte [0x140006688]
mov byte [rdi + rbp + 8], al
mov byte [rdi + r15], 0
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0xf
cmova rdx, qword [rsp + 0x28]
cmp qword [r14 + 0x18], 0xf
jbe 0x14000227b
mov r14, qword [r14]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x1400022c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_copy_file_to_startup._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003a70
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003c40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor bl, bl
jmp 0x1400022c7
mov bl, 1
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140002307
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002302
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002302
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004120
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140004100
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400011b0
int3
call fcn.140001110
int3
Function at 0x140002980
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400029a1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400029ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400029d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002a29
test ecx, ecx
jle 0x140002a09
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002a29
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002a29
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
retf
Function at 0x140002a50
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002a72
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002a81
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002aa4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002aa6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002ae2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140002b7e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002b1d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140002b5e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140002b7e
cmp rbx, rax
ja 0x140002b30
test rbx, rbx
je 0x140002b7e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
retf
Function at 0x140002fe0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000300d
xor eax, eax
jmp 0x140003179
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003047
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003047
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140003179
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000316c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000308a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400030b5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003171
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003124
sub eax, 1
je 0x140003124
cmp eax, 2
jne 0x14000316c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003171
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003152
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000316c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003171
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004100
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400036a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003773
cmp byte [rcx + 0x71], 0
je 0x140003773
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000376f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003734
sub eax, 1
je 0x140003738
cmp eax, 2
jne 0x14000376f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004100
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003766
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000376f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000371c
xor al, al
jmp 0x14000371c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004100
add rsp, 0x60
pop rbx
ret

Function at 0x140004a88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004ad2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004ad2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004ad2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004ad2
cmp dword [rcx + 0x84], 0xe
jbe 0x140004ad2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004ad4
xor al, al
add rsp, 0x28
ret
Function at 0x18005a830
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180143ae0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebx, dword [rsp + 0x20]
mov ebp, edx
imul r15d, edx, 0x6a4
mov r14, rcx
mov esi, edx
cmp edx, r15d
ja 0x18005aa98
cmp esi, 0x40cb
ja 0x18005aa20
je 0x18005aa08
cmp esi, 0xf
je 0x18005a9c2
cmp esi, 0x61
je 0x18005a99a
cmp esi, 0xee
je 0x18005a967
cmp esi, 0xa05
je 0x18005a920
cmp esi, 0x13fb
jne 0x18005aa87
mov edi, 0xcb
nop dword [rax + rax]
mov eax, edi
sub eax, 0xcb
je 0x18005a8d4
cmp eax, 0x61
je 0x18005aa98
jmp 0x18005a8ee
mov eax, dword [r14]
lea r8, [rsp + 0x20]
mov edx, 0xd3
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.180029c60
mov ebx, eax
add edi, 0x61
cmp edi, 0x18d
jb 0x18005a8c0
mov ecx, 0x8075
call qword [sym.imp.OPENGL32.dll_glDisableClientState]
xor r8d, r8d
lea r9, [rsp + 0x28]
mov edx, 0x1406
lea ecx, [r8 + 2]
call qword [sym.imp.OPENGL32.dll_glTexCoordPointer]
jmp 0x18005aa87
cmp dword [r14], 0xf
jbe 0x18005aa87
mov edi, 0x125
nop
cmp edi, 0x125
je 0x18005a946
cmp edi, 0xd607
je 0x18005aa98
jmp 0x18005a954
xor edx, edx
mov ecx, 0x10003
call fcn.18003e500
xor ebx, ebx
add edi, 0xd4e2
cmp edi, 0x1a9c4
jbe 0x18005a930
jmp 0x18005aa87
test r14, r14
je 0x18005a97c
mov rdx, qword [r14 + 0x278]
mov rcx, qword [r14 + 0x270]
jmp 0x18005a980
xor edx, edx
xor ecx, ecx
call qword [sym.imp.OPENGL32.dll_wglMakeCurrent]
mov ecx, dword [0x18014417c]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x18005aa87
movaps xmm0, xmmword [0x180138c40]
mov ecx, 0xde1
movaps xmm1, xmmword [0x180138c50]
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm1
call qword [sym.imp.OPENGL32.dll_glEnable]
jmp 0x18005aa87
cmp byte [0x180143bb9], 0
jne 0x18005aa87
mov edi, 0x1f
mov eax, edi
sub eax, 0x1f
je 0x18005a9ef
sub eax, 0x70
je 0x18005a9eb
cmp eax, 0x70
je 0x18005aa98
jmp 0x18005a9fb
xor ebx, ebx
jmp 0x18005a9fb
xor edx, edx
mov ecx, 0x10001
call fcn.18003e500
add edi, 0x70
cmp edi, 0x16f
jb 0x18005a9d4
jmp 0x18005aa87
mov ecx, 0x8074
call qword [sym.imp.OPENGL32.dll_glEnableClientState]
mov ecx, 0x8078
call qword [sym.imp.OPENGL32.dll_glEnableClientState]
jmp 0x18005aa87
cmp esi, 0x8135
je 0x18005aa7c
cmp esi, 0xc19f
je 0x18005a8f9
cmp esi, 0x10209
je 0x18005aa55
cmp esi, 0x14273
jne 0x18005aa87
xor edx, edx
lea ecx, [rdx + 5]
lea r8d, [rdx + 4]
call qword [sym.imp.OPENGL32.dll_glDrawArrays]
jmp 0x18005aa87
xor r8d, r8d
lea r9, [rsp + 0x28]
mov edx, 0x1406
lea ecx, [r8 + 2]
call qword [sym.imp.OPENGL32.dll_glVertexPointer]
mov edx, dword [r14]
mov ecx, 0xde1
call qword [sym.imp.OPENGL32.dll_glBindTexture]
jmp 0x18005aa87
mov ecx, 0x8076
call qword [sym.imp.OPENGL32.dll_glDisableClientState]
imul eax, ebp, 0xaa
add esi, eax
cmp esi, r15d
jbe 0x18005a872
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800c9c10
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x18005b370
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov ebp, dword [rsp + 0xb0]
mov rsi, r9
mov r12, r8
mov rdi, rcx
lea r15d, [rbp + 0xc]
cmp ebp, r15d
jae case.0x18005b3ea.4
mov r13, qword [rsp + 0x38]
lea r14d, [rbp - 0x72]
lea r8, str.D3DXCreateTextureFromFileA
lea r10, str.null_name_field_in_HttpHeader_struct
lea r9, [0x180000000]
cmp r14d, 0x27
ja case.0x18005b3ea.11
movzx eax, byte [r9 + r14 + 0x5b648]
mov ecx, dword [r9 + rax*4 + 0x5b618]
add rcx, r9
jmp rcx
cmp byte [0x180143bb9], 0
mov qword [rsp + 0x38], r12
jne case.0x18005b3ea.11
mov ebx, 0x3b
mov eax, ebx
sub eax, 0x3b
je 0x18005b415
cmp eax, 1
je case.0x18005b3ea.4
jmp 0x18005b42a
xor edx, edx
mov ecx, 0x10001
call fcn.18003e500
mov qword [rsp + 0x30], 0
inc ebx
cmp ebx, 0x3d
jb 0x18005b403
jmp case.0x18005b3ea.11
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov edx, 0x83
mov qword [rsp + 0x40], r12
mov r8, rsi
mov rcx, rdi
call fcn.1800b11c0
mov dword [rsp + 0x30], eax
jmp case.0x18005b3ea.11
mov dword [rsp + 0xb0], 0
test rdi, rdi
jne case.0x18005b3ea.11
mov ebx, 0x17
mov eax, ebx
sub eax, 0x17
je 0x18005b489
cmp eax, 1
je case.0x18005b3ea.4
jmp 0x18005b4b5
mov rax, qword [0x1801950c8]
lea r9, str.common_shared_mem_setup
mov edx, 0x61
mov qword [rsp + 0x20], rax
mov rcx, rsi
lea r8d, [rdx - 0x60]
call fcn.1800c8a10
mov dword [rsp + 0x30], 0xffffffff
inc ebx
cmp ebx, 0x19
jb 0x18005b477
jmp case.0x18005b3ea.11
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [rsp + 0xb0], eax
jmp case.0x18005b3ea.11
mov qword [0x1801950c8], r10
jmp case.0x18005b3ea.11
cmp dword [rsp + 0xb0], 0
jne 0x18005b557
mov ebx, 0x4f
cmp ebx, 0x4f
je 0x18005b53a
cmp ebx, 0xed
je 0x18005b513
cmp ebx, 0x18b
jne 0x18005b549
mov dword [rsp + 0x30], 0xffffffff
jmp case.0x18005b3ea.4
mov rax, qword [0x1801950c8]
mov edx, 0x49
mov r9d, dword [rdi]
mov rcx, rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
lea r8d, [rdx - 0x40]
call fcn.1800c8de0
jmp 0x18005b542
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
lea r8, str.D3DXCreateTextureFromFileA
add ebx, 0x9e
cmp ebx, 0x229
jb 0x18005b4f1
mov dword [rsp + 0x30], 1
jmp case.0x18005b3ea.11
mov rax, qword [rsp + 0x38]
mov r13, qword [rax + 0x208]
jmp case.0x18005b3ea.11
mov eax, 0xe8
cmp eax, 0xe8
je 0x18005b5ad
add eax, 0x9db0
cmp eax, 0x9db0
jbe 0x18005b574
mov rcx, qword [rsp + 0x38]
mov rax, qword [rdi]
mov qword [rcx + 0x208], rax
inc ebp
inc r14d
cmp ebp, r15d
jae case.0x18005b3ea.4
mov rdx, qword [rsp + 0x98]
jmp 0x18005b3b7
mov rax, r13
jmp 0x18005b5f9
movzx eax, byte [rdi]
lea rdx, [rsp + 0x38]
mov byte [rsp + 0xb0], al
lea rcx, [rsp + 0xb0]
mov rax, qword [r12]
mov r8d, 0x87
mov qword [rsp + 0x38], rax
call fcn.18006c730
cmp rax, 0xffffffffffffffff
setne byte [rsp + 0x30]
mov rax, qword [rsp + 0x30]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret