joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004adf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14005d204]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x14004af80
mov rax, qword [0x14005d208]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14004ae3c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x14004aec5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x14004ae20
mov rcx, rdi
call fcn.14004b950
test rax, rax
mov r12, rax
je 0x14004afd2
mov rax, qword [0x14005d208]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.14004ba90
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14005d208]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14004afb5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14004aebe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14004af30
add dword [0x14005d204], 1
cmp ebx, 8
jae 0x14004aef1
test bl, 4
jne 0x14004af90
test ebx, ebx
je 0x14004aee6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x14004afa4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x14004aee6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14004af0a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x14005d208]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14004aebe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14004ad80
xor esi, esi
jmp 0x14004ae47
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x14004aee6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x14004aee6
mov rax, qword [0x14005d208]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.14004ad80
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.14004ad80
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x14004b5a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14005d260]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14005d240]
test rbx, rbx
je 0x14004b5f4
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 0x14004b5eb
test rsi, rsi
je 0x14004b5eb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14004b5d0
lea rcx, [0x14005d260]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14004b950
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140056a40]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14004b9bf
mov rcx, r9
call fcn.14004b820
test eax, eax
je 0x14004b9bf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14004b9bd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x14004b9b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14004b9bf
add rdx, 0x28
cmp rdx, r9
jne 0x14004b9a0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140009330
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
sub rsp, 0x28
call fcn.14003d020
mov rcx, qword [rsp + 0x60]
call fcn.140009e50
push rcx
sub rsp, 0x28
call fcn.14003cc00
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.14003cc00
add rsp, 0x28
pop rcx
push rax
push 0x104
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140036ee0
add rsp, 0x28
lea rcx, [rsp + 0x30]
pop rdx
call fcn.14003ccc0
push 0x104
mov rax, qword [rsp + 0x30]
mov rax, rax
push rax
push 0
push qword [rsp + 0x58]
pop rcx
pop rdx
sub rsp, 0x20
call sub.USER32.dll_MapVirtualKeyW
add rsp, 0x20
mov r15, rax
shl r15, 0x10
mov rax, r15
push rax
pop rcx
pop rdx
pop r8
call sub.USER32.dll_GetKeyNameTextW
mov rcx, qword [rsp + 0x28]
push rcx
sub rsp, 0x28
call fcn.14003cc00
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.14003cc50
add rsp, 0x28
pop rax
push rax
call fcn.14003ce90
pop rdx
add rax, rdx
jmp 0x140009404
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.14003d0c0
add rsp, 0x28
pop rax
add rsp, 0x30
pop r15
ret

Function at 0x14000941f
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.14003d020
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14003d0f0
add rsp, 0x10
mov rax, qword [rsp + 0x28]
mov rax, rax
push rax
push 1
push 0
pop rcx
pop rdx
pop r8
call sub.KERNEL32.dll_CreateMutexW
mov qword [rsp + 0x30], rax
mov r15, qword [rsp + 0x30]
and r15, r15
je 0x140009493
call sub.KERNEL32.dll_GetLastError
mov r15, rax
cmp r15, 0xb7
jne 0x140009493
mov rax, 1
jmp 0x140009496
xor rax, rax
and rax, rax
je 0x1400094eb
push qword [rsp + 0x30]
pop rcx
call sub.KERNEL32.dll_CloseHandle
movabs rdx, str.An_instance_of_the_application_is_currently_running._n_nDo_you_want_to_continue_
lea rcx, [rsp + 0x38]
call fcn.14003cda0
push 0x124
push qword [rsp + 0x40]
movabs rax, 0x1400dc038
push rax
pop rcx
pop rdx
pop r8
call fcn.14000b134
mov qword [rsp + 0x40], rax
mov r15, qword [rsp + 0x40]
cmp r15, 7
jne 0x1400094eb
jmp 0x140002780
xor rax, rax
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.14003d0c0
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.14003d0c0
add rsp, 0x28
pop rax
add rsp, 0x50
pop r15
ret
Function at 0x140009876
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.14003d020
push 0
sub rsp, 8
push 1
mov rbp, qword [rsp + 0x68]
movsxd rax, dword [rbp]
mov rax, rax
push rax
pop rcx
pop rdx
sub rsp, 0x20
call sub.USER32.dll_GetAncestor
add rsp, 0x28
mov rax, rax
push rax
pop rcx
pop rdx
call sub.USER32.dll_ShowWindow
mov rbp, qword [rsp + 0x50]
movsxd rax, dword [rbp + 0x30]
mov rax, rax
push rax
pop rcx
call sub.USER32.dll_IsWindow
and rax, rax
je 0x140009a35
push 5
mov rbp, qword [rsp + 0x58]
movsxd rax, dword [rbp + 0x30]
mov rax, rax
push rax
pop rcx
pop rdx
call sub.USER32.dll_GetWindow
mov qword [rsp + 0x28], rax
push 0xffffffffffffffec
mov rbp, qword [rsp + 0x58]
movsxd rax, dword [rbp + 0x30]
mov rax, rax
push rax
pop rcx
pop rdx
call sub.USER32.dll_GetWindowLongPtrW
mov r15, rax
or r15, 0x80000
mov rax, r15
push rax
push 0xffffffffffffffec
mov rbp, qword [rsp + 0x60]
movsxd rax, dword [rbp + 0x30]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
call sub.USER32.dll_SetWindowLongPtrW
push 2
push 0
push 0
mov rbp, qword [rsp + 0x68]
movsxd rax, dword [rbp + 0x30]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
pop r9
call sub.USER32.dll_SetLayeredWindowAttributes
push 2
push 0
push 0
push qword [rsp + 0x40]
pop rcx
pop rdx
pop r8
pop r9
call sub.USER32.dll_SetLayeredWindowAttributes
push 0xfffffffffffffff0
push qword [rsp + 0x30]
pop rcx
pop rdx
call sub.USER32.dll_GetWindowLongPtrW
mov r15, rax
and r15, 0xffffffffefffffff
mov rax, r15
push rax
push 0xfffffffffffffff0
push qword [rsp + 0x38]
pop rcx
pop rdx
pop r8
call sub.USER32.dll_SetWindowLongPtrW
push 0xfffffffffffffff0
mov rbp, qword [rsp + 0x58]
movsxd rax, dword [rbp + 0x30]
mov rax, rax
push rax
pop rcx
pop rdx
call sub.USER32.dll_GetWindowLongPtrW
mov r15, rax
or r15, 0x20000000
and r15, 0xffffffffbfffffff
mov rax, r15
push rax
push 0xfffffffffffffff0
mov rbp, qword [rsp + 0x60]
movsxd rax, dword [rbp + 0x30]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
call sub.USER32.dll_SetWindowLongPtrW
push 0
mov rbp, qword [rsp + 0x58]
movsxd rax, dword [rbp + 0x30]
mov rax, rax
push rax
pop rcx
pop rdx
call sub.USER32.dll_SetParent
mov rbp, qword [rsp + 0x50]
movsxd rax, dword [rbp]
mov rax, rax
push rax
mov rbp, qword [rsp + 0x58]
movsxd rax, dword [rbp + 0x30]
mov rax, rax
push rax
pop rcx
pop rdx
call sub.USER32.dll_SetParent
push qword [0x1400e8e38]
pop rcx
call fcn.14000a3a8
and rax, rax
je 0x140009a72
push 0
lea rax, [0x14000951b]
mov rax, rax
push rax
pop rcx
pop rdx
call fcn.14000a444
mov qword [rsp + 0x30], rax
push 0x7d0
push qword [rsp + 0x38]
pop rcx
pop rdx
call fcn.14000a524
xor rax, rax
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140009e50
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 [0x1400e60a4]
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 0x14000a444
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 0x14000a50a
lea rcx, [0x1400e9980]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e8f38]
jmp 0x14000a4ce
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000a4cb
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1400e8f38]
mov rdx, rsi
call fcn.14003c2dc
jmp 0x14000a4ce
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000a49b
mov rdx, qword [reloc.WS2_32.dll_accept]
lea rcx, [0x1400e8f38]
mov rdi, rdx
inc rdx
mov qword [reloc.WS2_32.dll_accept], rdx
lea edx, [rbx + 0x20]
call fcn.14003c324
lea rcx, [0x1400e9980]
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 0x14000b280
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14000b2f7
movsxd rdx, ecx
lea rcx, [0x14000b1dc]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x1400e8f40]
test rbx, rbx
je 0x14000b36a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000b2ed
cmp byte [rbx + 0x20], 0
je 0x14000b2ed
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 0x14000b2b3
jmp 0x14000b36a
mov rbx, qword [0x1400e8f40]
test rbx, rbx
je 0x14000b36a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000b362
cmp byte [rbx + 0x21], 0
je 0x14000b326
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14000b352
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, [0x1400e8f40]
call fcn.14003c2dc
mov rbx, rdi
test rdi, rdi
jne 0x14000b303
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140029090
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400e8f68], 0
jne 0x1400290b5
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400e8f68], 1
mov dword [0x1400e8f6c], eax
mov rcx, qword [0x1400e8d80]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400e8f6c]
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 0x140029270
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1400e8f68], 0
mov ebx, ecx
jne 0x140029294
call fcn.140029090
mov ecx, dword [0x1400e8f6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x1400292bc
call fcn.140029090
mov ecx, dword [0x1400e8f6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, sendto
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 0x1400292d0
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 0x140029310
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140029270
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400e8f68], 0
jne 0x1400290b5
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400e8f68], 1
mov dword [0x1400e8f6c], eax
mov rcx, qword [0x1400e8d80]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400e8f6c]
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 0x140029270
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1400e8f68], 0
mov ebx, ecx
jne 0x140029294
call fcn.140029090
mov ecx, dword [0x1400e8f6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x1400292bc
call fcn.140029090
mov ecx, dword [0x1400e8f6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, sendto
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 0x1400292d0
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 0x140029310
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140029370
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400e8f68], 0
mov rbx, rcx
jne 0x140029387
call fcn.140029090
mov ecx, dword [0x1400e8f6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
test rax, rax
jne 0x1400293af
call fcn.140029090
mov ecx, dword [0x1400e8f6c]
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 0x140029428
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 0x14002bd28
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13d, ecx
mov rcx, qword [0x1400e9ba0]
mov rsi, r9
mov r14, r8
mov r15, rdx
xor ebx, ebx
call fcn.14003b6b8
mov r12, rax
test r15, r15
je 0x14002be6a
mov rcx, qword [0x1400e8d80]
lea edx, [rbx + 8]
mov r8d, 0x98
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ebp, [rbx + 1]
mov rcx, r15
or dword [rax + 4], 0xffffffff
mov dword [rax], ebp
mov rdi, rax
call sub.msvcrt.dll__wcsdup
lea rcx, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov ecx, dword [rsp + 0x80]
mov qword [rdi + 0x60], rax
mov dword [rdi + 0x40], ecx
mov eax, dword [r12]
mov dword [rdi + 0x44], eax
mov eax, dword [r12 + 4]
mov dword [rdi + 0x80], r13d
mov dword [rdi + 0x48], eax
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x88], rsi
mov qword [rdi + 0x78], rax
test bpl, cl
je 0x14002be5b
test rsi, rsi
je 0x14002be14
mov rcx, qword [0x1400e8d80]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi + 0x70], rax
test rax, rax
je 0x14002be0e
mov r8, rsi
mov rdx, r14
mov rcx, rax
call sub.msvcrt.dll_memcpy
cmp qword [rdi + 0x70], rbx
je 0x14002be51
lea rax, [rsp + 0x68]
lea r8, [0x14002be8c]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14002be49
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002be4d
mov ebp, dword [rsp + 0x68]
test ebp, ebp
jne 0x14002be67
mov rcx, rdi
call fcn.14002b7b4
jmp 0x14002be6a
mov rcx, rdi
mov qword [rdi + 0x70], r14
call fcn.14002b850
mov rbx, rdi
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002c0a0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x14002bfb4]
lea ecx, [rbx + 0x28]
mov edx, ebx
call fcn.14003b9e4
xor r8d, r8d
xor edx, edx
mov ecx, ebx
mov qword [0x1400e90d8], rax
call fcn.14003b750
xor ebx, ebx
cmp word [0x1400e90d0], bx
mov qword [0x1400e9be0], rax
jne 0x14002c1c3
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
mov word [0x1400e90d0], di
test eax, eax
je 0x14002c111
mov word [0x1400e90d0], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1400e9100], rax
test rax, rax
je 0x14002c1c3
lea rdx, [0x1400bfb70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400e9100]
lea rdx, [0x1400bfb80]
mov qword [0x1400e90e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400e9100]
lea rdx, str.getnameinfo
mov qword [0x1400e90e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400e9100]
lea rdx, str.WSAStringToAddressA
mov qword [0x1400e90f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400e90e0], rbx
mov qword [0x1400e90f8], rax
je 0x14002c1c3
cmp qword [0x1400e90e8], rbx
je 0x14002c1c3
cmp qword [0x1400e90f0], rbx
je 0x14002c1c3
mov ecx, dword [0x1400e90d4]
test rax, rax
cmovne ecx, edi
mov dword [0x1400e90d4], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x14002c8fc
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
cmp dword [rcx], 1
mov rax, rdx
mov rdi, rcx
jne 0x14002c929
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x14002c971
cmp qword [rcx + 0x38], rsi
je 0x14002c971
cmp r8d, dword [rcx + 0x40]
mov rdx, qword [rcx + 0x48]
mov esi, r8d
cmovg esi, dword [rcx + 0x40]
mov rcx, rax
movsxd rbx, esi
mov r8, rbx
call sub.msvcrt.dll_memcpy
sub dword [rdi + 0x40], esi
add qword [rdi + 0x48], rbx
cmp dword [rdi + 0x40], 0
jne 0x14002c971
mov r8, qword [rdi + 0x38]
mov rcx, qword [0x1400e8d80]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x38], 0
mov rbx, qword [rsp + 0x30]
movsxd rax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14002c9e4
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
cmp dword [rcx], 1
mov r10d, r8d
mov r11, rdx
jne 0x14002ca02
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
jmp 0x14002ca40
cmp byte [rcx + 0x20], 0
lea r8, [rcx + 4]
mov edx, 0x1c
jne 0x14002ca16
mov edx, reloc.WS2_32.dll_recv
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14002ca24
mov rcx, qword [rax]
jmp 0x14002ca28
mov rcx, qword [rcx + 0x30]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r8
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
add rsp, 0x38
ret

Function at 0x14002dcb0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp qword [0x1400e9280], 0
jne 0x14002dd16
lea rcx, [0x1400e9280]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14002dd02
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x1400e9288]
imul qword [0x1400e9280]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x1400e9280], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x1400e9280], 0
jne 0x14002dd16
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x14002dd3c
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x1400e9288]
cqo
idiv qword [0x1400e9280]
add rsp, 0x28
ret