joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001eba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140087048]
xor rax, rsp
mov qword [rbp - 8], rax
mov ebx, ecx
mov rsi, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bx
mov r8, rdi
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14001eccc
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rdi
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test rbx, rbx
je 0x14001eccc
test eax, eax
je 0x14001eccc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14001eccc
mov rcx, qword [rsi]
mov dword [rbp - 0x28], 0xbcb76836
mov dword [rbp - 0x24], 0x61b320c4
mov dword [rbp - 0x20], 0x2ed4ed55
mov dword [rbp - 0x1c], 0xa43c0738
mov dword [rbp - 0x18], 0xcf6c4e28
mov dword [rbp - 0x14], 0x7715c6db
mov dword [rbp - 0x10], 0xb4eadb8
mov dword [rbp - 0xc], 0x62722d25
cmp rcx, qword [rsi + 8]
je 0x14001ec72
mov qword [rsi + 8], rcx
mov rax, qword [rsi + 0x10]
sub rax, rcx
cmp rdi, rax
jbe 0x14001ec89
mov rdx, rdi
mov rcx, rsi
call fcn.14001ecf0
xor ebx, ebx
test rdi, rdi
je 0x14001ecc8
mov rdx, qword [rsi + 8]
mov rax, rbx
and eax, 0x1f
movzx ecx, byte [rbp + rax - 0x28]
xor cl, byte [rbx + r14]
mov byte [rbp - 0x30], cl
cmp rdx, qword [rsi + 0x10]
je 0x14001ecb4
mov byte [rdx], cl
inc qword [rsi + 8]
jmp 0x14001ecc0
lea r8, [rbp - 0x30]
mov rcx, rsi
call fcn.14001ede0
inc rbx
cmp rbx, rdi
jb 0x14001ec90
mov al, 1
jmp 0x14001ecce
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400411a0
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14001f4d0
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp qword [0x14008a3b8], 0
jne 0x14001f5c2
xor ebx, ebx
lea r8, [rsp + 0x48]
lea rdx, [0x140076dc8]
mov qword [rsp + 0x48], rbx
lea rcx, [0x140076db8]
call qword [sym.imp.mscoree.dll_CLRCreateInstance]
lea rdi, [0x14008a3b8]
test eax, eax
js 0x14001f585
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea r8, [0x140076da8]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x14001f576
mov rcx, qword [rsp + 0x40]
lea r8, [0x140073020]
mov r9, rdi
lea rdx, [0x140073030]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x14001f56b
mov rcx, qword [0x14008a3b8]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jns 0x14001f5c2
cmp qword [0x14008a3b8], 0
jne 0x14001f5c2
lea r9, [0x140073020]
mov qword [rsp + 0x20], rdi
lea r8, [0x140073030]
xor edx, edx
lea rcx, str.v2.0.50727
call qword [sym.imp.mscoree.dll_CorBindToRuntime]
test eax, eax
js 0x14001f5cf
mov rcx, qword [0x14008a3b8]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
lea r8, [0x1400766f0]
lea rdx, [0x140076710]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x140021710
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140087048]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov edi, r9d
mov rbx, rdx
test r8b, r8b
jne 0x140021802
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.14001e3d0
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.14001e3d0
mov dword [rsp + 0xa0], edi
mov ecx, 0x48
call fcn.1400411f4
mov rbx, rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14001e3d0
nop
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x80]
call fcn.14001e3d0
mov ecx, dword [rsp + 0xa0]
mov dword [rbx + 0x40], ecx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x140026640]
xor edx, edx
xor ecx, ecx
call fcn.14004d0a8
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140021845
lea rcx, [rsp + 0x60]
call fcn.140021870
cmp dword [rsp + 0x38], 0
je 0x140021858
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.14004079c
test eax, eax
jne 0x140021858
jmp 0x140021824
cmp qword [rdx + 0x18], 8
jb 0x14002180c
mov rbx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x140021816
mov rcx, qword [rcx]
mov r8, rbx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400411a0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rdi
ret
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.140040700
nop
mov ecx, 1
call fcn.140040700
int3

Function at 0x140021930
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140087048]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400219a0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400076b0
mov dword [rsp + 0x30], 1
mov r8d, SafeArrayDestroy
lea rdx, [0x1400790c0]
mov rcx, rbx
call fcn.1400072f0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400411a0
add rsp, 0x260
pop rbx
ret
Function at 0x140024f00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140024f44
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140024f30
ret
Function at 0x140029da0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x140029e83
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140029e83
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140029ea1
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140029e73
cmp word [rax], 0x5c
jne 0x140029e6c
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x140029e6c
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140029e57
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x140029e69
test r8b, 0x10
jne 0x140029e6c
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x140029e6c
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.140026010
test edi, edi
jne 0x140029dd0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140026000
int3
Function at 0x1400379e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x140087048]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movzx esi, r8b
xor ebp, ebp
lea rcx, [rsp + 0x58]
call fcn.140006f90
mov r14, rax
mov qword [rsp + 0x50], rax
mov rdi, qword [0x14008a3a0]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140006f90
mov byte [rsp + 0x98], sil
mov qword [rsp + 0xa0], rdi
lea ecx, [rbp + 0x30]
call fcn.1400411f4
mov rbx, rax
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x88]
movups xmmword [rax + 0x10], xmm1
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x90], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rsp + 0x78], bpl
mov byte [rax + 0x20], sil
mov qword [rax + 0x28], rdi
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x30]
call fcn.14001e7e0
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x14001e9a0]
xor edx, edx
xor ecx, ecx
call fcn.14004d0a8
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140037b6b
cmp dword [rsp + 0x48], ebp
je 0x140037b60
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call fcn.14004079c
test eax, eax
jne 0x140037b60
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140037b28
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140037b23
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140037b7a
mov rcx, r8
call fcn.1400411c0
mov qword [r14 + 0x10], rbp
mov qword [r14 + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [r14], 0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400411a0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, 1
call fcn.140040700
nop
mov dword [rsp + 0x48], ebp
mov ecx, 6
call fcn.140040700
nop
call fcn.140047c14
int3
Function at 0x1400383e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140087048]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor esi, esi
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0xf0]
test rcx, rcx
je 0x14003842c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbx + 0xb0]
xor edx, edx
mov ecx, 0xc3a
call qword [0x14008a2c0]
mov qword [rbx + 0xf0], rax
lea rcx, [rbx + 0x70]
call fcn.14003dea0
mov dword [rbp - 0x29], esi
mov dword [rbp - 0x39], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1400384cb
lea rdx, [rbp - 0x39]
mov rcx, qword [rbx + 0xf0]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1400384cb
mov eax, dword [rbp - 0x39]
cmp dword [rbp - 0x29], eax
je 0x1400384cb
lea r8, [0x14008a4e0]
cmp qword [0x14008a4f8], 8
cmovae r8, qword [0x14008a4e0]
lea rdx, [0x14008a720]
cmp qword [0x14008a738], 8
cmovae rdx, qword [0x14008a720]
xor ecx, ecx
lea r9d, [rcx + 0x10]
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x14003858a
cmp qword [rbx + 0xf0], rsi
jne 0x140038588
lea rdx, [0x14008a6c0]
lea rcx, [rbp - 9]
call fcn.14001e3d0
lea rdx, [0x14008a4e0]
lea rcx, [rbp + 0x17]
call fcn.14001e3d0
mov dword [rbp + 0x37], 0x10
mov ecx, 0x48
call fcn.1400411f4
mov rbx, rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 9]
mov rcx, rax
call fcn.14001e3d0
nop
lea rcx, [rbx + 0x20]
lea rdx, [rbp + 0x17]
call fcn.14001e3d0
mov ecx, dword [rbp + 0x37]
mov dword [rbx + 0x40], ecx
mov qword [rbp - 0x29], rbx
lea rax, [rbp - 0x11]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x140026640]
xor edx, edx
xor ecx, ecx
call fcn.14004d0a8
mov qword [rbp - 0x19], rax
test rax, rax
je 0x1400385af
lea rcx, [rbp - 9]
call fcn.140021870
cmp dword [rbp - 0x11], 0
je 0x1400385bd
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x29], xmm0
lea rcx, [rbp - 0x29]
call fcn.14004079c
test eax, eax
jne 0x1400385bd
jmp 0x14003858a
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400411a0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov dword [rbp - 0x11], esi
mov ecx, 6
call fcn.140040700
nop
mov ecx, 1
call fcn.140040700
int3
Function at 0x14003e360
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140087048]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [0x14008a2d8]
mov rbx, rax
test rax, rax
jne 0x14003e4ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.1400242b0
nop
lea r8, [0x14008a700]
cmp qword [0x14008a718], 8
cmovae r8, qword [0x14008a700]
mov r9, qword [0x14008a710]
mov rcx, rax
call fcn.1400122b0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x14008a4e0]
cmp qword [0x14008a4f8], 8
cmovae r8, qword [0x14008a4e0]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14003e495
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e490
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003e536
call fcn.1400411c0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x14003e4e9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e4e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003e530
call fcn.1400411c0
xor al, al
jmp 0x14003e50f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400411a0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.140047c14
nop
call fcn.140047c14
nop
int3
Function at 0x14003e540
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140087048]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [0x14008a2d8]
mov rbx, rax
test rax, rax
jne 0x14003e6cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.1400242b0
nop
lea r8, [0x14008a700]
cmp qword [0x14008a718], 8
cmovae r8, qword [0x14008a700]
mov r9, qword [0x14008a710]
mov rcx, rax
call fcn.1400122b0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x14008a4e0]
cmp qword [0x14008a4f8], 8
cmovae r8, qword [0x14008a4e0]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14003e675
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e670
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003e708
call fcn.1400411c0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x14003e6c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e6c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003e702
call fcn.1400411c0
xor al, al
jmp 0x14003e6e1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400411a0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.140047c14
nop
call fcn.140047c14
nop
int3
Function at 0x140041fb0
Capabilities:
Parse pe header

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

Function at 0x14004cc1c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14004caaf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004caaf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004caaf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004caaf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004caaf
cmp dword [rcx + 0x84], 0xe
jbe 0x14004caaf
cmp dword [rcx + 0xf8], 0
je 0x14004caaf
mov ecx, ebx
call fcn.14004cb50
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14004c940
cmp dword [rbp + 0x20], 0
je 0x14004cafc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004cb04
int3
xor r8d, r8d
xor edx, edx
jmp 0x14004ca48
Function at 0x140062d90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140062db8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140062db8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140004bd0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140004bf2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140004c6c
mov rdi, r14
mov rcx, rbx
call fcn.1400063d0
test rax, rax
jle 0x140004c44
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.14000e1b0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140004c5c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140004c64
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140004c06
sub r14, rdi
jmp 0x140004d59
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140004c83
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004c85
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004cba
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14000e1b0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140004d56
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140004cf5
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140004d31
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140016a68
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140004d6f
cmp rbp, rax
ja 0x140004d01
mov r8, rdi
test rdi, rdi
je 0x140004d56
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140016a68
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140004d59
Function at 0x1400051a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140045080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400051cd
xor eax, eax
jmp 0x140005313
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005207
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140005207
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 0x140005313
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140005306
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000524a
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 0x140005259
movsx ecx, dil
jmp 0x1400052ad
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 0x1400052c7
sub eax, 1
je 0x1400052c7
cmp eax, 2
jne 0x140005306
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.1400124c8
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000530b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400052f4
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.140015f48
cmp rsi, rax
jne 0x140005306
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14000530b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000c310
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x1400074f0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
mov dword [rdx], 0x2e67a271
mov dword [rdx + 4], 0x81c0176
mov dword [rdx + 8], 0x8f618301
mov dword [rdx + 0xc], 0x2d82e2a
mov dword [rdx + 0x10], 0x9f40057
mov dword [rdx + 0x14], 0xe3b2688
mov dword [rdx + 0x18], 0x84dc8632
mov dword [rdx + 0x1c], 0x2a8f0f2e
mov dword [rdx + 0x20], 0x2edd263e
mov dword [rdx + 0x24], 0xacb72a1c
mov dword [rdx + 0x28], 0x7d1aba8
mov dword [rdx + 0x2c], 0x5b30234
mov dword [rdx + 0x30], 0x887384d7
mov dword [rdx + 0x34], 0xab702f74
mov dword [rdx + 0x38], 0xaf00af3
mov dword [rdx + 0x3c], 0x81768189
mov dword [rdx + 0x40], 0x20d6a9f6
mov dword [rdx + 0x44], 0xf7227eb
mov dword [rdx + 0x48], 0x2e5e28f3
mov dword [rdx + 0x4c], 0x29c08643
mov dword [rdx + 0x50], 0xf368146
mov dword [rdx + 0x54], 0xab08020a
mov ecx, 0x806
mov r8d, 0xdcdcdd0c
mov word [rdx + 0x58], cx
mov edx, 0x2d
mov rcx, rax
jmp fcn.140006bf0