joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029290
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rax, qword [0x140262958]
xor rax, rsp
mov qword [rsp + 0x28], rax
test rdx, rdx
je 0x140029328
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str....._base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x20]
jmp 0x1400292e8
add rdi, rbx
sub rsi, rbx
je 0x140029328
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x1400292e0
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.140008430
mov rcx, r12
call fcn.1400085c0
mov rcx, r12
call fcn.1400085d0
jmp 0x1400292e0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016b720
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002d857
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 [0x140262958]
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 0x14002d905
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 0x14002d905
test r14d, r14d
setne al
cmp r15, rsi
sete sil
and sil, al
jmp 0x14002d907
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14016b720
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14002f592
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 0x14002f6a9
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x14002f6a9
cmp word [rax + rcx + 0x14], 0x78
jb 0x14002f6a9
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.0x1401a7275.0]
test rax, rax
je 0x14002f6a9
cmp rdi, 0xffff
jbe 0x14002f6e1
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x1401a7275.0]
mov ecx, dword [r14 + 0x18]
test rcx, rcx
je 0x14002f6a9
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.0x1401a7275.0]
mov cl, byte [rdi]
test cl, cl
je 0x14002f67b
mov rdx, r13
cmp cl, byte [rax]
jne 0x14002f67d
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x14002f66b
xor ecx, ecx
lea rsi, [rsi*2]
add rsi, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x14002f6bc
movzx ecx, cl
lea rdx, [rsi + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs r15, rsi
xor eax, eax
cmp rbp, r15
jne 0x14002f636
jmp 0x14002f6ab
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.0x1401a7275.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 0x14002f6ab
Function at 0x14002f79e
Capabilities:
Parse pe header

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

Function at 0x140032ab0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2e8
mov r14, rcx
mov rax, qword [0x140262958]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x2d0], rax
movaps xmm0, xmmword [0x1401e9fb0]
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, [0x1401ec35a]
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.14001cda0
lea rbx, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14016cd80
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 0x140032bcf
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.140172940
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.14001cdb0
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.14016b720
mov eax, ebx
add rsp, 0x2e8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140032c10
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x140262958]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x1401e9fb0]
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, [0x1401ec36f]
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.14001cda0
cmp qword [rsi + 0x18], 8
jb 0x140032ca2
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.14001cdb0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14016b720
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140033b70
Capabilities:
Get thread local storage value

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

Function at 0x140033ba0
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 [0x140262958]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, dword [0x140262080]
cmp ecx, 0xffffffff
je 0x140033bd5
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140033bda
call fcn.140033d80
mov eax, dword [0x1402724c8]
mov ecx, dword [0x140274a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x14]
jg 0x140033d2d
mov rbx, qword [0x1402724c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140033d20
mov rcx, qword [0x140270cb0]
inc rcx
mov edx, 0x100
lea rax, [0x140270cc0]
nop dword [rax]
movzx edi, cl
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x140033c5a
lea edi, [rcx + 1]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x140033c5a
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x140033c30
jmp 0x140033c7f
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x140270cb0], 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 0x140033d06
mov ecx, 0x100
call fcn.140011700
mov rdi, rax
mov rcx, rsi
call fcn.140011700
lea rdx, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x30]
mov r8, rax
mov r9, rdi
call fcn.140011bf0
cmp qword [rsp + 0x30], 0
je 0x140033d06
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.14016b720
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rbx
call fcn.1400193d0
jmp 0x140033c17
lea rcx, [0x1402724c8]
call fcn.14016b4f8
cmp dword [0x1402724c8], 0xffffffff
jne 0x140033bff
mov ecx, 8
call fcn.14016b0d4
mov rbx, rax
mov rcx, rax
call fcn.1400193c0
mov qword [0x1402724c0], rbx
lea rcx, [0x1402724c8]
call fcn.14016b498
jmp 0x140033bff
Function at 0x140033d80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14016ba20
sub rsp, rax
mov rax, qword [0x140262958]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov ecx, dword [0x140262080]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x140033e72
lea rcx, [rsp + 0x2c]
call fcn.140046d10
test al, al
jne 0x140033df3
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 0x140033e50
lea rcx, [rsp + 0x2c]
call fcn.140046d10
test al, al
je 0x140033e11
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x140033e42
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 [0x140262080], ecx
mov ecx, dword [rsp + 0x2c]
je 0x140033e72
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140262080]
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 0x140033eee
xor ecx, ecx
call fcn.140011520
mov rdi, rax
mov ecx, esi
call fcn.140011520
lea rdx, str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
lea rcx, [rsp + 0x30]
mov r8, rax
mov r9, rdi
call fcn.140011bf0
cmp qword [rsp + 0x30], 0
je 0x140033eee
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.14016cd80
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14016b9fc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14016c6d0
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.14016b720
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret

Function at 0x140033f60
Capabilities:
Get thread local storage value

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140262080]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140033fde
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 0x140033fd7
call fcn.140033d80
jmp 0x140033fbe

Function at 0x140036e10
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140272558]
mov ecx, dword [0x140274a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x14]
jg 0x140036e45
lea rcx, [0x140272548]
add rsp, 0x28
jmp fcn.140033f60
lea rcx, [0x140272558]
call fcn.14016b4f8
cmp dword [0x140272558], 0xffffffff
jne 0x140036e35
xorps xmm0, xmm0
movups xmmword [0x140272548], xmm0
lea rcx, [0x140272548]
xor edx, edx
call fcn.140033ff0
lea rcx, [0x140272558]
call fcn.14016b498
jmp 0x140036e35

Function at 0x14003a4f0
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 0x14003dc90
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 [0x140262958]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, qword [rdx]
mov qword [rsp + 0x30], 0
movaps xmm0, xmmword [0x1401e9f80]
movups xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rcx, rdi
call fcn.1401730d0
mov rbx, rax
cmp rax, 0xf
jbe 0x14003dcf2
lea rcx, [rsp + 0x30]
mov rdx, rbx
mov r9, rdi
call fcn.140007bd0
jmp 0x14003dd0c
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x30]
mov rdx, rdi
mov r8, rbx
call fcn.14016c6d0
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 0x14003dd5a
movabs rax, 0x100000001b3
lea rdx, [r14 - 1]
mov ecx, r14d
and ecx, 3
cmp rdx, 3
jae 0x14003dd5f
xor esi, esi
jmp 0x14003dda8
mov rdx, rbp
jmp 0x14003ddd6
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 0x14003dd70
mov rdx, rbp
test rcx, rcx
je 0x14003ddd6
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 0x14003ddc0
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 0x14003de51
add rdx, rdx
mov rdi, qword [rax + rdx*8]
cmp r14, qword [rsi + 0x20]
jne 0x14003de33
nop word cs:[rax + rax]
cmp qword [rsi + 0x28], 0x10
jb 0x14003de20
mov rdx, qword [rsi + 0x10]
jmp 0x14003de24
lea rdx, [rsi + 0x10]
mov rcx, rbx
mov r8, r14
call fcn.14016c5d0
test eax, eax
je 0x14003de44
cmp rsi, rdi
je 0x14003de51
mov rsi, qword [rsi + 8]
cmp r14, qword [rsi + 0x20]
je 0x14003de10
jmp 0x14003de33
test rsi, rsi
je 0x14003de51
cmp r15, 0x10
jae 0x14003de5a
jmp 0x14003de93
mov rsi, r13
cmp r15, 0x10
jb 0x14003de93
lea rdx, [r15 + 1]
cmp rdx, 0x1000
jb 0x14003de89
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x14003deb9
add r15, 0x28
mov rdx, r15
mov rcx, rax
jmp 0x14003de8e
mov rcx, qword [rsp + 0x28]
call fcn.14016b110
cmp rsi, r13
setne bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14016b720
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.14017266c
int3
Function at 0x140043640
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rax, qword [0x140262958]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp edx, 0xffffffff
je 0x140043797
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14004369d
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x14004369d
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 0x1400437da
cmp qword [rdi + 0x80], 0
je 0x14004379b
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x1400436d7
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 0x1400437a2
movaps xmm0, xmmword [0x1401e9fb0]
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.0x1401a7275.0]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x1400437ba
mov rbx, qword [rsp + 0x48]
sub rbx, r15
je 0x140043787
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.14017d8ac
cmp rbx, rax
jne 0x1400437d8
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], r14
mov eax, 0xffffffff
jmp 0x1400437d3
xor esi, esi
jmp 0x1400437da
mov esi, 0xffffffff
jmp 0x1400437da
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call fcn.14017d948
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x1400437da
cmp eax, 3
jne 0x1400437d8
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x5f]
call fcn.14017d948
cmp eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14016b720
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140043c70
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 0x140043d0f
mov r14, r8
mov rdi, rdx
mov r12, rcx
cmp qword [rcx + 0x68], 0
je 0x140043d17
mov rbx, r14
jmp 0x140043ccc
cmp rbx, rsi
cmovb rsi, rbx
mov rcx, rdi
mov r8, rsi
call fcn.14016c6d0
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 0x140043d07
mov rax, qword [r12 + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140043ce4
mov rax, qword [r12 + 0x50]
mov esi, dword [rax]
test esi, esi
jg 0x140043ca0
mov rax, qword [r12]
mov rax, qword [rax + 0x38]
mov rcx, r12
call qword [case.0x1401a7275.0]
cmp eax, 0xffffffff
je 0x140043d07
mov byte [rdi], al
inc rdi
dec rbx
test rbx, rbx
jg 0x140043ccc
sub r14, rbx
jmp 0x140043e1b
xor r14d, r14d
jmp 0x140043e1b
mov rax, qword [r12 + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140043d6f
mov rax, qword [r12 + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x140043d6f
cmp r15, r14
cmovae r15, r14
mov rcx, rdi
mov r8, r15
call fcn.14016c6d0
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 0x140043d81
jmp 0x140043e18
mov rsi, r14
cmp qword [r12 + 0x80], 0
je 0x140043e18
mov rax, qword [r12 + 0x18]
lea rcx, [r12 + 0x70]
cmp qword [rax], rcx
jne 0x140043dc0
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 0x140043df4
mov r9, qword [r12 + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.14017cd48
add rdi, rax
sub rsi, rax
cmp rax, 0xfff
je 0x140043dc0
jmp 0x140043e18
test rsi, rsi
je 0x140043e16
mov r9, qword [r12 + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rsi
call fcn.14017cd48
sub rsi, rax
jmp 0x140043e18
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 0x140043e30
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 0x140043eca
mov rsi, r14
test r14, r14
jle 0x140043f3b
mov rsi, r14
jmp 0x140043e8e
cmp rsi, rdi
cmovb rdi, rsi
mov rdx, r15
mov r8, rdi
call fcn.14016c6d0
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 0x140043f3b
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140043ea4
mov rax, qword [rbx + 0x58]
mov edi, dword [rax]
test edi, edi
jg 0x140043e60
movzx edx, byte [r15]
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
call qword [case.0x1401a7275.0]
cmp eax, 0xffffffff
je 0x140043f3b
inc r15
dec rsi
test rsi, rsi
jg 0x140043e8e
jmp 0x140043f3b
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140043f14
test r14, r14
jle 0x140043f14
mov rax, qword [rbx + 0x58]
mov edi, dword [rax]
test edi, edi
jle 0x140043f14
cmp rdi, r14
cmovae rdi, r14
mov rdx, r15
mov r8, rdi
call fcn.14016c6d0
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 0x140043f1c
jmp 0x140043f3b
mov rsi, r14
test rsi, rsi
jle 0x140043f3b
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x140043f3b
mov edx, 1
mov rcx, r15
mov r8, rsi
call fcn.14017d8ac
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 0x140044330
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x140262958]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x14004440f
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x14004440f
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xffffffff
call qword [case.0x1401a7275.0]
cmp eax, 0xffffffff
je 0x14004440d
movaps xmm0, xmmword [0x1401e9fb0]
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.0x1401a7275.0]
cmp eax, 3
je 0x140044426
cmp eax, 1
je 0x1400443dd
test eax, eax
jne 0x14004440d
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x140044403
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call fcn.14017d8ac
cmp rbx, rax
jne 0x14004440d
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x14004440f
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14016b720
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov dil, 1
jmp 0x14004440f

Function at 0x140046d10
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 0x140046d25
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret