joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006c60
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14002e040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 0xf]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rdi, rax
call sub.KERNEL32.dll_Process32First
jmp 0x140006d0b
lea rcx, [rsp + 0x4c]
mov rdx, rsi
sub rdx, rcx
movzx eax, byte [rcx]
movzx r8d, byte [rcx + rdx]
sub eax, r8d
jne 0x140006ccb
inc rcx
test r8d, r8d
jne 0x140006cb6
test eax, eax
jne 0x140006cfe
mov r8d, dword [rsp + 0x28]
lea ecx, [rax + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140006cfe
mov edx, 9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140006cab
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140007650
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140007254
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
sub rsp, 0x50
and qword [rsp + 0x30], 0
lea rcx, str.C:_ProgramData_EFI_Environment_en_en_id.rsc
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8d, eax
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x40]
mov ecx, 0x32
xor eax, 0x69696969
bswap eax
mov dword [rsp + 0x40], eax
call fcn.140004268
mov rbx, rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
mov word [rbx + 0x30], ax
movzx ecx, byte [rsp + 0x43]
movzx edx, byte [rsp + 0x42]
movzx r9d, byte [rsp + 0x41]
movzx r8d, byte [rsp + 0x40]
mov dword [rsp + 0x28], ecx
mov rcx, rbx
mov dword [rsp + 0x20], edx
lea rdx, str._d._d._d._d
call fcn.140004544
mov edx, 0x1bb
mov rcx, rbx
call fcn.14000721c
xor eax, eax
add rsp, 0x50
pop rbx
ret

Function at 0x1400080cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008116
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008116
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008116
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008116
cmp dword [rcx + 0x84], 0xe
jbe 0x140008116
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008118
xor al, al
add rsp, 0x28
ret
Function at 0x14000ff88
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000fff7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fff7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fff7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fff7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fff7
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fff7
cmp dword [rcx + 0xf8], 0
je 0x14000fff7
mov ecx, ebx
call fcn.1400100a8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000fe84
nop
cmp dword [rbp + 0x20], 0
je 0x140010045
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140010050
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000ff88

Function at 0x14001018c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000ff88
Function at 0x1400154c0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400154d6
mov al, 1
jmp 0x140015536
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400154e7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140015534
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001804c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015534
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140015534
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140015534
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140015536
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140017144
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140017174
xor eax, eax
jmp 0x140017237
mov rbp, rbx
cmp word [rax], si
je 0x140017199
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140017180
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001717c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140017064
movsxd r14, eax
test eax, eax
jne 0x1400171d7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001716d
mov rcx, r14
call fcn.1400121b4
mov rdi, rax
test rax, rax
jne 0x1400171f0
xor ecx, ecx
call fcn.140012178
jmp 0x1400171cc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140017064
test eax, eax
jne 0x140017221
mov rcx, rdi
call fcn.140012178
jmp 0x14001722b
xor ecx, ecx
call fcn.140012178
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001b850
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400307e0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001b8a7
cmp word [rdx], r13w
jne 0x14001b8a7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001b8ac
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001b9d1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001b9f2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001b8e5
mov rdx, r9
mov word [rbx], cx
jmp 0x14001b90c
cmp r9, r8
jae 0x14001b91c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001b8c6
jmp 0x14001b9d1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001b9c6
cmp dword [rsp + 0x80], esi
je 0x14001b9c6
lea r8, [0x1400307e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001b99e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001b96e
mov word [rbx], r13w
jmp 0x14001b9ce
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001b97b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001b9ce
cmp word [rsp + 0x70], r13w
jne 0x14001b9ab
cmp rbx, r14
je 0x14001b968
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001b770
cmp word [rsp + 0x70], r13w
je 0x14001b9d1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400307e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001b9cb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001b9d1
Function at 0x14001dc28
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b770
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b770
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14001dd78
cmp rax, 0xffffffffffffffff
je 0x14001dd78
xor edi, edi
test rbp, rbp
jle 0x14001dd23
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140015724
mov rbx, rax
test rax, rax
jne 0x14001dcb0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001dd19
mov edx, 0x8000
mov ecx, r14d
call fcn.140010f20
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400150c0
cmp eax, 0xffffffff
je 0x14001dcf9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14001dcc0
mov edx, r15d
mov ecx, r14d
call fcn.140010f20
jmp 0x14001dd19
cmp byte [rsi + 0x38], dil
je 0x14001dd10
cmp dword [rsi + 0x34], 5
jne 0x14001dd10
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14001dd19
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140012178
jmp 0x14001dd8c
jns 0x14001dd8c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b770
cmp rax, 0xffffffffffffffff
jne 0x14001dd44
cmp byte [rsi + 0x30], dil
je 0x14001dd8c
mov edi, dword [rsi + 0x2c]
jmp 0x14001dd8c
mov ecx, r14d
call fcn.14001804c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001dd8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14001dd8c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001dd85
mov eax, dword [rsi + 0x2c]
jmp 0x14001dd8a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b770
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14001eae0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001eb08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001eb08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14003a235
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
push r15
mov rax, 9
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14003a24d
sub rsp, 0x28
call fcn.1400611d0
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400612f0
add rsp, 0x10
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.1400612f0
add rsp, 0x10
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x38]
sub rsp, 0x10
call fcn.1400612f0
add rsp, 0x10
mov rdx, rsp
mov rcx, 0x3e
call fcn.140062150
mov rcx, 0x20030a
call fcn.14004f899
mov rcx, 0x20030b
call fcn.14004f899
mov dword [rsp + 0x40], 0
mov rcx, 0x20030e
call fcn.14004f899
call fcn.14002ab64
mov rcx, 0x20030e
call fcn.14004fa7b
and rax, rax
je 0x14003a311
jmp 0x14003a311
xor rax, rax
and rax, rax
je 0x14003a33c
mov rcx, 0x20030f
call fcn.14004f899
mov qword [rsp + 0x58], 0xf013f
mov rcx, 0x200310
call fcn.14004f899
jmp 0x14003a35d
mov rcx, 0x200310
call fcn.14004f899
mov rcx, 0x200311
call fcn.14004f899
mov qword [rsp + 0x58], 0xf003f
mov rcx, 0x200312
call fcn.14004f899
mov rcx, 0x200313
call fcn.14004f899
sub rsp, 8
lea rax, [rsp + 0x50]
mov rax, rax
push rax
push qword [rsp + 0x68]
push 0
movabs rax, 0x1400ec20e
push rax
movabs rax, 0x80000000
push rax
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.dll_RegOpenKeyExW
add rsp, 0x30
mov rcx, 0x200313
call fcn.14004fa7b
mov r15, rax
and r15, r15
jne 0x14003a4da
mov rcx, 0x200314
call fcn.14004f899
lea rax, [rsp + 0x50]
mov rax, rax
push rax
push qword [rsp + 0x30]
push qword [rsp + 0x58]
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.dll_RegCreateKeyW
mov rcx, 0x200314
call fcn.14004fa7b
mov r15, rax
and r15, r15
jne 0x14003a4ac
mov rcx, 0x200315
call fcn.14004f899
push qword [rsp + 0x38]
pop rcx
call fcn.140051c50
mov r15, rax
inc r15
add r15, r15
mov rax, r15
push rax
push qword [rsp + 0x40]
push 2
push 0
push qword [rsp + 0x50]
push qword [rsp + 0x78]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.dll_RegSetValueExW
add rsp, 0x30
mov rcx, 0x200315
call fcn.14004fa7b
mov r15, rax
and r15, r15
jne 0x14003a47e
mov rcx, 0x200316
call fcn.14004f899
mov dword [rsp + 0x40], 1
mov rcx, 0x200317
call fcn.14004f899
mov rcx, 0x200318
call fcn.14004f899
push qword [rsp + 0x50]
pop rcx
call sub.ADVAPI32.dll_RegCloseKey
mov rcx, 0x200318
call fcn.14004fa7b
mov rcx, 0x200319
call fcn.14004f899
mov rcx, 0x20031a
call fcn.14004f899
push qword [rsp + 0x48]
pop rcx
call sub.ADVAPI32.dll_RegCloseKey
mov rcx, 0x20031a
call fcn.14004fa7b
mov rcx, 0x20031b
call fcn.14004f899
mov rcx, 0x20031c
call fcn.14004f899
movsxd rax, dword [rsp + 0x40]
movsxd rax, eax
jmp 0x14003a50b
push rax
push rax
sub rsp, 0x20
call fcn.1400623c0
add rsp, 0x20
pop rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.1400614a0
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.1400614a0
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400614a0
add rsp, 0x28
pop rax
add rsp, 0x70
pop r15
ret
Function at 0x14003ba90
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
mov rax, 0xa
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14003ba9a
sub rsp, 0x28
call fcn.1400611d0
mov rcx, qword [rsp + 0xb0]
call fcn.14004fb48
mov rdx, rsp
mov rcx, gethostname
call fcn.140062150
mov rcx, 0x2002a6
call fcn.14004f899
mov rcx, 0x2002a7
call fcn.14004f899
sub rsp, 0x18
mov rdx, 1
mov rcx, rdx
call fcn.14004f9c1
lea rax, [rsp + 0x40]
push rax
xor r9, r9
mov r8, reloc.WS2_32.dll_inet_addr
mov rcx, 2
sub rsp, 0x20
call fcn.14005fd4c
add rsp, 0x40
mov qword [rsp + 0x28], rax
mov rcx, 0x2002a8
call fcn.14004f899
push 0
push 0
pop rcx
pop rdx
call sub.KERNEL32.dll_GetSystemDirectoryW
mov rcx, 0x2002a8
call fcn.14004fa7b
mov rax, rax
push rax
pop rax
mov dword [rsp + 0x68], eax
mov rcx, 0x2002a9
call fcn.14004f899
movsxd r15, dword [rsp + 0x68]
and r15, r15
jne 0x14003bbaf
mov rcx, 0x2002aa
call fcn.14004f899
movabs rcx, 0x1400ec20e
push rcx
sub rsp, 0x28
call fcn.140061240
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.1400614d0
add rsp, 0x28
pop rax
push rax
call fcn.140061290
pop rdx
add rax, rdx
jmp 0x14003bd45
mov rcx, 0x2002ab
call fcn.14004f899
mov rcx, 0x2002ac
call fcn.14004f899
movsxd rax, dword [rsp + 0x68]
inc rax
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.14004f9c1
call fcn.14005ff08
mov rcx, 0x2002ad
call fcn.14004f899
movsxd r15, dword [rsp + 0x68]
add r15, r15
mov rax, r15
push rax
mov rax, 0
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rdx - 0x10]
call fcn.14004f9d4
mov rbp, qword [rsp + 0x30]
lea rax, [rbp]
mov rax, rax
push rax
pop rcx
pop rdx
movabs r10, 0x1400606d0
mov r11, 0
call fcn.14004fa99
call fcn.140060c60
mov rcx, 0x2002ae
call fcn.14004f899
movsxd rax, dword [rsp + 0x68]
mov rax, rax
push rax
mov rax, 0
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rdx - 0x10]
call fcn.14004f9d4
lea rax, [rbp]
mov rax, rax
push rax
pop rcx
pop rdx
call sub.KERNEL32.dll_GetSystemDirectoryW
mov rcx, 0x2002ae
call fcn.14004fa7b
mov rax, rax
push rax
pop rax
mov dword [rsp + 0x68], eax
mov rcx, 0x2002af
call fcn.14004f899
push rcx
sub rsp, 0x28
call fcn.140061240
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140061240
add rsp, 0x28
pop rcx
push rax
push 0x19
push 0xffffffffffffffff
mov rax, 0
mov rdx, qword [rsp + 0x50]
mov rdx, qword [rdx - 0x10]
call fcn.14004f9d4
mov rbp, qword [rsp + 0x50]
lea rax, [rbp]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
movabs r10, 0x140060920
mov r11, 0
call fcn.14004fa99
call fcn.140060d60
add rsp, 0x28
movabs rcx, 0x1400ec3da
sub rsp, 0x28
call fcn.1400614d0
add rsp, 0x28
pop rax
push rax
call fcn.140061290
pop rdx
add rax, rdx
jmp 0x14003bd45
push rax
push rax
sub rsp, 0x20
call fcn.1400623c0
add rsp, 0x20
pop rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140060030
add rsp, 0x28
pop rax
add rsp, 0x78
pop r15
pop rbp
ret
Function at 0x14004fb48
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 [0x140101db4]
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 0x1400503f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x140105e0c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14005044a
mov r8, qword [0x1400ec1fd]
mov rcx, qword [0x1401058d4]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140105e0c]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.14004fb2d
lea rcx, [0x1400503c8]
mov rdx, rbx
call fcn.1400506b8
mov rax, rbx
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140105e0c], eax
add rsp, 0x28
jmp fcn.1400503f0
Function at 0x1400506b8
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140105e10], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x140105e20]
jne 0x140050705
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140105e48], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140105e10], 1
mov ecx, dword [0x140105e48]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x1400507da
mov rcx, qword [0x1401058d4]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140050805
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140105e18]
test rax, rax
je 0x140050755
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140105e18], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x140050820]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140105e48]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1401058d4]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140050805
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14005108c
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 0x140051152
lea rcx, [0x14010ba80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140105fe8]
jmp 0x140051116
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140051113
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140105fe8]
mov rdx, rsi
call fcn.14005fc68
jmp 0x140051116
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400510e3
mov rdx, qword [reloc.WS2_32.dll_accept]
lea rcx, [0x140105fe8]
mov rdi, rdx
inc rdx
mov qword [reloc.WS2_32.dll_accept], rdx
lea edx, [rbx + 0x20]
call fcn.14005fcb0
lea rcx, [0x14010ba80]
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 0x140051840
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
xor r15d, r15d
mov r13d, r9d
mov r12d, edx
mov ebp, r15d
cmp edx, 1
jl 0x1400519a4
mov qword [rsp + 0x50], rbx
test rcx, rcx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x20], r14
lea r14, [0x1400ce1b0]
mov rbx, r14
mov edi, r15d
cmovne rbx, rcx
test r8, r8
cmovne r14, r8
mov rsi, rbx
movzx ecx, word [r14]
test cx, cx
je 0x140051970
cmp word [r14 + 2], di
je 0x140051970
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], di
jne 0x1400518b0
movsxd r15, eax
nop dword [rax]
mov r8, r15
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x1400518dd
cmp word [rbx], bp
je 0x1400518dd
add rbx, 2
jmp 0x1400518c0
inc edi
cmp edi, r12d
je 0x1400518f2
cmp word [rbx], bp
je 0x1400518fb
lea rbx, [rbx + r15*2]
mov rsi, rbx
jmp 0x1400518c0
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
xor r15d, r15d
mov rcx, rbx
call fcn.1400615f0
mov r14, qword [rsp + 0x20]
mov edi, eax
test eax, eax
je 0x14005192a
mov ecx, r13d
call fcn.140061850
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
add r8, r8
call sub.msvcrt.dll_memmove
mov edx, r13d
mov ecx, ebp
call fcn.140061660
test edi, edi
mov rdi, qword [rsp + 0x60]
mov rbx, rax
jne 0x14005194e
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
mov rsi, qword [rsp + 0x58]
movsxd rcx, ebp
mov word [rbx + rcx*2], r15w
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
movzx eax, word [rbx]
cmp ax, cx
je 0x14005197d
test ax, ax
jne 0x140051990
inc edi
cmp edi, edx
je 0x140051996
test ax, ax
je 0x1400518fe
lea rsi, [rbx + 2]
add rbx, 2
jmp 0x140051970
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
jmp 0x1400518fe
mov ecx, r9d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.140061880