joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6b290
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10d, r8d
mov r9, rdx
test rdx, rdx
jne 0x6b2a6
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x000894e0]
not ecx
cmp r10d, 8
jb 0x6b398
mov r11, r10
shr r11, 3
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r10d, 0xfffffff8
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x6b2d0
test r10d, r10d
je 0x6b3c0
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
add r10d, 0xffffffff
jne 0x6b3a0
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret

Function at 0x6bce0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, r9
imul esi, edx
mov rbp, rdx
cmp byte [r9], 0
mov r10, rcx
je 0x6bd30
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6bd2a
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x6bd61
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
mov qword [rsp + 0x40], rbx
lea eax, [rdx + rsi]
cmp eax, ecx
jbe 0x6bd48
sub ecx, edx
mov esi, ecx
add rdx, qword [r9 + 0x20]
mov rcx, r10
mov r8d, esi
call fcn.0006fa70
add dword [rdi + 0x2c], esi
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x58]
xor edx, edx
div rbp
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x6c7f0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
jne 0x6c80e
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
cmp dword [rcx + 0x1c], 0
je 0x6c802
cmp qword [rcx + 0x80], 0
je 0x6c823
call fcn.0006cd60
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.0006c620
test eax, eax
je 0x6c84a
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.00074488
mov rbx, rax
test rax, rax
jne 0x6c870
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call fcn.00074488
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
test rax, rax
jne 0x6c8b6
mov rcx, rbx
call fcn.00074480
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov dword [rbx + 0x64], ebp
mov ecx, ebp
cmp dword [rdi + 0x38], ecx
mov eax, dword [rdi + 0x40]
mov dword [rbx + 0x78], eax
sete cl
mov dword [rbx + 0x74], ebp
mov eax, dword [rdi + 0x38]
mov dword [rbx + 0x90], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x24], ebp
test ecx, ecx
jne 0x6c90d
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.0006b5c0
test eax, eax
jne 0x6c90d
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
mov dword [rbx + 0x7c], eax
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
movzx eax, byte [rdi + 0x34]
and al, 1
mov byte [rbx + 0x98], al
mov eax, dword [rdi + 0x34]
shr eax, 3
test al, 1
je 0x6c938
movzx eax, byte [rdi + 0x3d]
jmp 0x6c93c
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
movzx eax, byte [rbx + 0x98]
neg al
sbb ecx, ecx
and ecx, 0xc
mov dword [rbx + 0xa8], ecx
mov dword [rbx + 0x9c], 0x12345678
mov dword [rbx + 0xa0], 0x23456789
mov dword [rbx + 0xa4], 0x34567890
test rsi, rsi
je 0x6c9e3
lea r8, [0x000894e0]
movzx eax, byte [rsi]
test al, al
je 0x6c9e3
mov edx, dword [rbx + 0x9c]
mov ecx, edx
xor rcx, rax
shr edx, 8
movzx eax, cl
mov ecx, dword [r8 + rax*4]
xor ecx, edx
mov edx, dword [rbx + 0xa4]
movzx eax, cl
add eax, dword [rbx + 0xa0]
mov dword [rbx + 0x9c], ecx
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 0xa0], ecx
movzx eax, byte [rbx + 0xa3]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov eax, dword [r8 + rcx*4]
xor eax, edx
mov dword [rbx + 0xa4], eax
add rsi, 1
jne 0x6c980
mov ecx, dword [rdi + 0x7c]
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x10], ebp
add eax, 0x1e
mov rbp, qword [rsp + 0x20]
add ecx, eax
mov dword [rbx + 0x60], ecx
xor eax, eax
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x6ceb0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rsi, rdx
mov rdi, rcx
jne 0x6cf7f
cmp dword [rcx + 8], 0xffffffff
jne 0x6cf7f
mov qword [rsp + 0x30], rbx
lea rbx, [rcx + 0x150]
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp byte [rbx + rax + 1], 0
lea rax, [rax + 1]
jne 0x6cf00
movzx ecx, byte [rax + rdi + 0x14f]
cmp cl, 0x5c
je 0x6cf34
cmp cl, 0x2f
je 0x6cf34
dec rbx
cmp byte [rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x6cf20
movzx eax, word [0x0008b7c8]
mov word [rbx], ax
lea r9, [rsp + 0x48]
mov rcx, rsi
call fcn.0006bb30
mov rbx, qword [rsp + 0x30]
test rax, rax
jne 0x6cf5a
mov eax, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
call fcn.0006c0d0
xor ecx, ecx
mov qword [rdi], rax
test rax, rax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, 0x1000000
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x6d5f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x250
mov rax, qword [0x00090008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x6d630
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6d630
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movzx eax, byte [rsi]
test al, al
je 0x6d724
mov qword [rsp + 0x270], rdi
mov rcx, rsi
mov rdi, rsi
nop dword [rax]
cmp al, 0x2f
je 0x6d658
cmp al, 0x5c
jne 0x6d65b
mov rdi, rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x6d650
cmp rdi, rsi
je 0x6d6a6
sub rdi, rsi
lea rcx, [rsp + 0x130]
mov r8, rdi
mov rdx, rsi
call fcn.0006fa70
cmp rdi, 0x104
jae 0x6d745
lea rdx, [rsp + 0x130]
mov byte [rsp + rdi + 0x130], 0
mov rcx, rbx
call fcn.0006d5f0
mov byte [rsp + 0x20], 0
test rbx, rbx
je 0x6d6ce
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x6d6c0
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x6d6d6
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsi + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x6d6f0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6d71c
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rdi, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.0006e940
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rsi
ret
call fcn.0006ed94
int3
Function at 0x6e510
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x41], 0
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
je 0x6e617
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x48], rbp
test rcx, rcx
je 0x6e552
cmp dword [rbx + 0x58], edi
jae 0x6e552
call fcn.0006e9a0
mov qword [rbx + 0x50], 0
cmp qword [rbx + 0x50], 0
jne 0x6e568
lea ecx, [rdi + rdi]
call fcn.0006e9a8
mov qword [rbx + 0x50], rax
mov dword [rbx + 0x58], edi
mov rcx, qword [rbx + 0x50]
mov r8, rdi
mov rdx, rsi
mov rbp, rdi
call fcn.0006fa70
test edi, edi
je 0x6e60e
xor r11d, r11d
lea rsi, [0x0008acb0]
nop dword [rax]
mov rax, qword [rbx + 0x50]
lea r11, [r11 + 1]
mov r8d, dword [rbx + 0x4c]
mov edx, dword [rbx + 0x44]
mov r9d, r8d
mov ecx, edx
and r9d, 0xfffd
movsx r10, byte [r11 + rax - 1]
or r9d, 2
xor rcx, r10
shr edx, 8
movzx eax, cl
mov ecx, dword [rsi + rax*4]
xor ecx, edx
movzx eax, cl
add eax, dword [rbx + 0x48]
mov dword [rbx + 0x44], ecx
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 0x48], ecx
movzx eax, byte [rbx + 0x4b]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
mov eax, dword [rsi + rcx*4]
mov ecx, r9d
xor ecx, 1
xor eax, r8d
imul ecx, r9d
mov dword [rbx + 0x4c], eax
mov rax, qword [rbx + 0x50]
shr ecx, 8
xor cl, r10b
mov byte [r11 + rax - 1], cl
sub rbp, 1
jne 0x6e590
mov rsi, qword [rbx + 0x50]
mov rbp, qword [rsp + 0x48]
mov rdx, qword [rbx + 0x30]
test rdx, rdx
je 0x6e667
mov ecx, dword [rbx + 0x38]
lea eax, [rcx + rdi]
cmp eax, dword [rbx + 0x3c]
jb 0x6e644
mov dword [rbx + 0x24], 0x30000
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
add rcx, rdx
mov r8, rdi
mov rdx, rsi
call fcn.0006fa70
add dword [rbx + 0x38], edi
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x6e69e
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov dword [rbx + 0x24], 0x1000000
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x6eb04
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x00060000], ax
jne 0x6eb95
movsxd rax, dword [0x0006003c]
lea rdx, [0x00060000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x6eb95
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x6eb95
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 0x6eb79
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x6eb73
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x6eb7b
add rdx, 0x28
jmp 0x6eb58
xor edx, edx
test rdx, rdx
jne 0x6eb84
xor al, al
jmp 0x6eb9b
test dword [rdx + 0x24], 0x80000000
je 0x6eb91
xor al, al
jmp 0x6eb9b
mov al, 1
jmp 0x6eb9b
xor al, al
jmp 0x6eb9b
add rsp, 0x18
ret

Function at 0x74fa8
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 0x74d7c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x74d7c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x74d7c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x74d7c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x74d7c
cmp dword [rcx + 0x84], 0xe
jbe 0x74d7c
cmp dword [rcx + 0xf8], esi
je 0x74d7c
mov ecx, r14d
call fcn.00074ec4
mov ecx, 2
call fcn.00078f50
nop
cmp byte [0x000926e8], 0
jne 0x74e46
mov r15d, 1
mov eax, r15d
xchg dword [0x000926d8], eax
test ebx, ebx
jne 0x74def
mov rdi, qword [0x00090008]
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 [0x000926e0]
cmp rcx, rax
je 0x74de6
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.00065760]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x00092710]
jmp 0x74dfb
cmp ebx, r15d
jne 0x74e01
lea rcx, [0x00092728]
call fcn.000756e8
nop
test ebx, ebx
jne 0x74e18
lea rdx, [0x000814d0]
lea rcx, [0x000814b0]
call fcn.00075d4c
lea rdx, [0x000814e0]
lea rcx, [0x000814d8]
call fcn.00075d4c
movzx eax, byte [0x000926e8]
test esi, esi
cmove eax, r15d
mov byte [0x000926e8], al
jmp 0x74e46
mov ecx, 2
call fcn.00078fa4
test esi, esi
jne 0x74e5d
mov ecx, r14d
call fcn.00074e78
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 0x74d0c
Function at 0x140014990
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov eax, dword [0x14003cde8]
mov ecx, dword [0x14003cdec]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete byte [rbp + 7]
cmp ecx, 0xa
setl byte [rbp + 6]
mov eax, 0x2e06a0a6
xorps xmm0, xmm0
mov r10d, 0x38d4e0f5
mov r11d, 0x550a2966
mov r14d, 0x5604a570
mov r15d, 0xa483377d
mov r12d, 0x87a9f61f
mov esi, 0xaed8ff97
jmp 0x140014a00
mov eax, 0x87a9f61f
nop word [rax + rax]
cmp eax, 0x3df2e09e
jg 0x140014a40
cmp eax, 0xaed8ff96
jle 0x140014ab0
cmp eax, 0xaed8ff97
je 0x140014b03
cmp eax, 0x2e06a0a6
je 0x140014b45
cmp eax, 0x38d4e0f5
jne 0x140014a00
mov eax, 0x3df2e09f
xor edi, edi
xor edx, edx
jmp 0x140014a00
cmp eax, 0x550a2965
jle 0x140014ae0
cmp eax, 0x550a2966
je 0x1400149f2
cmp eax, 0x5604a570
jne 0x140014c25
rdtsc
mov r8, rdx
mov r9, rax
xor eax, eax
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
shl r8, 0x20
or r8, r9
mov rbx, qword [rbp - 0x10]
mov dword [rbx], eax
mov dword [rbx + 4], edi
mov dword [rbx + 8], ecx
mov dword [rbx + 0xc], edx
rdtsc
shl rdx, 0x20
or rdx, rax
sub rdx, r8
add rdx, qword [rbp - 0x18]
mov edi, dword [rbp]
add edi, 1
mov eax, 0x3df2e09f
jmp 0x140014a00
cmp eax, 0x87a9f61f
je 0x140014ba9
cmp eax, 0xa483377d
jne 0x140014a00
cmp byte [rbp + 5], 0
mov eax, 0x5e432fcc
cmovne eax, r14d
jmp 0x140014a00
cmp eax, 0x3df2e09f
je 0x140014bf8
cmp eax, 0x50ac3e8d
jne 0x140014a00
mov eax, dword [rbp]
mov eax, 0xaed8ff97
jmp 0x140014a00
mov eax, dword [rbp]
cmp eax, 0xa
setl byte [rbp + 5]
mov eax, dword [0x14003cde8]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
sete al
cmp dword [0x14003cdec], 0xa
setl cl
mov ebx, ecx
xor bl, al
or cl, al
xor cl, bl
mov eax, 0x50ac3e8d
cmovne eax, r15d
test bl, bl
cmovne eax, r15d
jmp 0x140014a00
movzx r13d, byte [rbp + 7]
movzx r8d, byte [rbp + 6]
mov eax, r13d
xor al, r8b
mov r9d, eax
xor r9b, 1
mov ebx, r13d
xor bl, 1
and bl, r8b
or bl, r9b
xor bl, al
mov r9d, r8d
xor r9b, 1
and r9b, r13b
mov ecx, ebx
not cl
or cl, r9b
and r13b, r8b
xor cl, r13b
test bl, 1
mov eax, 0x87a9f61f
cmovne eax, r11d
test r9b, 1
cmove eax, r12d
test r13b, 1
cmove eax, r11d
test cl, 1
cmovne eax, r12d
jmp 0x140014a00
mov eax, 0x10
call fcn.14001db30
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rax, qword [rbp - 8]
movaps xmmword [rax], xmm0
mov eax, dword [0x14003cde8]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov eax, 0x550a2966
cmove eax, r10d
cmp dword [0x14003cdec], 0xa
cmovl eax, r10d
jmp 0x140014a00
mov dword [rbp], edi
mov qword [rbp - 0x18], rdx
mov eax, dword [0x14003cde8]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov eax, 0x50ac3e8d
cmove eax, esi
cmp dword [0x14003cdec], 0xa
cmovl eax, esi
jmp 0x140014a00
cmp eax, 0x5e432fcc
jne 0x140014a00
mov rax, qword [rbp - 0x18]
add rax, 0xfffffffffffffff6
cmp rax, 0x2706
setae al
mov rcx, qword [rbp - 8]
lea rsp, [rbp + 8]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14001e19c
Capabilities:
Parse pe header

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

Function at 0x14001fea8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001fff0
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 0x14002005f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002005f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002005f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002005f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002005f
cmp dword [rcx + 0x84], 0xe
jbe 0x14002005f
cmp dword [rcx + 0xf8], 0
je 0x14002005f
mov ecx, ebx
call fcn.14001ff28
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.140020184
nop
cmp dword [rbp + 0x20], 0
je 0x1400200ad
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001ffbc
int3
Function at 0x140022010
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14001db30
sub rsp, rax
mov rax, qword [0x14003c160]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140028120
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002205f
mov rax, rbp
jmp 0x140022167
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3e330]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140029034
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3e330]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140022163
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140022163
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140029034
test rax, rax
js 0x140022163
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140022163
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140022155
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140022155
cmp byte [rcx], 0xd
jne 0x14002213b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002214a
cmp byte [rcx + 1], 0xa
jne 0x14002214a
inc rcx
jmp 0x14002214a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3ca50]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002211d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140022167
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001e600
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400228d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400228f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400228f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140027584
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400275b4
xor eax, eax
jmp 0x140027677
mov rbp, rbx
cmp word [rax], si
je 0x1400275d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400275c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400275bc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400274a4
movsxd r14, eax
test eax, eax
jne 0x140027617
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400275ad
mov rcx, r14
call fcn.140026108
mov rdi, rax
test rax, rax
jne 0x140027630
xor ecx, ecx
call fcn.140022d34
jmp 0x14002760c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400274a4
test eax, eax
jne 0x140027661
mov rcx, rdi
call fcn.140022d34
jmp 0x14002766b
xor ecx, ecx
call fcn.140022d34
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140028c68
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14003e330]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140028cbf
cmp word [rdx], r13w
jne 0x140028cbf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140028cc4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140028de9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140028e0a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140028cfd
mov rdx, r9
mov word [rbx], cx
jmp 0x140028d24
cmp r9, r8
jae 0x140028d34
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140028cde
jmp 0x140028de9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140028dde
cmp dword [rsp + 0x80], esi
je 0x140028dde
lea r8, [0x14003e330]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140028db6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140028d86
mov word [rbx], r13w
jmp 0x140028de6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140028d93
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140028de6
cmp word [rsp + 0x70], r13w
jne 0x140028dc3
cmp rbx, r14
je 0x140028d80
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140028f90
cmp word [rsp + 0x70], r13w
je 0x140028de9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14003e330]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140028de3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140028de9