joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x40], rax
lea r8, [0x140022010]
mov edx, 0x68
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400017c9
mov eax, 1
jmp 0x140001988
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400017f0
mov eax, 1
jmp 0x140001988
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140001812
mov eax, 1
jmp 0x140001988
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
add eax, 1
mov eax, eax
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call fcn.140006cac
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140001859
mov eax, 1
jmp 0x140001988
mov eax, dword [rsp + 0x24]
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
call fcn.1400033d0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x28]
mov byte [rcx + rax], 0
lea rdx, [0x140022018]
mov rcx, qword [rsp + 0x28]
call fcn.140006c68
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x48], 0
je 0x14000195e
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov qword [rsp + 0x60], rax
mov eax, 8
mov rcx, qword [rsp + 0x60]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call fcn.140006cb4
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001902
mov rcx, qword [rsp + 0x28]
call fcn.140006c98
mov eax, 1
jmp 0x140001988
mov rcx, qword [rsp + 0x48]
call fcn.140006b30
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov qword [rdx + rcx*8], rax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp qword [rcx + rax*8], 0
jne 0x14000193c
mov rcx, qword [rsp + 0x28]
call fcn.140006c98
mov eax, 1
jmp 0x140001988
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
lea rdx, [0x14002201c]
xor ecx, ecx
call fcn.140006c68
mov qword [rsp + 0x48], rax
jmp 0x1400018a3
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x28]
call fcn.140006c98
xor eax, eax
add rsp, 0x78
ret

Function at 0x140001c00
Capabilities:
Check for peb beingdebugged flag

Disassembly:
sub rsp, 0x18
mov rax, qword gs:[0x60]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, byte [rax + 2]
cmp eax, 1
jne 0x140001c25
mov eax, 1
jmp 0x140001c27
xor eax, eax
add rsp, 0x18
ret
Function at 0x140001c30
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rdi
sub rsp, 0xe0
mov rax, qword [0x140022128]
xor rax, rsp
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0x40
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x90], eax
lea rax, [rsp + 0x94]
mov rdi, rax
xor eax, eax
mov ecx, 0x3c
rep stosb byte [rdi], al
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x80], 2
jae 0x140001c9f
mov eax, 1
jmp 0x140001cc3
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [rsp + 0x98], 0x80000000
ja 0x140001cc1
mov eax, 1
jmp 0x140001cc3
xor eax, eax
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400025d0
add rsp, 0xe0
pop rdi
ret

Function at 0x140001de0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], 0
jmp 0x140001e91
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x140001eef
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.140001d40
cmp eax, dword [rsp + 0x78]
jne 0x140001eed
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
jmp 0x140001ef1
jmp 0x140001e87
xor eax, eax
add rsp, 0x68
ret
Function at 0x140002240
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140022128]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.140001db0
test eax, eax
je 0x1400023b0
call fcn.140001c30
test eax, eax
jne 0x1400023b0
lea rax, [fcn.140001f00]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax]
cmp eax, 0xe9
je 0x140002297
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax]
cmp eax, 0xeb
jne 0x1400022bc
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 1]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
add eax, 5
cdqe
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.VirtualProtect
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x38]
mov r8d, 0x40
mov edx, 0x80
mov rcx, qword [rsp + 0x20]
call qword [rsp + 0x30]
test eax, eax
jne 0x140002305
mov eax, 0xffffffff
jmp 0x1400023bb
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xf
jne 0x140002335
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x84
je 0x140002344
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
jmp 0x140002305
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0x90
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0x90
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0x90
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0x90
mov eax, 1
imul rax, rax, 4
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0x90
mov eax, 1
imul rax, rax, 5
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0x90
call fcn.140001f00
jmp 0x1400023b9
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400025d0
add rsp, 0x58
ret

Function at 0x140002fc4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000300e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000300e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000300e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000300e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000300e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003010
xor al, al
add rsp, 0x28
ret

Function at 0x140009c50
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140009a4c
Function at 0x14000f080
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000f0b0
xor eax, eax
jmp 0x14000f173
mov rbp, rbx
cmp word [rax], si
je 0x14000f0d5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000f0bc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000f0b8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000efa0
movsxd r14, eax
test eax, eax
jne 0x14000f113
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000f0a9
mov rcx, r14
call fcn.14000b350
mov rdi, rax
test rax, rax
jne 0x14000f12c
xor ecx, ecx
call fcn.14000b314
jmp 0x14000f108
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000efa0
test eax, eax
jne 0x14000f15d
mov rcx, rdi
call fcn.14000b314
jmp 0x14000f167
xor ecx, ecx
call fcn.14000b314
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001349c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400134b2
mov al, 1
jmp 0x140013512
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400134c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140013510
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000f9a0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140013510
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140013510
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140013510
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140013512
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140014140
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140006578
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400141ca
cmp byte [rbp - 0x21], r15b
je 0x1400141c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140014200
call fcn.14000b6b8
test eax, eax
jne 0x1400141ec
cmp byte [rbp - 0x21], r15b
je 0x1400141e4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140014200
cmp byte [rbp - 0x21], r15b
je 0x1400141fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000d6ec
test eax, eax
jne 0x1400142a0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140006578
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001423f
cmp byte [rbp - 0x21], r15b
je 0x140014274
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140014274
call fcn.14000b6b8
test eax, eax
jne 0x140014260
cmp byte [rbp - 0x21], r15b
je 0x140014259
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140014274
cmp byte [rbp - 0x21], r15b
je 0x140014271
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000d6ec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400142a0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400142a3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400142b1
mov rcx, rdi
call fcn.14000b314
cmp byte [rbp + 0x3f], r15b
je 0x1400142c0
mov rcx, qword [rbp + 0x27]
call fcn.14000b314
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
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 [0x1401d00b0]
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 [0x1401d2550]
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 [0x1401d2550]
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, [0x1401d2550]
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 [0x1401d2568], 0
jne 0x140004b65
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401d2568], 1
mov dword [0x1401d256c], eax
mov rcx, qword [0x1401d2400]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1401d256c]
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 [0x1401d2568], 0
mov ebx, ecx
jne 0x140004d44
call fcn.140004b40
mov ecx, dword [0x1401d256c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140004d6c
call fcn.140004b40
mov ecx, dword [0x1401d256c]
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 [0x1401d2568], 0
jne 0x140004b65
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401d2568], 1
mov dword [0x1401d256c], eax
mov rcx, qword [0x1401d2400]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1401d256c]
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 [0x1401d2568], 0
mov ebx, ecx
jne 0x140004d44
call fcn.140004b40
mov ecx, dword [0x1401d256c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140004d6c
call fcn.140004b40
mov ecx, dword [0x1401d256c]
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 [0x1401d2568], 0
mov rbx, rcx
jne 0x140004e37
call fcn.140004b40
mov ecx, dword [0x1401d256c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
test rax, rax
jne 0x140004e5f
call fcn.140004b40
mov ecx, dword [0x1401d256c]
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
Function at 0x1400062c8
Capabilities:
Reference http user-agent string

Disassembly:
lea r9, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor r8d, r8d
jmp 0x1400062d8
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, r9
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
test rcx, rcx
je 0x1400063a6
test rdx, rdx
je 0x1400063a6
mov rcx, qword [0x1401d2400]
lea edx, [rbx + 8]
lea r8d, [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], ebx
mov rdi, rax
call sub.msvcrt.dll__wcsdup
mov rcx, rsi
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov rcx, r15
mov qword [rdi + 0x10], rax
call sub.msvcrt.dll__wcsdup
mov dword [rdi + 0x30], r14d
mov qword [rdi + 0x40], rax
test r14b, 1
je 0x140006393
lea rax, [rsp + 0x50]
lea r8, [0x140006570]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x2000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000639e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rdi
jmp 0x1400063a6
mov rcx, rdi
call fcn.1400063c4
movsxd rbx, eax
mov rcx, rdi
call fcn.1400065f0
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x1400062d8
Capabilities:
Create thread

Disassembly:
lea r9, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor r8d, r8d
jmp 0x1400062d8
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, r9
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
test rcx, rcx
je 0x1400063a6
test rdx, rdx
je 0x1400063a6
mov rcx, qword [0x1401d2400]
lea edx, [rbx + 8]
lea r8d, [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], ebx
mov rdi, rax
call sub.msvcrt.dll__wcsdup
mov rcx, rsi
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov rcx, r15
mov qword [rdi + 0x10], rax
call sub.msvcrt.dll__wcsdup
mov dword [rdi + 0x30], r14d
mov qword [rdi + 0x40], rax
test r14b, 1
je 0x140006393
lea rax, [rsp + 0x50]
lea r8, [0x140006570]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x2000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000639e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rdi
jmp 0x1400063a6
mov rcx, rdi
call fcn.1400063c4
movsxd rbx, eax
mov rcx, rdi
call fcn.1400065f0
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret