joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000af60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140014e40
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140014e40
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000afd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e02c4]
test esi, esi
mov rbx, rcx
jle 0x14000b100
mov rax, qword [0x1400e02c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b01b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b0a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b000
mov rcx, rbx
call fcn.14000ba20
test rax, rax
mov rdi, rax
je 0x14000b122
mov rax, qword [0x1400e02c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000bb60
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e02c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b107
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b09e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b0b0
add dword [0x1400e02c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400e02c8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b09e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000af60
nop dword [rax]
xor esi, esi
jmp 0x14000b028
mov rax, qword [0x1400e02c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000af60
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000af60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b690
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e0320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e0300]
test rbx, rbx
je 0x14000b6ec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000b6e3
test rsi, rsi
je 0x14000b6e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b6c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000ba20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400ba490]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000ba40
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000ba48
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000ba40
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000ba9d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14000ba94
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000ba40
add rax, 0x28
cmp rax, r9
jne 0x14000ba80
xor eax, eax
ret

Function at 0x14000baa0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400ba490]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000babf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000bac8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000babf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000bb60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400ba490]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000bb7f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000bb88
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140017370
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x87], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14001747a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x140017452
add rax, 1
cmp rax, 0x6b
je 0x14001746f
cmp byte [rcx + rax], 0
jne 0x140017448
cmp eax, 0x6a
movsxd rdx, eax
je 0x14001746f
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x140017463
Function at 0x1400177f0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400e0f40], 1
je 0x140017868
lea rdi, [0x1400e0f40]
mov rcx, rdi
call fcn.1400170f0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140016a00
mov esi, dword [0x1400e0f40]
test esi, esi
jne 0x140017878
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1400b2158], eax
je 0x1400b1576
mov dword [0x1400e0f40], 1
mov rcx, rbp
call fcn.140016cf0
test rbx, rbx
je 0x140017868
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140017490
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140017848
mov ecx, 2
call qword [fcn.140014e40]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140017848
call sub.msvcrt.dll_abort
nop

Function at 0x1400178a0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400175a0
cmp qword [0x1400e3048], 0
mov rbx, rax
je 0x1400179b8
test rax, rax
je 0x1400179b8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140016ff0
cmp eax, 1
je 0x1400179c6
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.1400b157c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400b2158]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400179cc
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140017370
nop
jmp fcn.1400b157c

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

Disassembly:
sub rsp, 0x28
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140017a00
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400178a0
Function at 0x140018170
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x140018298
cmp eax, 1
je 0x1400181cb
call fcn.1400170f0
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140016a00
mov r12d, dword [rbx]
test r12d, r12d
je 0x1400181e0
cmp r12d, 1
jne 0x140018270
mov rcx, rbp
call fcn.140016cf0
test rdi, rdi
je 0x1400181cb
mov rcx, rdi
call fcn.140017490
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140017570]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x1400182d8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
call r12
test rax, rax
je 0x1400182c0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
call r12
test rax, rax
je 0x1400182b0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400181b6
mov ecx, 2
call qword [fcn.140014e40]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400181b6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400178a0
test rax, rax
jne 0x140018259
jmp 0x1400b1595
call fcn.1400178a0
test rax, rax
jne 0x140018235
jmp 0x1400b15ae
call fcn.1400178a0
test rax, rax
jne 0x14001820f
jmp 0x1400b15a4
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x140018560
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400185d8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140017000
cmp esi, dword [rbx + 0x48]
jae 0x1400185b3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400185b3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140017040
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400178a0
mov rbx, rax
jmp 0x14001858d
Function at 0x1400185f0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018700
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.140017000
cmp esi, dword [rbx + 0x48]
jae 0x140018680
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.140017040
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.msvcrt.dll_realloc
test rax, rax
mov rdi, rax
je 0x14001870d
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.msvcrt.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x14001870d
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.msvcrt.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x140018644
call fcn.1400178a0
mov rbx, rax
jmp 0x14001862f
mov rcx, r14
call fcn.140017040
mov eax, 0xc
jmp 0x140018662

Function at 0x140018790
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400187b8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.1400178a0
test rax, rax
jne 0x1400187aa
add rsp, 0x28
ret

Function at 0x140018820
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018848
add rax, 0x18
add rsp, 0x28
ret
call fcn.1400178a0
test rax, rax
jne 0x14001883a
jmp 0x14001883e

Function at 0x140018960
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400e0f48]
test eax, eax
jne 0x140018978
xor eax, eax
add rsp, 0x28
ret
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400189a8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001896e
test byte [rax + 0x40], 3
je 0x14001896e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140018970
call fcn.1400178a0
test rax, rax
jne 0x14001898e
jmp 0x14001896e
Function at 0x1400189c0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018a00
test ebx, ebx
jle 0x1400189f0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.1400178a0
test rax, rax
jne 0x1400189dd
add rsp, 0x20
pop rbx
ret

Function at 0x140018af0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018b68
test byte [rbx + 0x40], 0xc
jne 0x140018b1f
mov eax, dword [0x1400e0f48]
test eax, eax
jne 0x140018b30
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016a00
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140018b53
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140018b53
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140018b7c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016cf0
call fcn.1400178a0
test rax, rax
mov rbx, rax
jne 0x140018b0f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140018b9a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140016cf0
call fcn.140018a10
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140018c20
call fcn.1400167c0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140018c58
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018cb0
test esi, esi
je 0x140018c36
call fcn.140018af0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018c90
mov edx, edi
call fcn.140016870
call fcn.140018af0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018ca0
call fcn.140018af0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018af0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140018bf5
call fcn.1400178a0
mov rbx, rax
jmp 0x140018bf5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018c0e
call fcn.1400178a0
jmp 0x140018c36
call fcn.1400178a0
mov rbx, rax
jmp 0x140018bf1
Function at 0x140018bb0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018b68
test byte [rbx + 0x40], 0xc
jne 0x140018b1f
mov eax, dword [0x1400e0f48]
test eax, eax
jne 0x140018b30
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016a00
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140018b53
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140018b53
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140018b7c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016cf0
call fcn.1400178a0
test rax, rax
mov rbx, rax
jne 0x140018b0f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140018b9a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140016cf0
call fcn.140018a10
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140018c20
call fcn.1400167c0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140018c58
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018cb0
test esi, esi
je 0x140018c36
call fcn.140018af0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018c90
mov edx, edi
call fcn.140016870
call fcn.140018af0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018ca0
call fcn.140018af0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018af0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140018bf5
call fcn.1400178a0
mov rbx, rax
jmp 0x140018bf5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018c0e
call fcn.1400178a0
jmp 0x140018c36
call fcn.1400178a0
mov rbx, rax
jmp 0x140018bf1

Function at 0x140018cc0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.1400177f0
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018d30
test esi, esi
je 0x140018d10
call fcn.140018af0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018d40
mov edx, esi
call fcn.140016870
call fcn.140018af0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018af0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018af0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400178a0
mov rbx, rax
jmp 0x140018ce1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018cfa
Function at 0x140077380
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x1400773a7
call rbp
cmp dword [rax], 4
jne 0x1400773c4
mov rcx, rdi
call fcn.1400771b0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
movsxd r12, eax
je 0x1400773a0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001070
Capabilities:
Accept command line arguments
Extract resource via kernel32 functions

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x140001094
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsi], 0
lea rax, str.8A69D345_D564_463c_AFF1_A69D9E530F96
mov qword [rsi + 8], rax
xor eax, eax
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x16], rax
mov byte [rsi + 0x1e], 1
mov qword [rsi + 0x20], rax
mov edx, 1
mov r8d, 0xa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140001114
mov r14, rax
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001114
mov rbx, rax
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x140001114
mov edi, eax
and eax, 1
jne 0x140001114
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140001114
mov ecx, edi
cmp word [rax + rcx - 2], 0
jne 0x140001114
mov qword [rsi + 0x20], rax
lea rdi, [rsp + 0x34]
mov dword [rdi], 0
mov qword [rsp + 0x20], 2
lea rdx, str.SoftwareGoogle
lea r8, str.ChromeInstallerCleanup
mov rcx, 0xffffffff80000001
mov r9, rdi
call fcn.140003ac0
cmp word [rdi], 0x30
setne cl
xor al, 1
or al, cl
mov byte [rsi + 0x1e], al
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rsi
mov rdx, rax
call fcn.140001170
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140001170
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov qword [rcx + 0x10], rdx
lea rbx, [rcx + 0x18]
mov rcx, rdx
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
mov qword [rsi], rax
test rax, rax
je 0x140001209
cmp dword [rbx], 2
jl 0x1400011cd
mov ebp, 1
lea r14, str.__system_level
mov r13, qword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea r15, str.__chrome_beta
lea r12, str.__chrome_dev
jmp 0x140001252
cmp byte [rsi + 0x1c], 0
jne 0x140001209
xor eax, eax
lea rbx, [rsp + 0x22]
mov word [rbx + 4], ax
mov word [rbx], ax
lea rcx, str.GoogleUpdateIsMachine
mov rdx, rbx
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, 1
sete al
cmp word [rbx], 0x31
sete cl
and cl, al
mov byte [rsi + 0x1c], cl
test rdi, rdi
setne al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.401C381F_E0DE_4B85_8BD8_3F3F14FBDA57
jmp 0x14000123f
lea rax, str.4ea16ac7_fd5a_47c3_875b_dbf4a2008c20
jmp 0x14000123f
mov byte [rsi + 0x1c], 1
jmp 0x140001243
lea rax, str.8237E44A_0054_442C_B6B6_EA0509993955
mov qword [rsi + 8], rax
inc rbp
movsxd rax, dword [rbx]
cmp rbp, rax
jge 0x1400011cd
mov rax, qword [rsi]
mov rcx, qword [rax + rbp*8]
mov rdx, r14
call r13
test eax, eax
je 0x140001232
mov rax, qword [rsi]
mov rcx, qword [rax + rbp*8]
mov rdx, r15
call r13
test eax, eax
je 0x140001238
mov rax, qword [rsi]
mov rcx, qword [rax + rbp*8]
mov rdx, r12
call r13
test eax, eax
je 0x140001220
mov rax, qword [rsi]
mov rcx, qword [rax + rbp*8]
lea rdx, str.__chrome_sxs
call r13
test eax, eax
je 0x140001229
mov rax, qword [rsi]
mov rcx, qword [rax + rbp*8]
lea rdx, str.__cleanup
call r13
test eax, eax
je 0x1400012c8
mov rax, qword [rsi]
mov rcx, qword [rax + rbp*8]
lea rdx, str.__chrome_frame
call r13
test eax, eax
jne 0x140001243
mov byte [rsi + 0x1d], 1
jmp 0x140001243