joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000710c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x4f0
mov rax, qword [0x1000a1108]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rsi, rcx
test rdx, rdx
je 0x1000712ab
mov rax, qword [0x1000a1180]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
test rcx, rcx
je 0x100071289
lea rdx, [rsi + 8]
lea rcx, [rsp + 0x28]
call fcn.10001c054
mov rbx, qword [rsp + 0x28]
lea rdx, [0x100006684]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wfopen]
mov rdi, rax
test rax, rax
jne 0x10007113e
lea rcx, [rbx - 0xc]
jmp 0x10007128d
mov edx, 0x14
lea rcx, [rsp + 0x50]
mov r9, rax
lea r8d, [rdx - 0x13]
call qword [sym.imp.msvcrt.dll_fread]
cmp dword [rsp + 0x50], 0x46464952
jne 0x10007127e
cmp dword [rsp + 0x58], 0x45564157
jne 0x10007127e
mov edx, 0x12
lea rcx, [rsp + 0x38]
mov r9, rdi
lea r8d, [rdx - 0x11]
call qword [sym.imp.msvcrt.dll_fread]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_fclose]
and qword [rsp + 0x4d0], 0
and dword [rsp + 0x4d8], 0
mov r11d, 0x5c
lea rcx, [rsp + 0x70]
mov rdx, rbx
mov word [rsp + 0x4c8], r11w
call fcn.100017cc4
test eax, eax
je 0x10007122e
xor eax, eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x4d8], eax
je 0x1000711ee
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x20]
jmp 0x1000711f3
mov qword [rsp + 0x20], rax
movzx ecx, word [rsp + 0x48]
pxor xmm1, xmm1
pxor xmm0, xmm0
sub rax, rcx
sub rax, 0x12
cvtsi2ss xmm1, rax
mov eax, dword [rsp + 0x40]
cvtsi2ss xmm0, rax
divss xmm1, xmm0
unpcklps xmm1, xmm1
cvtps2pd xmm1, xmm1
movsd qword [rsp + 0x30], xmm1
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x38], rax
mov rcx, qword [rsp + 0x4d0]
and dword [rsp + 0x4d8], 0
test rcx, rcx
je 0x100071258
cmp rcx, 0xffffffffffffffff
je 0x100071258
call qword [sym.imp.KERNEL32.dll_FindClose]
and qword [rsp + 0x4d0], 0
lea rcx, [rbx - 0xc]
lea rax, [0x1000a1170]
cmp rcx, rax
je 0x10007127a
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x10007127a
call fcn.10007a490
xor eax, eax
jmp 0x1000712b0
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_fclose]
jmp 0x100071258
lea rcx, [rax - 0xc]
lea rax, [0x1000a1170]
cmp rcx, rax
je 0x1000712ab
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x1000712ab
call fcn.10007a490
mov eax, 0x80004003
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.10007a3b0
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100071a68
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
cmp dword [rcx + 0x20], eax
sete al
test dword [rcx + 0x24], eax
je 0x100071ad0
and dword [rcx + 0x24], 0
and qword [r11 - 0x10], 0
and dword [rsp + 0x20], 0
mov dword [rcx + 0x20], 1
mov r9, rcx
lea r8, [0x100071d88]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x90], rax
test rax, rax
jne 0x100071bc8
mov eax, 0x80004003
jmp 0x100071bca
mov rsi, qword [rcx + 0x18]
test rsi, rsi
je 0x100071bc8
lea rdi, [rcx + 0x28]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x100071af9
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
and qword [rdi + 8], 0
lea r8, [rdi + 8]
mov rdx, rsi
mov rcx, rdi
call fcn.100064d30
test eax, eax
js 0x100071bca
cmp qword [rdi + 0x10], 0
je 0x100071b59
mov rcx, qword [rdi]
test rcx, rcx
je 0x100071b2d
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
and qword [rdi], 0
mov rsi, qword [rdi + 0x10]
and qword [rdi + 0x10], 0
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x100071b59
mov rcx, qword [rdi]
test rcx, rcx
je 0x100071b56
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
and qword [rdi], 0
mov qword [rdi], rsi
mov eax, dword [rdi + 0x20]
mov dword [rdi + 0x28], 2
mov dword [rdi + 0x24], eax
xor eax, eax
test eax, eax
js 0x100071bca
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x100071b84
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
and qword [rbx + 0x18], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x100071ac6
movsxd rdx, dword [rbx + 0x88]
mov rcx, qword [rcx]
xor r9d, r9d
lea r8d, [r9 + 0x21]
call qword [sym.imp.USER32.dll_SetTimer]
test rax, rax
jne 0x100071bb3
mov eax, 0x80004005
jmp 0x100071bca
mov rcx, qword [rbx + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x90], 0
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x100071be8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x30
xor edi, edi
mov rsi, rcx
cmp qword [rcx + 0x10], rdi
jne 0x100071c0f
xor eax, eax
jmp 0x100071d26
cmp dword [rcx + 0x20], edi
je 0x100071c1d
mov dword [rcx + 0x24], 1
jmp 0x100071c08
lea rbx, [rcx + 0x28]
mov dword [rcx + 0x20], 1
mov dword [rcx + 0x24], edi
cmp dword [rbx + 0x28], 1
je 0x100071cb6
mov rcx, qword [rbx + 8]
cmp rcx, rdi
je 0x100071c4c
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 8], rdi
cmp dword [rbx + 0x28], 2
jne 0x100071c5d
mov eax, dword [rbx + 0x1c]
sub eax, dword [rbx + 0x24]
mov dword [rbx + 0x24], eax
jmp 0x100071ca8
cmp dword [rbx + 0x28], 3
jne 0x100071ca8
mov rcx, qword [rbx]
mov eax, dword [rbx + 0x1c]
mov dword [rbx + 0x24], eax
cmp rcx, rdi
je 0x100071c7e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx], rdi
mov r12, qword [rbx + 0x10]
lea rax, [rsp + 0x40]
mov qword [rbx + 0x10], rdi
cmp rax, rbx
je 0x100071ca8
mov rcx, qword [rbx]
cmp rcx, rdi
je 0x100071ca5
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx], rdi
mov qword [rbx], r12
mov dword [rbx + 0x28], 1
mov dword [rbx + 0x48], 0x3dcccccd
lea r8, [0x100071d88]
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0x90], rax
cmp rax, rdi
jne 0x100071ce6
mov eax, 0x80004003
jmp 0x100071d26
mov rcx, qword [rsi]
cmp rcx, rdi
je 0x100071cdf
movsxd rdx, dword [rsi + 0x88]
mov rcx, qword [rcx]
xor r9d, r9d
lea r8d, [r9 + 0x21]
call qword [sym.imp.USER32.dll_SetTimer]
cmp rax, rdi
jne 0x100071d11
mov eax, 0x80004005
jmp 0x100071d26
mov edx, dword [rsi + 0x80]
mov rcx, rsi
call fcn.100071f20
cmp eax, edi
cmovl edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x100076778
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov r14, r9
mov rdi, rdx
test r9, r9
jne 0x1000767ad
mov eax, 0x80004003
jmp 0x10007697a
and qword [r9], 0
xor ebx, ebx
movzx edx, r8w
lea r8, [0x1000067d0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
mov r12d, 0x80070000
test rax, rax
jne 0x1000767e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
xor r13d, r13d
test ebx, ebx
js 0x100076811
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r13d, eax
test eax, eax
jne 0x100076811
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
xor ebp, ebp
test ebx, ebx
js 0x10007683c
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
jne 0x10007683c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
xor r12d, r12d
test ebx, ebx
js 0x10007686d
test rbp, rbp
je 0x10007686d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
jne 0x10007686d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
xor edi, edi
test ebx, ebx
js 0x10007689b
mov edx, r13d
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x10007689b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
xor esi, esi
test ebx, ebx
js 0x1000768e7
test rdi, rdi
je 0x1000768cb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
jne 0x1000768cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1000768e7
test r12, r12
je 0x1000768e7
test rsi, rsi
je 0x1000768e7
mov r8d, r13d
mov rdx, r12
mov rcx, rsi
call sub.msvcrt.dll_memcpy
and qword [rsp + 0x78], 0
test ebx, ebx
js 0x100076942
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, eax
test eax, eax
js 0x100076942
mov r12, qword [rsp + 0x78]
mov ecx, 0x18
call sub.gdiplus.dll_GdipAlloc
mov rsi, rax
test rax, rax
je 0x10007693d
lea rax, [0x100006048]
mov qword [rsi], rax
lea rdx, [rsi + 8]
and qword [rdx], 0
mov rcx, r12
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [rsi + 0x10], eax
jmp 0x10007693f
xor esi, esi
mov qword [r14], rsi
test rdi, rdi
je 0x100076959
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test rbp, rbp
je 0x100076968
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x100076978
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x100079234
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r13, rcx
mov r12d, edx
lea rcx, [0x1000a1d60]
xor edx, edx
xor ebx, ebx
call fcn.100079e20
lea r14d, [rbx + 1]
mov ebp, r14d
jmp 0x10007931a
test rbx, rbx
jne 0x100079326
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, r14w
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rbx, rax
test rax, rax
je 0x100079309
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1000792b6
xor ebx, ebx
jmp 0x100079304
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x1000792b2
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rdi
and ecx, 0xf
jbe 0x1000792f3
cmp rdi, r11
jae 0x1000792b2
add ecx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x1000792e1
cmp rdi, r11
jae 0x1000792b2
movzx eax, word [rdi]
neg ax
sbb rbx, rbx
and rbx, rdi
test rbx, rbx
jne 0x100079328
lea rcx, [0x1000a1d60]
mov edx, ebp
call fcn.100079e20
add ebp, r14d
mov rsi, rax
test rax, rax
jne 0x100079273
xor esi, esi
test rsi, rsi
jne 0x100079331
xor eax, eax
jmp 0x10007933f
mov r8d, r12d
mov rdx, rsi
mov rcx, r13
call fcn.100079490
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x100079490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov r14d, 1
shr eax, 4
mov ebx, r8d
mov rsi, rcx
add ax, r14w
lea r8d, [r14 + 5]
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r13d, r13d
mov r12, rax
cmp rax, r13
je 0x100079606
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, r13
je 0x100079606
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
cmp rax, r13
je 0x100079606
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x10007953c
cmp rdi, r11
jae 0x100079606
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x100079526
cmp rdi, r11
jae 0x100079606
cmp word [rdi], r13w
je 0x100079606
mov rax, qword [rsi]
movzx ebx, word [rdi]
mov ecx, r14d
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x10007956e
mov edx, ebx
mov rcx, rsi
call fcn.100079704
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x10007958f
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
add ecx, r14d
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.10007a4d2
cmp eax, r13d
je 0x1000795de
cmp eax, 0xc
je 0x1000795d3
cmp eax, 0x16
je 0x1000795c8
cmp eax, 0x22
je 0x1000795c8
cmp eax, 0x50
je 0x1000795de
mov ecx, 0x80004005
call fcn.100016990
int3
mov ecx, 0x80070057
call fcn.100016990
int3
mov ecx, 0x8007000e
call fcn.100016990
int3
cmp ebx, r13d
jl 0x1000795fb
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x1000795fb
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, r14d
mov word [rdi + rcx], r13w
jmp 0x100079608
mov ecx, 0x80070057
call fcn.100016990
int3
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x100079ea4
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1000a1108]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, SysAllocStringByteLen
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x100079f37
cmp dword [rsp + 0x24], 5
jb 0x100079f51
jmp 0x100079f4d
cmp dword [rsp + 0x30], esi
jne 0x100079f51
cmp dword [rsp + 0x24], 4
ja 0x100079f4d
jne 0x100079f51
cmp dword [rsp + 0x28], 0
jbe 0x100079f51
mov byte [rbx + 0x18], sil
lea rax, [0x100002040]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.100013840
movzx ecx, byte [0x1000a2a18]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1000a2a18], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.10007a3b0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x10007a8cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10007a919
cmp rcx, 0xffffffffffffffff
je 0x10007a919
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10007a911
cmp dword [rcx + 0x3c], edx
jl 0x10007a911
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10007a911
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x10007a919
mov rax, rdx
add rsp, 0x18
ret

Function at 0x10007ab88
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x10007abf3
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x10007ac13
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x1000020e0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x140040440
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14004044d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14004045d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140040445
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140040475
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140040462
sub eax, 3
jb 0x14004048f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400404c6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400404b6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400404b4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400404a3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140040402
jmp 0x14004044d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x22a00
mov dl, 0xb
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140040512
cmp rsi, rcx
jae 0x14004051a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400404f9
cmp al, 0x8f
ja 0x1400404f9
cmp byte [rsi - 2], 0xf
je 0x1400404ff
sub al, 0xe8
cmp al, 1
ja 0x1400404e3
cmp rsi, rcx
jae 0x14004051a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400404e9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14004051a
lodsb al, byte [rsi]
jmp 0x1400404f9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x3e000]
mov eax, dword [rdi]
or eax, eax
je 0x140040577
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x401dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140040527
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140040571
mov qword [rbx], rax
add rbx, 8
jmp 0x140040547
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400405b1
cmp al, 0xef
ja 0x1400405a3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140040583
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140040592
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x217]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140040605
sub rsp, 0xffffffffffffff80
jmp 0x1400020e8

Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
movabs rcx, 0xcbc5d839feaff033
movabs rdx, 0x1000
movabs r8, 0x3ee8
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x10]
add rdx, rax
add r8, rax
mov r9, rdx
xor qword [rdx], rcx
add rdx, 8
cmp rdx, r8
jb 0x140004034
jmp r9
Function at 0x140005ccc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005d16
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005d16
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005d16
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005d16
cmp dword [rcx + 0x84], 0xe
jbe 0x140005d16
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005d18
xor al, al
add rsp, 0x28
ret

Function at 0x140015540
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 0x14001556d
xor al, al
jmp 0x1400156cf
mov rax, qword [0x1400356c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1400356c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1400356d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400356d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400356e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400356e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400356f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1400356f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140035700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1400156c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140015619
mov r11d, 2
jmp 0x14001563d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140015633
mov r11d, 1
jmp 0x14001563d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1400156e5
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 0x140015682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14001569a
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 0x1400156aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1400156b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140015600
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 0x1400156ca

Function at 0x14018a366
Capabilities:
Encode data using xor

Disassembly:
push 0xfffffffff4346b38
call fcn.1402489ad
xchg esi, eax
cmp byte [rbp + 0x63], al
invalid