joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003da38
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [rcx], 1
jne 0x14003da4a
mov rcx, qword [rcx + 8]
test rcx, rcx
jne fcn.140052bd0
mov ecx, edx
jmp fcn.140052b00

Function at 0x14003da7c
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [rcx], 5
je 0x14003da88
mov ecx, edx
jmp fcn.140052b00
mov rcx, qword [rcx + 8]
jmp 0x140045960
push rbx
sub rsp, 0x20
mov r8, qword [rcx]
mov rbx, rcx
test r8, r8
je 0x1400459b9
mov r8, qword [r8 + 8]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x140045980
mov ecx, eax
call fcn.140052a50
mov rcx, qword [rbx]
mov rcx, qword [rcx + 8]
nop dword [rax]
movzx edx, word [rcx]
lea rcx, [rcx + 2]
mov word [rax], dx
lea rax, [rax + 2]
test dx, dx
jne 0x1400459a0
add rsp, 0x20
pop rbx
ret
mov ecx, edx
add rsp, 0x20
pop rbx
jmp fcn.140052b00

Function at 0x140040198
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r12d, ecx
mov rsi, r9
mov rcx, qword [0x1402337a8]
mov rbp, r8
mov r14, rdx
xor ebx, ebx
call fcn.1400519b8
mov r15, rax
test r14, r14
je 0x1400402d1
mov rcx, qword [0x1402307b8]
lea edx, [rbx + 8]
mov r8d, 0x98
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, r14
mov rdi, rax
or dword [rax + 4], 0xffffffff
mov dword [rax], 1
call fcn.1400d4b48
lea rcx, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
mov qword [rdi + 8], rax
call fcn.1400d4b48
mov ecx, dword [rsp + 0x80]
mov qword [rdi + 0x60], rax
mov dword [rdi + 0x40], ecx
mov eax, dword [r15]
mov dword [rdi + 0x44], eax
mov eax, dword [r15 + 4]
mov dword [rdi + 0x48], eax
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x78], rax
mov dword [rdi + 0x80], r12d
mov qword [rdi + 0x88], rsi
test cl, 1
je 0x1400402c2
test rsi, rsi
je 0x14004027d
mov rcx, qword [0x1402307b8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi + 0x70], rax
test rax, rax
je 0x140040277
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call fcn.14001cb10
cmp qword [rdi + 0x70], rbx
je 0x1400402b8
lea rax, [rsp + 0x68]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x1400402ec]
mov edx, 0x10000
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400402b2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400402ce
cmp dword [rsp + 0x68], ebx
jne 0x1400402ce
mov rcx, rdi
call fcn.14003fc4c
jmp 0x1400402d1
mov rcx, rdi
mov qword [rdi + 0x70], rbp
call fcn.14003fd18
mov rbx, rdi
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140040550
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x14004046c]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.140051cf0
xor r8d, r8d
mov qword [0x140231618], rax
xor edx, edx
mov ecx, ebx
call fcn.140051a50
xor ebx, ebx
mov qword [0x1402337b8], rax
cmp word [0x140231610], bx
jne 0x140040673
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x1400405b8
movzx eax, di
jmp 0x1400405ba
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x140231610], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140231620], rax
test rax, rax
je 0x140040673
lea rdx, [0x14010bf70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140231620]
lea rdx, [0x14010bf80]
mov qword [0x1402315f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140231620]
lea rdx, str.getnameinfo
mov qword [0x1402315f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140231620]
lea rdx, str.WSAStringToAddressA
mov qword [0x140231600], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1402315f0], rbx
mov qword [0x140231608], rax
je 0x140040673
cmp qword [0x1402315f8], rbx
je 0x140040673
cmp qword [0x140231600], rbx
je 0x140040673
mov ecx, dword [0x140231614]
test rax, rax
cmovne ecx, edi
mov dword [0x140231614], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x14004204c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x140233820]
call fcn.140051bc0
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x1400420cc
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140042091
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x1400420cc
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, eax
mov edx, ebx
mov edi, eax
call fcn.140052a50
lea r8d, [rdi + 1]
mov rdx, rax
mov rbx, rax
mov word [rax], bp
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
call fcn.140012890
sub edi, eax
mov ecx, edi
call fcn.140052b30
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140044288
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, str.PB_WindowID
mov rcx, r14
mov rdi, rax
xor ebp, ebp
call qword [sym.imp.USER32.dll_GetPropW]
lea r12d, [rbx + 9]
mov rsi, rax
test rax, rax
je 0x140044339
lea rdx, [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x140044339
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x68], eax
jne 0x140044339
mov rcx, qword [0x140233850]
lea rdx, [rsi - 1]
call fcn.140051bc0
mov rbx, rax
lea ebp, [r12 - 8]
cmp dword [rax + 0x20], 0
jle 0x140044339
mov rcx, qword [rax + 8]
xor edx, edx
movsxd rax, dword [rax + 0x20]
add rcx, 4
cmp word [rcx - 2], r12w
jne 0x140044329
mov r8d, 0xfa01
cmp word [rcx], r8w
je 0x140044337
inc rdx
add rcx, 6
cmp rdx, rax
jge 0x140044339
jmp 0x140044316
xor ebp, ebp
mov sil, 0x80
test rdi, rdi
je 0x140044409
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140044409
mov ecx, select
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140044409
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140044409
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140044409
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
test ebp, ebp
jne 0x140044409
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
call fcn.140012b94
test eax, eax
je 0x1400443d9
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
call fcn.140012b94
test eax, eax
jne 0x1400443f4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x140044470
lea rdx, str.Scintilla
lea rcx, [rsp + 0x20]
call fcn.140018944
test eax, eax
je 0x140044470
test r14, r14
je 0x14004444b
mov ecx, select
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14004443e
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14004443e
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x14004444b
mov edx, 1
mov rcx, r14
call fcn.14004448c
test rdi, rdi
je 0x140044465
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x140044470
test rbx, rbx
je 0x140044470
mov rax, qword [rbx + 0x10]
jmp 0x140044472
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rdi
ret
Function at 0x140044844
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov edi, 0x104
mov ecx, edi
call fcn.140052a50
mov rdx, rax
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
movsxd rbx, eax
test eax, eax
je 0x140044893
lea edx, [rbx - 1]
movsxd r8, edx
lea eax, [rbp + 0x5c]
cmp word [rsi + r8*2], ax
je 0x140044893
mov word [rsi + rbx*2], ax
inc ebx
sub edi, ebx
mov ecx, edi
call fcn.140052b30
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov word [rsi + rax*2], bp
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400448b8
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x140044a29
cmp word [rcx], di
je 0x140044a29
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.1400d4d44
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call fcn.140012890
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x14004495e
cmp word [rsp + 0x22], 0x3a
jne 0x14004495e
cmp edx, 2
jne 0x14004493e
lea rdx, [0x1400f1098]
lea rcx, [rsp + 0x20]
call fcn.1400d3b88
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140044a29
mov rbx, 0xfffffffffffffffe
jmp 0x140044a29
cmp word [rcx], 0x5c
je 0x14004496a
cmp word [rcx], 0x2f
jne 0x140044973
mov word [rcx], di
sub rcx, 2
jmp 0x14004495e
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x1400449ba
test byte [rbp + 0x130], 0x10
je 0x14004499f
mov rbx, 0xfffffffffffffffe
jmp 0x1400449b2
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140044a29
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x1400449cf
cmp ax, cx
je 0x1400449e5
cmp cx, 0x2f
jne 0x1400449da
cmp ax, cx
je 0x1400449e5
cmp cx, 0x2e
jne 0x140044a29
cmp ax, cx
jne 0x140044a29
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140044a0a
not eax
mov rbx, 0xfffffffffffffffe
shr rax, 4
and eax, 1
or rbx, rax
jmp 0x140044a29
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x140044a44
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140044a5c
test rdx, rdx
je 0x140044a5c
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cdqe
jmp 0x140044a5e
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400460c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140046159
test rdi, rdi
lea rsi, [0x1400f4890]
cmovne rsi, rdi
mov rcx, rsi
call fcn.140012890
inc eax
mov ecx, 0x2002
movsxd rbp, eax
add rbp, rbp
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x140046153
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140046153
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call fcn.14001cb10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
lea ecx, [rbx + 0xd]
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rbx, rax
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140047d00
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
bt r8d, 0x10
jae 0x140047eef
mov rax, rsp
push r12
push r14
sub rsp, 0xc8
mov r12, rdx
mov r14, rcx
test rcx, rcx
je 0x140047ee4
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov ebp, dword [rsp + 0x100]
mov qword [rax + 0x18], rsi
mov qword [rax - 0x18], rdi
lea rdi, [0x1400f4890]
mov qword [rax - 0x20], r13
mov qword [rax - 0x28], r15
mov eax, dword [rcx]
movsxd r15, dword [rcx + 4]
cdq
and edx, 7
add eax, edx
sar eax, 3
test r9, r9
movsxd r13, eax
cmovne rdi, r9
cmp ebp, 0x18
jne 0x140047d8b
mov rcx, rdi
call fcn.1400ce340
mov rdi, rax
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x140047d80
jmp 0x140047dca
cmp ebp, 0x19
jne 0x140047daf
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140047da0
add rbx, rbx
jmp 0x140047dca
mov rcx, rdi
call fcn.1400ce1a0
mov rdi, rax
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140047dc1
mov rdx, rdi
cmp rbx, r15
jle 0x140047e1d
mov r8d, ebx
mov rcx, r14
call qword [r12 + 0x18]
mov rcx, r14
call qword [r12 + 0x20]
lea rdx, [r14 + 8]
mov r8, r13
lea rcx, [rsp + 0x20]
call fcn.14001cb10
mov eax, r15d
lea rcx, [rsp + 0x20]
sub eax, r13d
add rcx, r13
movsxd r8, eax
xor edx, edx
call fcn.14001c060
mov edx, 1
mov rcx, r14
call qword [r12 + reloc.WS2_32.dll_recv]
jmp 0x140047e41
mov r8, rbx
lea rcx, [rsp + 0x20]
call fcn.14001cb10
mov eax, r15d
lea rcx, [rsp + 0x20]
sub eax, ebx
add rcx, rbx
movsxd r8, eax
xor edx, edx
call fcn.14001c060
lea rcx, [r14 + 0x48]
mov r8, r15
lea rdx, [rsp + 0x20]
call fcn.14001cb10
mov r13, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xe0]
test r15d, r15d
jle 0x140047e98
xor edx, edx
lea rcx, [rsp + 0x20]
mov rax, r14
sub rax, rcx
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
add rcx, rdx
inc rdx
xor byte [rcx], 0x36
xor byte [rax + rcx + 0x48], 0x5c
cmp rdx, r15
jl 0x140047e80
mov r8d, r15d
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [r12 + 0x18]
mov r15, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xf0]
cmp ebp, 0x18
jne 0x140047ec7
mov rcx, rdi
call fcn.14001faf0
jmp 0x140047ed4
cmp ebp, 0x19
je 0x140047ed4
mov rcx, rdi
call fcn.14001faf0
mov rbp, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xc0]
add rsp, 0xc8
pop r14
pop r12
ret
Function at 0x140048b80
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140048dd0
mov r11d, eax
lea edx, [rax*4]
movsxd r9, edx
test edx, edx
jle 0x140048bfd
lea r8, [rbx + 8]
xor r10d, r10d
lea r8, [r8 + r9*4]
lea rcx, [rbx + 8]
nop
mov edx, dword [rcx - 8]
add r10, 4
mov eax, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rcx - 8], eax
lea rcx, [rcx + 0x10]
mov eax, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rcx - 0x14]
mov dword [rcx - 0x14], eax
mov eax, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rcx - 0x10]
mov dword [rcx - 0x10], eax
mov eax, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rcx - 0xc]
mov dword [rcx - 0xc], eax
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x140048bb0
cmp r11d, 1
jle 0x140048db9
mov qword [rsp + 0x30], rdi
lea r10d, [r11 - 1]
lea rdi, [0x140000000]
add rbx, 4
nop dword [rax + rax]
mov r9d, dword [rbx + 0x10]
lea rbx, [rbx + 0x10]
mov edx, dword [rbx - 4]
movzx eax, byte [rbx - 3]
movzx ecx, byte [rdi + rax*4 + 0x10d330]
mov eax, edx
shr rax, 0x18
mov r8d, dword [rdi + rcx*4 + 0x10df30]
movzx eax, byte [rdi + rax*4 + 0x10d330]
xor r8d, dword [rdi + rax*4 + 0x10d730]
movzx eax, dl
movzx ecx, byte [rdi + rax*4 + 0x10d330]
movzx eax, byte [rbx - 2]
xor r8d, dword [rdi + rcx*4 + 0x10e330]
movzx ecx, byte [rdi + rax*4 + 0x10d330]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x10db30]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx - 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x10d330]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x10db30]
movzx eax, byte [rdi + rcx*4 + 0x10d330]
xor r8d, dword [rdi + rax*4 + 0x10df30]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x10d330]
movzx eax, r9b
mov r9d, dword [rbx + 4]
xor r8d, dword [rdi + rcx*4 + 0x10d730]
movzx ecx, byte [rdi + rax*4 + 0x10d330]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x10e330]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx], r8d
movzx edx, byte [rdi + rcx*4 + 0x10d330]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x10db30]
movzx eax, byte [rdi + rcx*4 + 0x10d330]
xor r8d, dword [rdi + rax*4 + 0x10df30]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x10d330]
movzx eax, r9b
mov r9d, dword [rbx + 8]
xor r8d, dword [rdi + rcx*4 + 0x10d730]
movzx ecx, byte [rdi + rax*4 + 0x10d330]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x10e330]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx + 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x10d330]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x10db30]
movzx eax, byte [rdi + rcx*4 + 0x10d330]
xor r8d, dword [rdi + rax*4 + 0x10df30]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x10d330]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x10d730]
movzx ecx, byte [rdi + rax*4 + 0x10d330]
xor r8d, dword [rdi + rcx*4 + 0x10e330]
mov dword [rbx + 8], r8d
sub r10, 1
jne 0x140048c20
mov rdi, qword [rsp + 0x30]
mov eax, r11d
add rsp, 0x20
pop rbx
ret
Function at 0x14004a590
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov r14d, dword [rsp + 0x48]
lea rax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
test r14b, 0x10
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
mov esi, r9d
mov r11d, edx
cmove rbx, rax
mov r10, rcx
mov r12, r8
mov r15, r8
test edx, edx
jle 0x14004a681
lea eax, [r9 - 4]
mov r13d, 0x3d3d
movsxd rdi, eax
nop dword [rax + rax]
mov rdx, r8
sub rdx, r15
cmp r11d, 3
jae 0x14004a6f8
mov r9d, r14d
and r9d, 0x20
cmp r11d, 2
jne 0x14004a6a8
test r9d, r9d
je 0x14004a621
lea eax, [rsi - 3]
movsxd rcx, eax
cmp rdx, rcx
jmp 0x14004a624
cmp rdx, rdi
jge 0x14004a774
movzx eax, byte [r10 + 1]
movzx ecx, byte [r10]
add r10, 2
shl rcx, 8
or rcx, rax
shl rcx, 2
mov rax, rcx
shr rax, 0xc
movzx eax, byte [rax + rbx]
mov byte [r8], al
mov rax, rcx
shr rax, 6
and ecx, 0x3f
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r8 + 1], al
movzx eax, byte [rcx + rbx]
mov byte [r8 + 2], al
add r8, 3
test r9d, r9d
jne 0x14004a762
mov byte [r8], 0x3d
inc r8
mov byte [r8], 0
sub r8, r12
mov rax, r8
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
test r9d, r9d
je 0x14004a6b8
lea eax, [rsi - 2]
movsxd rcx, eax
cmp rdx, rcx
jmp 0x14004a6bb
cmp rdx, rdi
jge 0x14004a774
movzx ecx, byte [r10]
inc r10
shl rcx, 4
mov rax, rcx
and ecx, 0x3f
shr rax, 6
movzx eax, byte [rax + rbx]
mov byte [r8], al
movzx eax, byte [rcx + rbx]
mov byte [r8 + 1], al
add r8, 2
test r9d, r9d
jne 0x14004a762
mov word [r8], r13w
add r8, 2
jmp 0x14004a762
cmp rdx, rdi
jge 0x14004a774
movzx eax, byte [r10 + 1]
movzx ecx, byte [r10 + 2]
movzx r9d, byte [r10]
add r10, 3
shl r9, 8
or r9, rax
shl r9, 8
or r9, rcx
mov rax, r9
shr rax, 6
and eax, 0x3f
movsx edx, byte [rax + rbx]
mov rax, r9
and eax, 0x3f
movsx ecx, byte [rax + rbx]
mov rax, r9
shr rax, 0xc
and eax, 0x3f
shl ecx, 8
or edx, ecx
shr r9, 0x12
shl edx, 8
movsx eax, byte [rax + rbx]
or edx, eax
movsx eax, byte [r9 + rbx]
shl edx, 8
or edx, eax
mov dword [r8], edx
add r8, 4
sub r11d, 3
test r11d, r11d
jg 0x14004a5f0
jmp 0x14004a681
xor eax, eax
jmp 0x14004a68b

Function at 0x14004aaec
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x14004ab61
call qword [rcx + 0xb0]
mov edx, dword [rbx + 0xf4]
mov rdi, rax
mov dword [rbx + 0x108], edx
mov edx, dword [rbx + 0xf8]
mov dword [rbx + 0x10c], edx
test rax, rax
jne 0x14004ab61
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14004ab39
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x1402307b8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1402338f8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1402338f0], 0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x14004ab70
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov ebx, r8d
mov ecx, dword [0x1402338f8]
mov edi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [rax + 0x104]
mov edx, dword [rax + 0x100]
mov r10, qword [rax + 0x58]
lea r9d, [rcx + rbx]
mov rcx, rax
lea r8d, [rdx + rdi]
mov rdx, rsi
test r10, r10
je 0x14004abc3
mov dword [rsp + 0x20], 0xff
call r10
jmp 0x14004abc6
call qword [rax + 0x48]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14004abd8
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1402338f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, ebx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0x40]

Function at 0x14004abfc
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1402338f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0x20]

Function at 0x14004ac38
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
mov ecx, dword [0x1402338f8]
mov edi, r9d
movaps xmmword [rax - 0x18], xmm6
mov rsi, r8
movaps xmmword [rax - 0x28], xmm7
movaps xmm6, xmm1
movaps xmm7, xmm0
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp edi, dword [rax + 0x120]
je 0x14004ac84
mov edx, edi
mov dword [rax + 0x120], edi
mov rcx, rax
call qword [rax + 0x80]
mov edx, dword [rbx + 0x11c]
cmp edx, dword [rbx + 0x124]
je 0x14004ac9d
mov rcx, rbx
mov dword [rbx + 0x124], edx
call qword [rbx]
movd xmm2, dword [rbx + 0x104]
mov r9, rsi
movd xmm1, dword [rbx + 0x100]
mov rcx, rbx
cvtdq2pd xmm2, xmm2
cvtdq2pd xmm1, xmm1
addsd xmm2, xmm6
addsd xmm1, xmm7
mov rax, qword [rbx + 0x60]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rdi
jmp rax

Function at 0x14004ace4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1402338f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14004ad45
mov rcx, rax
call qword [rax + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14004ad1d
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x1402307b8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1402338f8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1402338f0], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14004ad4c
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402338f8], eax
add rsp, 0x28
ret