joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f6a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x13c0
call fcn.140079210
sub rsp, rax
mov ebx, 1
mov dword [0x14013c274], 0xffffffff
mov ecx, 0x1571
lea r9, [0x14013aef4]
mov dword [0x14013aef4], ecx
mov r8d, ebx
lea edx, [rbx + 3]
nop dword [rax]
nop dword [rax + rax]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, r8d
inc r8d
mov dword [rdx + r9], ecx
add rdx, 4
cmp rdx, 0x9c0
jl 0x14001f6f0
xor edi, edi
mov dword [0x14013aef0], 0x270
mov dword [0x14013c278], edi
mov dword [0x14013c27c], 0xffffffff
mov dword [0x14013c280], 0xffff0000
mov dword [0x14013c284], 0xffff0000
call fcn.14007ab44
mov dword [rsp + 0x34], eax
mov rdx, rbx
mov dword [rsp + 0x13b4], 0xffffffff
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul ecx, ecx, 0x6c078965
add ecx, ebx
inc ebx
mov dword [rsp + rdx*4 + 0x34], ecx
mov eax, ecx
inc rdx
cmp rdx, 0x270
jl 0x14001f760
mov dword [rsp + 0x30], 0x270
lea rcx, [0x14013aef0]
lea rax, [rsp + 0x30]
mov edx, Ordinal_41
nop dword [rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x14001f7a0
mov rax, qword [rax]
lea r11, [rsp + 0x13c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov qword [rcx], rax
lea rax, [0x14013aef0]
mov dword [rsp + 0x13d0], 0xff0000
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x24], 0xffffffff
mov rcx, qword [rsp + 0x20]
mov qword [0x14013c278], rcx
mov ecx, dword [rsp + 0x13d0]
mov dword [0x14013c280], ecx
mov dword [rsp + 0x13d0], 0xffff0000
mov ecx, dword [rsp + 0x13d0]
mov dword [0x14013c284], ecx
mov rsp, r11
pop rdi
ret
Function at 0x14001fa50
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov r9d, 0x270
mov rbx, rcx
cmp eax, r9d
jne 0x14001faab
lea r8, [rcx + 8]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x14001fa70
jmp 0x14001fab7
cmp eax, 0x4e0
jb 0x14001fab7
call fcn.14001fb00
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret

Function at 0x14001fb00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r10, rcx
lea r9, [rcx + 0x9c4]
mov r11d, 0xe3
mov edx, dword [r9]
xor edx, dword [r9 + 4]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x630]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r11, 1
jne 0x14001fb10
lea r9, [r10 + 0xd50]
mov r11d, 0x18c
nop word [rax + rax]
mov edx, dword [r9]
xor edx, dword [r9 + 4]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 - 0xd50]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r11, 1
jne 0x14001fb60
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov dword [r10], r11d
ret
Function at 0x140020c40
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rbx
push rsi
sub rsp, 0x68
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebx, edx
mov rsi, rcx
test rcx, rcx
je 0x140020e17
cmp ebx, 0x10
jb 0x140020e17
mov eax, dword [rcx + rbx - 0x10]
lea rdx, [rcx + rbx]
mov qword [rsp + 0x98], rdi
xor dil, dil
mov qword [rsp + 0x50], r15
cmp eax, 0x92376534
jne 0x140020ca3
cmp dword [rdx - 4], 0x89012414
jne 0x140020ca3
mov r15d, dword [rdx - 8]
sub ebx, r15d
sub ebx, 0x10
mov eax, ebx
jmp 0x140020cd5
cmp eax, 0x2cdcace1
jne 0x140020e04
cmp dword [rdx - 4], 0xec342910
jne 0x140020e04
movzx eax, word [rdx - 0xc]
movzx ecx, word [rdx - 0xa]
sub ebx, eax
mov r15d, dword [rdx - 8]
sub ebx, ecx
sub ebx, r15d
add eax, ecx
sub ebx, 0x10
add eax, ebx
mov qword [rsp + 0x90], rbp
mov ebp, eax
add rbp, rsi
je 0x140020dfc
mov qword [rsp + 0x60], r12
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
mov r12d, 1
mov qword [rsp + 0x58], r14
mov r9d, r12d
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
lea rcx, [rsp + 0x38]
xor r14b, r14b
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140020df2
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [0x140131dc0]
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov r8d, __WSAFDIsSet
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140020dda
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140020dcf
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140020dc4
mov r9, qword [rsp + 0x40]
mov r8d, r15d
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
movzx r14d, r14b
cmovne r14d, r12d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test r14b, r14b
movzx edi, dil
cmovne edi, r12d
mov r12, qword [rsp + 0x60]
mov r14, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x90]
mov r15, qword [rsp + 0x50]
movzx eax, dil
mov rdi, qword [rsp + 0x98]
jmp 0x140020e19
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400784c0
add rsp, 0x68
pop rsi
pop rbx
ret

Function at 0x140021460
Capabilities:
Access peb ldr_data

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, rcx
xor ecx, ecx
mov dword [rsp + 0x20], ecx
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x20]
movzx r8d, word [rax + 0x60]
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 7
mov word [rbx], cx
mov rcx, rbx
shr r8, 1
call fcn.140007ad0
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x140021510
Capabilities:
Access peb ldr_data

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, rcx
xor ecx, ecx
mov dword [rsp + 0x20], ecx
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x20]
movzx r8d, word [rax + 0x70]
mov rdx, qword [rax + 0x78]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 7
mov word [rbx], cx
mov rcx, rbx
shr r8, 1
call fcn.140007ad0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x140027840
Capabilities:
Hash data using sha1

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xf0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rdx
xor esi, esi
mov dword [rsp + 0x20], esi
mov dword [r11 - 0x48], 0x67452301
mov dword [r11 - 0x44], 0xefcdab89
mov dword [r11 - 0x40], 0x98badcfe
mov dword [r11 - 0x3c], 0x10325476
mov dword [r11 - 0x38], 0xc3d2e1f0
mov qword [r11 - 0x50], rsi
mov qword [r11 - 0x58], rsi
lea rdx, [rcx + 0x40]
lea r8d, [rsi + 4]
lea rcx, [rsp + 0x60]
call fcn.140008410
lea rdx, [rbx + 0x44]
lea r8d, [rsi + 4]
lea rcx, [rsp + 0x60]
call fcn.140008410
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x60]
call fcn.1400084e0
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
cmp qword [rdi + 0x18], 8
jb 0x1400278fd
mov rax, qword [rdi]
jmp 0x140027900
mov rax, rdi
mov word [rax], si
mov dword [rsp + 0x20], 1
cmp qword [rdi + 0x10], 0x28
ja 0x140027946
cmp qword [rdi + 0x18], 0x28
je 0x140027946
mov rbx, qword [rdi + 0x10]
jae 0x14002792f
mov r8, rbx
mov edx, Ordinal_41
mov rcx, rdi
call fcn.140008020
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 8
jb 0x14002793f
mov rax, qword [rdi]
jmp 0x140027942
mov rax, rdi
mov word [rax + rbx*2], si
lea rbx, [rsp + 0xd0]
nop
movzx r8d, byte [rbx]
lea rdx, str._02x
lea rcx, [rsp + 0x38]
call fcn.1400211c0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call fcn.140017b60
nop
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x140027996
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.140007ea0
inc rbx
lea rax, [rsp + 0xe4]
cmp rbx, rax
jne 0x140027950
mov rax, rdi
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.1400784c0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400279d0
Capabilities:
Hash data using sha1

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rbp + 8], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor ebx, ebx
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rbx
cmp qword [rcx + 0x18], 8
jb 0x140027a20
mov rax, qword [rcx]
jmp 0x140027a23
mov rax, rdi
mov word [rax], bx
mov byte [rcx + 0x20], 0
mov qword [rcx + 0x28], rbx
mov qword [rcx + 0x30], rbx
mov qword [rcx + 0x38], rbx
mov dword [rbp - 0x30], 0x67452301
mov dword [rbp - 0x2c], 0xefcdab89
mov dword [rbp - 0x28], 0x98badcfe
mov dword [rbp - 0x24], 0x10325476
mov dword [rbp - 0x20], 0xc3d2e1f0
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x40], reloc.WLDAP32.dll_Ordinal_32
mov dword [rbp - 0x80], edx
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x80]
call fcn.1400084e0
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
xor r8d, r8d
lea edx, [r8 + 0x28]
lea rcx, [rsp + 0x60]
call fcn.140008020
mov qword [rsp + 0x70], rbx
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rax, qword [rsp + 0x60]
mov word [rax], bx
lea rbx, [rbp - 0x10]
nop word [rax + rax]
movzx r8d, byte [rbx]
lea rdx, str._02x
lea rcx, [rsp + 0x40]
call fcn.1400211c0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140017b60
nop
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x140027b08
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140007ea0
inc rbx
lea rax, [rbp + 4]
cmp rbx, rax
jne 0x140027ac0
lea rax, [rsp + 0x60]
cmp rdi, rax
je 0x140027b33
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140007c20
nop
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x140027b51
inc r8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.140007ea0
nop
mov rax, rdi
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1400784c0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140029840
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub rsp, 8
mov r11, qword [rdx + 0x20]
mov r9, rcx
sub r11, qword [rdx + 0x18]
mov r10, qword [rdx]
add r10, qword [rdx + 0x18]
je 0x1400298c3
mov qword [rsp + 0x10], rbx
movzx ebx, byte [rcx]
mov qword [rsp], rdi
movzx edi, byte [rcx + 1]
test r11, r11
je 0x1400298b3
nop dword [rax]
inc bl
lea r10, [r10 + 1]
movzx r8d, bl
add r8, r9
add dil, byte [r8 + 2]
movzx ecx, byte [r8 + 2]
movzx edx, dil
movzx eax, byte [rdx + r9 + 2]
mov byte [r8 + 2], al
movzx eax, cl
mov byte [rdx + r9 + 2], cl
add al, byte [r8 + 2]
movzx eax, al
movzx ecx, byte [rax + r9 + 2]
xor byte [r10 - 1], cl
sub r11, 1
jne 0x140029870
mov byte [r9], bl
mov rbx, qword [rsp + 0x10]
mov byte [r9 + 1], dil
mov rdi, qword [rsp]
add rsp, 8
ret
Function at 0x14002e1c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x418], 0
lea rax, vtable.Win32xx::CNotSupportedException.0
mov qword [rcx], rax
mov edi, edx
mov rbx, rcx
je 0x14002e1ef
add rcx, 0x216
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, vtable.std::exception.0
lea rcx, [rbx + 8]
mov qword [rbx], rax
call fcn.14009cc64
test dil, 1
je 0x14002e215
mov edx, 0x420
mov rcx, rbx
call fcn.140078f0c
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002e460
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x450
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x470], rbx
mov rdi, rdx
mov rbx, rcx
lea rax, vtable.Win32xx::CDC.0
mov qword [rcx], rax
mov ecx, 0x98
call fcn.140078818
mov qword [rsp + 0x468], rax
mov rcx, rax
call fcn.14002e2b0
nop
mov qword [rbx + 8], rax
lea rax, vtable.Win32xx::CClientDC.0
mov qword [rbx], rax
test rdi, rdi
jne 0x14002e4c5
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rdi, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDC]
test rax, rax
jne 0x14002e540
lea rdx, str.GetDC_failed
lea rcx, [rsp + 0x30]
call fcn.14002e0f0
lea rax, vtable.Win32xx::CResourceException.0
mov qword [rsp + 0x30], rax
lea rcx, str._CResourceException_thrown__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.GetDC_failed
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, reloc.WS2_32.dll_ioctlsocket
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rsp + 0x448], 0
je 0x14002e52f
lea rcx, [rsp + 0x246]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [0x14012e480]
lea rcx, [rsp + 0x30]
call fcn.14009d9d8
mov rdx, rax
mov rcx, rbx
call fcn.14002ebf0
mov rax, qword [rbx + 8]
mov byte [rax + 0x84], 1
mov rax, rbx
mov rbx, qword [rsp + 0x470]
add rsp, 0x450
pop rdi
ret
Function at 0x14002e7c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x450
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x470], rbx
mov rdi, rdx
mov rbx, rcx
lea rax, vtable.Win32xx::CDC.0
mov qword [rcx], rax
mov ecx, 0x98
call fcn.140078818
mov qword [rsp + 0x468], rax
mov rcx, rax
call fcn.14002e2b0
nop
mov qword [rbx + 8], rax
lea rax, vtable.Win32xx::CPaintDC.0
mov qword [rbx], rax
mov qword [rbx + 0x10], rdi
lea rdx, [rbx + 0x18]
mov rcx, rdi
call qword [sym.imp.USER32.dll_BeginPaint]
test rax, rax
jne 0x14002e89a
lea rdx, str.BeginPaint_failed
lea rcx, [rsp + 0x30]
call fcn.14002e0f0
lea rax, vtable.Win32xx::CResourceException.0
mov qword [rsp + 0x30], rax
lea rcx, str._CResourceException_thrown__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.BeginPaint_failed
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, reloc.WS2_32.dll_ioctlsocket
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rsp + 0x448], 0
je 0x14002e889
lea rcx, [rsp + 0x246]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [0x14012e480]
lea rcx, [rsp + 0x30]
call fcn.14009d9d8
mov rdx, rax
mov rcx, rbx
call fcn.14002ebf0
mov rax, qword [rbx + 8]
mov byte [rax + 0x84], 1
mov rax, rbx
mov rbx, qword [rsp + 0x470]
add rsp, 0x450
pop rdi
ret
Function at 0x14002f390
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov rbp, rcx
mov ecx, dword [rcx + 0x100]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14002f506
lea ecx, [rax + 0x28]
call fcn.140078818
mov r14, rax
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rax
mov dword [r14 + 0x20], eax
lea rsi, [rbp + 0xc0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lock inc dword [rsi + 0x28]
mov rdx, r14
lea rcx, [rsp + 0x28]
call fcn.1400324e0
nop
mov rcx, qword [rbp + 0x80]
lea rax, [rsp + 0x28]
cmp rax, rcx
jae 0x14002f470
mov rax, qword [rbp + 0x78]
lea rdx, [rsp + 0x28]
cmp rax, rdx
ja 0x14002f470
lea rdi, [rsp + 0x28]
sub rdi, rax
cmp rcx, qword [rbp + 0x88]
jne 0x14002f444
lea rcx, [rbp + 0x78]
call fcn.140032660
and rdi, 0xfffffffffffffff0
add rdi, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x14002f4a7
mov rax, qword [rdi]
mov qword [rcx], rax
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
test rax, rax
je 0x14002f4a7
lock inc dword [rax]
jmp 0x14002f4a7
cmp rcx, qword [rbp + 0x88]
jne 0x14002f482
lea rcx, [rbp + 0x78]
call fcn.140032660
mov rdx, qword [rbp + 0x80]
test rdx, rdx
je 0x14002f4a7
mov rax, qword [rsp + 0x28]
mov qword [rdx], rax
mov rcx, qword [rsp + 0x30]
mov qword [rdx + 8], rcx
test rcx, rcx
je 0x14002f4ac
lock inc dword [rcx]
mov rcx, qword [rsp + 0x30]
add qword [rbp + 0x80], 0x10
test rcx, rcx
je 0x14002f4e1
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14002f4e1
lea edx, [rax + 0x27]
mov rcx, qword [rsp + 0x28]
call fcn.140078f0c
mov edx, 4
mov rcx, qword [rsp + 0x30]
call fcn.140078f0c
cmp dword [rsi + 0x28], 0
jle 0x14002f4f4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lock dec dword [rsi + 0x28]
mov rdx, r14
mov ecx, dword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, r14
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140030de0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, str.COMCTL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
jne 0x140030e1f
lea rcx, str.COMMCTRL.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140030e7f
lea rdx, str.InitCommonControlsEx
mov qword [rsp + 0x40], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140030e6b
mov dword [rsp + 0x20], 8
mov dword [rsp + 0x24], 0x5ff
call fcn.14002dfb0
cmp eax, 0x1d6
jle 0x140030e60
or dword [rsp + 0x24], 0x3a00
lea rcx, [rsp + 0x20]
call rdi
test eax, eax
jne 0x140030e71
call qword [sym.imp.WS2_32.dll_recvfrom]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400784c0
add rsp, 0x30
pop rbx
ret
Function at 0x140031370
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x450
mov rdi, rcx
mov dword [rcx + 0x18], 1
xor r14d, r14d
mov rbp, rdx
mov qword [rcx + 8], r14
mov rcx, qword [0x14013ace8]
call fcn.14002f390
mov rbx, rax
cmp qword [rax + 0x18], r14
jne 0x1400313d6
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
lea rdx, [0x140031860]
mov r9d, eax
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbx + 0x18], rax
lock inc dword [rbx + 0x20]
mov rax, qword [0x14013ace8]
mov rsi, qword [rax + 0xf0]
mov qword [rbx], rdi
mov rdx, qword [rdi + 0x28]
test rdx, rdx
je 0x14003140e
lea r9, [0x1400317c0]
mov qword [rsp + 0x20], r14
mov r8, rbp
mov rcx, rsi
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
jmp 0x14003146c
mov rcx, qword [rax + 0xf8]
test rcx, rcx
jne 0x140031421
mov rcx, qword [rax + 0xf0]
mov rdx, qword [rdi + 0x20]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140031450
mov rax, qword [0x14013ace8]
mov rsi, qword [rax + 0xf8]
test rsi, rsi
jne 0x140031450
mov rsi, qword [rax + 0xf0]
mov rdx, qword [rdi + 0x20]
lea r9, [0x1400317c0]
mov r8, rbp
mov qword [rsp + 0x20], r14
mov rcx, rsi
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov qword [rbx], r14
mov rsi, rax
mov qword [rdi + 8], r14
lock dec dword [rbx + 0x20]
cmp dword [rbx + 0x20], r14d
jne 0x14003148e
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov qword [rbx + 0x18], r14
cmp rsi, 0xffffffffffffffff
jne 0x1400314e4
lea rdx, str.Dialog_creation_failed
lea rcx, [rsp + 0x30]
call fcn.14002e0f0
lea rax, vtable.Win32xx::CWinException.0
lea rcx, str._CWinException_thrown__n
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.Dialog_creation_failed
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, reloc.WS2_32.dll_ioctlsocket
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rsp + 0x448], r14d
je 0x140031513
jmp 0x140031505
lea r11, [rsp + 0x450]
mov rax, rsi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
lea rcx, [rsp + 0x246]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [0x14012e3b0]
lea rcx, [rsp + 0x30]
call fcn.14009d9d8
int3
Function at 0x140031530
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x450
xor r14d, r14d
mov rdi, rcx
mov dword [rcx + 0x18], r14d
mov rbp, rdx
mov qword [rcx + 8], r14
mov rcx, qword [0x14013ace8]
call fcn.14002f390
mov rsi, rax
mov qword [rax], rdi
mov rax, qword [0x14013ace8]
mov rdx, qword [rdi + 0x28]
mov rbx, qword [rax + 0xf0]
mov rcx, rbx
test rdx, rdx
je 0x1400315a1
lea r9, [0x1400317c0]
mov qword [rsp + 0x20], r14
mov r8, rbp
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
jmp 0x1400315fa
mov rax, qword [rax + 0xf8]
mov r8d, 5
mov rdx, qword [rdi + 0x20]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400315de
mov rax, qword [0x14013ace8]
mov rbx, qword [rax + 0xf8]
test rbx, rbx
jne 0x1400315de
mov rbx, qword [rax + 0xf0]
mov rdx, qword [rdi + 0x20]
lea r9, [0x1400317c0]
mov r8, rbp
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov qword [rsi], r14
test rax, rax
jne 0x140031652
lea rdx, str.Dialog_creation_failed
lea rcx, [rsp + 0x30]
call fcn.14002e0f0
lea rax, vtable.Win32xx::CWinException.0
lea rcx, str._CWinException_thrown__n
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.Dialog_creation_failed
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, reloc.WS2_32.dll_ioctlsocket
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rsp + 0x448], r14d
je 0x14003167e
jmp 0x140031670
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
lea rcx, [rsp + 0x246]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [0x14012e3b0]
lea rcx, [rsp + 0x30]
call fcn.14009d9d8
int3

Function at 0x140031740
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rdx + 8]
mov rdi, rdx
sub eax, 0x100
mov rbx, rcx
cmp eax, 9
ja 0x1400317a5
mov rax, qword [rcx]
call qword [rax + 0x120]
test eax, eax
jne 0x1400317a5
mov rax, qword [0x14013ace8]
mov ecx, dword [rax + 0x100]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp qword [rax + 0x18], 0
jne 0x1400317a5
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x1400317a5
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret