joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140048aa0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x90
mov rax, qword [0x140072010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword gs:[0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 2]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140048afb
xor eax, eax
test eax, eax
je 0x140048afb
xor eax, eax
cmp eax, 1
je 0x140048afb
cmp qword [rsp + 0x28], 0
jne 0x140048af9
jmp 0x140048afb
jmp 0x140048ae8
cmp dword [rsp + 0xa0], 1
jne 0x140048b4c
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov byte [rsp + 0x60], 0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 1
xorps xmm0, xmm0
movss dword [rsp + 0x78], xmm0
lea rcx, [rsp + 0x60]
call fcn.140004290
jmp 0x140048bfe
cmp dword [rsp + 0xa0], 2
jne 0x140048b88
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov byte [rsp + 0x30], 0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.14000f720
jmp 0x140048bfe
cmp dword [rsp + 0xa0], 3
jne 0x140048bc4
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov byte [rsp + 0x40], 0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x40]
call fcn.14001a070
jmp 0x140048bfe
cmp dword [rsp + 0xa0], 4
jne 0x140048bfe
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov byte [rsp + 0x50], 0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x50]
call fcn.140023900
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14005f1e0
add rsp, 0x90
pop rdi
ret
Function at 0x140048c20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x60
cmp dword [rsp + 0x70], 0x4a
je 0x140048c35
jmp 0x140048d08
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x31]
call fcn.140048d10
mov rcx, rax
call fcn.140049d20
mov dword [rsp + 0x28], 0x8050
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 1
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadImageA]
mov qword [rsp + 0x40], rax
mov rax, qword gs:[0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 2]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140048cc0
xor eax, eax
test eax, eax
je 0x140048cc0
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140048cc0
cmp qword [rsp + 0x38], 0
jne 0x140048cbe
jmp 0x140048cc0
jmp 0x140048cab
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [rsp + 0x48], rax
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov edx, 0x80
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_SendMessageA]
mov qword [rsp + 0x50], rax
mov r9, qword [rsp + 0x40]
xor r8d, r8d
mov edx, 0x80
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_SendMessageA]
mov qword [rsp + 0x50], rax
add rsp, 0x60
pop rdi
ret

Function at 0x1400492e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140072010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x28], 0x14
mov byte [rsp + 0x30], 0x67
mov byte [rsp + 0x31], 0x81
mov byte [rsp + 0x32], 0x6e
mov byte [rsp + 0x33], 0x7d
mov byte [rsp + 0x34], 0x80
mov byte [rsp + 0x35], 0x79
mov byte [rsp + 0x36], 0x7f
mov byte [rsp + 0x37], 0x74
mov byte [rsp + 0x38], 0x78
mov byte [rsp + 0x39], 0x70
mov byte [rsp + 0x3a], 0x3c
mov byte [rsp + 0x3b], 0x3f
mov byte [rsp + 0x3c], 0x3b
mov byte [rsp + 0x3d], 0x6a
mov byte [rsp + 0x3e], 0x3c
mov byte [rsp + 0x3f], 0x39
mov byte [rsp + 0x40], 0x6f
mov byte [rsp + 0x41], 0x77
mov byte [rsp + 0x42], 0x77
mov byte [rsp + 0x43], 0xb
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140235620], eax
jle 0x140049408
lea rcx, [0x140235620]
call fcn.14005f26c
cmp dword [0x140235620], 0xffffffff
jne 0x140049408
lea rax, [0x1402369e8]
mov byte [rax + 0x14], 1
mov qword [rsp + 0x20], 0
jmp 0x1400493bf
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x14
jae 0x1400493f0
mov eax, 1
imul rax, rax, 0
lea rax, [rsp + rax + 0x30]
lea rcx, [0x1402369e8]
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
movzx eax, byte [rax + r8]
mov byte [rcx + rdx], al
jmp 0x1400493b2
lea rcx, [0x14006c410]
call fcn.14005f8c4
lea rcx, [0x140235620]
call fcn.14005f200
lea rax, [0x1402369e8]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14005f1e0
add rsp, 0x58
ret
Function at 0x14005c640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140072010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x80000000
cmp dword [rsp + 0x80], 0x80000000
jae 0x14005c69a
mov eax, dword [rsp + 0x80]
add eax, 0x80000000
mov dword [rsp + 0x20], eax
jmp 0x14005c6aa
mov eax, dword [rsp + 0x80]
sub eax, 0x80000000
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x44], 0x80000000
cmp dword [rsp + 0x88], 0x80000000
jae 0x14005c6d3
mov eax, dword [rsp + 0x88]
add eax, 0x80000000
mov dword [rsp + 0x24], eax
jmp 0x14005c6e3
mov eax, dword [rsp + 0x88]
sub eax, 0x80000000
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
cmp eax, 0xffffffff
jne 0x14005c71f
mov rcx, qword [rsp + 0x50]
call fcn.14005e500
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
ja 0x14005c713
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x3c], eax
jmp 0x14005c715
jmp 0x14005c6f4
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x34], eax
jmp 0x14005c73d
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
inc eax
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14005db50
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x48], 0x80000000
cmp dword [rsp + 0x28], 0x80000000
jae 0x14005c770
mov eax, dword [rsp + 0x28]
add eax, 0x80000000
mov dword [rsp + 0x38], eax
jmp 0x14005c77d
mov eax, dword [rsp + 0x28]
sub eax, 0x80000000
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005f1e0
add rsp, 0x68
ret
Function at 0x14005e500
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x14005e522
mov rcx, qword [rsp + 0x40]
call fcn.14005e5d0
jmp 0x14005e539
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x14005e539
mov rcx, qword [rsp + 0x40]
call fcn.14005e680
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x14005e5d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x14005e5f1
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x14005e675
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x14005e640
mov dword [rsp + 4], 0x9908b0df
jmp 0x14005e648
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14005e5e4
add rsp, 0x18
ret
Function at 0x14005e680
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0x26f
mov qword [rsp + 0x30], 0xe3
mov qword [rsp], 0
jmp 0x14005e6b0
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x14005e732
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x14005e6fe
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x14005e706
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14005e6a5
mov qword [rsp + 8], 0xe3
jmp 0x14005e74a
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x14005e7d1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x14005e79b
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x14005e7a3
mov dword [rsp + 0x1c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14005e73d
mov qword [rsp + 0x38], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14005e825
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x14005e82d
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x20]
shr eax, 1
xor eax, dword [rsp + 0x24]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x50]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
add rsp, 0x48
ret

Function at 0x14005fee4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005ff2e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005ff2e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005ff2e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005ff2e
cmp dword [rcx + 0x84], 0xe
jbe 0x14005ff2e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14005ff30
xor al, al
add rsp, 0x28
ret
Function at 0x1400033f4
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 [0x140649450]
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 [0x14064b8f0]
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 [0x14064b8f0]
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, [0x14064b8f0]
call fcn.140014dac
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 [0x14064b908], 0
jne 0x140004b65
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14064b908], 1
mov dword [0x14064b90c], eax
mov rcx, qword [0x14064b7a0]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14064b90c]
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 [0x14064b908], 0
mov ebx, ecx
jne 0x140004d44
call fcn.140004b40
mov ecx, dword [0x14064b90c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140004d6c
call fcn.140004b40
mov ecx, dword [0x14064b90c]
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 [0x14064b908], 0
jne 0x140004b65
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14064b908], 1
mov dword [0x14064b90c], eax
mov rcx, qword [0x14064b7a0]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14064b90c]
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 [0x14064b908], 0
mov ebx, ecx
jne 0x140004d44
call fcn.140004b40
mov ecx, dword [0x14064b90c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140004d6c
call fcn.140004b40
mov ecx, dword [0x14064b90c]
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 [0x14064b908], 0
mov rbx, rcx
jne 0x140004e37
call fcn.140004b40
mov ecx, dword [0x14064b90c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
test rax, rax
jne 0x140004e5f
call fcn.140004b40
mov ecx, dword [0x14064b90c]
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 [0x14064b7a0]
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 [0x14064b7a0]
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 0x1400063c4
Capabilities:
Delete file

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 r12
push r14
push r15
sub rsp, 0x40
mov r14, qword [rcx + 0x10]
mov rbx, rcx
mov rcx, qword [rcx + 8]
xor esi, esi
call fcn.14005e610
mov rcx, qword [rbx + 0x40]
mov r15, rax
call fcn.14005e610
mov r12, rax
call fcn.1400339c0
mov rdi, rax
test rax, rax
je 0x14000652a
and qword [rsp + 0x30], rsi
lea r8d, [rsi + 1]
xor r9d, r9d
mov edx, 0xc0000000
mov rcx, r14
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140006522
test byte [rbx + 0x30], 2
mov qword [rbx + 0x18], rax
jne 0x140006463
lea edx, [rsi + 0x34]
lea r8d, [rsi + 1]
mov rcx, rdi
call fcn.140033d90
mov r8, qword [0x14064b940]
test r8, r8
je 0x14000647c
mov edx, 0x2714
mov rcx, rdi
call fcn.140033d90
mov r8, qword [0x14064b948]
test r8, r8
je 0x1400064b2
cmp qword [0x14064b950], rsi
je 0x1400064b2
mov edx, 0x27bf
mov rcx, rdi
call fcn.140033d90
mov r8, qword [0x14064b950]
mov edx, 0x27c0
mov rcx, rdi
call fcn.140033d90
mov r8, r15
mov edx, 0x2712
mov rcx, rdi
call fcn.140033d90
mov r8, r12
mov edx, 0x2722
mov rcx, rdi
call fcn.140033d90
lea r8, [0x140006580]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.140033d90
mov r8, rbx
mov edx, 0x2711
mov rcx, rdi
call fcn.140033d90
mov rcx, rdi
call fcn.140033b50
test eax, eax
jne 0x14000650c
mov dword [rbx + 4], 0xfffffffe
lea esi, [rax + 1]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x140006522
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rdi
call fcn.1400337c0
mov ecx, dword [rbx + 4]
add ecx, 4
test ecx, 0xfffffffd
je 0x14000653f
mov dword [rbx + 4], 0xfffffffd
mov rcx, r15
call fcn.14005e600
mov rcx, r12
call fcn.14005e600
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
mov eax, esi
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
ret