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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [fcn.00419860]
mov rsi, qword [rcx]
mov ecx, 1
call rbp
mov rdi, rax
test rsi, rsi
je 0x407940
cmp qword [rsi], 0
lea r8, [rsi + 0x10]
mov rcx, rdi
lea rax, section..rdata
lea rdx, [0x0041b01b]
cmove r8, rax
call sub.msvcrt.dll_fprintf
lea r12, [0x0041b01b]
mov ebx, eax
movsxd rax, ebx
cmp rax, qword [rsi]
jge 0x4078da
cmp byte [rsi + rax + 0x10], 0
jne 0x407920
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x4078da
add ebx, 1
movsxd rax, ebx
cmp rax, qword [rsi]
jl 0x4078ba
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x0041b001]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.004197d0
lea r8, [rsi + rax + 0x10]
mov rdx, r12
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x4078da
add ebx, eax
jmp 0x4078b2
lea r8, section..rdata
mov rcx, rax
lea rdx, [0x0041b01b]
call sub.msvcrt.dll_fprintf
lea rsi, [0x0041b01b]
mov ebx, eax
nop
test ebx, ebx
jns 0x4078da
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
jne 0x407999
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x4078da
add ebx, 1
test ebx, ebx
jns 0x4078da
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
je 0x407972
add r8, 0x10
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x4078da
add ebx, eax
jmp 0x407960
Function at 0x410000
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.00419860]
mov r8d, 0x3f
mov edx, 1
lea rcx, str._GC__cannot_register_global_variable__too_many_global_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call fcn.004197d0
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x410040
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x41005f
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.004197d0

Function at 0x410080
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.00419860]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call fcn.004197d0
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x411ed0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rdx
je 0x411f41
cmp qword [rcx + 8], 0
js 0x411f50
call fcn.00411ce0
test rax, rax
je 0x411f41
mov r10, qword [rax]
test r10, r10
jle 0x411f3b
mov r9, rax
add r10, rbx
sub r9, rbx
nop
mov r8, rbx
mov rdx, rbx
sar r8, 8
sar rdx, 0x10
xor r8d, ebx
and edx, 0xffffffee
and r8d, 0xffffffee
xor r8b, byte [r9 + rbx + 0x10]
xor r8d, edx
mov rdx, rbx
sar rdx, 0x18
and edx, 0xffffffee
xor r8d, edx
mov byte [r9 + rbx + 0x10], r8b
add rbx, 1
cmp rbx, r10
jne 0x411f00
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rax, rcx
jmp 0x411eee
Function at 0x412340
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r14, rcx
mov rcx, qword [0x00420390]
mov ebp, edx
mov edx, 0x4e345746
lea rbx, [r14 + 2]
call fcn.00411ed0
mov edx, 0x3a8d11a2
mov rcx, rax
call fcn.00412120
mov rdi, qword [0x004203a0]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r13, qword [rax + 0x20]
lea rsi, [rax + 0x20]
nop dword [rax]
nop word cs:[rax + rax]
movzx eax, word [r14]
mov rdx, r14
test ax, ax
je 0x4123d0
nop dword [rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x412550
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x4123b0
mov rcx, qword [r13 + 0x50]
movzx r12d, word [rcx]
test r12w, r12w
je 0x412572
mov rax, rcx
nop
nop word cs:[rax + rax]
lea edx, [r12 - 0x41]
cmp dx, 0x19
ja 0x412580
add r12d, 0x20
add rax, 2
mov word [rax - 2], r12w
movzx r12d, word [rax]
test r12w, r12w
jne 0x4123f0
movzx r15d, word [r14]
movzx r12d, word [rcx]
test r15w, r15w
je 0x412485
test r12w, r12w
je 0x4125a0
mov r10, rbx
mov eax, r15d
sub r10, rcx
jmp 0x412446
cmp word [rcx], 0
je 0x412485
movzx edx, word [rcx]
lea r9d, [rax - 0x41]
lea r8d, [rax + 0x20]
cmp r9w, 0x1a
cmovb eax, r8d
lea r9d, [rdx - 0x41]
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
cmovb edx, r8d
cmp ax, dx
jne 0x4125a0
mov rax, rcx
add rcx, 2
movzx eax, word [r10 + rax]
test ax, ax
jne 0x412440
mov edx, 0x5272a046
mov rcx, rdi
call fcn.00411ed0
mov edx, 0x45d14ca2
mov rcx, rax
call fcn.00412120
cmp r15w, r12w
je 0x4125c3
mov r13, qword [r13]
cmp rsi, r13
jne 0x4123a0
test ebp, ebp
je 0x4125d8
mov rcx, qword [0x004203c0]
lea rbx, [rsp + 0x30]
mov edx, 0x5f0ff86
call fcn.00411ed0
mov edx, 0x6a1a262
mov rcx, rax
call fcn.00412120
mov rax, qword [0x004201a0]
mov rcx, rbx
mov rdx, r14
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [rax]
mov rax, qword [0x00420190]
mov r8, rbx
xor edx, edx
lea r9, [rsp + 0x28]
xor ecx, ecx
call qword [rax]
mov rcx, qword [0x004203d0]
mov edx, 0x60623fe2
mov ebx, eax
call fcn.00411ed0
mov edx, 0x5272a046
mov rcx, rax
call fcn.00412120
test ebx, ebx
jne 0x4125f6
mov rax, qword [rsp + 0x28]
jmp 0x4125c7
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x4123b0
mov rcx, qword [r13 + 0x50]
movzx r12d, word [rcx]
test r12w, r12w
jne 0x4123e2
movzx r15d, word [r14]
jmp 0x412485
add rax, 2
movzx r12d, word [rax]
test r12w, r12w
jne 0x4123f0
jmp 0x412416
mov rcx, qword [0x004203a0]
mov edx, 0x5272a046
call fcn.00411ed0
mov edx, 0x45d14ca2
mov rcx, rax
call fcn.00412120
jmp 0x4124a9
mov rax, qword [r13 + 0x20]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [0x004203b0]
mov edx, 0x10724e22
call fcn.00411ed0
mov edx, 0xa7ba306
mov rcx, rax
call fcn.00412120
xor eax, eax
jmp 0x4125c7
Function at 0x4187d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00438a04]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x418958
mov rax, qword [0x00438a08]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x41881c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4188a5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x418800
mov rcx, rbx
call fcn.00419470
test rax, rax
mov r12, rax
je 0x41898d
mov rax, qword [0x00438a08]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004195a0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00438a08]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x418970
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x41889e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x418900
add dword [0x00438a04], 1
cmp edi, 8
jae 0x4188d3
test dil, 4
jne 0x418944
test edi, edi
je 0x4188c8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x41895f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4188c8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4188ec
jmp 0x4188c8
add rsi, qword [0x00438a08]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41889e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00419a30
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4188c8
xor esi, esi
jmp 0x418827
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4188c8
mov rax, qword [0x00438a08]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00419a30
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00419a30
nop
nop dword [rax]

Function at 0x4190e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00438ce0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00438cc0]
test rbx, rbx
je 0x419134
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 0x41912b
test rsi, rsi
je 0x41912b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x419110
lea rcx, [0x00438ce0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x419470
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00420530]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4194dd
mov rcx, r8
call fcn.00419350
test eax, eax
je 0x4194dd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4194dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4194d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4194df
add rax, 0x28
cmp rax, r9
jne 0x4194c0
xor eax, eax
add rsp, 0x28
ret

Function at 0x419a30
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.00419860
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00419860
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530

Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002250]
mov r8d, 2
lea r9, str._J_ms8m
mov qword [rsp + 0x38], rax
lea rax, [0x140002240]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x14000cf4c
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x140d2cbb8]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000d230
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14000d2f6
lea rcx, [0x140d2dd40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140d2db98]
jmp 0x14000d2ba
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000d2b7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140d2db98]
mov rdx, rsi
call fcn.140015994
jmp 0x14000d2ba
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000d287
mov rdx, qword [0x140d2cb90]
lea rcx, [0x140d2db98]
mov rdi, rdx
inc rdx
mov qword [0x140d2cb90], rdx
lea edx, [rbx + 0x20]
call fcn.1400159dc
lea rcx, [0x140d2dd40]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x14000d394
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x140d2dd90]
call fcn.140014ff8
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x14000d45a
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x14000d3e8
add rax, r9
cmp byte [rax], r10b
je 0x14000d3e0
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x14000d41e
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x14000d419
cmp cl, 0x22
je 0x14000d40c
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x14000d3fe
cmp byte [rax], 0
je 0x14000d419
mov rcx, rax
add rax, r9
jmp 0x14000d440
mov rcx, rax
jmp 0x14000d440
test dl, dl
je 0x14000d43d
mov rbx, rax
cmp dl, r10b
je 0x14000d433
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x14000d425
cmp byte [rax], 0
mov rcx, rax
je 0x14000d440
jmp 0x14000d414
xor r8d, r8d
cmp dword [rbp], esi
jne 0x14000d44a
test rdi, rdi
jne 0x14000d464
test r8d, r8d
je 0x14000d452
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x14000d3db
test rdi, rdi
jne 0x14000d476
movsxd rax, esi
jmp 0x14000d479
test rbx, rbx
je 0x14000d476
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x14000d479
and dword [rdi], 0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14000d554
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140d2dd90]
call fcn.140014ff8
xor ecx, ecx
add rsp, 0x28
jmp fcn.14000d394
Function at 0x14000dc0c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x14000dc73
mov rcx, qword [rbp + 0x18]
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
mov r8d, edi
movsxd rdx, ebx
lea r9, [rsp + 0x50]
sub r8d, ebx
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000dc65
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14000dc6f
add ebx, dword [rsp + 0x50]
cmp ebx, edi
jge 0x14000dc73
jmp 0x14000dc30
add ebx, dword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000e390
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140d2dbbc], 0
jne 0x14000e3b5
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140d2dbbc], 1
mov dword [0x140d2dbb8], eax
mov rcx, qword [0x140d2da50]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140d2dbb8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x14000e640
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140d2dbbc], 0
mov ebx, ecx
jne 0x14000e65f
call fcn.14000e390
mov ecx, dword [0x140d2dbb8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14000e687
call fcn.14000e390
mov ecx, dword [0x140d2dbb8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rcx, [rdi + 8]
mov edx, 0x11
imul ebx, ebx, 0x53a9b4fb
mov eax, 1
add rcx, 4
sub eax, ebx
mov ebx, 1
mov dword [rcx + 0x40], eax
imul eax, eax, 0x53a9b4fb
sub ebx, eax
dec rdx
mov dword [rcx - 4], ebx
jne 0x14000e690
mov dword [rdi], edx
mov dword [rdi + 4], 0xa
lea ebx, [rdx + 0x1f]
lea esi, [rdx + 0x10]
nop dword [rax + rax]
movsxd r10, dword [rdi]
movsxd r11, dword [rdi + 4]
mov r8d, dword [rdi + r11*4 + 8]
mov ecx, dword [rdi + r10*4 + 0x4c]
mov edx, dword [rdi + r10*4 + 8]
ror ecx, 0xd
add ecx, dword [rdi + r11*4 + 0x4c]
ror edx, 5
add edx, r8d
mov dword [rdi + r10*4 + 8], ecx
mov dword [rdi + r10*4 + 0x4c], edx
dec r10d
cmovs r10d, esi
dec r11d
cmovs r11d, esi
dec rbx
mov dword [rdi], r10d
mov dword [rdi + 4], r11d
jne 0x14000e6d0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000e400
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140d2dbbc], 0
mov rbx, rcx
jne 0x14000e417
call fcn.14000e390
mov ecx, dword [0x140d2dbb8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
jne 0x14000e43f
call fcn.14000e390
mov ecx, dword [0x140d2dbb8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
movsxd r8, dword [r11]
movsxd rdx, dword [r11 + 4]
mov eax, 0x10
mov r9d, dword [r11 + r8*4 + 0x4c]
mov r10d, dword [r11 + r8*4 + 8]
ror r9d, 0xd
add r9d, dword [r11 + rdx*4 + 0x4c]
ror r10d, 5
add r10d, dword [r11 + rdx*4 + 8]
mov dword [r11 + r8*4 + 8], r9d
mov dword [r11 + r8*4 + 0x4c], r10d
dec r8d
mov ecx, r10d
cmovs r8d, eax
dec edx
cmovs edx, eax
inc rbx
mov dword [r11], r8d
mov dword [r11 + 4], edx
je 0x14000e4b8
mov edx, r9d
mov r8, rbx
mov eax, ebx
shr r8, 0x20
imul rax, rdx
shr rax, 0x20
imul rcx, r8
imul rdx, r8
shr rcx, 0x20
add rax, rcx
add rax, rdx
add rsp, 0x20
pop rbx
ret
mov eax, r9d
shl rax, 0x20
and rax, rcx
add rsp, 0x20
pop rbx
ret

Function at 0x14000e640
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140d2dbbc], 0
jne 0x14000e3b5
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140d2dbbc], 1
mov dword [0x140d2dbb8], eax
mov rcx, qword [0x140d2da50]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140d2dbb8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x14000e640
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140d2dbbc], 0
mov ebx, ecx
jne 0x14000e65f
call fcn.14000e390
mov ecx, dword [0x140d2dbb8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14000e687
call fcn.14000e390
mov ecx, dword [0x140d2dbb8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rcx, [rdi + 8]
mov edx, 0x11
imul ebx, ebx, 0x53a9b4fb
mov eax, 1
add rcx, 4
sub eax, ebx
mov ebx, 1
mov dword [rcx + 0x40], eax
imul eax, eax, 0x53a9b4fb
sub ebx, eax
dec rdx
mov dword [rcx - 4], ebx
jne 0x14000e690
mov dword [rdi], edx
mov dword [rdi + 4], 0xa
lea ebx, [rdx + 0x1f]
lea esi, [rdx + 0x10]
nop dword [rax + rax]
movsxd r10, dword [rdi]
movsxd r11, dword [rdi + 4]
mov r8d, dword [rdi + r11*4 + 8]
mov ecx, dword [rdi + r10*4 + 0x4c]
mov edx, dword [rdi + r10*4 + 8]
ror ecx, 0xd
add ecx, dword [rdi + r11*4 + 0x4c]
ror edx, 5
add edx, r8d
mov dword [rdi + r10*4 + 8], ecx
mov dword [rdi + r10*4 + 0x4c], edx
dec r10d
cmovs r10d, esi
dec r11d
cmovs r11d, esi
dec rbx
mov dword [rdi], r10d
mov dword [rdi + 4], r11d
jne 0x14000e6d0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000ec50
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [rcx], 1
jne 0x14000ec63
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14000ec63
jmp 0x140017250
mov ecx, edx
jmp fcn.140017210
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
je 0x140017296
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_strlen
mov dword [rsp + 0x28], eax
mov edx, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x28]
call fcn.140016dd0
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_strcpy
jmp 0x14001729f
mov ecx, dword [rsp + 0x48]
call fcn.140017210
add rsp, 0x38
ret

Function at 0x140010090
Capabilities:
Get thread local storage value

Disassembly:
push r12
push r13
push r15
sub rsp, 0x30
xor r12d, r12d
mov r15d, r9d
mov r13d, edx
cmp edx, 1
jl 0x1400101d3
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
test rcx, rcx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r14
lea r14, [0x14001b08e]
mov esi, r12d
mov rbx, r14
cmovne rbx, rcx
test r8, r8
cmovne r14, r8
mov rbp, rbx
movzx ecx, byte [r14]
test cl, cl
je 0x140010140
cmp byte [r14 + 1], sil
je 0x140010140
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r14
repne scasb al, byte [rdi]
not rcx
dec rcx
movsxd rdi, ecx
nop word [rax + rax]
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_strncmp
test eax, eax
je 0x14001012c
cmp byte [rbx], r12b
je 0x14001012c
inc rbx
jmp 0x140010110
inc esi
cmp esi, r13d
je 0x14001015e
cmp byte [rbx], r12b
je 0x140010164
add rbx, rdi
mov rbp, rbx
jmp 0x140010110
movzx eax, byte [rbx]
cmp al, cl
je 0x14001014b
test al, al
jne 0x140010159
inc esi
cmp esi, edx
je 0x14001015e
test al, al
je 0x140010164
lea rbp, [rbx + 1]
inc rbx
jmp 0x140010140
mov r12d, ebx
sub r12d, ebp
mov rcx, rbx
call fcn.1400172e0
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x60]
mov ebx, eax
test eax, eax
je 0x140010192
mov ecx, r15d
call fcn.1400172b0
movsxd r8, r12d
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_memmove
mov edx, r15d
mov ecx, r12d
call fcn.140016dd0
test ebx, ebx
mov rbx, qword [rsp + 0x50]
mov rdi, rax
jne 0x1400101b7
movsxd r8, r12d
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_strncpy
mov rbp, qword [rsp + 0x58]
movsxd rcx, r12d
mov byte [rcx + rdi], 0
mov rdi, qword [rsp + 0x28]
add rsp, 0x30
pop r15
pop r13
pop r12
ret
mov ecx, r9d
add rsp, 0x30
pop r15
pop r13
pop r12
jmp fcn.140017210

Function at 0x140010d90
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, 0x40
mov ecx, esi
call fcn.140016dd0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.140010d00
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
sub esi, ecx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400171d0