joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14020c5b8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov r15, rcx
mov esi, edx
mov r11, qword [rax + 8]
mov rax, qword [rcx + 0x28]
mov ecx, dword [r11 + 0x30]
mov r8d, ecx
mov r10, qword [rax + 8]
mov rbp, qword [r11]
mov dword [rsp + 0x80], ecx
movsxd rax, dword [r10 + 0x30]
cmp eax, ecx
mov r12, rax
cmovl r8d, eax
xor ebx, ebx
imul rsi, rax
mov dword [rsp + 0x88], r8d
cmp eax, ecx
je 0x14020c620
cmp byte [rbp + 0x10], bl
lea eax, [rbx + 8]
cmovne ebx, eax
mov rdi, rsi
sub rdi, r12
jmp 0x14020c6fb
cmp rdi, rsi
jge 0x14020c703
and qword [rsp + 0x20], 0
mov rax, rdi
cqo
movsxd r13, ecx
idiv r13
mov r14, rdx
xor edx, edx
lea r10d, [rax + 1]
mov rax, qword [r15 + 8]
mov rcx, qword [rax + 8]
mov eax, dword [0x1406ea814]
div dword [rcx + 0x30]
inc eax
cmp r10d, eax
je 0x14020c6f1
xor r9d, r9d
lea r8, [rsp + 0x20]
mov edx, r10d
mov rcx, rbp
call qword [rbp + 0x108]
mov ebx, eax
test eax, eax
jne 0x14020c6e7
mov rcx, qword [rsp + 0x20]
call fcn.14021ad44
mov ebx, eax
test eax, eax
jne 0x14020c6e7
mov rax, qword [rsp + 0x20]
movsxd r8, dword [rsp + 0x88]
add r14, qword [rax + 8]
mov rax, rdi
cqo
mov rcx, r14
idiv r12
add rdx, qword [rsp + 0x90]
call fcn.14011c9b0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
mov byte [rcx], bl
test rdi, rdi
jne 0x14020c6e7
cmp dword [rsp + 0x98], edi
jne 0x14020c6e7
mov rax, qword [r15 + 0x28]
mov rcx, qword [rax + 8]
mov eax, dword [rcx + 0x3c]
bswap eax
mov dword [r14 + 0x1c], eax
mov rcx, qword [rsp + 0x20]
call fcn.14021b310
mov ecx, dword [rsp + 0x80]
add rdi, r13
test ebx, ebx
je 0x14020c62b
mov eax, ebx
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140220fbc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r9, dword [rcx + 0xc]
movsxd r11, r8d
test r8d, r8d
jle 0x14022100f
mov rdi, qword [rcx]
mov r10, r9
movsxd rsi, dword [rcx + 8]
xor ebx, ebx
mov al, byte [rbx + rdx]
inc rbx
xor byte [r10 + rdi], al
inc r10
lea eax, [r9 + 1]
xor r9d, r9d
cmp r10, rsi
cmovl r9d, eax
xor eax, eax
cmp r10, rsi
cmovl rax, r10
mov r10, rax
cmp rbx, r11
jl 0x140220fe3
add dword [rcx + 0x10], r8d
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov dword [rcx + 0xc], r9d
ret
Function at 0x140224da0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor edi, edi
movsxd rsi, r8d
xor ebp, ebp
xor r13d, r13d
mov r10, rcx
mov r14, rcx
mov rbx, rsi
lea r11d, [rdi + 1]
lea r15d, [rdi + 3]
cmp r9b, r11b
jne 0x140224de5
mov r8d, r11d
jmp 0x140224e20
movzx eax, r9b
mov ecx, r15d
sub ecx, eax
mov r8d, 2
movsxd rax, ecx
jmp 0x140224e05
cmp byte [rax + r10], dil
jne 0x140224e0a
add ecx, r8d
add rax, r8
cmp rax, rbx
jl 0x140224df9
cmp ecx, esi
movzx eax, r9b
movsxd rbx, ecx
setl r13b
and rax, r11
add r10, rax
xor rbx, r11
lea rdx, [r14 + rbx]
lea rcx, [0x140699210]
cmp r10, rdx
jae 0x140224e61
movzx eax, byte [r10]
test byte [rax + rcx], r11b
je 0x140224e45
mov eax, r8d
add r10, rax
cmp r10, rdx
jb 0x140224e30
cmp r10, rdx
jae 0x140224e61
cmp byte [r10], 0x2d
jne 0x140224e55
mov ebp, r11d
jmp 0x140224e5b
cmp byte [r10], 0x2b
jne 0x140224e61
mov eax, r8d
add r10, rax
mov r14, r10
jmp 0x140224e72
cmp byte [r10], 0x30
jne 0x140224e77
mov eax, r8d
add r10, rax
cmp r10, rdx
jb 0x140224e66
xor r9d, r9d
mov r12d, r8d
cmp r10, rdx
jae 0x140224ed4
mov rbx, r10
movsx rsi, byte [rbx]
lea eax, [rsi - 0x30]
cmp eax, 9
ja 0x140224eae
lea rcx, [rdi - 6]
add r9d, r8d
lea rcx, [rdi + rcx*4]
add rbx, r12
lea rdi, [rsi + rcx*2]
movsxd rcx, r9d
add rcx, r10
cmp rcx, rdx
jb 0x140224e85
movabs rbx, 0x7fffffffffffffff
cmp rdi, rbx
jbe 0x140224ed4
mov rsi, qword [rsp + 0x58]
mov eax, ebp
neg eax
sbb rcx, rcx
neg rcx
add rcx, rbx
mov qword [rsi], rcx
jmp 0x140224ee3
mov rsi, qword [rsp + 0x58]
test ebp, ebp
je 0x140224ee0
neg rdi
mov qword [rsi], rdi
xor ebx, ebx
test r9d, r9d
jne 0x140224eef
cmp r14, r10
je 0x140224f25
test r13d, r13d
jne 0x140224f25
movsxd rcx, r9d
add rcx, r10
cmp rcx, rdx
jae 0x140224f28
mov edi, r9d
lea r14, [0x140699210]
movzx eax, byte [rcx]
test byte [rax + r14], r11b
je 0x140224f25
add edi, r8d
add rcx, r12
movsxd rax, edi
add rax, r10
cmp rax, rdx
jae 0x140224f28
jmp 0x140224f09
mov ebx, r11d
imul eax, r8d, 0x13
cmp r9d, eax
jge 0x140224f35
mov eax, ebx
jmp 0x140224f78
jg 0x140224f49
mov edx, r8d
mov rcx, r10
call fcn.140224f9c
mov r11d, eax
test eax, eax
js 0x140224f31
mov ecx, ebp
neg ecx
movabs rcx, 0x7fffffffffffffff
sbb rdx, rdx
neg rdx
add rdx, rcx
mov qword [rsi], rdx
test r11d, r11d
jle 0x140224f6f
mov eax, 2
jmp 0x140224f78
test ebp, ebp
cmovne r15d, ebx
mov eax, r15d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140225f24
Capabilities:
Create thread

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 r15
sub rsp, 0x30
and qword [rcx], 0
mov rdi, rcx
mov r15d, Ordinal_41
mov rsi, r8
mov ecx, r15d
mov rbp, rdx
call fcn.1402282bc
mov rbx, rax
test rax, rax
jne 0x140225f65
lea eax, [rbx + 7]
jmp 0x140225fe1
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x140225fb6
mov rax, qword [0x1406f02e8]
test rax, rax
je 0x140225f81
mov ecx, reloc.WLDAP32.dll_Ordinal_200
call rax
test eax, eax
jne 0x140225fb6
lea rax, [rbx + 8]
mov qword [rbx + 0x10], rbp
mov qword [rsp + 0x28], rax
lea r8, [0x140226004]
and dword [rsp + 0x20], 0
mov r9, rbx
xor edx, edx
mov qword [rbx + 0x18], rsi
xor ecx, ecx
call fcn.140158c60
mov qword [rbx], rax
test rax, rax
jne 0x140225fc3
mov r8, r15
xor edx, edx
mov rcx, rbx
call fcn.14011d670
cmp qword [rbx + 0x10], 0
jne 0x140225fdc
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rsi
mov dword [rbx + 8], eax
call rbp
mov qword [rbx + 0x20], rax
mov qword [rdi], rbx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x14022bf2c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x140
mov rbp, r8
lea rcx, [rsp + 0x30]
mov ebx, edx
xor edi, edi
xor edx, edx
mov qword [rax + 8], rdi
mov r8d, 0x104
mov esi, r9d
call fcn.14011d670
lea rdx, [rsp + 0x150]
mov ecx, ebx
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x14022bfc3
mov r8, qword [rsp + 0x150]
test r8, r8
je 0x14022bfc3
lea rax, [rsp + 0x30]
xor r9d, r9d
mov edx, esi
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea r8, [rsp + 0x30]
mov rcx, rbp
lea rdx, [0x140695e34]
call fcn.140008754
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
lea r11, [rsp + 0x140]
mov al, dil
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140239100
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
or eax, 0xffffffff
movzx ecx, byte [rcx]
mov r9d, edx
test cl, cl
je 0x1402391a7
nop dword [rax]
nop dword [rax + rax]
movzx r8d, cl
lea r10, [r10 + 1]
xor eax, r8d
mov edx, eax
shr eax, 1
and edx, 1
neg edx
and edx, r9d
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, r9d
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, r9d
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, r9d
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, r9d
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, r9d
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, r9d
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, r9d
xor eax, ecx
movzx ecx, byte [r10]
test cl, cl
jne 0x140239120
not eax
ret
Function at 0x1402391d0
Capabilities:
Enumerate processes

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x2b0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rbp + 0x2a0], rbx
mov qword [rbp + 0x2a8], rsi
mov qword [rbp + 0x2b0], rdi
xor r13b, r13b
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140239239
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x140239240
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14023940b
movabs rbx, 0xffffffffffffff0
xor edi, edi
mov edx, 0x99
lea rcx, [rbp]
call fcn.1400160a0
nop
lea rax, [rbp + 0x5c]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140239263
inc ecx
cmp ecx, 0x3fffffff
jg 0x1402392d6
movsxd rax, ecx
add rax, rax
lea rdx, [rax + 0xf]
cmp rdx, rax
ja 0x140239289
mov rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.1400ec150
sub rsp, rdx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x1402392d6
mov byte [rbx], 0
lea eax, [rcx + rcx]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
lea r8, [rbp + 0x5c]
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, rdi
jmp 0x1402392d9
mov rbx, rdi
cmp byte [rbx], 0
jne 0x1402392e3
mov r8, rdi
jmp 0x1402392fa
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x1402392f0
mov rdx, rbx
lea rcx, [rbp]
call fcn.14000bb3c
lea r15, [rbp]
mov rbx, qword [rbp]
mov rdi, qword [rbp + 0x18]
cmp rdi, 0x10
cmovae r15, rbx
lea rcx, [rbp]
cmovae rcx, rbx
mov rax, qword [rbp + 0x10]
add rax, rcx
lea r14, [rbp]
cmp rdi, 0x10
cmovae r14, rbx
mov rsi, rax
sub rsi, r14
cmp r14, rax
mov eax, 0
cmova rsi, rax
test rsi, rsi
je 0x14023936e
mov ebx, eax
nop
movsx ecx, byte [rbx + r14]
call fcn.140155970
mov byte [rbx + r15], al
inc rbx
cmp rbx, rsi
jne 0x140239350
mov rdi, qword [rbp + 0x18]
mov rbx, qword [rbp]
lea rcx, [rbp]
cmp rdi, 0x10
cmovae rcx, rbx
mov edx, 0x3fdbc7d9
call fcn.140239100
cmp eax, 0xc3a3021b
je 0x1402393f2
cmp rdi, 0x10
jb 0x1402393c5
lea rax, [rdi + 1]
cmp rax, 0x1000
jb 0x1402393bd
test bl, 0x1f
jne 0x1402393ec
mov rax, qword [rbx - 8]
cmp rax, rbx
jae 0x1402393e6
sub rbx, rax
cmp rbx, 8
jb 0x1402393e0
cmp rbx, 0x27
ja 0x1402393da
mov rbx, rax
mov rcx, rbx
call fcn.1400eb7f4
lea rdx, [rbp + 0x30]
mov rcx, r12
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x1402393fe
jmp 0x140239240
call fcn.140128ff4
int3
call fcn.140128ff4
int3
call fcn.140128ff4
int3
call fcn.140128ff4
nop
mov r13b, 1
lea rcx, [rbp]
call fcn.14000c7e0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, r13b
mov rbx, qword [rbp + 0x2a0]
mov rsi, qword [rbp + 0x2a8]
mov rdi, qword [rbp + 0x2b0]
lea rsp, [rbp + 0x270]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140244030
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov edx, 8
xor dil, dil
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, 0xa7
lea rcx, [rsp + 0x30]
mov rbx, rax
mov dword [rax], 1
call fcn.1400160a0
cmp qword [rax + 0x18], 0x10
jb 0x14024406d
mov rax, qword [rax]
mov rcx, rax
call sub.WS2_32.dll_inet_addr
mov dword [rbx + 4], eax
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x1402440c8
mov rcx, qword [rsp + 0x30]
inc rax
cmp rax, 0x1000
jb 0x1402440c3
test cl, 0x1f
jne 0x14024417b
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140244181
sub rcx, rax
cmp rcx, 8
jb 0x140244187
cmp rcx, 0x27
ja 0x14024418d
mov rcx, rax
call fcn.1400eb7f4
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x68], rsi
call fcn.14002e5b0
cmp qword [rax + 0x18], 0x10
jb 0x1402440e1
mov rax, qword [rax]
mov edx, 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x60]
mov r9, rbx
mov qword [rsp + 0x20], rcx
mov rcx, rax
lea r8d, [rdx + 7]
call sub.DNSAPI.dll_DnsQuery_A
mov esi, eax
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x14024414a
mov rcx, qword [rsp + 0x30]
inc rax
cmp rax, 0x1000
jb 0x140244145
test cl, 0x1f
jne 0x140244193
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140244199
sub rcx, rax
cmp rcx, 8
jb 0x14024419f
cmp rcx, 0x27
ja 0x1402441a5
mov rcx, rax
call fcn.1400eb7f4
test esi, esi
jne 0x14024415e
mov rcx, qword [rsp + 0x60]
lea edx, [rsi + 1]
mov dil, 1
call sub.DNSAPI.dll_DnsFree
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x68]
movzx eax, dil
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.140128ff4
int3
call fcn.140128ff4
int3
call fcn.140128ff4
int3
call fcn.140128ff4
int3
call fcn.140128ff4
int3
call fcn.140128ff4
int3
call fcn.140128ff4
int3
call fcn.140128ff4
int3

Function at 0x140244200
Capabilities:
Create thread
Terminate thread

Disassembly:
sub rsp, 0x38
mov eax, dword [0x1406f4cd0]
cmp dword [0x1406f4cd4], eax
je 0x140244227
mov dword [0x1406f4cd4], eax
mov dword [0x1406f4cd8], 0
add rsp, 0x38
ret
mov eax, dword [0x1406f4cd8]
inc eax
mov dword [0x1406f4cd8], eax
cmp eax, 0x708
jl 0x14024428e
mov rcx, qword [0x1406f4cf8]
xor edx, edx
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x140244284
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, section..code
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1406f4cf8], rax
mov dword [0x1406f4cd8], 0
add rsp, 0x38
ret
Function at 0x140003500
Capabilities:
Execute command
Set console window title

Disassembly:
sub rsp, 0x28
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.__Connections_______n
call fcn.140003600
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x1400083d8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x1400083dc]
call fcn.140003600
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x1400083dc]
call fcn.140003600
lea rcx, str._H_W_I_D___S_P_O_O_F_E_R
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400043ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004436
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004436
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004436
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004436
cmp dword [rcx + 0x84], 0xe
jbe 0x140004436
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004438
xor al, al
add rsp, 0x28
ret
Function at 0x140003444
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 [0x1401d90b0]
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 0x140004320
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140004397
movsxd rdx, ecx
lea rcx, [0x14000427c]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x1401db550]
test rbx, rbx
je 0x14000440a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000438d
cmp byte [rbx + 0x20], 0
je 0x14000438d
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 0x140004353
jmp 0x14000440a
mov rbx, qword [0x1401db550]
test rbx, rbx
je 0x14000440a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140004402
cmp byte [rbx + 0x21], 0
je 0x1400043c6
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x1400043f2
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, [0x1401db550]
call fcn.140014dbc
mov rbx, rdi
test rdi, rdi
jne 0x1400043a3
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140004b40
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1401db568], 0
jne 0x140004b65
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401db568], 1
mov dword [0x1401db56c], eax
mov rcx, qword [0x1401db400]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1401db56c]
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 0x140004d20
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1401db568], 0
mov ebx, ecx
jne 0x140004d44
call fcn.140004b40
mov ecx, dword [0x1401db56c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140004d6c
call fcn.140004b40
mov ecx, dword [0x1401db56c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, 0x11
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 0x140004d80
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 0x140004dc0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004d20
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1401db568], 0
jne 0x140004b65
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401db568], 1
mov dword [0x1401db56c], eax
mov rcx, qword [0x1401db400]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1401db56c]
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 0x140004d20
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1401db568], 0
mov ebx, ecx
jne 0x140004d44
call fcn.140004b40
mov ecx, dword [0x1401db56c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140004d6c
call fcn.140004b40
mov ecx, dword [0x1401db56c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, 0x11
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 0x140004d80
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 0x140004dc0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140004e20
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1401db568], 0
mov rbx, rcx
jne 0x140004e37
call fcn.140004b40
mov ecx, dword [0x1401db56c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
test rax, rax
jne 0x140004e5f
call fcn.140004b40
mov ecx, dword [0x1401db56c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
movsxd r8, dword [r9]
movsxd rdx, dword [r9 + 4]
mov eax, 0x10
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 0x140004ed8
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