joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004b97c
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 [0x1404b3c24]
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 0x14004de00
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 0x14004dec6
lea rcx, [0x140537bc0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1404bcab0]
jmp 0x14004de8a
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14004de87
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1404bcab0]
mov rdx, rsi
call fcn.1400bbf94
jmp 0x14004de8a
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14004de57
mov rdx, qword [0x1404b3968]
lea rcx, [0x1404bcab0]
mov rdi, rdx
inc rdx
mov qword [0x1404b3968], rdx
lea edx, [rbx + 0x20]
call fcn.1400bbfdc
lea rcx, [0x140537bc0]
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 0x140051390
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140051407
movsxd rdx, ecx
lea rcx, [0x1400512ec]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x1404bcce8]
test rbx, rbx
je 0x14005147a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400513fd
cmp byte [rbx + 0x20], 0
je 0x1400513fd
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x1400513c3
jmp 0x14005147a
mov rbx, qword [0x1404bcce8]
test rbx, rbx
je 0x14005147a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140051472
cmp byte [rbx + 0x21], 0
je 0x140051436
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140051462
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1404bcce8]
call fcn.1400bbf94
mov rbx, rdi
test rdi, rdi
jne 0x140051413
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140051b40
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x140537c20]
call fcn.1400bbb78
test rax, rax
je 0x140051b7d
cmp dword [rax + 0x28], 0
je 0x140051b7d
mov rcx, qword [rax + 0x18]
mov r9d, ebx
mov r8d, dword [rcx + 4]
mov edx, dword [rcx]
mov rcx, qword [rax + 0x10]
add rsp, 0x20
pop rbx
jmp fcn.140051760
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.1400bcce0
Function at 0x14006eda4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x140537ca0]
call fcn.1400bb2a8
xor ebp, ebp
or esi, 0xffffffff
mov r14, rax
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x14006eea1
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x14006edfb
add rax, 2
cmp word [rax], 0x20
je 0x14006edf1
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x14006ee39
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x14006ee79
cmp cx, r9w
je 0x14006ee2b
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14006ee19
cmp word [rax], bp
je 0x14006ee79
mov rcx, rax
add rax, 2
jmp 0x14006ee81
test dx, dx
je 0x14006ee7e
mov rbx, rax
cmp dx, 0x20
je 0x14006ee2b
add rax, 2
cmp word [rax], r9w
jne 0x14006ee6f
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x14006ee79
cmp cx, r9w
je 0x14006ee6f
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14006ee5d
movzx edx, word [rax]
test dx, dx
jne 0x14006ee41
jmp 0x14006ee2b
mov rcx, rax
jmp 0x14006ee81
mov r8d, ebp
cmp dword [r14], esi
jne 0x14006ee8b
test rdi, rdi
jne 0x14006eeab
test r8d, r8d
je 0x14006ee92
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x14006edeb
test rdi, rdi
jne 0x14006eec0
movsxd rax, esi
jmp 0x14006eec2
test rbx, rbx
je 0x14006eec0
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x14006eec2
mov dword [rdi], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x14006eed8
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140537ca0]
call fcn.1400bb2a8
xor ecx, ecx
add rsp, 0x28
jmp fcn.14006eda4

Function at 0x14006ef6c
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x140537ca0]
xor ebp, ebp
mov esi, edx
mov dword [rax + 8], ebp
call fcn.1400bb2a8
test ebx, ebx
js 0x14006ef9b
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.14006eda4
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.1400bc880
mov ecx, ebp
jmp 0x14006efd7
test edi, edi
je 0x14006efdc
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x14006efca
inc ecx
jmp 0x14006efd1
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x14006efb9
mov word [rax], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.1400bc9c0
Function at 0x14006f780
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
mov r9d, r8d
or r8d, 0xffffffff
jmp 0x14006f8cc
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
xor eax, eax
mov ecx, 0x1000
mov r15d, r9d
mov r13d, r8d
mov edi, ecx
mov esi, eax
mov r14d, eax
mov r12d, eax
cmp edx, 0x18
je 0x14006fa0b
cmp edx, 2
je 0x14006fa0b
mov rcx, qword [0x1404bbcd8]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x90]
lea r8d, [r12 + 2]
lea rdx, [rsp + 0x34]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x14006f9f4
mov r15, qword [rsp + 0x90]
mov ebp, edi
cmp dword [rsp + 0x38], 2
jne 0x14006f9ec
cmp r13d, 0xffffffff
je 0x14006f979
cmp r14d, r13d
jae 0x14006f9ec
add r14d, 2
test edi, edi
jne 0x14006f9a4
mov rcx, qword [0x1404bbcd8]
movsxd r9, ebp
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
xor ecx, ecx
mov rbx, rax
movzx eax, word [rsp + 0x34]
cmp ax, 0xa
je 0x14006f9ec
cmp ax, 0xd
je 0x14006f9c4
mov word [r12 + rbx], ax
inc esi
inc ebp
add r12, 2
dec edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x34]
mov r8d, 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
jne 0x14006f967
mov r15d, dword [rsp + 0xa8]
movsxd rax, esi
mov edx, r15d
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.1401f40b0
jmp 0x14006fad4
mov r8, rcx
mov rcx, qword [0x1404bbcd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, dword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
mov rbx, rax
mov r13d, edi
cmp r15d, 0xffffffff
je 0x14006fa3e
cmp r14d, r15d
jae 0x14006faa8
xor ecx, ecx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea r8d, [rcx + 1]
mov qword [rsp + 0x20], rcx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006faa8
cmp dword [rsp + 0x38], 1
jne 0x14006faa8
inc r14d
test edi, edi
jne 0x14006fa8c
mov rcx, qword [0x1404bbcd8]
lea edx, [rdi + 8]
movsxd r9, r13d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x14006faa8
cmp al, 0xd
je 0x14006fa33
mov byte [r12 + rbx], al
inc esi
inc r13d
inc r12
dec edi
jmp 0x14006fa33
mov r15d, dword [rsp + 0xa8]
xor ecx, ecx
cmp dword [rsp + 0x98], 0x18
movsxd rax, esi
mov edx, r15d
mov byte [rax + rbx], cl
mov rcx, rbx
jne 0x14006facf
call fcn.1401f4110
jmp 0x14006fad4
call fcn.1401f3ee0
mov rcx, qword [0x1404bbcd8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14006f8cc
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
mov r9d, r8d
or r8d, 0xffffffff
jmp 0x14006f8cc
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
xor eax, eax
mov ecx, 0x1000
mov r15d, r9d
mov r13d, r8d
mov edi, ecx
mov esi, eax
mov r14d, eax
mov r12d, eax
cmp edx, 0x18
je 0x14006fa0b
cmp edx, 2
je 0x14006fa0b
mov rcx, qword [0x1404bbcd8]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x90]
lea r8d, [r12 + 2]
lea rdx, [rsp + 0x34]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x14006f9f4
mov r15, qword [rsp + 0x90]
mov ebp, edi
cmp dword [rsp + 0x38], 2
jne 0x14006f9ec
cmp r13d, 0xffffffff
je 0x14006f979
cmp r14d, r13d
jae 0x14006f9ec
add r14d, 2
test edi, edi
jne 0x14006f9a4
mov rcx, qword [0x1404bbcd8]
movsxd r9, ebp
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
xor ecx, ecx
mov rbx, rax
movzx eax, word [rsp + 0x34]
cmp ax, 0xa
je 0x14006f9ec
cmp ax, 0xd
je 0x14006f9c4
mov word [r12 + rbx], ax
inc esi
inc ebp
add r12, 2
dec edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x34]
mov r8d, 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
jne 0x14006f967
mov r15d, dword [rsp + 0xa8]
movsxd rax, esi
mov edx, r15d
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.1401f40b0
jmp 0x14006fad4
mov r8, rcx
mov rcx, qword [0x1404bbcd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, dword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
mov rbx, rax
mov r13d, edi
cmp r15d, 0xffffffff
je 0x14006fa3e
cmp r14d, r15d
jae 0x14006faa8
xor ecx, ecx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea r8d, [rcx + 1]
mov qword [rsp + 0x20], rcx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006faa8
cmp dword [rsp + 0x38], 1
jne 0x14006faa8
inc r14d
test edi, edi
jne 0x14006fa8c
mov rcx, qword [0x1404bbcd8]
lea edx, [rdi + 8]
movsxd r9, r13d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x14006faa8
cmp al, 0xd
je 0x14006fa33
mov byte [r12 + rbx], al
inc esi
inc r13d
inc r12
dec edi
jmp 0x14006fa33
mov r15d, dword [rsp + 0xa8]
xor ecx, ecx
cmp dword [rsp + 0x98], 0x18
movsxd rax, esi
mov edx, r15d
mov byte [rax + rbx], cl
mov rcx, rbx
jne 0x14006facf
call fcn.1401f4110
jmp 0x14006fad4
call fcn.1401f3ee0
mov rcx, qword [0x1404bbcd8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140070780
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140070694]
lea ecx, [rbx + 0x28]
mov edx, ebx
call fcn.1400bbca0
xor r8d, r8d
xor edx, edx
mov ecx, ebx
mov qword [0x1404bcd18], rax
call fcn.1400bb340
xor ebx, ebx
cmp word [0x1404bcd10], bx
mov qword [0x140537d60], rax
jne 0x1400708ab
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
mov word [0x1404bcd10], di
test eax, eax
je 0x1400707f1
mov word [0x1404bcd10], bx
lea rcx, str.ws2_32.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x1404bcd40], rax
test rax, rax
je 0x1400708ab
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404bcd40]
lea rdx, str.freeaddrinfo
mov qword [0x1404bcd20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404bcd40]
lea rdx, str.getnameinfo
mov qword [0x1404bcd28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404bcd40]
lea rdx, str.WSAStringToAddressA
mov qword [0x1404bcd30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1404bcd20], rbx
mov qword [0x1404bcd38], rax
je 0x1400708ab
cmp qword [0x1404bcd28], rbx
je 0x1400708ab
cmp qword [0x1404bcd30], rbx
je 0x1400708ab
mov ecx, dword [0x1404bcd14]
test rax, rax
cmovne ecx, edi
mov dword [0x1404bcd14], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x140071488
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov rax, rdx
mov r14, rcx
test rdx, rdx
je 0x140071550
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
test rax, rax
je 0x140071550
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x1404bbcd8]
xor edx, edx
movsxd rbp, eax
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140071547
lea r9, [rsp + 0x68]
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x68], ebp
jne 0x140071535
mov r8d, ebp
mov rdx, rsi
mov rcx, r14
call fcn.140071b70
mov rbx, rax
mov rcx, qword [0x1404bbcd8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x140071568
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov rdx, rcx
mov rcx, qword [0x140537d80]
xor ebx, ebx
call fcn.1400bbb78
mov rdi, rax
test rax, rax
je 0x140071660
mov rcx, rsi
call fcn.140071784
mov eax, dword [rdi + 0x18]
mov rcx, qword [rdi + 0x10]
cdq
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
sub eax, edx
lea esi, [rbx + 1]
lea r9, [rsp + 0x78]
sar eax, 1
mov dword [rdi + 8], esi
mov r10, qword [rcx]
mov r8d, eax
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [r10 + 0x58]
test eax, eax
jne 0x14007160d
mov eax, dword [rdi + 0x18]
mov rcx, qword [rdi]
cdq
sub eax, edx
mov rdx, qword [rsp + 0x78]
sar eax, 1
mov r8d, eax
call fcn.140071a60
mov rcx, qword [rdi + 0x10]
mov r8d, dword [rsp + 0x68]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x78]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
call qword [rax + 0x98]
lea rax, [rsp + 0x70]
lea r8, [0x14007166c]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x2000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140071642
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
mov rcx, qword [rdi + 0x10]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rdi + 0x10]
mov r9d, esi
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x60]
movsxd rax, ebx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140094db0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140534eb0], 0
jne 0x140094dd5
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140534eb0], 1
mov dword [0x140534eb4], eax
mov rcx, qword [0x1404bbcd8]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140534eb4]
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 0x140094f90
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140534eb0], 0
mov ebx, ecx
jne 0x140094fb4
call fcn.140094db0
mov ecx, dword [0x140534eb4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140094fdc
call fcn.140094db0
mov ecx, dword [0x140534eb4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElemsize
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x140094ff0
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x140095030
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140094f90
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140534eb0], 0
jne 0x140094dd5
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140534eb0], 1
mov dword [0x140534eb4], eax
mov rcx, qword [0x1404bbcd8]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140534eb4]
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 0x140094f90
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140534eb0], 0
mov ebx, ecx
jne 0x140094fb4
call fcn.140094db0
mov ecx, dword [0x140534eb4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140094fdc
call fcn.140094db0
mov ecx, dword [0x140534eb4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElemsize
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x140094ff0
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x140095030
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140095090
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140534eb0], 0
mov rbx, rcx
jne 0x1400950a7
call fcn.140094db0
mov ecx, dword [0x140534eb4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
test rax, rax
jne 0x1400950cf
call fcn.140094db0
mov ecx, dword [0x140534eb4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
movsxd r8, dword [r9]
movsxd rdx, dword [r9 + 4]
mov eax, reloc.WS2_32.dll_recv
mov r10d, dword [r9 + r8*4 + 0x4c]
mov r11d, dword [r9 + r8*4 + 8]
ror r10d, 0xd
add r10d, dword [r9 + rdx*4 + 0x4c]
ror r11d, 5
add r11d, dword [r9 + rdx*4 + 8]
mov dword [r9 + r8*4 + 8], r10d
mov dword [r9 + r8*4 + 0x4c], r11d
dec r8d
mov ecx, r11d
cmovs r8d, eax
dec edx
cmovs edx, eax
mov dword [r9], r8d
mov dword [r9 + 4], edx
inc rbx
je 0x140095148
mov edx, r10d
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, r10d
shl rax, 0x20
and rax, rcx
add rsp, 0x20
pop rbx
ret
Function at 0x1400979b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x1400979f4
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x140097fd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x140098048
test r8d, r8d
je 0x140098048
mov rdx, rcx
mov rcx, qword [0x140538360]
call fcn.1400bbb78
test rax, rax
je 0x140098044
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x140098031
mov rcx, rax
call fcn.140098710
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140098060
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rdx, rcx
mov rcx, qword [0x140538360]
call fcn.1400bbb78
mov rbx, rax
test rax, rax
je 0x1400980b0
mov r8d, dword [rax + 0x20]
mov rdx, rdi
mov rcx, rax
call fcn.140098320
mov r8d, dword [rbx + 0x20]
lea rdx, [0x14023cb74]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140098320
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400980c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdx, rcx
mov rcx, qword [0x140538360]
mov edi, r8d
call fcn.1400bbb78
mov rbx, rax
test rax, rax
je 0x14009811b
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.140098320
lea rdx, [0x14023cb74]
mov r8d, edi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140098320
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret