joyce8/EMBER2024-capa huggingface dataset:
Function at 0x17795d0
Capabilities:
Accept command line arguments

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea rdx, str.getUTF8Args_1
mov r13, rax
mov eax, dword [rsi]
lea ecx, [rax + 1]
movsxd rcx, ecx
shl rcx, 3
call fcn.0177b3b0
lea rdx, str.getUTF8Args_1
mov r12, rax
mov eax, dword [rsi]
lea ecx, [rax + 1]
movsxd rcx, ecx
shl rcx, 3
call fcn.0177b3b0
mov qword [0x024da918], rax
mov rcx, rax
movsxd rax, dword [rsi]
test eax, eax
jle 0x1779660
xor ebx, ebx
nop dword [rax + rax]
mov rcx, qword [r13 + rbx*8]
call fcn.01779530
mov qword [r12 + rbx*8], rax
movsxd rax, dword [rsi]
add rbx, 1
cmp eax, ebx
jg 0x1779640
mov rcx, qword [0x024da918]
lea r8, [rax*8 + 8]
mov rdx, r12
mov qword [r12 + rax*8], 0
call sub.msvcrt.dll_memcpy
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [0x024da6f0], r12
mov eax, dword [rsi]
mov dword [0x024da6f8], eax
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
Function at 0x1796e10
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [0x024db8a0]
test rax, rax
je 0x1796e28
add rsp, 0x58
ret
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [0x024db8a0], rax
add rsp, 0x58
ret

Function at 0x1796e50
Capabilities:
Get memory capacity

Disassembly:
push r12
sub rsp, 0x60
mov r12, qword [0x024db898]
test r12, r12
je 0x1796e70
mov rax, r12
add rsp, 0x60
pop r12
ret
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1796e62
mov r12, qword [rsp + 0x28]
mov rax, r12
mov qword [0x024db898], r12
add rsp, 0x60
pop r12
ret

Function at 0x1797470
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor edx, edx
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov eax, 1
test rcx, rcx
je 0x17974a0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x38
ret
Function at 0x1797540
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x179755b
mov dword [rbx], eax
add rsp, 0x20
pop rbx
ret
lea rcx, str.newThreadLocalKey:_out_of_keys
call fcn.0177a800
nop
nop dword [rax + rax]
out 0xa1, al
jb 0x20e136a
sub ebp, dword [rax]
invalid
mul byte [rcx - 0x13f23bdc]
xchg ebx, eax
invalid
invalid
pop rbx
movabs al, byte [0x5b80003645c7813e]
jrcxz 0x20e13c9
push rdx
lodsb al, byte [rsi]
jns TryAcquireSRWLockExclusive
push rdx
outsd dx, dword [rsi]
pop rbx
idiv byte [rsp + rsi*8 - 0x4824e522]
pop rsp
cld
invalid
cvtdq2ps xmm3, xmm2
in eax, 0x44
xor dl, bl
push rcx
mov bl, 0x26
insd dword [rdi], dx
movabs dword [0x4eca9d6fdc933d46], eax
sbb al, 0x11
rcl edi, 1
test byte [rax - 0x40e6adb1], 0x59
nop
int1
invalid
mov ebx, 0x543c39d2
cmp dword [rsp + rdx*2], edi
ror dword [rsi - 0x5c7d2e2c], 0x88
sahf
sti
jg 0x20e13ea
invalid
shl qword [rax - 0x3c184b2], cl
invalid
loop VirtualAlloc
fmul qword [rbx]
xchg dword [rdi + 0x10], ebx
xlatb
int3
invalid
jg 0x20e1401
jl 0x20e1440
fucompi st(5)
out 0xab, eax
sub al, 0xd6
cli
je 0x20e13d3
adc dl, byte [rdx + 0xe88b8fe]
lodsb al, byte [rsi]
invalid
xor dword [rsi + 0xb], edx
jg 0x20e1409
mov al, 5
xchg edx, eax
invalid
add eax, 0x36a9c492
cmp dword [rax], 0x9dcd705a
cmp byte [rdx + 0x70], bl
int 0x9d
int 0x9d
jns VirtualQuery
cmp ah, byte [rdi - 0x61]
lahf
sbb dh, bh
mov dl, 0x93
invalid
out 0x73, al
lahf
xor byte [rdx + 0x20771216], al
invalid
adc dh, byte [rdi + 0x20]
ja 0x20e142a
pop r13
invalid
and byte [rcx + 0x5d], cl
pushfq
invalid
pop rdi
adc dl, ch
out dx, al
xor eax, dword [rax + 0x11dea4c3]
idiv byte [rdx - 0x12]
out dx, al
adc bh, byte [rdi + 0x620bb107]
scasb al, byte [rdi]
or esp, dword [rdx + 0x4c]
scasb al, byte [rdi]
sbb dword [rbp + 0x4be9442e], ebx
mov eax, 0xd44a7c60
popfq
jmp 0x7e6ecc89
movabs dword [0xa0c83c5fad781068], eax
sbb eax, 0xe1f078c4
lodsd eax, dword [rsi]
pop rcx
mov edx, 0x1f116daa
insd dword [rdi], dx
adc dword [rdi], ebx
insd dword [rdi], dx
adc dword [rdi], ebx
and ecx, dword [rcx + 0x7c]
fidiv dword [rsi]
nop
not dword [rbx - 0x36]
mov esi, 0xa214bc6f
cld
jp 0x20e13f3
sbb dword [0xffffffffaf15c431], ebx
add al, 0x9a
rcl dword [rsi], cl
fsubr st(6)
invalid
invalid
call WriteConsoleW
insd dword [rdi], dx
add cl, dl
sbb eax, 0x7634a7a
jp ___mb_cur_max_func
invalid
invalid
out 0x31, al
jge WriteFile
wait
wait
int1
mov ch, 0xa4
int1
invalid
shl byte [rdi], 1
sbb ebp, dword [rax]
invalid

Function at 0x1797580
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1797595
add rsp, 0x28
ret
lea rcx, str.setThreadLocalVar
call fcn.0177a8c0
mov ecx, 1
call fcn.0177ac60
nop
nop dword [rax]
Function at 0x1797680
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov eax, dword [0x024db8c4]
test eax, eax
je 0x1797698
add rsp, 0x58
ret
mov ecx, 0xffff
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
mov dword [0x024db8c4], eax
test eax, eax
jne 0x179768e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov dword [0x024db8c4], eax
add rsp, 0x58
ret

Function at 0x1798310
Capabilities:
Create process memory minidump
Get common file path

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4b8
lea r13, [rsp + 0x90]
mov r12, rcx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov rdx, r13
mov ecx, 0x104
lea rbx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rbp
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call rdi
mov dword [rsp + 0x68], esi
mov r9, r13
mov rcx, rbx
mov dword [rsp + 0x60], eax
movzx eax, word [rsp + 0x7c]
lea r8, str._ls_ls_ls__04d_02d_02d__02d_02d_02d__ld__ld.dmp
mov edx, 0x104
mov dword [rsp + 0x58], eax
movzx eax, word [rsp + 0x7a]
mov dword [rsp + 0x50], eax
movzx eax, word [rsp + 0x78]
mov dword [rsp + 0x48], eax
movzx eax, word [rsp + 0x76]
mov dword [rsp + 0x40], eax
movzx eax, word [rsp + 0x72]
mov dword [rsp + 0x38], eax
movzx eax, word [rsp + 0x70]
mov dword [rsp + 0x30], eax
lea rax, [0x024953f0]
mov qword [rsp + 0x28], rax
lea rax, [0x024953f2]
mov qword [rsp + 0x20], rax
call fcn.017982e0
xor r9d, r9d
mov rcx, rbx
mov edx, 0xc0000000
mov r8d, 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call rbp
mov qword [rsp + 0x84], r12
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x8c], 1
call rdi
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x3001
mov r8, rsi
mov edx, r12d
mov qword [rsp + 0x30], 0
mov rcx, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call sub.dbghelp.dll_MiniDumpWriteDump
mov ecx, 2
call qword [fcn.017bb370]
mov r8, rbx
lea rdx, str.Crash_dump_created._Dump_written_to:_n_t_ls
mov rcx, rax
call fcn.017982b0
nop
add rsp, 0x4b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x17c5be0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.017bb370
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.017bb370
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x17c5c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x024dc414]
mov r12, rcx
test ebx, ebx
jle 0x17c5d80
mov rax, qword [0x024dc418]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x17c5c9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x17c5d23
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x17c5c80
mov rcx, r12
call fcn.017c6600
mov rsi, rax
test rax, rax
je 0x17c5da2
mov rax, qword [0x024dc418]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.017c6730
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x024dc418]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x17c5d87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x17c5d1c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x17c5d30
add dword [0x024dc414], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x024dc418]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x17c5d1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.017c5be0
nop dword [rax]
xor ebx, ebx
jmp 0x17c5ca7
mov rax, qword [0x024dc418]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.017c5be0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.017c5be0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x17c6270
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x024dc480]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x024dc460]
test rbx, rbx
je 0x17c62c4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x17c62bb
test r12, r12
je 0x17c62bb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x17c62a0
lea rcx, [0x024dc480]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x17c6600
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x024a5380]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x17c6620
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x17c6628
ret
cmp word [r8 + 0x18], 0x20b
jne 0x17c6620
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x17c6675
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x17c666c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x17c6620
add rax, 0x28
cmp rax, r9
jne 0x17c6658
xor eax, eax
ret

Function at 0x17c6680
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x024a5380]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x17c66a0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x17c66a8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x17c66a0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x17c6730
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x024a5380]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x17c6750
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x17c6758
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x17d8300
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x17d8412
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x17d83ea
add rax, 1
cmp rax, 0x6b
je 0x17d8407
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x17d83e0
cmp edx, 0x6a
je 0x17d8407
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x17d83fb
Function at 0x17d87c0
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
lea rcx, [0x024dd030]
call fcn.017d8070
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.017d7880
mov ebx, dword [0x024dd030]
test ebx, ebx
jne 0x17d8830
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x01b79198], eax
cmp eax, 0xffffffff
je 0x187a536
mov dword [0x024dd030], 1
mov rcx, r13
call fcn.017d7ba0
test r12, r12
je 0x17d8866
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp fcn.017d8430
cmp ebx, 1
je 0x17d880d
mov ecx, 2
call qword [fcn.017bb370]
mov r9d, ebx
lea r8, [0x024dd030]
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.017d8040
mov rcx, r13
call fcn.017d7ba0
test r12, r12
jne 0x17d881a
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
call sub.msvcrt.dll_abort
nop

Function at 0x17d8870
Capabilities:
Set thread local storage value

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x48
call fcn.017d8530
cmp qword [0x024e3050], 0
mov r12, rax
je 0x17d89a0
test rax, rax
je 0x17d89a0
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [r12 + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [r12 + 0x68]
mov qword [r12 + 0x38], 0xffffffffffffffff
mov qword [r12 + 0x30], rax
call fcn.017d7ef0
cmp eax, 1
je 0x17d89b1
mov qword [r12 + 0x68], 0xffffffffffffffff
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [r12 + 0xb8], 0
mov qword [r12 + 0x28], 0
call rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r13, rax
call rsi
mov dword [rsp + 0x30], 2
mov r8, rbx
mov rdx, r13
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [r12 + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.0187a53c
mov rcx, qword [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x01b79198]
mov rdx, r12
mov dword [r12 + 0xbc], 0
mov dword [r12 + 0xc0], eax
movzx eax, byte [r12 + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [r12 + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x17d89b7
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
call fcn.017d8300
nop
jmp fcn.0187a53c

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

Disassembly:
sub rsp, 0x28
cmp dword [0x024dd030], 1
je 0x17d89d2
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17d89f0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.017d8870
Function at 0x17d91f0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x17d9328
cmp eax, 1
je 0x17d9249
call fcn.017d8070
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.017d7880
mov edi, dword [rbx]
test edi, edi
je 0x17d9260
cmp edi, 1
jne 0x17d9300
mov rcx, r13
call fcn.017d7ba0
test r12, r12
je 0x17d9249
mov rcx, r12
call fcn.017d8430
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
lea rax, [0x017d8500]
cmp dword [0x024dd030], 1
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
je 0x17d927f
call fcn.017d87c0
mov ecx, dword [0x01b79198]
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rdi
test rax, rax
je 0x17d9368
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
mfence
cmp dword [0x024dd030], 1
je 0x17d92b1
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call rdi
test rax, rax
je 0x17d9350
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
mfence
call rsi
cmp dword [0x024dd030], 1
je 0x17d92de
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call rdi
test rax, rax
je 0x17d9340
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x17d9234
mov ecx, 2
call qword [fcn.017bb370]
mov r9d, edi
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.017d8040
jmp 0x17d9234
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
call fcn.017d8870
test rax, rax
jne 0x17d92eb
jmp 0x187a555
call fcn.017d8870
test rax, rax
jne 0x17d92c2
jmp 0x187a56e
call fcn.017d8870
test rax, rax
jne 0x17d9297
jmp 0x187a564
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x17d9600
Capabilities:
Get thread local storage value

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x024dd030], 1
mov r12d, eax
je 0x17d9625
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x17d9680
lea r13, [rbx + 0x68]
xor r14d, r14d
mov rcx, r13
call fcn.017d7f00
cmp dword [rbx + 0x48], esi
jbe 0x17d965f
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x17d965f
mov rax, qword [rbx + 0x50]
mov r14, qword [rax + rsi*8]
mov rcx, r13
call fcn.017d7f40
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r14
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
call fcn.017d8870
mov rbx, rax
jmp 0x17d9639
Function at 0x17d9690
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x024dd030], 1
mov r12d, eax
je 0x17d96bc
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x17d9798
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.017d7f00
cmp dword [rbx + 0x48], esi
jbe 0x17d9720
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], rbp
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.017d7f40
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x17d97a5
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x17d97a5
mov eax, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
sub r8d, eax
lea rcx, [rdi + rax*8]
shl r8, 3
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x17d96e9
call fcn.017d8870
mov rbx, rax
jmp 0x17d96d4
mov rcx, r13
call fcn.017d7f40
mov eax, 0xc
jmp 0x17d9708

Function at 0x17d9830
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x024dd030], 1
je 0x17d9842
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17d9860
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.017d8870
test rax, rax
jne 0x17d9853
add rsp, 0x28
ret

Function at 0x17d98d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x024dd030], 1
je 0x17d98e2
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17d9900
add rax, 0x18
add rsp, 0x28
ret
call fcn.017d8870
test rax, rax
jne 0x17d98f3
jmp 0x17d98f7

Function at 0x17d9a20
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x024dd038]
test eax, eax
jne 0x17d9a38
xor eax, eax
add rsp, 0x28
ret
cmp dword [0x024dd030], 1
je 0x17d9a46
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17d9a70
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x17d9a2e
test byte [rax + 0x40], 3
je 0x17d9a2e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x17d9a30
call fcn.017d8870
test rax, rax
je 0x17d9a2e
jmp 0x17d9a57
Function at 0x17d9a80
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x024dd030], 1
mov ebx, ecx
je 0x17d9a95
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17d9ad0
add rax, 0x20
test ebx, ebx
jle 0x17d9ac0
lock add dword [rax], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax], 1
add rsp, 0x20
pop rbx
ret
call fcn.017d8870
test rax, rax
jne 0x17d9aa6
add rsp, 0x20
pop rbx
ret

Function at 0x17d9bd0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbx
sub rsp, 0x28
cmp dword [0x024dd030], 1
je 0x17d9be5
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x17d9c50
test byte [rbx + 0x40], 0xc
jne 0x17d9c09
mov eax, dword [0x024dd038]
test eax, eax
jne 0x17d9c18
add rsp, 0x28
pop rbx
pop r12
ret
lea r12, [rbx + 0x38]
mov rcx, r12
call fcn.017d7880
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x17d9c3b
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x17d9c3b
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x17d9c65
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
jmp fcn.017d7ba0
call fcn.017d8870
mov rbx, rax
test rax, rax
jne 0x17d9bf9
add rsp, 0x28
pop rbx
pop r12
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x17d9c83
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, r12
call fcn.017d7ba0
call fcn.017d9ae0
nop
nop word cs:[rax + rax]
nop dword [rax]
push r12
push rbx
sub rsp, 0x28
xor r12d, r12d
test rcx, rcx
je 0x17d9cc6
call fcn.017d7610
mov edx, 0xfffffffe
mov r12d, 0xffffffff
cmp rax, rdx
cmovbe r12d, eax
cmp dword [0x024dd030], 1
je 0x17d9cd4
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x17d9d38
test r12d, r12d
je 0x17d9d18
call fcn.017d9bd0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x17d9d48
mov edx, r12d
call fcn.017d76d0
call fcn.017d9bd0
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
ret
call fcn.017d9bd0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.017d9bd0
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
ret
call fcn.017d8870
mov rbx, rax
jmp 0x17d9ce8
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x17d9d03