joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140053ad0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push rdi
mov r10d, 0x23456789
mov dword [rdx], 0x12345678
mov dword [rdx + 4], r10d
mov rdi, r8
mov dword [rdx + 8], 0x34567890
mov r9, rdx
movzx eax, byte [rcx]
mov r11, rcx
test al, al
je 0x140053b6c
mov qword [rsp + 0x10], rbx
mov r8d, 0x12345678
mov ebx, 0x34567890
nop dword [rax]
mov rcx, r8
lea r11, [r11 + 1]
xor rcx, rax
movzx eax, cl
mov ecx, r8d
shr ecx, 8
mov edx, dword [rdi + rax*4]
xor edx, ecx
mov ecx, ebx
movzx eax, dl
mov r8d, edx
add eax, r10d
mov dword [r9], edx
imul r10d, eax, 0x8088405
shr ecx, 8
inc r10d
mov dword [r9 + 4], r10d
mov eax, r10d
shr rax, 0x18
xor rax, rbx
movzx eax, al
mov eax, dword [rdi + rax*4]
xor eax, ecx
mov ebx, eax
mov dword [r9 + 8], eax
movzx eax, byte [r11]
test al, al
jne 0x140053b10
mov rbx, qword [rsp + 0x10]
pop rdi
ret

Function at 0x140053b70
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x10108], 0
mov rbx, rcx
je 0x140053c38
xor r11d, r11d
cmp dword [rcx + 0xd4], r11d
jbe 0x140053c38
nop word [rax + rax]
movzx eax, byte [r11 + rbx + 0x100]
mov r8, qword [rbx + 0x10138]
mov r10d, dword [rbx + 0x10130]
mov edx, dword [rbx + 0x10128]
and r10d, 0xfffd
xor rax, rdx
or r10d, 2
movzx ecx, al
shr edx, 8
mov eax, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0x10130]
xor eax, edx
mov dword [rbx + 0x10128], eax
movzx eax, al
add eax, dword [rbx + 0x1012c]
imul eax, eax, 0x8088405
inc eax
mov dword [rbx + 0x1012c], eax
shr rax, 0x18
xor rax, rcx
shr ecx, 8
movzx eax, al
mov eax, dword [r8 + rax*4]
xor eax, ecx
mov dword [rbx + 0x10130], eax
mov eax, r10d
xor eax, 1
imul eax, r10d
shr eax, 8
xor byte [r11 + rbx + 0x100], al
inc r11d
cmp r11d, dword [rbx + 0xd4]
jb 0x140053ba0
mov r9d, dword [rbx + 0xd4]
lea r8, [rbx + 0x100]
mov rdx, qword [rbx + 0x58]
mov rcx, qword [rbx + 0x38]
mov edi, dword [rbx + 0xd4]
call qword [rbx + reloc.WS2_32.dll_recv]
xor edx, edx
mov dword [rbx + 0xd4], 0
cmp eax, edi
mov ecx, 0xffffffff
cmovne edx, ecx
mov ecx, dword [rbx + 0x84]
add qword [rbx + 0x10118], rdi
mov eax, edx
add qword [rbx + 0x10120], rcx
mov dword [rbx + 0x84], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400562f0
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x24]
mov rbx, rcx
cmp eax, 0xca
jne 0x140056326
call fcn.14005ba40
cmp byte [rbx + 0x58], 0
je 0x14005631d
mov dword [rbx + 0x24], 0xcf
mov al, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], VarI2FromI1
jmp 0x140056331
cmp eax, 0xcb
jne 0x1400563b6
mov rax, qword [rbx + 0x238]
cmp byte [rax + 0x20], 0
je 0x14005639d
nop
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14005634e
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x238]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x140056395
cmp eax, 2
je 0x14005639d
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140056340
cmp eax, 3
je 0x140056376
cmp eax, 1
jne 0x140056340
inc dword [rcx + 8]
mov rdx, qword [rbx + 0x10]
mov r8d, dword [rdx + 0xc]
cmp dword [rcx + 8], r8d
jl 0x140056340
mov ecx, dword [rbx + 0x188]
add ecx, r8d
mov dword [rdx + 0xc], ecx
jmp 0x140056340
xor al, al
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0x9c]
mov rcx, rbx
mov dword [rbx + 0xa4], eax
add rsp, 0x20
pop rbx
jmp 0x1400563f0
cmp eax, 0xcc
je 0x1400563d8
mov rax, qword [rcx]
mov dword [rax + 0x28], socket
mov rcx, qword [rcx]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 0x2c], eax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x1400563f0
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x20
xor ebp, ebp
mov rbx, rcx
cmp dword [rcx + 0x24], 0xcc
je 0x14005641e
mov rax, qword [rcx + 0x218]
call qword [rax]
mov dword [rbx + 0x98], ebp
mov dword [rbx + 0x24], reloc.OLEAUT32.dll_VarI2FromI1
mov rax, qword [rbx + 0x218]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
cmp byte [rax + 0x10], bpl
je 0x1400564c5
mov ecx, dword [rbx + 0x98]
nop
cmp ecx, dword [rbx + 0x78]
jae 0x140056494
mov rax, qword [rbx + 0x10]
mov edi, ecx
test rax, rax
je 0x14005646c
mov dword [rax + 8], ecx
mov rcx, qword [rbx + 0x10]
mov eax, dword [rbx + 0x78]
mov dword [rcx + 0xc], eax
mov rcx, rbx
mov rax, qword [rbx + 0x10]
call qword [rax]
mov edi, dword [rbx + 0x98]
mov rax, qword [rbx + 0x220]
lea r8, [rbx + 0x98]
xor r9d, r9d
xor edx, edx
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov ecx, dword [rbx + 0x98]
cmp ecx, edi
je 0x1400564ed
cmp ecx, dword [rbx + 0x78]
jb 0x140056445
mov rax, qword [rbx + 0x218]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rbx + 0x218]
mov rcx, rbx
call qword [rax]
mov dword [rbx + 0x98], ebp
mov ecx, ebp
mov rax, qword [rbx + 0x218]
cmp byte [rax + 0x10], cl
jne 0x140056440
cmp byte [rbx + 0x59], bpl
mov al, 1
setne bpl
add ebp, 0xcd
mov dword [rbx + 0x24], ebp
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
xor al, al
jmp 0x1400564d8
Function at 0x1400563f0
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x24]
mov rbx, rcx
cmp eax, 0xca
jne 0x140056326
call fcn.14005ba40
cmp byte [rbx + 0x58], 0
je 0x14005631d
mov dword [rbx + 0x24], 0xcf
mov al, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], VarI2FromI1
jmp 0x140056331
cmp eax, 0xcb
jne 0x1400563b6
mov rax, qword [rbx + 0x238]
cmp byte [rax + 0x20], 0
je 0x14005639d
nop
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14005634e
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x238]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x140056395
cmp eax, 2
je 0x14005639d
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140056340
cmp eax, 3
je 0x140056376
cmp eax, 1
jne 0x140056340
inc dword [rcx + 8]
mov rdx, qword [rbx + 0x10]
mov r8d, dword [rdx + 0xc]
cmp dword [rcx + 8], r8d
jl 0x140056340
mov ecx, dword [rbx + 0x188]
add ecx, r8d
mov dword [rdx + 0xc], ecx
jmp 0x140056340
xor al, al
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0x9c]
mov rcx, rbx
mov dword [rbx + 0xa4], eax
add rsp, 0x20
pop rbx
jmp 0x1400563f0
cmp eax, 0xcc
je 0x1400563d8
mov rax, qword [rcx]
mov dword [rax + 0x28], socket
mov rcx, qword [rcx]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 0x2c], eax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x1400563f0
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x20
xor ebp, ebp
mov rbx, rcx
cmp dword [rcx + 0x24], 0xcc
je 0x14005641e
mov rax, qword [rcx + 0x218]
call qword [rax]
mov dword [rbx + 0x98], ebp
mov dword [rbx + 0x24], reloc.OLEAUT32.dll_VarI2FromI1
mov rax, qword [rbx + 0x218]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
cmp byte [rax + 0x10], bpl
je 0x1400564c5
mov ecx, dword [rbx + 0x98]
nop
cmp ecx, dword [rbx + 0x78]
jae 0x140056494
mov rax, qword [rbx + 0x10]
mov edi, ecx
test rax, rax
je 0x14005646c
mov dword [rax + 8], ecx
mov rcx, qword [rbx + 0x10]
mov eax, dword [rbx + 0x78]
mov dword [rcx + 0xc], eax
mov rcx, rbx
mov rax, qword [rbx + 0x10]
call qword [rax]
mov edi, dword [rbx + 0x98]
mov rax, qword [rbx + 0x220]
lea r8, [rbx + 0x98]
xor r9d, r9d
xor edx, edx
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov ecx, dword [rbx + 0x98]
cmp ecx, edi
je 0x1400564ed
cmp ecx, dword [rbx + 0x78]
jb 0x140056445
mov rax, qword [rbx + 0x218]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rbx + 0x218]
mov rcx, rbx
call qword [rax]
mov dword [rbx + 0x98], ebp
mov ecx, ebp
mov rax, qword [rbx + 0x218]
cmp byte [rax + 0x10], cl
jne 0x140056440
cmp byte [rbx + 0x59], bpl
mov al, 1
setne bpl
add ebp, 0xcd
mov dword [rbx + 0x24], ebp
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
xor al, al
jmp 0x1400564d8
Function at 0x1400646a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r13
push r15
sub rsp, 0x30
mov r13d, dword [rcx + 0x64]
mov rdi, rcx
mov rbx, qword [rcx + 0x268]
cmp r13d, 1
mov r8d, 0x2fe
mov qword [rsp + 0x68], rbx
sete al
mov edx, 1
mov byte [rbx + 0x38], al
mov rax, qword [rcx + 8]
mov ecx, 0x100
mov r9d, dword [rdi + 0x7c]
cmovne r8d, ecx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x28]
xor r15d, r15d
mov qword [rbx + 0x30], rax
cmp dword [rdi + 0x7c], r15d
jle 0x140064821
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x28], r12
lea r12, [rbx + 0x3c]
mov qword [rsp + 0x20], r14
xor r14d, r14d
nop dword [rax]
mov esi, dword [r12]
mov eax, ebp
cdq
idiv esi
mov ebp, eax
cmp r13d, 1
jne 0x14006473d
mov rax, qword [rbx + 0x30]
add qword [r14 + rax], 0xff
mov rax, qword [rbx + 0x30]
lea r11d, [rsi*2 - 2]
xor r8d, r8d
xor r10d, r10d
mov rdi, qword [r14 + rax]
lea eax, [rsi + 0xfe]
cdq
idiv r11d
xor ebx, ebx
mov r9d, eax
cmp r10d, r9d
jle 0x140064797
imul eax, r8d, 0x1fe
lea ecx, [rsi + 0xfe]
add ecx, eax
nop word [rax + rax]
add ecx, 0x1fe
inc r8d
mov eax, ecx
cdq
idiv r11d
mov r9d, eax
cmp r10d, eax
jg 0x140064780
movzx eax, bpl
inc r10d
movzx ecx, r8b
imul ecx, eax
mov byte [rbx + rdi], cl
inc rbx
cmp rbx, 0xff
jle 0x140064762
cmp r13d, 1
jne 0x1400647f3
mov ecx, r13d
lea rdx, [rdi - 1]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi]
mov byte [rdx], al
lea rdx, [rdx - 1]
movzx eax, byte [rdi + 0xff]
mov byte [rdi + rcx + 0xff], al
inc rcx
cmp rcx, 0xff
jle 0x1400647d0
mov rax, qword [rsp + 0x60]
inc r15d
mov rbx, qword [rsp + 0x68]
add r12, 4
add r14, 8
cmp r15d, dword [rax + 0x7c]
jl 0x140064720
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r13
pop rdi
pop rbp
pop rbx
ret
Function at 0x14009e3e0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x30
mov r15d, r8d
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x14009e414
mov dword [rsp + 0x20], edx
xor r9d, r9d
lea edx, [rsi + 2]
xor r8d, r8d
call fcn.1400a0bc0
xor al, al
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
mov qword [rsp + 0x58], rbp
call fcn.14009d5d0
xor edx, edx
mov qword [rdi + 8], 0xffffffffffffffff
mov rcx, rsi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
movsxd rbp, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test ebp, ebp
jg 0x14009e47d
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0xc]
call fcn.1400a0bc0
mov rbp, qword [rsp + 0x58]
xor al, al
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
lea eax, [rbp + 1]
mov qword [rsp + 0x50], rbx
movsxd rcx, eax
mov qword [rsp + 0x60], r14
call fcn.1400bf5ec
mov r9, rsi
mov r8d, 1
mov rdx, rbp
mov rcx, rax
mov rbx, rax
mov byte [rax], 0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
je 0x14009e4d9
mov rcx, rbx
call fcn.1400bf5e4
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 2]
call fcn.1400a0bc0
xor al, al
jmp 0x14009e53e
mov byte [rbp + rbx], 0
mov rax, rbx
movzx ecx, byte [rbx]
mov rdx, rbx
test cl, cl
je 0x14009e51a
nop dword [rax + rax]
mov r9, rax
lea r8, [rdx + 1]
inc rax
cmp cl, 0xd
jne 0x14009e50e
mov byte [rdx], 0xa
cmp byte [rax], 0xa
cmovne rax, r9
inc rax
jmp 0x14009e510
mov byte [rdx], cl
movzx ecx, byte [rax]
mov rdx, r8
test cl, cl
jne 0x14009e4f0
mov byte [rdx], 0
mov r9d, r15d
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rbx
call fcn.1400bf5e4
cmp byte [rdi + 0x50], 0
sete al
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x1400a1150
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r8, rcx
test rcx, rcx
je 0x1400a121b
mov rdx, qword [rcx]
xor r9d, r9d
mov eax, r9d
mov qword [rsp], rdi
lea rdi, [0x1400db980]
mov byte [rdx + 0x16], al
mov rdx, qword [rcx]
mov byte [rdx + 0x17], al
mov rdx, qword [rcx]
mov byte [rdx + 0x18], al
mov rdx, qword [rcx]
mov byte [rdx + 0x19], al
movsxd r11, dword [rcx + 8]
test r11, r11
jle 0x1400a11c5
mov qword [rsp + 0x10], rbx
mov r10d, r9d
mov rbx, qword [rcx]
nop dword [rax]
movzx edx, byte [rbx + r10]
inc r10
mov ecx, eax
shr rcx, 0x18
xor rdx, rcx
mov ecx, eax
shl ecx, 8
mov eax, dword [rdi + rdx*4]
xor eax, ecx
cmp r10, r11
jl 0x1400a11a0
mov rbx, qword [rsp + 0x10]
movsxd r10, dword [r8 + 0x18]
test r10, r10
jle 0x1400a11f2
mov r11, qword [r8 + 0x10]
movzx edx, byte [r11 + r9]
inc r9
mov ecx, eax
shr rcx, 0x18
xor rdx, rcx
mov ecx, eax
shl ecx, 8
mov eax, dword [rdi + rdx*4]
xor eax, ecx
cmp r9, r10
jl 0x1400a11d2
mov rcx, qword [r8]
mov edx, eax
mov rdi, qword [rsp]
shr edx, 8
mov byte [rcx + 0x16], al
mov rcx, qword [r8]
mov byte [rcx + 0x17], dl
mov edx, eax
mov rcx, qword [r8]
shr edx, 0x10
shr eax, 0x18
mov byte [rcx + 0x18], dl
mov rcx, qword [r8]
mov byte [rcx + 0x19], al
add rsp, 8
ret
Function at 0x1400c2a70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r14
sub rsp, 0x20
mov esi, dword [rcx + 0x44]
mov rbx, rcx
mov r9d, dword [rcx + 0x9c]
xor r12d, r12d
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], r15
nop dword [rax]
mov edx, dword [rbx + 0x94]
mov ebp, dword [rbx + 0x58]
mov ecx, dword [rbx + 0x44]
sub ebp, edx
add ecx, 0xfffffefa
sub ebp, r9d
add ecx, esi
cmp edx, ecx
jb 0x1400c2b40
mov rcx, qword [rbx + 0x50]
mov r8, rsi
lea rdx, [rcx + rsi]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rbx + 0x74]
mov rax, qword [rbx + 0x68]
sub dword [rbx + 0x98], esi
sub dword [rbx + 0x94], esi
sub dword [rbx + 0x84], esi
lea rdx, [rax + r8*2]
nop
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
movzx eax, cx
sub ax, si
cmp ecx, esi
cmovb ax, r12w
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x1400c2af0
mov rax, qword [rbx + 0x60]
mov r8d, esi
lea rdx, [rax + rsi*2]
nop dword [rax]
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
movzx eax, cx
sub ax, si
cmp ecx, esi
cmovb ax, r12w
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x1400c2b20
add ebp, esi
mov r14, qword [rbx]
mov ecx, dword [r14 + 8]
test ecx, ecx
je 0x1400c2c8b
mov edx, dword [rbx + 0x9c]
mov r15d, dword [rbx + 0x94]
add r15, rdx
add r15, qword [rbx + 0x50]
cmp ecx, ebp
cmovbe ebp, ecx
test ebp, ebp
jne 0x1400c2b71
mov ebp, r12d
jmp 0x1400c2bc9
mov rax, qword [r14 + 0x28]
sub ecx, ebp
mov dword [r14 + 8], ecx
mov ecx, dword [rax + 0x2c]
cmp ecx, 1
jne 0x1400c2b94
mov rdx, qword [r14]
mov r8d, ebp
mov ecx, dword [r14 + 0x4c]
call fcn.1400c69f0
jmp 0x1400c2ba8
cmp ecx, 2
jne 0x1400c2bac
mov rdx, qword [r14]
mov r8d, ebp
mov ecx, dword [r14 + 0x4c]
call fcn.1400c2ef0
mov dword [r14 + 0x4c], eax
mov rdx, qword [r14]
mov rcx, r15
mov r8d, ebp
mov edi, ebp
call sub.VCRUNTIME140.dll_memcpy
add qword [r14], rdi
add dword [r14 + 0xc], ebp
mov edx, dword [rbx + 0x9c]
lea r9d, [rdx + rbp]
mov dword [rbx + 0x9c], r9d
cmp r9d, 3
jb 0x1400c2c07
mov eax, dword [rbx + 0x94]
mov rdx, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rbx + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbx + 0x7c]
mov dword [rbx + 0x70], r8d
cmp r9d, 0x106
jae 0x1400c2c1d
mov rax, qword [rbx]
cmp dword [rax + 8], r12d
jne 0x1400c2aa0
mov ecx, dword [rbx + 0x1718]
mov edi, dword [rbx + 0x58]
cmp ecx, edi
jae 0x1400c2c8b
mov esi, dword [rbx + 0x94]
add esi, r9d
cmp ecx, esi
jae 0x1400c2c5e
sub edi, esi
mov ecx, esi
mov eax, 0x102
cmp edi, eax
cmova edi, eax
add rcx, qword [rbx + 0x50]
mov r8d, edi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea eax, [rdi + rsi]
mov dword [rbx + 0x1718], eax
jmp 0x1400c2c8b
lea eax, [rsi + 0x102]
cmp ecx, eax
jae 0x1400c2c8b
sub edi, ecx
sub esi, ecx
lea eax, [rsi + 0x102]
cmp eax, edi
cmovbe edi, eax
add rcx, qword [rbx + 0x50]
mov r8d, edi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
add dword [rbx + 0x1718], edi
mov r15, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rsi
ret
Function at 0x140029b84
Capabilities:
Clear file content

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 r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d124
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d124
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029cd4
cmp rax, 0xffffffffffffffff
je 0x140029cd4
xor edi, edi
test rbp, rbp
jle 0x140029c7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fda4
mov rbx, rax
test rax, rax
jne 0x140029c0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029c75
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aac0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001de00
cmp eax, 0xffffffff
je 0x140029c55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c1c
mov edx, r15d
mov ecx, r14d
call fcn.14001aac0
jmp 0x140029c75
cmp byte [rsi + 0x38], dil
je 0x140029c6c
cmp dword [rsi + 0x34], 5
jne 0x140029c6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029c75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b404
jmp 0x140029ce8
jns 0x140029ce8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d124
cmp rax, 0xffffffffffffffff
jne 0x140029ca0
cmp byte [rsi + 0x30], dil
je 0x140029ce8
mov edi, dword [rsi + 0x2c]
jmp 0x140029ce8
mov ecx, r14d
call fcn.1400195f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029ce8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029ce8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029ce1
mov eax, dword [rsi + 0x2c]
jmp 0x140029ce6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d124
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ade0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14001196c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140017098]
test rax, rax
je 0x1400119b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400119b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400119b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400119b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400119b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400119b8
xor al, al
add rsp, 0x28
ret
Function at 0x140003420
Capabilities:
Parse pe header

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

Function at 0x1400096d8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400094d4
Function at 0x14000cff4
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 0x14000d024
xor eax, eax
jmp 0x14000d0e7
mov rbp, rbx
cmp word [rax], si
je 0x14000d049
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d030
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d02c
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.14000cf14
movsxd r14, eax
test eax, eax
jne 0x14000d087
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d01d
mov rcx, r14
call fcn.14000b4d4
mov rdi, rax
test rax, rax
jne 0x14000d0a0
xor ecx, ecx
call fcn.14000b610
jmp 0x14000d07c
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.14000cf14
test eax, eax
jne 0x14000d0d1
mov rcx, rdi
call fcn.14000b610
jmp 0x14000d0db
xor ecx, ecx
call fcn.14000b610
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 0x140012250
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140012278
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140012278
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800016e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x28
mov r14, rdx
mov rdi, rcx
test rdx, rdx
jne 0x1800016fe
lea ebx, [rdx + 0x35]
jmp 0x18000173d
mov edx, 0x32
mov rcx, r14
call fcn.1800080cc
xor r8d, r8d
mov ebx, 0x35
test rax, rax
je 0x18000173d
nop dword [rax + rax]
movsx edx, byte [r8 + r14]
inc r8
imul ecx, ebx, 0x10f29f
add edx, ecx
and edx, 0xffffff
add ebx, edx
cmp r8, rax
jb 0x180001720
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
xor ebp, ebp
movsxd rcx, dword [rax + 0x3c]
mov r13d, dword [rcx + rax + 0x88]
add r13, rax
mov eax, dword [r13 + 0x1c]
mov ecx, dword [r13 + 0x24]
add rax, r12
mov qword [rsp + 0x78], rax
add rcx, r12
mov eax, dword [r13 + 0x20]
add rax, r12
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rax
cmp dword [r13 + 0x14], ebp
jbe 0x180001850
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x20], r15
mov esi, dword [rax + rbp*4]
add rsi, r12
jne 0x18000179f
lea edi, [rsi + 0x35]
jmp 0x1800017dd
mov edx, 0x32
mov rcx, rsi
call fcn.1800080cc
xor r8d, r8d
mov edi, 0x35
test rax, rax
je 0x1800017dd
nop dword [rax]
movsx edx, byte [r8 + rsi]
inc r8
imul ecx, edi, 0x10f29f
add edx, ecx
and edx, 0xffffff
add edi, edx
cmp r8, rax
jb 0x1800017c0
cmp edi, ebx
jne 0x180001807
mov r8, r14
mov rax, rsi
sub r8, rsi
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180001803
inc rax
test ecx, ecx
jne 0x1800017f0
test edx, edx
je 0x180001819
inc ebp
cmp ebp, dword [r13 + 0x14]
jae 0x180001846
mov rax, qword [rsp + 0x68]
jmp 0x180001792
mov rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + rbp*2]
mov ebx, dword [rcx + rax*4]
add rbx, r12
call fcn.180001380
mov rcx, rax
mov r9, rbx
mov r8d, edi
mov rdx, rsi
call fcn.180001870
mov rax, rbx
mov rsi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x1800100b0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800100c6
mov al, 1
jmp 0x180010126
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800100d7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180010124
mov ecx, dword [rcx + 0x18]
nop
call fcn.180013718
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180010124
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180010124
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180010124
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180010126
xor al, al
add rsp, 0x20
pop rbx
ret