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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400b9328]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14004497d
xor eax, eax
jmp 0x140044acb
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400449b7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400449b7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140044acb
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140044abe
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400449fa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140044a09
movsx ecx, dil
jmp 0x140044a5d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x140044a77
sub eax, 1
je 0x140044a77
cmp eax, 2
jne 0x140044abe
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.140070c60
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140044ac3
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140044aa4
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.1400717ac
cmp rsi, rax
jne 0x140044abe
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140044ac3
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140067480
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400529e0
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400b9328]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor r14d, r14d
lea rax, [r11 - 0x28]
lea r9, [r11 - 0x30]
mov qword [r11 - 0x30], r14
xor edx, edx
mov dword [r11 - 0x28], r14d
xor ecx, ecx
mov qword [r11 - 0x78], rax
lea r8d, [r14 + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
test eax, eax
je 0x140052b9b
mov edi, r14d
cmp dword [rsp + 0x70], r14d
jbe 0x140052b9b
lea r15, [r14 - 1]
nop dword [rax]
mov eax, edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov r8, r15
mov qword [rsp + 0x48], r14
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x68]
lea rbp, [rcx*8]
mov rdx, qword [rax + rbp + 8]
nop dword [rax]
inc r8
cmp word [rdx + r8*2], r14w
jne 0x140052a80
lea rcx, [rsp + 0x30]
call fcn.14003f1b0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
lea rcx, [0x1400bf270]
call fcn.1400512c0
mov rsi, qword [rsp + 0x48]
mov r10, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], r14b
jne 0x140052b1e
mov r11, qword [rax + 0x30]
add rax, 0x20
cmp qword [rax + 0x18], 8
jb 0x140052ad0
mov rax, qword [rax]
mov rbx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
cmp rsi, 8
mov rcx, rbx
cmovae r9, r10
cmp r11, rbx
cmovb rcx, r11
test rcx, rcx
je 0x140052b08
sub r9, rax
movzx edx, word [r9 + rax]
cmp dx, word [rax]
jne 0x140052b11
add rax, 2
sub rcx, 1
jne 0x140052af4
cmp rbx, r11
jb 0x140052b1e
mov bl, 1
jmp 0x140052b20
mov eax, 1
cmovb eax, r15d
test eax, eax
jns 0x140052b0d
xor bl, bl
cmp rsi, 8
jb 0x140052b5b
lea rdx, [rsi*2 + 2]
mov rax, r10
cmp rdx, 0x1000
jb 0x140052b53
mov r10, qword [r10 - 8]
add rdx, 0x27
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140052bd5
mov rcx, r10
call fcn.140067810
test bl, bl
je 0x140052b8f
mov r8, qword [rsp + 0x68]
mov rdx, qword [0x1400bf2a8]
add r8, 4
add r8, rbp
cmp rdx, qword [0x1400bf2b0]
je 0x140052b8a
mov eax, dword [r8]
mov dword [rdx], eax
add qword [0x1400bf2a8], 4
jmp 0x140052b8f
call fcn.1400531b0
inc edi
cmp edi, dword [rsp + 0x70]
jb 0x140052a50
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140052bab
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140067480
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.14006e250
int3
Function at 0x140054760
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x1400b9328]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea r15, [0x1400b9f50]
mov qword [rsp + 0x28], r15
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx], xmm0
mov eax, dword [rcx + 0xa4]
test eax, eax
jne 0x1400547be
call fcn.1400366f0
xor eax, eax
jmp 0x14005495b
mov dword [rbp - 9], r14d
lea rcx, [rbp - 1]
call fcn.14005a140
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
movups xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], r14
mov dword [rbp + 0x1f], r14d
xor eax, eax
movups xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x69], rax
lea rax, [rbx + 0x28]
test rbx, rbx
cmove rax, r14
mov qword [rbp - 0x79], rax
lea rax, [rbp - 0x59]
mov qword [rbp - 0x71], rax
mov ecx, dword [0x1400bf208]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x69], rax
lea rdx, [rbp - 0x79]
mov ecx, dword [0x1400bf208]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rbx + 0x30]
mov qword [rsp + 0x40], rcx
cmp byte [rcx + 0x28], 0
je 0x14005484c
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
jmp 0x140054851
mov byte [rsp + 0x48], 0
mov rdi, r14
mov r9, rsi
lea r8, [rbp - 0x59]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140054c90
test rax, rax
je 0x1400548b5
nop dword [rax]
lea rax, [rdi + 1]
cmp rdi, 0xffffffffffffffff
cmove rax, rdi
mov rdi, rax
mov rcx, qword [rsp + 0x40]
cmp byte [rcx + 0x28], 0
je 0x14005489c
cmp byte [rsp + 0x48], 0
jne 0x14005489c
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
mov r9, rsi
lea r8, [rbp - 0x59]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140054c90
test rax, rax
jne 0x140054870
cmp byte [rsp + 0x48], 0
je 0x1400548c8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [rbp - 0x69]
mov ecx, dword [0x1400bf208]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, qword [rbp + 0xf]
mov rcx, rax
test rax, rax
je 0x14005492f
mov rdx, rax
nop dword [rax + rax]
mov rax, qword [rax]
mov qword [rbp + 0xf], rax
test rax, rax
jne 0x140054900
mov qword [rbp + 0x17], r14
mov qword [rdx], r14
mov rax, qword [rcx + 8]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x38], r15
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rcx
xor ecx, ecx
call rax
mov rax, qword [rbp + 0xf]
mov rcx, rax
mov rdx, rax
test rax, rax
jne 0x1400548f0
lea rbx, [rbp - 0x59]
mov esi, 0xa
mov rcx, qword [rbx]
test rcx, rcx
je 0x140054945
call case.0x1400617fb.0
add rbx, 8
sub rsi, 1
jne 0x140054938
lea rcx, [rbp - 1]
call fcn.14005a1cc
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140067480
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400549e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x1400bf208]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140054b04
cmp qword [rax], rbx
je 0x140054a1c
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140054a08
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140054b04
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x140054ac9
cmp ecx, 1
jne 0x140054b04
lea rdx, [rbx + 0x58]
mov dword [rbx + 0x50], 2
lea rcx, [rsp + 0x30]
call fcn.14005a0ec
xorps xmm0, xmm0
lea rax, vtable.asio::multiple_exceptions.0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x48], xmm0
call fcn.14005a0ec
lea rcx, [rsp + 0x30]
call fcn.14005a1cc
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
call fcn.14005a140
lea r8, [0x1400b69f0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14005a114
lea rcx, [rsp + 0x58]
call fcn.14005a1cc
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call fcn.140069558
jmp 0x140054aec
xorps xmm0, xmm0
mov dword [rbx + 0x50], 1
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
call fcn.14005a140
lea rcx, [rsp + 0x20]
call fcn.14005a14c
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x58]
call fcn.14005a0e4
lea rcx, [rsp + 0x20]
call fcn.14005a1cc
add rsp, 0x70
pop rbx
ret
Function at 0x140054b10
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, rdx
mov rbx, rcx
lea rdi, [rcx + 0x28]
xor ebp, ebp
cmp byte [rdi], bpl
jne 0x140054b38
test r8b, r8b
je 0x140054b5e
test rbx, rbx
cmove rdi, rbp
mov ecx, dword [0x1400bf208]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140054b5e
cmp qword [rax], rdi
je 0x140054b89
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140054b50
lock inc dword [rbx + 0xa4]
lea rdi, [rbx + 0x30]
mov qword [rsp + 0x20], rdi
cmp byte [rdi + 0x28], bpl
je 0x140054bba
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov sil, 1
movzx eax, sil
movzx ecx, al
jmp 0x140054bc1
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140054b5e
inc dword [rcx + 0x78]
mov qword [r14], rbp
mov rax, qword [rcx + 0x70]
test rax, rax
je 0x140054bad
mov qword [rax], r14
mov qword [rcx + 0x70], r14
jmp 0x140054c70
mov qword [rcx + 0x68], r14
mov qword [rcx + 0x70], r14
jmp 0x140054c70
xor sil, sil
xor al, al
xor cl, cl
mov byte [rsp + 0x28], sil
mov qword [r14], rbp
mov rdx, qword [rbx + 0xb0]
test rdx, rdx
je 0x140054bda
mov qword [rdx], r14
jmp 0x140054be4
mov qword [rbx + 0xa8], r14
movzx eax, cl
mov qword [rbx + 0xb0], r14
cmp byte [rdi + 0x28], 0
je 0x140054c2c
or qword [rbx + 0x70], 1
cmp qword [rbx + 0x70], 1
jbe 0x140054c26
test al, al
je 0x140054c18
cmp byte [rdi + 0x28], 0
je 0x140054c10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor sil, sil
mov byte [rsp + 0x28], sil
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
jmp 0x140054c28
xor al, al
test al, al
jne 0x140054c62
cmp byte [rbx + 0xa0], 0
jne 0x140054c4b
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x140054c4b
mov byte [rbx + 0xa0], 1
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x140054c62
cmp byte [rdi + 0x28], 0
je 0x140054c5f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor sil, sil
test sil, sil
je 0x140054c70
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140056c80
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140056caf
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x140056ca7
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140056cf8
mov ecx, dword [0x1400bf208]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140056ce8
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140056ce8
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140056d03
inc ecx
inc rax
cmp rax, 2
jl 0x140056cd6
mov rcx, rbx
call case.0x1400617fb.0
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x28]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400571a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1400b9328]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x20], 0
je 0x1400571f1
mov r8, qword [rcx + 0x18]
mov qword [rbp - 0x21], r8
mov rax, qword [rcx + 0x28]
mov qword [rbp - 0x11], rax
mov rax, qword [r8 + 8]
mov rdx, rcx
lea rcx, [rbp - 0x39]
call rax
jmp 0x140057201
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], 0
mov rax, qword [rbx + 0x30]
mov qword [rbp - 9], rax
lea rdx, [rdi + 8]
lea rcx, [rbp + 0x1f]
call fcn.14005a0ec
nop
cmp qword [rbp - 0x19], 0
je 0x140057334
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x140057251
lea rcx, [0x140058200]
mov qword [rbp - 0x49], rcx
lea rcx, [rbp + 0x17]
mov qword [rbp - 0x41], rcx
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x39]
call rax
jmp 0x1400572f4
mov rdi, qword [rcx + 0x10]
lea rdx, [rbp + 0x1f]
lea rcx, [rbp + 7]
call fcn.14005a0ec
lea rax, [rbp - 1]
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x59]
mov qword [rbp + 0x2f], rax
mov ecx, dword [0x1400bf208]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140057289
mov rdx, qword [rax + 8]
jmp 0x14005728b
xor edx, edx
mov r8d, 0x28
call fcn.1400429f0
mov rbx, rax
mov qword [rbp + 0x3f], 0
lea rcx, [rax + 0x10]
lea rdx, [rbp + 7]
call fcn.14005a0ec
lea rax, [0x140058260]
mov qword [rbx], rax
mov qword [rbp - 0x51], rbx
mov qword [rbp + 0x37], 0
lea rcx, [rbp + 0x2f]
call fcn.140058160
nop
lea rcx, [rbp + 7]
call fcn.14005a1cc
nop
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x39]
call rdi
nop
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x1400572f4
mov rax, qword [rcx]
xor edx, edx
call rax
nop
lea rcx, [rbp + 0x1f]
call fcn.14005a1cc
nop
cmp qword [rbp - 0x19], 0
je 0x140057313
mov rax, qword [rbp - 0x21]
mov rdx, qword [rax]
lea rcx, [rbp - 0x39]
call rdx
nop
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140067480
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rcx, [rbp + 0x2f]
call fcn.1400380f0
nop
lea rcx, [rbp + 0x2f]
call fcn.14003e530
int3
Function at 0x140057db0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400b9328]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
cmp qword [rcx + 0x20], 0
je 0x140057ecc
mov rcx, qword [rcx + 0x28]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x140057e23
lea rcx, [0x140058230]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdx
lea rdx, [rsp + 0x40]
mov rcx, rbx
call rax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140067480
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rdi, qword [rcx + 0x10]
mov rax, qword [rdx]
xor esi, esi
mov qword [rdx], rsi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov ecx, dword [0x1400bf208]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140057e5f
mov rdx, qword [rax + 8]
jmp 0x140057e62
mov rdx, rsi
mov r8d, 0x18
call fcn.1400429f0
mov qword [rsp + 0x60], rsi
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x28], rsi
mov qword [rax + 8], rcx
lea rcx, [0x1400583b0]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0x50]
call fcn.1400580c0
nop
lea rcx, [rsp + 0x28]
call fcn.1400410e0
nop
lea rdx, [rsp + 0x30]
mov rcx, rbx
call rdi
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140057ec7
mov rax, qword [rcx]
xor edx, edx
call rax
nop
jmp 0x140057e04
lea rcx, [rsp + 0x50]
call fcn.1400380f0
nop
lea rcx, [rsp + 0x50]
call fcn.14003e530
int3

Function at 0x1400580c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400580e7
add rcx, 8
call fcn.1400410e0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140058133
mov ecx, dword [0x1400bf208]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140058123
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140058123
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x14005813e
inc ecx
inc rax
cmp rax, 6
jl 0x140058111
mov rcx, rbx
call case.0x1400617fb.0
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x18]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret
Function at 0x140058160
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140058187
add rcx, 0x10
call fcn.14005a1cc
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400581d3
mov ecx, dword [0x1400bf208]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400581c3
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400581c3
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x1400581de
inc ecx
inc rax
cmp rax, 6
jl 0x1400581b1
mov rcx, rbx
call case.0x1400617fb.0
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x28]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x1400594c8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14005954c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14009b760]
cmp byte [rcx + rax], 0
je 0x14005954c
dec r8
sub rdx, 1
jne 0x140059532
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14005b6b8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1400b9328]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov edi, 0xffff
xor r14d, r14d
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x14005b6fc
movzx eax, r14w
jmp 0x14005b831
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x14005b738
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x14005b738
lea ecx, [r9 - 1]
mov dword [rax], ecx
movzx eax, si
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x14005b831
cmp qword [rcx + 0x80], r14
je 0x14005b82e
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14005b776
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14005b79f
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.140076c00
cmp ax, di
je 0x14005b82e
movzx edi, si
jmp 0x14005b82e
lea r8, [rbp + 0xf]
mov word [rbp + 7], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp + 9]
lea r8, [rbp + 0x3f]
mov qword [rsp + 0x30], r8
lea r8, [rbp + 0x1f]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], r8
lea r8, [rbp + 7]
call qword [str.0H_t_]
test eax, eax
je 0x14005b7f4
sub eax, 1
je 0x14005b7f4
cmp eax, 2
jne 0x14005b82e
movzx ecx, word [rbp + 7]
jmp 0x14005b782
mov r14, qword [rbp + 0xf]
lea rax, [rbp + 0x1f]
sub r14, rax
je 0x14005b81e
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x1f]
mov r8, r14
mov edx, 1
call fcn.1400717ac
cmp r14, rax
jne 0x14005b82e
lea rax, [rbp + 7]
mov byte [rbx + 0x72], 1
cmp qword [rbp + 0x17], rax
cmovne di, si
movzx eax, di
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140067480
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14005fb20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x50
mov rax, r8
mov rbx, rcx
test rdx, rdx
jne 0x14005fb45
mov eax, 0xfffffff7
add rsp, 0x50
pop rbx
ret
test rax, rax
je 0x14005fc38
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov ecx, dword [rbx + 0x88]
test ecx, ecx
jne 0x14005fbe3
mov eax, dword [rbx + 0x10]
lea edx, [rcx + 1]
mov r14d, dword [rbx + 0x94]
mov rcx, rbx
mov edi, dword [rbx + 0x3c]
mov esi, dword [rbx + 0x8c]
mov ebp, dword [rbx]
mov r13d, dword [rbx + 0x98]
mov r15d, dword [rbx + 0x14]
mov r12d, dword [rbx + 0x90]
mov dword [rsp + 0x78], eax
call fcn.14005fc40
lea eax, [r14 + rdi]
mov dword [rbx + 0x88], 8
xor eax, esi
mov ecx, 8
xor eax, ebp
bswap eax
mov dword [rbx + 0x80], eax
lea eax, [r15 + r13]
xor eax, r12d
xor eax, dword [rsp + 0x78]
bswap eax
mov dword [rbx + 0x84], eax
mov eax, 8
sub eax, ecx
cdqe
movzx ecx, byte [rax + rbx + 0x80]
mov rax, qword [rsp + 0x68]
xor byte [rax], cl
inc rax
dec dword [rbx + 0x88]
sub qword [rsp + 0x70], 1
mov qword [rsp + 0x68], rax
jne 0x14005fb71
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x50
pop rbx
ret
Function at 0x14005fe20
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
movzx eax, dl
lea r10, str.cw
movzx esi, byte [rax + r10]
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x10
lea edi, [rsi + rsi]
movzx r15d, byte [rcx + r10]
movzx ecx, al
mov eax, edx
shr rax, 0x18
lea r9d, [r15 + r15]
movzx r14d, byte [rcx + r10]
mov r8d, r9d
xor r8d, r15d
movzx r10d, byte [rax + r10]
movzx eax, dil
xor al, 0x1b
movzx ebp, al
bt edi, 8
movzx eax, dil
cmovae ebp, eax
movzx eax, r8b
xor al, 0x1b
movzx ecx, al
bt r8d, 8
movzx eax, r8b
lea r8d, [r14 + r14]
cmovae ecx, eax
mov edx, r8d
xor bpl, cl
xor edx, r14d
xor bpl, r10b
movzx eax, dl
xor al, 0x1b
xor bpl, r14b
movzx r11d, al
bt edx, 8
movzx eax, dl
cmovae r11d, eax
movzx eax, r9b
xor al, 0x1b
movzx ecx, al
bt r9d, 8
movzx eax, r9b
lea r9d, [r10 + r10]
cmovae ecx, eax
mov edx, r9d
xor edx, r10d
xor r11b, cl
xor r11b, r10b
movzx eax, dl
xor al, 0x1b
xor r11b, sil
movzx r10d, al
bt edx, 8
movzx eax, dl
cmovae r10d, eax
movzx eax, r8b
xor al, 0x1b
movzx ecx, al
bt r8d, 8
movzx eax, r8b
cmovae ecx, eax
xor edi, esi
xor r10b, cl
movzx eax, dil
xor al, 0x1b
xor r10b, r15b
movzx ecx, al
xor r10b, sil
movzx eax, dil
bt edi, 8
cmovae ecx, eax
movzx eax, r9b
xor al, 0x1b
movzx r8d, cl
movzx ecx, al
movzx eax, r9b
mov rbx, qword [rsp + 0x18]
bt r9d, 8
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
cmovae ecx, eax
movzx eax, cl
xor eax, r8d
movzx ecx, r10b
xor eax, r14d
xor eax, r15d
shl eax, 8
or eax, ecx
movzx ecx, r11b
shl eax, 8
or eax, ecx
movzx ecx, bpl
mov rbp, qword [rsp + 0x20]
shl eax, 8
or eax, ecx
pop r15
pop r14
ret