joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140030d27
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140222818]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r12, [rsp + 0x34]
mov dword [r12], 0xaaaaaaaa
mov qword [rsp + 0x20], r12
mov r8, r9
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140030dd5
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x28]
mov qword [rbp], rax
mov qword [rsp + 0x20], rbp
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r14d, eax
mov r15, qword [rbp]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140030dd5
test r14d, r14d
setne al
cmp r15, rsi
sete sil
and sil, al
jmp 0x140030dd7
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14013a2d0
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x140032b79
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140032b79
cmp word [rax + rcx + 0x14], 0x78
jb 0x140032b79
mov r12, r8
mov rdi, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x140174a01.0]
test rax, rax
je 0x140032b79
cmp rdi, 0xffff
jbe 0x140032bb1
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x140174a01.0]
mov ecx, dword [r14 + 0x18]
test rcx, rcx
je 0x140032b79
lea r15, [rax + rcx*4]
lea r13, [rdi + 1]
mov qword [rsp + 0x20], rax
mov rbp, rax
mov rsi, r15
sub rsi, rbp
mov rax, rsi
sar rax, 2
shr rsi, 0x3f
add rsi, rax
and rsi, 0xfffffffffffffffe
mov edx, dword [rbp + rsi*2]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x140174a01.0]
mov cl, byte [rdi]
test cl, cl
je 0x140032b4b
mov rdx, r13
cmp cl, byte [rax]
jne 0x140032b4d
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140032b3b
xor ecx, ecx
lea rsi, [rsi*2]
add rsi, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x140032b8c
movzx ecx, cl
lea rdx, [rsi + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs r15, rsi
xor eax, eax
cmp rbp, r15
jne 0x140032b06
jmp 0x140032b7b
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [r14 + 0x24]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x140174a01.0]
sub rsi, qword [rsp + 0x20]
sar rsi, 1
movzx edi, word [rax + rsi]
add di, word [r14 + 0x10]
mov word [r12], di
mov al, 1
jmp 0x140032b7b
Function at 0x140032c6e
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140032ca5
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140032ca5
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x140032ca5
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
ret

Function at 0x140035f70
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2e8
mov r14, rcx
mov rax, qword [0x140222818]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x2d0], rax
movaps xmm0, xmmword [0x1401b68c0]
movaps xmmword [rsp + 0x2c0], xmm0
movaps xmmword [rsp + 0x2b0], xmm0
movaps xmmword [rsp + 0x2a0], xmm0
movaps xmmword [rsp + 0x290], xmm0
movaps xmmword [rsp + 0x280], xmm0
lea rdx, [0x1401b8c9a]
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0x70]
mov rcx, rdi
mov r9d, 0x3bb
call fcn.140007ba0
lea rcx, [rsp + 0x280]
mov rdx, rdi
xor r8d, r8d
call fcn.140020270
lea rbx, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14013b880
mov word [rsp + 0x70], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
add edi, 0xfffffefb
cmp edi, 0xfffffefc
jb 0x14003608f
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.1401411a0
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140005b20
lea rsi, [rsp + 0x50]
mov rcx, rbx
mov rdx, rsi
call fcn.140006c00
mov rcx, r14
mov rdx, rsi
call fcn.140005c70
mov rcx, rsi
call fcn.140005c00
mov rcx, rbx
call fcn.140005c00
cmp edi, 0xfffffefc
setae bl
lea rcx, [rsp + 0x280]
call fcn.140020280
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.14013a2d0
mov eax, ebx
add rsp, 0x2e8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400360d0
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x140222818]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x1401b68c0]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [0x1401b8caf]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3cb
call fcn.140007ba0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140020270
cmp qword [rsi + 0x18], 8
jb 0x140036162
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.140020280
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14013a2d0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140037030
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140222078]
cmp ecx, 0xffffffff
je 0x140037052
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
jmp 0x140037054
xor eax, eax
add rsp, 0x28
ret

Function at 0x140037060
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r14, rdx
mov r15, rcx
mov rax, qword [0x140222818]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, dword [0x140222078]
cmp ecx, 0xffffffff
je 0x140037095
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14003709a
call fcn.140037240
mov eax, dword [0x14022f598]
mov ecx, dword [0x140231458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400371ed
mov rbx, qword [0x14022f590]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400371e0
mov rcx, qword [0x14022dd80]
inc rcx
mov edx, 0x100
lea rax, [0x14022dd90]
nop dword [rax]
movzx edi, cl
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14003711a
lea edi, [rcx + 1]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14003711a
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x1400370f0
jmp 0x14003713f
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x14022dd80], rdi
mov qword [r15], rdi
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [r15 + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
mov rsi, qword [r15]
cmp rsi, 0x100
jb 0x1400371c6
mov ecx, 0x100
call fcn.1400140c0
mov rdi, rax
mov rcx, rsi
call fcn.1400140c0
lea rdx, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x30]
mov r8, rax
mov r9, rdi
call fcn.1400145b0
cmp qword [rsp + 0x30], 0
je 0x1400371c6
lea rdx, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x1c7
call fcn.1400084b0
mov rcx, rsi
call fcn.1400085c0
mov rcx, rsi
call fcn.1400085d0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14013a2d0
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rbx
call fcn.14001c8a0
jmp 0x1400370d7
lea rcx, [0x14022f598]
call fcn.14013a0a8
cmp dword [0x14022f598], 0xffffffff
jne 0x1400370bf
mov ecx, 8
call fcn.140139c88
mov rbx, rax
mov rcx, rax
call fcn.14001c890
mov qword [0x14022f590], rbx
lea rcx, [0x14022f598]
call fcn.14013a048
jmp 0x1400370bf
Function at 0x140037240
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14013a5d0
sub rsp, rax
mov rax, qword [0x140222818]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov ecx, dword [0x140222078]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x140037332
lea rcx, [rsp + 0x2c]
call fcn.140049ef0
test al, al
jne 0x1400372b3
lea rdx, str....._base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key_
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x101
call fcn.140008430
mov rcx, rsi
call fcn.1400085c0
mov rcx, rsi
call fcn.1400085d0
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x140037310
lea rcx, [rsp + 0x2c]
call fcn.140049ef0
test al, al
je 0x1400372d1
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x140037302
lea rdx, str....._base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key___key___PlatformThreadLocalStorage::TLS_KEY_OUT_OF_INDEXES
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x10b
call fcn.140008430
mov rcx, rsi
call fcn.1400085c0
mov rcx, rsi
call fcn.1400085d0
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x140222078], ecx
mov ecx, dword [rsp + 0x2c]
je 0x140037332
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140222078]
mov dword [rsp + 0x2c], ecx
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
and esi, 3
je 0x1400373ae
xor ecx, ecx
call fcn.140013ee0
mov rdi, rax
mov ecx, esi
call fcn.140013ee0
lea rdx, str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
lea rcx, [rsp + 0x30]
mov r8, rax
mov r9, rdi
call fcn.1400145b0
cmp qword [rsp + 0x30], 0
je 0x1400373ae
lea rdx, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x20]
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x11d
call fcn.1400084b0
mov rcx, rsi
call fcn.1400085c0
mov rcx, rsi
call fcn.1400085d0
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14013b880
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14013a5ac
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14013b1d0
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14013a2d0
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret

Function at 0x140037420
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140222078]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140037450
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x140037450
mov rax, qword [rax + rcx]
jmp 0x140037452
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x140037460
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140222078]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14003749e
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140037497
call fcn.140037240
jmp 0x14003747e

Function at 0x14003a2d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14022f628]
mov ecx, dword [0x140231458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003a305
lea rcx, [0x14022f618]
add rsp, 0x28
jmp fcn.140037420
lea rcx, [0x14022f628]
call fcn.14013a0a8
cmp dword [0x14022f628], 0xffffffff
jne 0x14003a2f5
xorps xmm0, xmm0
movups xmmword [0x14022f618], xmm0
lea rcx, [0x14022f618]
xor edx, edx
call fcn.1400374b0
lea rcx, [0x14022f628]
call fcn.14013a048
jmp 0x14003a2f5

Function at 0x14003d9b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
test al, al
setne al
add rsp, 0x28
ret
Function at 0x140041150
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r12, rcx
mov rax, qword [0x140222818]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, qword [rdx]
mov qword [rsp + 0x30], 0
movaps xmm0, xmmword [0x1401b68a0]
movups xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rcx, rdi
call fcn.1401414c0
mov rbx, rax
cmp rax, 0xf
jbe 0x1400411b2
lea rcx, [rsp + 0x30]
mov rdx, rbx
mov r9, rdi
call fcn.140007bd0
jmp 0x1400411cc
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x30]
mov rdx, rdi
mov r8, rbx
call fcn.14013b1d0
mov byte [rsp + rbx + 0x30], 0
movabs rbp, 0xcbf29ce484222325
mov rax, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
cmp r15, 0x10
lea rbx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmovae rbx, rax
test r14, r14
je 0x14004121a
movabs rax, 0x100000001b3
lea rdx, [r14 - 1]
mov ecx, r14d
and ecx, 3
cmp rdx, 3
jae 0x14004121f
xor esi, esi
jmp 0x140041268
mov rdx, rbp
jmp 0x140041296
mov rdi, r14
and rdi, 0xfffffffffffffffc
xor esi, esi
nop dword [rax + rax]
movzx edx, byte [rbx + rsi]
xor rdx, rbp
imul rdx, rax
movzx ebp, byte [rbx + rsi + 1]
xor rbp, rdx
imul rbp, rax
movzx edx, byte [rbx + rsi + 2]
xor rdx, rbp
imul rdx, rax
movzx ebp, byte [rbx + rsi + 3]
xor rbp, rdx
imul rbp, rax
add rsi, 4
cmp rdi, rsi
jne 0x140041230
mov rdx, rbp
test rcx, rcx
je 0x140041296
add rsi, rbx
xor edi, edi
nop word cs:[rax + rax]
movzx edx, byte [rsi + rdi]
xor rdx, rbp
imul rdx, rax
inc rdi
mov rbp, rdx
cmp rcx, rdi
jne 0x140041280
and rdx, qword [r12 + 0x30]
mov r13, qword [r12 + 8]
mov rax, qword [r12 + 0x18]
mov rcx, rdx
shl rcx, 4
mov rsi, qword [rax + rcx + 8]
cmp rsi, r13
je 0x140041311
add rdx, rdx
mov rdi, qword [rax + rdx*8]
cmp r14, qword [rsi + 0x20]
jne 0x1400412f3
nop word cs:[rax + rax]
cmp qword [rsi + 0x28], 0x10
jb 0x1400412e0
mov rdx, qword [rsi + 0x10]
jmp 0x1400412e4
lea rdx, [rsi + 0x10]
mov rcx, rbx
mov r8, r14
call fcn.14013b0d0
test eax, eax
je 0x140041304
cmp rsi, rdi
je 0x140041311
mov rsi, qword [rsi + 8]
cmp r14, qword [rsi + 0x20]
je 0x1400412d0
jmp 0x1400412f3
test rsi, rsi
je 0x140041311
cmp r15, 0x10
jae 0x14004131a
jmp 0x140041353
mov rsi, r13
cmp r15, 0x10
jb 0x140041353
lea rdx, [r15 + 1]
cmp rdx, 0x1000
jb 0x140041349
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x140041379
add r15, 0x28
mov rdx, r15
mov rcx, rax
jmp 0x14004134e
mov rcx, qword [rsp + 0x28]
call fcn.140139cc4
cmp rsi, r13
setne bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14013a2d0
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140140ecc
int3
Function at 0x140046b00
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rax, qword [0x140222818]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp edx, 0xffffffff
je 0x140046c57
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140046b5d
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x140046b5d
dec ecx
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x140046c9a
cmp qword [rdi + 0x80], 0
je 0x140046c5b
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x140046b97
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x140046c62
movaps xmm0, xmmword [0x1401b68c0]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x5f], sil
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
lea rbp, [rsp + 0x80]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbp
lea r15, [rsp + 0x60]
mov qword [rsp + 0x28], r15
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x20], rbp
lea r14, [rsp + 0x5f]
mov r8, r14
call qword [case.0x140174a01.0]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x140046c7a
mov rbx, qword [rsp + 0x48]
sub rbx, r15
je 0x140046c47
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.14014bdac
cmp rbx, rax
jne 0x140046c98
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], r14
mov eax, 0xffffffff
jmp 0x140046c93
xor esi, esi
jmp 0x140046c9a
mov esi, 0xffffffff
jmp 0x140046c9a
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call fcn.14014be48
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x140046c9a
cmp eax, 3
jne 0x140046c98
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x5f]
call fcn.14014be48
cmp eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14013a2d0
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140047130
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
jle 0x1400471cf
mov r14, r8
mov rdi, rdx
mov r12, rcx
cmp qword [rcx + 0x68], 0
je 0x1400471d7
mov rbx, r14
jmp 0x14004718c
cmp rbx, rsi
cmovb rsi, rbx
mov rcx, rdi
mov r8, rsi
call fcn.14013b1d0
add rdi, rsi
sub rbx, rsi
mov rax, qword [r12 + 0x50]
sub dword [rax], esi
mov rax, qword [r12 + 0x38]
add qword [rax], rsi
test rbx, rbx
jle 0x1400471c7
mov rax, qword [r12 + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400471a4
mov rax, qword [r12 + 0x50]
mov esi, dword [rax]
test esi, esi
jg 0x140047160
mov rax, qword [r12]
mov rax, qword [rax + 0x38]
mov rcx, r12
call qword [case.0x140174a01.0]
cmp eax, 0xffffffff
je 0x1400471c7
mov byte [rdi], al
inc rdi
dec rbx
test rbx, rbx
jg 0x14004718c
sub r14, rbx
jmp 0x1400472db
xor r14d, r14d
jmp 0x1400472db
mov rax, qword [r12 + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14004722f
mov rax, qword [r12 + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x14004722f
cmp r15, r14
cmovae r15, r14
mov rcx, rdi
mov r8, r15
call fcn.14013b1d0
add rdi, r15
mov rsi, r14
sub rsi, r15
mov rax, qword [r12 + 0x50]
sub dword [rax], r15d
mov rax, qword [r12 + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [r12 + 0x80], 0
jne 0x140047241
jmp 0x1400472d8
mov rsi, r14
cmp qword [r12 + 0x80], 0
je 0x1400472d8
mov rax, qword [r12 + 0x18]
lea rcx, [r12 + 0x70]
cmp qword [rax], rcx
jne 0x140047280
mov ecx, dword [r12 + 0x90]
mov rdx, qword [r12 + 0x88]
mov qword [rax], rdx
mov rax, qword [r12 + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [r12 + 0x50]
mov dword [rax], ecx
nop word cs:[rax + rax]
cmp rsi, 0x1000
jb 0x1400472b4
mov r9, qword [r12 + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.14014b248
add rdi, rax
sub rsi, rax
cmp rax, 0xfff
je 0x140047280
jmp 0x1400472d8
test rsi, rsi
je 0x1400472d6
mov r9, qword [r12 + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rsi
call fcn.14014b248
sub rsi, rax
jmp 0x1400472d8
xor esi, esi
sub r14, rsi
mov rax, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400472f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, r8
mov r15, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x14004738a
mov rsi, r14
test r14, r14
jle 0x1400473fb
mov rsi, r14
jmp 0x14004734e
cmp rsi, rdi
cmovb rdi, rsi
mov rdx, r15
mov r8, rdi
call fcn.14013b1d0
add r15, rdi
sub rsi, rdi
mov rax, qword [rbx + 0x58]
sub dword [rax], edi
mov rax, qword [rbx + 0x40]
add qword [rax], rdi
test rsi, rsi
jle 0x1400473fb
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140047364
mov rax, qword [rbx + 0x58]
mov edi, dword [rax]
test edi, edi
jg 0x140047320
movzx edx, byte [r15]
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
call qword [case.0x140174a01.0]
cmp eax, 0xffffffff
je 0x1400473fb
inc r15
dec rsi
test rsi, rsi
jg 0x14004734e
jmp 0x1400473fb
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400473d4
test r14, r14
jle 0x1400473d4
mov rax, qword [rbx + 0x58]
mov edi, dword [rax]
test edi, edi
jle 0x1400473d4
cmp rdi, r14
cmovae rdi, r14
mov rdx, r15
mov r8, rdi
call fcn.14013b1d0
add r15, rdi
mov rsi, r14
sub rsi, rdi
mov rax, qword [rbx + 0x58]
sub dword [rax], edi
mov rax, qword [rbx + 0x40]
add qword [rax], rdi
test rsi, rsi
jg 0x1400473dc
jmp 0x1400473fb
mov rsi, r14
test rsi, rsi
jle 0x1400473fb
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x1400473fb
mov edx, 1
mov rcx, r15
mov r8, rsi
call fcn.14014bdac
sub rsi, rax
sub r14, rsi
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400477f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x140222818]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x1400478cf
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x1400478cf
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xffffffff
call qword [case.0x140174a01.0]
cmp eax, 0xffffffff
je 0x1400478cd
movaps xmm0, xmmword [0x1401b68c0]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x28], rax
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
lea rbx, [rsp + 0x28]
mov qword [rsp + 0x20], rbx
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [case.0x140174a01.0]
cmp eax, 3
je 0x1400478e6
cmp eax, 1
je 0x14004789d
test eax, eax
jne 0x1400478cd
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x1400478c3
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call fcn.14014bdac
cmp rbx, rax
jne 0x1400478cd
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x1400478cf
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14013a2d0
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov dil, 1
jmp 0x1400478cf

Function at 0x140049ef0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140049f05
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x14004a070
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14022f730]
mov ecx, dword [0x140231458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004a0a5
lea rcx, [0x14022f720]
add rsp, 0x28
jmp fcn.140037420
lea rcx, [0x14022f730]
call fcn.14013a0a8
cmp dword [0x14022f730], 0xffffffff
jne 0x14004a095
xorps xmm0, xmm0
movups xmmword [0x14022f720], xmm0
lea rcx, [0x14022f720]
xor edx, edx
call fcn.1400374b0
lea rcx, [0x14022f730]
call fcn.14013a048
jmp 0x14004a095

Function at 0x14004be0c
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, r8
mov r8, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0x90]
mov edx, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov qword [rsi], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r9
xor r14d, r14d
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x14004bea4
mov rbx, rax
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [rcx + rcx*4]
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_GetLastError]