joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e270
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140082040]
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 0x14001e2e0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140007b00
mov dword [rsp + 0x30], 1
mov r8d, SafeArrayDestroy
lea rdx, [0x1400753d0]
mov rcx, rbx
call fcn.1400074b0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14003acf0
add rsp, 0x260
pop rbx
ret
Function at 0x140021f40
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 0x140021f84
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140021f70
ret
Function at 0x140027240
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 0x140027323
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140027323
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 0x140027341
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 0x140027313
cmp word [rax], 0x5c
jne 0x14002730c
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x14002730c
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400272f7
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x140027309
test r8b, 0x10
jne 0x14002730c
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x14002730c
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400233c0
test edi, edi
jne 0x140027270
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.1400233b0
int3
Function at 0x14002fbe0
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 [0x140082040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movzx esi, r8b
xor ebp, ebp
lea rcx, [rsp + 0x58]
call fcn.140007000
mov r14, rax
mov qword [rsp + 0x50], rax
mov rdi, qword [0x140085320]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140007000
mov byte [rsp + 0x98], sil
mov qword [rsp + 0xa0], rdi
lea ecx, [rbp + 0x30]
call fcn.14003ad44
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.14001af50
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x14001b110]
xor edx, edx
xor ecx, ecx
call fcn.140047f70
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14002fd6b
cmp dword [rsp + 0x48], ebp
je 0x14002fd60
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call fcn.14003a474
test eax, eax
jne 0x14002fd60
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x14002fd28
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x14002fd23
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002fd7a
mov rcx, r8
call fcn.14003ad10
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.14003acf0
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.14003a3d8
nop
mov dword [rsp + 0x48], ebp
mov ecx, 6
call fcn.14003a3d8
nop
call fcn.140041de8
int3
Function at 0x140030620
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 [0x140082040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor esi, esi
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0xe0]
test rcx, rcx
je 0x14003066c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbx + 0xa0]
xor edx, edx
mov ecx, 0xc3a
call qword [0x140085230]
mov qword [rbx + 0xe0], rax
lea rcx, [rbx + 0x60]
call fcn.140037860
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 0x14003070b
lea rdx, [rbp - 0x39]
mov rcx, qword [rbx + 0xe0]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x14003070b
mov eax, dword [rbp - 0x39]
cmp dword [rbp - 0x29], eax
je 0x14003070b
lea r8, [0x140085440]
cmp qword [0x140085458], 7
cmova r8, qword [0x140085440]
lea rdx, [0x140085680]
cmp qword [0x140085698], 7
cmova rdx, qword [0x140085680]
xor ecx, ecx
lea r9d, [rcx + 0x10]
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x1400307ca
cmp qword [rbx + 0xe0], rsi
jne 0x1400307c8
lea rdx, [0x140085620]
lea rcx, [rbp - 9]
call fcn.14001ac90
lea rdx, [0x140085440]
lea rcx, [rbp + 0x17]
call fcn.14001ac90
mov dword [rbp + 0x37], 0x10
mov ecx, 0x48
call fcn.14003ad44
mov rbx, rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 9]
mov rcx, rax
call fcn.14001ac90
nop
lea rcx, [rbx + 0x20]
lea rdx, [rbp + 0x17]
call fcn.14001ac90
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, [0x140023a30]
xor edx, edx
xor ecx, ecx
call fcn.140047f70
mov qword [rbp - 0x19], rax
test rax, rax
je 0x1400307ef
lea rcx, [rbp - 9]
call fcn.14001dfb0
cmp dword [rbp - 0x11], 0
je 0x1400307fd
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x29], xmm0
lea rcx, [rbp - 0x29]
call fcn.14003a474
test eax, eax
jne 0x1400307fd
jmp 0x1400307ca
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14003acf0
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.14003a3d8
nop
mov ecx, 1
call fcn.14003a3d8
int3
Function at 0x140037ce0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140082040]
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 [0x140085248]
mov rbx, rax
test rax, rax
jne 0x140037e6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140021540
nop
lea r8, [0x140085660]
cmp qword [0x140085678], 7
cmova r8, qword [0x140085660]
mov r9, qword [0x140085670]
mov rcx, rax
call fcn.140010140
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, [0x140085440]
cmp qword [0x140085458], 7
cmova r8, qword [0x140085440]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova 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, 7
jbe 0x140037e15
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037e10
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140037eb6
call fcn.14003ad10
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 7
jbe 0x140037e69
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037e64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140037eb0
call fcn.14003ad10
xor al, al
jmp 0x140037e8f
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.14003acf0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.140041de8
nop
call fcn.140041de8
nop
int3
Function at 0x140037ec0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140082040]
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 [0x140085248]
mov rbx, rax
test rax, rax
jne 0x14003804d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140021540
nop
lea r8, [0x140085660]
cmp qword [0x140085678], 7
cmova r8, qword [0x140085660]
mov r9, qword [0x140085670]
mov rcx, rax
call fcn.140010140
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, [0x140085440]
cmp qword [0x140085458], 7
cmova r8, qword [0x140085440]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova 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, 7
jbe 0x140037ff5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037ff0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140038088
call fcn.14003ad10
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 7
jbe 0x140038049
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038044
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140038082
call fcn.14003ad10
xor al, al
jmp 0x140038061
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.14003acf0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.140041de8
nop
call fcn.140041de8
nop
int3
Function at 0x140038160
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140082040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rdx
mov qword [rsp + 0x50], rdx
xor r15d, r15d
lea r14, [r15 - 1]
cmp qword [rdx + 0x10], r15
jne 0x1400381b6
lea r8, [rcx + 0x60]
cmp rdx, r8
je 0x1400381b6
mov rdx, r8
cmp qword [r8 + 0x18], 7
jbe 0x1400381aa
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
mov rcx, rdi
call fcn.140007380
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400381c3
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140038281
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400381df
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, r14
je 0x140038281
mov qword [rsp + 0x48], r15
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140038277
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.14003afc0
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.140060190
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003826f
movsxd rax, dword [rsi + 0x3c]
mov r14d, dword [rax + rsi + 8]
mov rcx, rsi
call fcn.14003ad10
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x1400382bc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400382b7
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400382f0
mov rcx, r8
call fcn.14003ad10
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov rax, r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003acf0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140041de8
int3
Function at 0x14003baec
Capabilities:
Parse pe header

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

Function at 0x1400476ac
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x140082040]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1400682e8]
mov rbp, rcx
call fcn.1400550d0
xor edi, edi
test rax, rax
je 0x140047792
mov ebx, edi
call fcn.140048124
mov r14d, dword [rax]
call fcn.140048124
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.14005501c
mov rsi, rax
test rax, rax
je 0x140047723
call fcn.140048124
mov dword [rax], r14d
jmp 0x14004774d
call fcn.140048124
cmp dword [rax], 0x22
jne 0x14004778a
call fcn.140048124
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14005501c
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14004778a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140047751
cmp rax, 3
je 0x14004776c
mov rcx, rsi
call fcn.140047608
test al, al
je 0x14004777d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14004777d
mov dil, 1
mov rcx, rbx
call fcn.1400460dc
mov al, dil
jmp 0x140047794
mov rcx, rbx
call fcn.1400460dc
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14003acf0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140047ad8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140047937
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140047937
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140047937
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140047937
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140047937
cmp dword [rcx + 0x84], 0xe
jbe 0x140047937
cmp dword [rcx + 0xf8], 0
je 0x140047937
mov ecx, ebx
call fcn.1400479f4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400477c4
nop
cmp dword [rbp + 0x20], 0
je 0x140047985
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140047990
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400478c8
Function at 0x140058e98
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140058f1f
mov rsi, rbx
cmp word [rax], bp
je 0x140058ede
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140058ec8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140058ec4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14005161c
mov rdi, rax
test rax, rax
je 0x140058f0c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140060550
mov rbp, rdi
xor ecx, ecx
call fcn.1400515e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005fdc0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005fde8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005fde8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140005160
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14012df00]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [0x140285f78]
test rax, rax
jne 0x140005239
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140005216
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140005216
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
mov r8d, 0x6afa3076
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140005211
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x1400051f0
cmp r8d, 0xa36b9b6c
je 0x14000521b
test r9d, r9d
jne 0x1400051d0
mov rax, qword [rax]
jmp 0x1400051a0
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rbx + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov eax, dword [rcx + rax*4]
add rax, r10
mov qword [0x140285f78], rax
call rax
test eax, eax
je 0x1400052fc
xor ecx, ecx
call fcn.1400c5348
mov r9, rax
lea r8, [0x1401125c8]
lea rdx, str.CONIN_
lea rcx, [rsp + 0x58]
call fcn.1400c5658
mov ecx, 1
call fcn.1400c5348
mov r9, rax
lea r8, [0x1401125d4]
lea rdx, [0x1401125d8]
lea rcx, [rsp + 0x58]
call fcn.1400c5658
mov ecx, 2
call fcn.1400c5348
mov r9, rax
lea r8, [0x1401125d4]
lea rdx, [0x1401125d8]
lea rcx, [rsp + 0x58]
call fcn.1400c5658
lea rcx, [0x1402842e0]
call fcn.140002e00
lea rcx, [0x140284610]
call fcn.140002e00
mov rax, qword [0x140284580]
movsxd rcx, dword [rax + 4]
lea r9, [0x140284580]
mov eax, 4
xor r8d, r8d
cmp qword [rcx + r9 + 0x48], r8
cmovne eax, r8d
mov dword [rcx + r9 + 0x10], eax
test dword [rcx + r9 + 0x14], eax
jne 0x140005317
mov al, 1
jmp 0x1400052fc
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400b5ad0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.1400020c0
mov r8, rax
lea rdx, [0x1401124a0]
lea rcx, [rsp + 0x30]
call fcn.140002950
lea rdx, [0x140129258]
lea rcx, [rsp + 0x30]
call fcn.1400b7d30
int3
Function at 0x140005350
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14012df00]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, qword [0x140285f60]
mov qword [rsp + 0x40], rdi
test rsi, rsi
jne 0x14000543a
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140005417
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140005417
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x8ad329e3
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140005412
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x1400053f0
cmp r8d, 0xda77ef94
je 0x14000541c
test r9d, r9d
jne 0x1400053d0
mov rax, qword [rax]
jmp 0x1400053a0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov esi, dword [rcx + rdx*4]
add rsi, r10
mov qword [0x140285f60], rsi
mov rax, qword [0x140285f58]
test rax, rax
jne 0x1400054fa
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1400054d7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1400054d7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x89d32850
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x1400054d2
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x1400054b0
cmp r8d, 0x7aed44b
je 0x1400054dc
test r9d, r9d
jne 0x140005490
mov rax, qword [rax]
jmp 0x140005460
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
mov qword [0x140285f58], rax
mov ecx, 0xfffffff5
call rax
lea rdx, [rsp + 0x20]
mov rcx, rax
call rsi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test eax, eax
je 0x14000553e
movsx ecx, word [rsp + 0x2a]
movsx eax, word [rsp + 0x2e]
sub eax, ecx
inc eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b5ad0
add rsp, 0x48
ret
mov eax, 0x50
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b5ad0
add rsp, 0x48
ret