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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180005520
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800053ea
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180005334
mov rax, qword [0x180028008]
cmp qword [rsp + 0x20], rax
ja 0x180005334
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800052f6
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18000b1a0
mov r8d, gethostbyname
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180005365
jmp 0x1800053ea
cmp dword [rsp + 0x50], 0x10000
jne 0x1800053cd
cmp qword [rsp + 0x48], 0x10000
jb 0x1800053cd
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800053ab
mov rax, qword [rsp + 0x28]
jmp 0x1800053ec
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1800053bb
xor eax, eax
jmp 0x1800053ec
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800053e5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180005520
mov qword [rsp + 0x20], rax
jmp 0x1800052f6
xor eax, eax
add rsp, 0x68
ret

Function at 0x180005400
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180005560
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180005516
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18000545b
mov rax, qword [0x180028008]
cmp qword [rsp + 0x20], rax
ja 0x18000545b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18000541d
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18000b1a0
mov r8d, gethostbyname
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18000548c
jmp 0x180005516
cmp dword [rsp + 0x50], 0x10000
jne 0x1800054f4
cmp qword [rsp + 0x48], 0x10000
jb 0x1800054f4
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800054d2
mov rax, qword [rsp + 0x28]
jmp 0x180005518
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1800054e2
xor eax, eax
jmp 0x180005518
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180005511
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180005560
mov qword [rsp + 0x20], rax
jmp 0x18000541d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800055b0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180005b40
mov qword [rsp + 0x28], 0
cmp qword [0x180028ae8], 0
jne 0x1800055f8
cmp qword [0x180028ae0], 0
je 0x1800055f8
mov rax, qword [0x180028ae0]
mov qword [0x180028ae8], rax
cmp qword [0x180028ae8], 0
je 0x18000569e
mov rax, qword [0x180028ae8]
cmp qword [rax + 0x10], 0
je 0x18000569e
mov rax, qword [0x180028ae8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000569e
mov rax, qword [0x180028ae8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000569e
mov rax, qword [0x180028ae8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180005664
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18000566b
xor eax, eax
jmp 0x180005819
mov rax, qword [0x180028ae8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.18000b1a0
mov rax, qword [rsp + 0x28]
jmp 0x180005819
mov rax, qword [0x180028ae0]
mov qword [0x180028ae8], rax
jmp 0x1800056c0
mov rax, qword [0x180028ae8]
mov rax, qword [rax + 8]
mov qword [0x180028ae8], rax
cmp qword [0x180028ae8], 0
je 0x18000570d
cmp qword [0x180028ae8], 0
je 0x18000570b
mov rax, qword [0x180028ae8]
cmp qword [rax + 0x10], 0
je 0x18000570b
mov rax, qword [0x180028ae8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000570b
mov rax, qword [0x180028ae8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000570b
jmp 0x18000563c
jmp 0x1800056ae
mov rcx, qword [rsp + 0x60]
call fcn.1800079b0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180005820
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180005817
mov rax, qword [rsp + 0x48]
mov qword [0x180028ae8], rax
mov rax, qword [0x180028ae8]
mov dword [rax], 0x52727464
mov rax, qword [0x180028ae8]
mov qword [rax + 0x10], 0
mov rax, qword [0x180028ae8]
mov rcx, qword [0x180028ae0]
mov qword [rax + 8], rcx
mov rax, qword [0x180028ae8]
mov qword [0x180028ae0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180028ae8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800057c8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180005802
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1800057be
mov rax, qword [0x180028ae8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18000563c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180006530
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, gethostbyname
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180006577
xor al, al
jmp 0x180006619
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x1800065a1
xor al, al
jmp 0x180006619
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x180006611
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x180006611
mov al, 1
jmp 0x180006619
jmp 0x180006617
xor al, al
add rsp, 0x78
ret

Function at 0x180006920
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180028ae0]
mov qword [rsp + 0x28], rax
jmp 0x180006940
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000696f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18000696d
call sub.KERNEL32.dll_GetLastError
jmp 0x180006971
jmp 0x180006932
xor eax, eax
add rsp, 0x38
ret
Function at 0x180007250
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180028af8], eax
je 0x18000726b
mov eax, 0x10dd
jmp 0x180007390
mov rax, qword [0x180028b10]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180007315
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x1800072e0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x1800072e0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180005c80
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, gethostbyname
mov rcx, qword [rsp + 0x38]
call fcn.1800096f0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180007277
mov qword [0x180028b10], 0
call fcn.1800066e0
mov rax, qword [0x180028b08]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180007379
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.1800096f0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180007331
mov qword [0x180028b08], 0
mov dword [0x180028af8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800078c0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x180028afc], 0
je 0x1800078dd
mov eax, dword [0x180028afc]
jmp 0x1800079a3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x1800078f0
xor eax, eax
jmp 0x1800079a3
mov ecx, 0x10
call fcn.1800092d0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18000795e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180007943
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.1800096f0
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x180028afc], eax
mov qword [0x180028b00], 0
mov eax, dword [rsp + 0x20]
jmp 0x1800079a3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180007978
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180007919
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x180028b08]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x180028b08], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x14000ae00
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
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.140016f30
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140016f30
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x14000ae70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400f80a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x14000b020
mov rax, qword [0x1400f80a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000aebc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000af47
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x14000aea0
mov rcx, r12
call fcn.14000b920
mov rbp, rax
test rax, rax
je 0x14000b07d
mov rax, qword [0x1400f80a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.14000ba50
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400f80a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b062
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000af40
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000afd0
add dword [0x1400f80a4], 1
cmp ebx, 8
jae 0x14000af78
test bl, 4
jne 0x14000b030
test ebx, ebx
je 0x14000af69
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x14000b050
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x14000af69
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14000afaa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400f80a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000af40
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000ae00
xor edi, edi
jmp 0x14000aec7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x14000af69
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x14000af69
mov rax, qword [0x1400f80a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.14000ae00
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000ae00
nop
nop dword [rax]
Function at 0x14000b590
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400f8100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400f80e0]
test rbx, rbx
je 0x14000b5e4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000b5db
test r12, r12
je 0x14000b5db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b5c0
lea rcx, [0x1400f8100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000b920
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1400d35e0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14000b999
mov rcx, r10
call fcn.14000b7f0
test eax, eax
je 0x14000b999
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x14000b996
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000b98d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14000b999
add r8, 0x28
cmp r8, r9
jne 0x14000b978
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x14000bc90
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x1400f80e8]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x14000b620
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x14000b673
mov dword [rax], edi
lea rcx, [0x1400f8100]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400f80e0]
lea rcx, [0x1400f8100]
mov qword [0x1400f80e0], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x14000b616
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x14000bcc0
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x1400172b0
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x1400172c0
xor eax, eax
ret
jmp 0x14000b600

Function at 0x14000bd00
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x14000bd40
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000bd58
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1400172d0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
mov dword [rsp + 0x78], edx
mov rsi, rcx
mov r12, r8
mov rbx, r9
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400173c8
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400173c8
xor r9d, r9d
mov rcx, qword [rsp + 0x40]
mov r8d, ebx
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400173c8
lea rax, [rsp + 0x48]
xor r9d, r9d
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, 0x6610
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x1400173c8
lea rax, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1400173c8
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
mov eax, 0xffffffff
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
Function at 0x140073c80
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 0x140073ca7
call rbp
cmp dword [rax], 4
jne 0x140073cc4
mov rcx, rdi
call fcn.140073aa0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x140073ca0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400af370
Capabilities:
Create thread
Inject thread

Disassembly:
push r12
push rbx
sub rsp, 0x88
call fcn.14000abe0
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0x19600
call rbx
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea r9, [rsp + 0x70]
mov dword [rsp + 0x28], 4
mov rcx, rax
mov dword [rsp + 0x20], 0x3000
call sub.ntdll.dll_NtAllocateVirtualMemory
call fcn.140017450
mov edx, dword [0x1400cd5c0]
mov r9d, 0x10
lea r8, [0x1400cd5d0]
lea rcx, [0x1400b11a0]
call fcn.1400172d0
mov r12, qword [rsp + 0x68]
call rbx
mov r9d, 0x19600
lea r8, [0x1400b11a0]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, r12
call sub.ntdll.dll_NtWriteVirtualMemory
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x64]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400af4bf
call fcn.140017450
mov r12, qword [rsp + 0x68]
call rbx
lea rcx, [rsp + 0x78]
xor r8d, r8d
mov edx, 0x1f03ff
mov qword [rsp + 0x50], 0
mov r9, rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r12
call sub.ntdll.dll_NtCreateThreadEx
call fcn.140017450
mov rcx, qword [rsp + 0x78]
xor r8d, r8d
xor edx, edx
call sub.ntdll.dll_NtWaitForSingleObject
call fcn.140017450
mov rcx, qword [rsp + 0x78]
call sub.ntdll.dll_NtClose
xor eax, eax
add rsp, 0x88
pop rbx
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.VirtualProtect_failed_with_error_code:__lx_n
mov edx, eax
call fcn.140017950
or eax, 0xffffffff
jmp 0x1400af4b4
Function at 0x414e40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x414fcb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00432400
xorps xmm15, xmm15
mov r14, qword [0x0061e4f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x414ea5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x414eb4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x414ed3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x414ee3
cmp rbx, 0x1000
jae 0x414eab
jmp 0x414f4d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x414ef5
xor edx, edx
jmp 0x414f44
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00432400
xorps xmm15, xmm15
mov r14, qword [0x0061e4f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x414ed9
jmp 0x414ec8
call fcn.00462d20
xorps xmm15, xmm15
mov r14, qword [0x0061e4f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00436800
lea rax, [0x004fc691]
mov ebx, 0x18
nop dword [rax]
call fcn.00437080
mov rax, qword [rsp + 0x38]
call fcn.00436dc0
lea rax, [0x004fcd9d]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00437080
mov rax, qword [rsp + 0x30]
call fcn.00436dc0
call fcn.00436a40
call fcn.00436860
lea rax, [0x004ff951]
mov ebx, 0x21
call fcn.00434e60
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045f660
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00414e40