joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001125d
Capabilities:
Terminate process

Disassembly:
jmp 0x140014150
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112fd
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400154a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400154c0
xor al, al
jmp 0x140015541
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400154d3
xor al, al
jmp 0x140015541
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400154fd
xor al, al
jmp 0x140015541
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015511
xor al, al
jmp 0x140015541
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015523
xor al, al
jmp 0x140015541
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001553f
xor al, al
jmp 0x140015541
mov al, 1
add rsp, 0x38
ret
Function at 0x1800035d0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x180082088]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx r14d, r9b
mov r15, rdx
mov rdi, rcx
mov dword [rsp + 0x24], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor esi, esi
mov qword [r11 - 0x28], rsi
xor ebx, ebx
movsxd rbp, r8d
test r8d, r8d
jle 0x180003658
nop word [rax + rax]
movzx eax, byte [rbx + r15]
xor al, r14b
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.180002dd0
inc rbx
cmp rbx, rbp
jl 0x180003630
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], 0
cmp qword [rdi + 0x18], 0x10
jb 0x180003674
mov rax, qword [rdi]
jmp 0x180003677
mov rax, rdi
mov byte [rax], 0
mov rbx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
cmp rbx, r8
je 0x180003698
sub r8, rbx
mov rdx, rbx
mov rcx, rdi
call fcn.180003340
nop
test rbx, rbx
je 0x1800036f5
sub rsi, rbx
cmp rsi, 0xffffffffffffffff
jbe 0x1800036ac
call fcn.18003eae4
int3
cmp rsi, 0x1000
jb 0x1800036ed
test bl, 0x1f
je 0x1800036c0
call fcn.18003eae4
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x1800036cf
call fcn.18003eae4
int3
sub rbx, rax
cmp rbx, 8
jae 0x1800036de
call fcn.18003eae4
int3
cmp rbx, 0x27
jbe 0x1800036ea
call fcn.18003eae4
int3
mov rbx, rax
mov rcx, rbx
call fcn.180019bb4
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180019b90
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1800037c0
Capabilities:
Read .ini file

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x180082088]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rdi, r8
mov rsi, rdx
mov qword [r11 - 0x70], rdx
mov qword [r11 - 0x68], r8
mov r14, qword [rsp + 0xf0]
mov qword [r11 - 0x60], r14
xor eax, eax
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov word [r11 - 0x28], ax
mov edx, r9d
lea rcx, [rsp + 0x38]
call fcn.1800151c0
cmp qword [r14 + 0x18], 0x10
jb 0x18000383f
mov r8, qword [r14]
jmp 0x180003842
mov r8, r14
cmp qword [rax + 0x18], 0x10
jb 0x18000384c
mov rax, qword [rax]
cmp qword [rdi + 0x18], 0x10
jb 0x180003858
mov rdx, qword [rdi]
jmp 0x18000385b
mov rdx, rdi
cmp qword [rsi + 0x18], 0x10
jb 0x180003867
mov rcx, qword [rsi]
jmp 0x18000386a
mov rcx, rsi
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], 0x32
lea r9, [rsp + 0x70]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov rax, qword [rsp + 0x50]
cmp rax, 0x10
jb 0x1800038e9
inc rax
mov rcx, qword [rsp + 0x38]
cmp rax, 0xffffffffffffffff
jbe 0x1800038a4
call fcn.18003eae4
int3
cmp rax, 0x1000
jb 0x1800038e4
test cl, 0x1f
je 0x1800038b7
call fcn.18003eae4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1800038c6
call fcn.18003eae4
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800038d5
call fcn.18003eae4
int3
cmp rcx, 0x27
jbe 0x1800038e1
call fcn.18003eae4
int3
mov rcx, rax
call fcn.180019bb4
lea rcx, [rsp + 0x70]
call fcn.18003fb8c
mov ebx, eax
mov rcx, rsi
call fcn.180003540
nop
mov rcx, rdi
call fcn.180003540
nop
mov rcx, r14
call fcn.180003540
mov eax, ebx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.180019b90
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop r14
pop rdi
pop rsi
ret
Function at 0x180003940
Capabilities:
Read .ini file

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x30], 0xfffffffffffffffe
movaps xmmword [r11 - 0x28], xmm6
mov rax, qword [0x180082088]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rbx, r8
mov rdi, rdx
mov qword [r11 - 0x80], rdx
mov qword [r11 - 0x78], rbx
mov rsi, qword [rsp + 0x100]
mov qword [r11 - 0x70], rsi
xor eax, eax
mov qword [r11 - 0x68], rax
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov word [r11 - 0x38], ax
movaps xmm1, xmm3
lea rcx, [rsp + 0x38]
call fcn.1800150b0
cmp qword [rsi + 0x18], 0x10
jb 0x1800039bf
mov r8, qword [rsi]
jmp 0x1800039c2
mov r8, rsi
cmp qword [rax + 0x18], 0x10
jb 0x1800039cc
mov rax, qword [rax]
cmp qword [rbx + 0x18], 0x10
jb 0x1800039d8
mov rdx, qword [rbx]
jmp 0x1800039db
mov rdx, rbx
cmp qword [rdi + 0x18], 0x10
jb 0x1800039e7
mov rcx, qword [rdi]
jmp 0x1800039ea
mov rcx, rdi
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], 0x32
lea r9, [rsp + 0x70]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov rax, qword [rsp + 0x50]
cmp rax, 0x10
jb 0x180003a69
inc rax
mov rcx, qword [rsp + 0x38]
cmp rax, 0xffffffffffffffff
jbe 0x180003a24
call fcn.18003eae4
int3
cmp rax, 0x1000
jb 0x180003a64
test cl, 0x1f
je 0x180003a37
call fcn.18003eae4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180003a46
call fcn.18003eae4
int3
sub rcx, rax
cmp rcx, 8
jae 0x180003a55
call fcn.18003eae4
int3
cmp rcx, 0x27
jbe 0x180003a61
call fcn.18003eae4
int3
mov rcx, rax
call fcn.180019bb4
lea rcx, [rsp + 0x70]
call fcn.180042f70
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm0
mov rcx, rdi
call fcn.180003540
nop
mov rcx, rbx
call fcn.180003540
nop
mov rcx, rsi
call fcn.180003540
movaps xmm0, xmm6
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.180019b90
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbx
ret

Function at 0x180007680
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180082088]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsxd rbx, r8d
lea r9, [rsp + 0x20]
mov rdi, rdx
mov r8d, 0x40
mov rdx, rbx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.18003a360
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180019b90
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800081e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x180082088]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp qword [rcx + 0x18], 0x10
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x20], 0
jb 0x180008214
mov rdx, qword [rcx]
jmp 0x180008217
mov rdx, rcx
lea r8, [0x180072644]
lea rcx, [rsp + 0x20]
call fcn.180044174
mov r9, qword [rsp + 0x20]
test r9, r9
je 0x18000825b
mov edx, 1
mov r8d, 0x915
mov rcx, rdi
call fcn.180043498
mov rcx, qword [rsp + 0x20]
call fcn.1800431ec
mov rcx, rbx
call fcn.180003540
mov al, 1
jmp 0x180008265
mov rcx, rbx
call fcn.180003540
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180019b90
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180014710
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180082088]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x1800148c6
cmp byte [rcx + 0x71], 0
je 0x1800148c6
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x18001476a
xor al, al
jmp 0x1800148c8
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.180014d20
nop
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
nop word [rax + rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x30]
cmovae r8, rcx
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x1800147de
sub eax, 1
jne 0x180014852
jmp 0x1800147e2
mov byte [rdi + 0x71], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x18001482f
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.180043498
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x18001485f
cmp byte [rdi + 0x71], 0
je 0x180014863
test rbx, rbx
jne 0x1800147a0
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.180014e10
jmp 0x18001478f
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x180014863
xor bl, bl
jmp 0x180014865
mov bl, 1
cmp r9, 0x10
jb 0x1800148c1
inc r9
cmp r9, 0xffffffffffffffff
jbe 0x18001487a
call fcn.18003eae4
int3
cmp r9, 0x1000
jb 0x1800148bc
test byte [rbp - 0x30], 0x1f
je 0x18001488f
call fcn.18003eae4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18001489e
call fcn.18003eae4
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800148ad
call fcn.18003eae4
int3
cmp rcx, 0x27
jbe 0x1800148b9
call fcn.18003eae4
int3
mov rcx, rax
call fcn.180019bb4
movzx eax, bl
jmp 0x1800148c8
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180019b90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1800163e8
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x18001644c
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18001643a
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180016433
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180016407
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x180086688]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18001645c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
mov ebp, 5
add rbx, qword [0x180086870]
test byte [rbx + 0x20], 1
mov rdi, qword [rbx]
je 0x180016495
sub rdi, rbp
mov ebp, 7
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800164ba
mov eax, 0xa
jmp 0x180016546
test esi, esi
je 0x1800164dc
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800164fd
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800164fd
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800164f7
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800164fd
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
mov al, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1800168cc
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9, rcx
test r8b, r8b
je 0x1800168e6
cmp r8b, 0x90
je 0x1800168e6
cmp r8b, 0xcc
je 0x1800168e6
xor eax, eax
ret
mov r10d, 1
mov ecx, r10d
cmp edx, r10d
jbe 0x180016903
mov eax, ecx
cmp byte [rax + r9], r8b
jne 0x1800168e3
add ecx, r10d
cmp ecx, edx
jb 0x1800168f4
mov eax, r10d
ret
Function at 0x180016cb0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
mov r15, qword [rbp - 0x50]
cmp rdi, 0x40000000
jbe 0x180016cfe
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x180086860]
lea rax, [rdi + 0x40000000]
cmp r15, rax
cmova r15, rax
sub r15, 0xfff
test rbx, rbx
je 0x180016d39
cmp rbx, r14
jb 0x180016d34
cmp rbx, r15
jae 0x180016d34
cmp qword [rbx + 8], 0
jne 0x180016e8f
mov rbx, qword [rbx]
jmp 0x180016d1a
mov rsi, rdi
cmp rdi, r14
jb 0x180016db6
mov r12d, dword [rbp - 0x38]
xor edx, edx
mov rax, rsi
div r12
sub rsi, rdx
jmp 0x180016d7c
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180016d84
cmp dword [rbp - 0x10], 0x10000
je 0x180016d86
mov rsi, qword [rbp - 0x28]
cmp rsi, r12
jb 0x180016d84
sub rsi, r12
cmp rsi, r14
jae 0x180016d52
xor esi, esi
test rsi, rsi
je 0x180016db6
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180016e4f
cmp rsi, r14
jae 0x180016d41
test rbx, rbx
jmp 0x180016e42
mov r14d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov esi, r14d
div r14
mov eax, r14d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180016e1b
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180016e1b
cmp dword [rbp - 0x10], 0x10000
je 0x180016e1d
xor edx, edx
lea edi, [r14 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div rsi
sub rdi, rdx
cmp rdi, r15
jbe 0x180016dde
xor edi, edi
test rdi, rdi
je 0x180016e8f
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180016e4f
cmp rdi, r15
jbe 0x180016dbe
jmp 0x180016e8f
and qword [rbx + 8], 0
lea rcx, [rbx + 0x40]
and dword [rbx + 0x10], 0
mov rdx, rcx
sub rdx, rbx
mov rax, qword [rbx + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rbx + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x180016e62
mov rax, qword [0x180086860]
mov qword [rbx], rax
mov qword [0x180086860], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180019eac
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x180019f3d
movsxd rax, dword [0x18000003c]
lea rdx, [0x180000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x180019f3d
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180019f3d
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x180019f21
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x180019f1b
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x180019f23
add rdx, 0x28
jmp 0x180019f00
xor edx, edx
test rdx, rdx
jne 0x180019f2c
xor al, al
jmp 0x180019f43
test dword [rdx + 0x24], 0x80000000
je 0x180019f39
xor al, al
jmp 0x180019f43
mov al, 1
jmp 0x180019f43
xor al, al
jmp 0x180019f43
add rsp, 0x18
ret

Function at 0x18001c3d4
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x18001c3e7
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.18001ca4c
lea rdx, [0x1800800b8]
lea rcx, [rsp + 0x20]
call fcn.18003aa88
int3

Function at 0x180028678
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1800857f0]
xor edx, edx
jmp fcn.18001c3d4

Function at 0x180029068
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1800857f0]
jmp fcn.18001c3d4

Function at 0x180036628
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 0x30]
mov rdi, rcx
mov rdx, qword [rax + 0x18]
mov ecx, dword [rdx + 0xb0]
call sub.KERNEL32.dll_TlsGetValue
mov r8, rax
test rax, rax
je 0x180036673
mov dl, al
and dl, 3
cmp dl, 1
jne 0x180036673
and r8, 0xfffffffffffffffe
je 0x180036673
mov rax, qword [rdi + 0x80]
cmp r8, rax
jne 0x180036673
and qword [r8 + 0x20], 0
jmp 0x1800366a8
and dword [rsp + 0x28], 0
lea rax, [0x18001c828]
mov qword [rsp + 0x30], rax
jmp 0x18003669c
mov rax, qword [rdi + 0x88]
test rax, rax
jne 0x1800366a8
lea rcx, [rsp + 0x20]
call fcn.18001b754
mov rax, qword [rdi + 0x80]
test rax, rax
jne 0x180036686
mov rax, qword [rdi]
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call fcn.18001a6bc
mov edx, 1
mov rcx, rdi
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
jmp rax
Function at 0x1800445fc
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x18004441c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18004441c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18004441c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18004441c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18004441c
cmp dword [rcx + 0x84], 0xe
jbe 0x18004441c
cmp dword [rcx + 0xf8], esi
je 0x18004441c
mov ecx, r14d
call fcn.180044564
mov ecx, 2
call fcn.180044d00
nop
cmp byte [0x180085ae0], 0
jne 0x1800444e6
mov r15d, 1
mov eax, r15d
xchg dword [0x180085ad4], eax
test ebx, ebx
jne 0x18004448f
mov rdi, qword [0x180082088]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x180085ad8]
cmp rcx, rax
je 0x180044486
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.18000fab0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x180085e38]
jmp 0x18004449b
cmp ebx, r15d
jne 0x1800444a1
lea rcx, [0x180085e50]
call fcn.180048d98
nop
test ebx, ebx
jne 0x1800444b8
lea rdx, [0x18005f568]
lea rcx, [0x18005f540]
call fcn.180048fec
lea rdx, [0x18005f578]
lea rcx, [0x18005f570]
call fcn.180048fec
movzx eax, byte [0x180085ae0]
test esi, esi
cmove eax, r15d
mov byte [0x180085ae0], al
jmp 0x1800444e6
mov ecx, 2
call fcn.180044d54
test esi, esi
jne 0x1800444fd
mov ecx, r14d
call fcn.180044518
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1800443ac
Function at 0x180097de0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x180097e0d
xor al, al
jmp 0x180097f6f
mov rax, qword [0x1800b8700]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1800b8708]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1800b8710]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1800b8718]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1800b8720]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1800b8728]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1800b8730]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1800b8738]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x1800b8740]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x180097f61
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x180097eb9
mov r11d, 2
jmp 0x180097edd
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x180097ed3
mov r11d, 1
jmp 0x180097edd
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x180097f85
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x180097f22
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x180097f3a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x180097f4a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x180097f58
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x180097ea0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x180097f6a