joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006c3ac
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.1400c8640
push qword [rsp + 0x50]
push 0
push 1
pop rcx
pop rdx
pop r8
call sub.KERNEL32.DLL_OpenProcess
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
je 0x14006c410
push 1
push qword [rsp + 0x30]
pop rcx
pop rdx
call sub.KERNEL32.DLL_TerminateProcess
and rax, rax
je 0x14006c406
mov qword [rsp + 0x30], 1
push qword [rsp + 0x28]
pop rcx
call sub.KERNEL32.DLL_CloseHandle
mov rax, qword [rsp + 0x30]
jmp 0x14006c41a
add rsp, 0x40
pop r15
ret

Function at 0x14006fd02
Capabilities:
Get graphical window text

Disassembly:
push r15
xor rax, rax
push rax
sub rsp, 0x28
call fcn.1400c8640
mov rcx, qword [rsp + 0x60]
call fcn.140070d50
mov r15, qword [0x141681c88]
and r15, r15
jne 0x14006fd4c
push 0
push 0
pop rcx
pop rdx
call sub.USER32.dll_FindWindowW
mov qword [0x141681c90], rax
mov qword [0x141681c88], 1
jmp 0x14006fd65
push 2
push qword [0x141681c90]
pop rcx
pop rdx
call sub.USER32.dll_GetWindow
mov qword [0x141681c90], rax
mov r15, qword [0x141681c90]
and r15, r15
je 0x14006fe3b
push 0xfffffffffffffff0
push qword [0x141681c90]
pop rcx
pop rdx
call sub.USER32.dll_GetWindowLongPtrW
mov r15, rax
and r15, 0x10000000
cmp r15, 0x10000000
jne 0x14006fe39
push 0xffffffffffffffec
push qword [0x141681c90]
pop rcx
pop rdx
call sub.USER32.dll_GetWindowLongPtrW
mov r15, rax
and r15, 0x80
cmp r15, 0x80
je 0x14006fe39
push rcx
sub rsp, 0x28
call fcn.1400c8360
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.1400c8360
add rsp, 0x28
pop rcx
push rax
push 0x100
pop rcx
pop rdx
sub rsp, 0x20
call fcn.1400c4eb0
add rsp, 0x28
lea rcx, [rsp + 0x30]
pop rdx
call fcn.1400c8420
push 0x100
push qword [rsp + 0x30]
push qword [0x141681c90]
pop rcx
pop rdx
pop r8
call sub.USER32.dll_GetWindowTextW
push qword [rsp + 0x28]
movabs rcx, 0x1401d4098
pop rdx
call fcn.1400c8500
or rax, rax
jne 0x14006fe39
jmp 0x14006fe56
jmp 0x14006fe46
mov qword [0x141681c88], 0
mov r15, qword [0x141681c90]
and r15, r15
jne 0x14006fd1b
mov rcx, qword [rsp + 0x28]
push rcx
sub rsp, 0x28
call fcn.1400c8360
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.1400c83b0
add rsp, 0x28
pop rax
push rax
call fcn.1400c8560
pop rdx
add rax, rdx
jmp 0x14006fe8f
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400c86b0
add rsp, 0x28
pop rax
add rsp, 0x30
pop r15
ret

Function at 0x140070d50
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 [0x1416799d4]
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 0x140071de8
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rbp, rax
test rax, rax
je 0x140071eae
lea rcx, [0x141685080]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x141681ec0]
jmp 0x140071e72
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x140071e6f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x141681ec0]
mov rdx, rsi
call fcn.1400c810c
jmp 0x140071e72
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140071e3f
mov rdx, qword [reloc.WS2_32.dll_accept]
lea rcx, [0x141681ec0]
mov rdi, rdx
inc rdx
mov qword [reloc.WS2_32.dll_accept], rdx
lea edx, [rbx + 0x20]
call fcn.1400c8154
lea rcx, [0x141685080]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x140071ec8
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140071d78
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateThread]
lea rcx, [0x141685080]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x141681ec0]
jmp 0x140071f04
cmp qword [rbx + 0x18], rdi
je 0x140071f0b
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140071efb
jmp 0x140071f25
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x141681ec0]
call fcn.1400c810c
lea rcx, [0x141685080]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
Function at 0x1400725d0
Capabilities:
Create thread

Disassembly:
or r8d, 0xffffffff
xor edx, edx
jmp 0x1400725d0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r12d, edx
mov r15, rcx
mov rdx, rcx
mov rcx, qword [0x141681ec8]
mov esi, r8d
xor r14d, r14d
call fcn.1400c76ec
mov rbx, rax
test rax, rax
je 0x1400727b5
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
cmp qword [rax + 0x20], r14
je 0x1400726b6
mov rcx, r15
call fcn.140072938
jmp 0x140072634
mov ecx, 0xa
call qword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [rbx + 0x2d], r14b
jne 0x140072629
mov rcx, qword [rbx + 0x20]
call fcn.140072f2c
mov edi, 1
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], r12d
mov byte [rbx + 0x2c], dil
call fcn.140072518
lea rax, [rsp + 0x88]
lea r8, [0x1400727d0]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], r14d
mov r9, rbx
mov edx, 0x2000
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
test rax, rax
je 0x140072691
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, 0xffffffff
je 0x1400726a0
mov edx, esi
mov rcx, r15
call fcn.140072a40
mov rcx, qword [rbx]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx]
mov r9d, edi
jmp 0x140072761
mov edi, 1
mov ebp, r14d
test dil, r12b
cmovne ebp, edi
test r12b, 2
je 0x14007276e
mov rcx, rax
call fcn.140072314
lea rcx, [rbx + 8]
lea edx, [rdi + 0x1f]
call fcn.1400c8154
mov rcx, qword [0x141681ef0]
mov rdx, qword [rsp + 0x30]
mov r9, qword [rcx]
lea r8, [rsp + 0x30]
mov r14, rax
call qword [r9 + 0x28]
test eax, eax
jne 0x1400727b5
mov rcx, qword [rsp + 0x30]
mov byte [r14 + 9], bpl
mov byte [r14 + 8], dil
mov qword [r14], rcx
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x14]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
cmp esi, 0xffffffff
je 0x14007274b
mov r8, r14
mov edx, esi
mov rcx, r15
call fcn.140072a48
jmp 0x140072759
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x60]
jmp 0x1400727b5
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
cmp esi, 0xffffffff
je 0x140072793
mov edx, esi
mov rcx, r15
call fcn.140072a40
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
xor r8d, r8d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x60]
test eax, eax
jne 0x1400727b5
mov r14, rdi
mov byte [rbx + 0x2c], dil
mov byte [rbx + 0x2e], bpl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rax, r14
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140073d54
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140073dcb
movsxd rdx, ecx
lea rcx, [0x140073cb0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x1416821a8]
test rbx, rbx
je 0x140073e3e
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140073dc1
cmp byte [rbx + 0x20], 0
je 0x140073dc1
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 0x140073d87
jmp 0x140073e3e
mov rbx, qword [0x1416821a8]
test rbx, rbx
je 0x140073e3e
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140073e36
cmp byte [rbx + 0x21], 0
je 0x140073dfa
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140073e26
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, [0x1416821a8]
call fcn.1400c810c
mov rbx, rdi
test rdi, rdi
jne 0x140073dd7
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140074500
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x141685600]
call fcn.1400c76ec
test rax, rax
je 0x14007453d
cmp dword [rax + 0x28], 0
je 0x14007453d
mov rcx, qword [rax + 0x18]
mov r9d, ebx
mov r8d, dword [rcx + 4]
mov edx, dword [rcx]
mov rcx, qword [rax + 0x10]
add rsp, 0x20
pop rbx
jmp fcn.140074120
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.1400c8b50
Function at 0x1400917f0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x141685680]
call fcn.1400c73f0
xor ebp, ebp
or esi, 0xffffffff
mov r14, rax
mov ebx, ebp
call qword [sym.imp.KERNEL32.DLL_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x1400918ed
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x140091847
add rax, 2
cmp word [rax], 0x20
je 0x14009183d
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x140091885
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x1400918c5
cmp cx, r9w
je 0x140091877
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140091865
cmp word [rax], bp
je 0x1400918c5
mov rcx, rax
add rax, 2
jmp 0x1400918cd
test dx, dx
je 0x1400918ca
mov rbx, rax
cmp dx, 0x20
je 0x140091877
add rax, 2
cmp word [rax], r9w
jne 0x1400918bb
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x1400918c5
cmp cx, r9w
je 0x1400918bb
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x1400918a9
movzx edx, word [rax]
test dx, dx
jne 0x14009188d
jmp 0x140091877
mov rcx, rax
jmp 0x1400918cd
mov r8d, ebp
cmp dword [r14], esi
jne 0x1400918d7
test rdi, rdi
jne 0x1400918f7
test r8d, r8d
je 0x1400918de
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x140091837
test rdi, rdi
jne 0x14009190c
movsxd rax, esi
jmp 0x14009190e
test rbx, rbx
je 0x14009190c
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x14009190e
mov dword [rdi], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140091924
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x141685680]
call fcn.1400c73f0
xor ecx, ecx
add rsp, 0x28
jmp fcn.1400917f0

Function at 0x1400919b8
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x141685680]
xor ebp, ebp
mov esi, edx
mov dword [rax + 8], ebp
call fcn.1400c73f0
test ebx, ebx
js 0x1400919e7
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.1400917f0
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.1400c89d0
mov ecx, ebp
jmp 0x140091a23
test edi, edi
je 0x140091a28
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x140091a16
inc ecx
jmp 0x140091a1d
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x140091a05
mov word [rax], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.1400c8b10
Function at 0x14009212c
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
jmp 0x140092344
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor eax, eax
mov r12, rcx
mov ecx, 0x1000
mov r15d, r8d
mov r14d, edx
mov edi, ecx
mov esi, eax
mov r13d, eax
cmp edx, 0x18
je 0x14009245b
cmp edx, 2
je 0x14009245b
mov rcx, qword [0x141680a58]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
lea r9, [rbp - 0x14]
lea r8d, [r13 + 2]
lea rdx, [rbp - 0x18]
xor r14d, r14d
mov rcx, r12
mov rbx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x140092443
mov r13, qword [rbp + 0x48]
xor r15d, r15d
mov r12d, edi
cmp dword [rbp - 0x14], 2
jne 0x14009243c
test edi, edi
jne 0x1400923fc
mov rcx, qword [0x141680a58]
movsxd r9, r12d
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
movzx eax, word [rbp - 0x18]
cmp ax, 0xa
je 0x14009243c
cmp ax, 0xd
je 0x14009241c
mov word [r14 + rbx], ax
inc esi
inc r12d
add r14, 2
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp - 0x18]
mov r8d, 2
mov rcx, r13
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400923d1
mov r15d, dword [rbp + 0x58]
xor r14d, r14d
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov word [rbx + rax*2], r14w
call fcn.140178fc0
jmp 0x140092523
mov r8, rcx
mov rcx, qword [0x141680a58]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
and qword [rsp + 0x20], rsi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x140092504
mov r15, qword [rbp + 0x48]
mov r12d, edi
xor r14d, r14d
cmp dword [rbp - 0x14], 1
jne 0x1400924fc
test edi, edi
jne 0x1400924c2
mov rcx, qword [0x141680a58]
lea edx, [rdi + 8]
movsxd r9, r12d
mov r8, rbx
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rbp + 0x60]
cmp al, 0xa
je 0x1400924fc
cmp al, 0xd
je 0x1400924dc
mov byte [r13 + rbx], al
inc esi
inc r12d
inc r13
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x14009249a
mov r14d, dword [rbp + 0x50]
mov r15d, dword [rbp + 0x58]
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov byte [rax + rbx], 0
cmp r14d, 0x18
jne 0x14009251e
call fcn.140179020
jmp 0x140092523
call fcn.140178df0
mov rcx, qword [0x141680a58]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400921cc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x140092233
mov rcx, qword [rbp + 0x18]
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
mov r8d, edi
movsxd rdx, ebx
lea r9, [rsp + 0x50]
sub r8d, ebx
add rdx, rsi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x140092225
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x14009222f
add ebx, dword [rsp + 0x50]
cmp ebx, edi
jge 0x140092233
jmp 0x1400921f0
add ebx, dword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14009229c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
xor r8d, r8d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
xor ebp, ebp
mov edi, eax
test eax, eax
je 0x1400922ca
dec edi
mov edx, ebx
mov ecx, edi
call fcn.1400c89d0
lea r8d, [rdi + 1]
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov rsi, qword [rsp + 0x40]
movsxd rcx, edi
mov word [rbx + rcx*2], bp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140092344
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
jmp 0x140092344
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor eax, eax
mov r12, rcx
mov ecx, 0x1000
mov r15d, r8d
mov r14d, edx
mov edi, ecx
mov esi, eax
mov r13d, eax
cmp edx, 0x18
je 0x14009245b
cmp edx, 2
je 0x14009245b
mov rcx, qword [0x141680a58]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
lea r9, [rbp - 0x14]
lea r8d, [r13 + 2]
lea rdx, [rbp - 0x18]
xor r14d, r14d
mov rcx, r12
mov rbx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x140092443
mov r13, qword [rbp + 0x48]
xor r15d, r15d
mov r12d, edi
cmp dword [rbp - 0x14], 2
jne 0x14009243c
test edi, edi
jne 0x1400923fc
mov rcx, qword [0x141680a58]
movsxd r9, r12d
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
movzx eax, word [rbp - 0x18]
cmp ax, 0xa
je 0x14009243c
cmp ax, 0xd
je 0x14009241c
mov word [r14 + rbx], ax
inc esi
inc r12d
add r14, 2
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp - 0x18]
mov r8d, 2
mov rcx, r13
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400923d1
mov r15d, dword [rbp + 0x58]
xor r14d, r14d
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov word [rbx + rax*2], r14w
call fcn.140178fc0
jmp 0x140092523
mov r8, rcx
mov rcx, qword [0x141680a58]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
and qword [rsp + 0x20], rsi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x140092504
mov r15, qword [rbp + 0x48]
mov r12d, edi
xor r14d, r14d
cmp dword [rbp - 0x14], 1
jne 0x1400924fc
test edi, edi
jne 0x1400924c2
mov rcx, qword [0x141680a58]
lea edx, [rdi + 8]
movsxd r9, r12d
mov r8, rbx
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rbp + 0x60]
cmp al, 0xa
je 0x1400924fc
cmp al, 0xd
je 0x1400924dc
mov byte [r13 + rbx], al
inc esi
inc r12d
inc r13
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x14009249a
mov r14d, dword [rbp + 0x50]
mov r15d, dword [rbp + 0x58]
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov byte [rax + rbx], 0
cmp r14d, 0x18
jne 0x14009251e
call fcn.140179020
jmp 0x140092523
call fcn.140178df0
mov rcx, qword [0x141680a58]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140094a80
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1416825e8], 0
jne 0x140094aa5
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [0x1416825e8], 1
mov dword [0x1416825ec], eax
mov rcx, qword [0x141680a58]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [0x1416825ec]
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 fcn.140094c60

Function at 0x140094c60
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1416825e8], 0
mov ebx, ecx
jne 0x140094c84
call fcn.140094a80
mov ecx, dword [0x1416825ec]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140094cac
call fcn.140094a80
mov ecx, dword [0x1416825ec]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElemsize
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 0x140094cc0
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 0x140094d00
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140094d60
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1416825e8], 0
mov rbx, rcx
jne 0x140094d77
call fcn.140094a80
mov ecx, dword [0x1416825ec]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r9, rax
test rax, rax
jne 0x140094d9f
call fcn.140094a80
mov ecx, dword [0x1416825ec]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r9, rax
movsxd r8, dword [r9]
movsxd rdx, dword [r9 + 4]
mov eax, reloc.WS2_32.dll_recv
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 0x140094e18
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 0x1400984fc
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
xor ebx, ebx
mov rsi, r9
mov r14, r8
mov r15, rdx
mov r12d, ecx
test rdx, rdx
je 0x14009862c
mov rcx, qword [0x141680a58]
lea edx, [rbx + 8]
mov r8d, 0x98
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
lea ebp, [rbx + 1]
mov rcx, r15
or dword [rax + 4], 0xffffffff
mov dword [rax], ebp
mov rdi, rax
call sub.msvcrt.dll__wcsdup
lea rcx, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov ecx, dword [rsp + 0x80]
mov qword [rdi + 0x60], rax
mov dword [rdi + 0x40], ecx
mov eax, dword [0x1416798c0]
mov dword [rdi + 0x44], eax
mov eax, dword [0x1416826a0]
mov dword [rdi + 0x80], r12d
mov dword [rdi + 0x48], eax
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x88], rsi
mov qword [rdi + 0x78], rax
test bpl, cl
je 0x14009861d
test rsi, rsi
je 0x1400985d6
mov rcx, qword [0x141680a58]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov qword [rdi + 0x70], rax
test rax, rax
je 0x1400985d0
mov r8, rsi
mov rdx, r14
mov rcx, rax
call sub.msvcrt.dll_memcpy
cmp qword [rdi + 0x70], rbx
je 0x140098613
lea rax, [rsp + 0x68]
lea r8, [0x140098648]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
test rax, rax
je 0x14009860b
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x14009860f
mov ebp, dword [rsp + 0x68]
test ebp, ebp
jne 0x140098629
mov rcx, rdi
call fcn.140097fa8
jmp 0x14009862c
mov rcx, rdi
mov qword [rdi + 0x70], r14
call fcn.140098044
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