joyce8/EMBER2024-capa huggingface dataset:
Function at 0x538da0
Capabilities:
Parse credit card information

Disassembly:
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x538db8
lea ecx, [rax - 0x41]
cmp cl, 0x19
jbe 0x538db8
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x538dc0
xor eax, eax
ret
cmp rbx, 3
je 0x538dcc
cmp rbx, 4
jne 0x538df9
cmp al, 0x2c
ja 0x538de6
lea ecx, [rax - 0x21]
cmp cl, 1
jbe 0x538df6
cmp al, 0x24
je 0x538df6
nop dword [rax]
cmp al, 0x26
jae 0x538df6
jmp 0x538df9
lea ecx, [rax - 0x3a]
cmp cl, 4
jbe 0x538df6
cmp al, 0x5b
je 0x538df6
cmp al, 0x5d
jne 0x538df9
xor eax, eax
ret
cmp al, 0x2f
ja 0x538e32
nop dword [rax]
cmp al, 0x26
ja 0x538e11
cmp al, 0x24
je 0x538e51
cmp al, 0x26
je 0x538e51
jmp 0x538ecb
lea ecx, [rax - 0x2b]
cmp cl, 1
jbe 0x538e51
lea ecx, [rax - 0x2d]
nop dword [rax]
cmp cl, 1
jbe 0x538ec8
cmp al, 0x2f
je 0x538e51
jmp 0x538ecb
cmp al, 0x3d
ja 0x538e49
lea ecx, [rax - 0x3a]
cmp cl, 1
jbe 0x538e51
nop
cmp al, 0x3d
je 0x538e51
jmp 0x538ecb
lea ecx, [rax - 0x3f]
cmp cl, 1
ja 0x538ec0
cmp rbx, 2
jg 0x538e87
cmp rbx, 1
je 0x538e81
nop dword [rax]
cmp rbx, 2
jne 0x538ecb
cmp al, 0x2f
je 0x538e72
cmp al, 0x3b
je 0x538e72
cmp al, 0x2c
jne 0x538e79
mov ecx, 1
jmp 0x538e7e
cmp al, 0x3f
sete cl
mov eax, ecx
ret
cmp al, 0x3f
sete al
ret
cmp rbx, 5
jne 0x538eaa
cmp al, 0x40
je 0x538e99
cmp al, 0x2f
je 0x538e99
cmp al, 0x3f
jne 0x538ea2
mov ecx, 1
nop
jmp 0x538ea7
cmp al, 0x3a
sete cl
mov eax, ecx
ret
cmp rbx, 6
je 0x538eb9
cmp rbx, 7
jne 0x538ecb
xor eax, eax
ret
mov eax, 1
ret
cmp al, 0x5f
je 0x538ec8
cmp al, 0x7e
jne 0x538ecb
xor eax, eax
ret
cmp rbx, 7
jne 0x538ee1
cmp al, 0x21
je 0x538edd
lea ecx, [rax - 0x28]
cmp cl, 2
ja 0x538ee1
xor eax, eax
nop
ret
mov eax, 1
ret
Function at 0x5578e0
Capabilities:
Execute syscall

Disassembly:
xor rax, rax
mov ax, word [rsp + 8]
push rcx
mov rcx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x18]
mov rdi, qword gs:[0x30]
mov dword [rdi + 0x68], 0
sub rsp, 0x80
cmp ecx, 4
jle 0x557920
cmp ecx, 0x10
jle 0x557916
int 3
mov rdi, rsp
cld
rep movsq qword [rdi], qword [rsi]
mov rsi, rsp
sub rsp, 8
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
mov r9, qword [rsi + 0x18]
movq xmm0, rcx
movq xmm1, rdx
movq xmm2, r8
movq xmm3, r9
mov r10, rcx
syscall
add rsp, 0x88
pop rcx
mov dword [rsp + 0x28], eax
ret

Function at 0x558420
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x10]
cmp r12, qword [r14 + 0x10]
jbe 0x558635
sub rsp, 0x90
mov qword [rsp + 0x88], rbp
lea rbp, [rsp + 0x88]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rcx
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc0], r8
test rdi, rdi
je 0x558568
mov rax, rcx
mov rbx, rdi
mov rcx, rsi
call fcn.004d46e0
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x60], rbx
mov rdx, qword [rsp + 0xc0]
mov rax, rdx
mov ebx, 0xa
call fcn.00473600
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x50], rbx
mov rdx, qword [rsp + 0x80]
mov qword [rsp], rdx
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 8], rsi
mov byte [rsp + 0x10], 0x3a
call fcn.004031c0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x55852e
xor eax, eax
lea rbx, str.___t
mov ecx, 1
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x60]
lea r8, [0x0059c405]
mov r9d, 2
mov r10, qword [rsp + 0x70]
mov r11, qword [rsp + 0x50]
call fcn.0044ea00
jmp 0x558558
xor eax, eax
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
lea rdi, [0x0059c365]
mov esi, 1
mov r8, qword [rsp + 0x70]
mov r9, qword [rsp + 0x50]
call fcn.0044e920
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
mov rax, r8
mov ebx, 0xa
call fcn.00473600
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x48], rbx
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x78], rcx
mov rdx, qword [rsp + 0xa0]
mov qword [rsp + 0x58], rdx
mov qword [rsp], rcx
mov qword [rsp + 8], rdx
mov byte [rsp + 0x10], 0x3a
call fcn.004031c0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x5585fe
xor eax, eax
lea rbx, str.___t
mov ecx, 1
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x58]
lea r8, [0x0059c405]
mov r9d, 2
mov r10, qword [rsp + 0x68]
mov r11, qword [rsp + 0x48]
call fcn.0044ea00
jmp 0x558625
xor eax, eax
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
lea rdi, [0x0059c365]
mov esi, 1
mov r8, qword [rsp + 0x68]
mov r9, qword [rsp + 0x48]
call fcn.0044e920
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
call fcn.00461140
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
jmp fcn.00558420
Function at 0x10025c7f8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
rdtsc
shl rdx, 0x20
or rax, rdx
cdqe
mov qword [0x100346e50], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
lea rbp, [0x100000000]
xor ebx, ebx
and eax, 0x80000000
mov dword [0x1003470d0], eax
cmp dword [0x100348190], ebx
jne 0x10025c856
lea rcx, [0x1003475c0]
call fcn.1003ec000
cmp eax, ebx
jl 0x10025ca45
mov dword [0x100348190], 1
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rdi, qword [rsp + 0x28]
mov r8d, 0x80000000
movsxd rdx, dword [0x10000003c]
lea rax, [rdi + r8]
lea rcx, [0x100000000]
mov edx, dword [rdx + rbp + 0x50]
add rdx, rcx
cmp rdx, rax
jb 0x10025c891
lea rdi, [rdx - 0x80000000]
lea rdx, [rdi + 0xffff]
mov rdi, qword [rsp + 0x30]
lea rax, [rdi - 0x80000000]
and rdx, 0xffffffffffff0000
mov qword [0x1003475b0], rdx
cmp rcx, rax
jbe 0x10025c8c0
mov qword [0x100348140], rdi
jmp 0x10025c8ca
add rcx, r8
mov qword [0x100348140], rcx
mov word [0x100348140], bx
mov rax, qword [0x100348140]
sub rax, rdx
shr rax, 0x10
mov qword [0x100348890], rax
mov eax, ebx
cmp eax, ebx
jl 0x10025ca45
mov rax, qword [0x100347a90]
cmp rax, 1
jae 0x10025c936
lea rax, [rax + rax*4]
lea rcx, [rbp + rax*8 + 0x331b50]
call fcn.100309998
mov edx, eax
cmp eax, ebx
jl 0x10025c92f
mov rax, qword [0x100347a90]
inc rax
mov qword [0x100347a90], rax
cmp rax, 1
jb 0x10025c8fd
cmp edx, ebx
jge 0x10025c936
mov eax, edx
jmp 0x10025ca45
mov eax, dword [0x100172988]
cmp eax, ebx
je 0x10025c9d0
lea rsi, section..data
lea r9, [rsp + 0x78]
mov r8d, 0x40
mov eax, dword [0x100172988]
mov edx, dword [0x1000d5e38]
mov rcx, rsi
imul edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, ebx
jne 0x10025c992
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov ecx, 0x54f
cmove eax, ecx
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
jmp 0x10025c9d2
mov r8, rbx
mov eax, dword [0x100172988]
cmp eax, ebx
jbe 0x10025c9d0
xor eax, eax
mov ecx, dword [0x1000d5e38]
mov edi, dword [0x1000d5e38]
mov dword [rbp + r8*4 + 0x349c90], 0xcb65
imul rdi, r8
add rdi, rsi
rep stosb byte [rdi], al
mov eax, dword [0x100172988]
inc r8
cmp r8, rax
jb 0x10025c99f
mov ecx, ebx
cmp ecx, ebx
jge 0x10025c9da
mov eax, ecx
jmp 0x10025ca45
mov ecx, dword [0x100348730]
cmp ecx, ebx
je 0x10025ca2c
lea rdi, [0x100348758]
mov edx, dword [0x100348728]
lea rax, [rdx + rbp + 0x348758]
mov qword [0x100348738], rdi
mov qword [0x100348740], rax
mov eax, dword [0x10034872c]
add rdx, rax
lea rax, [rdx + rbp + 0x348758]
mov qword [0x100348748], rax
add rcx, rdx
add rcx, rdi
mov qword [0x100348750], rcx
mov dword [rsp + 0x70], ebx
lea rcx, [rsp + 0x70]
mov eax, 0x3c7cbac1
cmp dword [rsp + 0x70], ebx
cmovl ebx, dword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400068d0
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 0x1400068f2
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 0x14000696c
mov rdi, r14
mov rcx, rbx
call fcn.140008f70
test rax, rax
jle 0x140006944
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14002b680
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 0x14000695c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140006964
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140006906
sub r14, rdi
jmp 0x140006a4f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140006983
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006985
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400069b7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14002b680
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140006a4c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400069f2
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
cmp rbp, 0xfff
jbe 0x140006a2d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14003e59c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140006a4c
cmp rbp, rax
ja 0x140006a00
test rbp, rbp
je 0x140006a4c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14003e59c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140020500
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x140020537
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x140020520
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x140020638
sub rcx, r10
cmp r9, 8
jb 0x140020610
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp r11, rax
jb 0x140020590
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x140020638
add r10, r11
sub r9, r11
nop word [rax + rax]
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x140020620
test r8d, r8d
sete al
ret

Function at 0x140020640
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x140020794
cmp r9, 4
jb 0x14002068a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x140020670
xor r11d, r11d
test r9, r9
je 0x140020794
cmp r9, 0x40
jb 0x140020773
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x1400206bc
cmp rdx, r8
jae 0x140020773
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x1400206d1
cmp rdx, r10
jae 0x140020773
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov rsi, r9
and rsi, 0xffffffffffffffc0
mov qword [rsp], rdi
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x140020700
mov rsi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp]
cmp r11, r9
jae 0x140020794
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x140020780
add rsp, 8
ret
Function at 0x14002a42c
Capabilities:
Parse pe header

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

Function at 0x1400447b0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400445a0
Function at 0x14004b5a8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14004b5da
call fcn.14003deac
mov dword [rax], 0x16
call fcn.14003d940
jmp 0x14004b6f9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14004b6f9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14004b6f9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14004b609
lock or dword [rcx + 0x14], 0x10
jmp 0x14004b6f9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14004b61d
call fcn.14004bca4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140047454
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14004c1bc
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14004b6e7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14004b6b2
mov rcx, rsi
call fcn.140047454
cmp eax, edi
je 0x14004b69d
mov rcx, rsi
call fcn.140047454
cmp eax, 0xfffffffe
je 0x14004b69d
mov rcx, rsi
call fcn.140047454
movsxd rbx, eax
lea r14, [0x1400816d0]
mov rcx, rsi
sar rbx, 6
call fcn.140047454
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14004b6a4
lea rdx, [0x14007c5b0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14004b6b2
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14004b6d6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14004b6d6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14004b6d6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14004b6fc
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14004ba24
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.140029ed0
sub rsp, rax
mov rax, qword [0x14007c200]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140047454
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004ba73
mov rax, rbp
jmp 0x14004bb7b
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 + 0x816d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004c994
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x816d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004bb77
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 0x14004bb77
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004c994
test rax, rax
js 0x14004bb77
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004bb77
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004bb69
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004bb69
cmp byte [rcx], 0xd
jne 0x14004bb4f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004bb5e
cmp byte [rcx + 1], 0xa
jne 0x14004bb5e
inc rcx
jmp 0x14004bb5e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7c600]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004bb31
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004bb7b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140029370
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 0x14004bd10
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400816d0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14004bd6e
cmp word [rdx], r12w
jne 0x14004bd6e
or byte [rax + r8*8 + 0x38], cl
jmp 0x14004bd74
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14004becf
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14004beaa
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14004bdad
mov rcx, r9
jmp 0x14004bdd0
cmp r9, rdx
jae 0x14004bde7
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14004bd91
jmp 0x14004becf
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004bea4
cmp dword [rsp + 0x80], edi
je 0x14004bea4
mov rdx, r14
lea r11, [0x1400816d0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14004be7d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14004be50
mov word [rbx], r12w
jmp 0x14004becb
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14004be59
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14004becb
cmp word [rsp + 0x70], r12w
jne 0x14004be8a
cmp rbx, rsi
je 0x14004be4a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14004c99c
cmp word [rsp + 0x70], r12w
je 0x14004becf
mov word [rbx], r13w
jmp 0x14004becb
lea r11, [0x1400816d0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14004bec7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14004becf
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004ffec
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 0x140050073
mov rsi, rbx
cmp word [rax], bp
je 0x140050032
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14005001c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140050018
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004a040
mov rdi, rax
test rax, rax
je 0x140050060
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002b680
mov rbp, rdi
xor ecx, ecx
call fcn.140048238
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 0x140057690
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.14004c99c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004c99c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400577e0
cmp rax, 0xffffffffffffffff
je 0x1400577e0
xor edi, edi
test rbp, rbp
jle 0x14005778b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400481c0
mov rbx, rax
test rax, rax
jne 0x140057718
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140057781
mov edx, 0x8000
mov ecx, r14d
call fcn.14004482c
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.1400498b0
cmp eax, 0xffffffff
je 0x140057761
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140057728
mov edx, r15d
mov ecx, r14d
call fcn.14004482c
jmp 0x140057781
cmp byte [rsi + 0x38], dil
je 0x140057778
cmp dword [rsi + 0x34], 5
jne 0x140057778
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140057781
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140048238
jmp 0x1400577f4
jns 0x1400577f4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004c99c
cmp rax, 0xffffffffffffffff
jne 0x1400577ac
cmp byte [rsi + 0x30], dil
je 0x1400577f4
mov edi, dword [rsi + 0x2c]
jmp 0x1400577f4
mov ecx, r14d
call fcn.1400509cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400577f4
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 0x1400577f4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400577ed
mov eax, dword [rsi + 0x2c]
jmp 0x1400577f2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004c99c
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