joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014a190
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
sub rsp, 0x198
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbp, rdx
lea rdx, [0x140327fe8]
call sub.MSVCR90.dll_fopen
mov rbx, rax
test rax, rax
jne 0x14014a1cb
lea eax, [rbx + 1]
jmp 0x14014a2fc
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x190], rdi
lea r8d, [rdx + 2]
call sub.MSVCR90.dll_fseek
mov rcx, rbx
call sub.MSVCR90.dll_ftell
xor r8d, r8d
mov rcx, rbx
lea edx, [rax - 0x16]
mov edi, eax
call sub.MSVCR90.dll_fseek
mov edx, 1
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x15]
mov r9, rbx
call sub.MSVCR90.dll_fread
cmp dword [rsp + 0x20], 0x6054b50
je 0x14014a22b
mov rcx, rbx
call sub.MSVCR90.dll_fclose
mov eax, 1
jmp 0x14014a2f4
sub edi, dword [rsp + 0x2c]
xor r8d, r8d
mov rcx, rbx
lea edx, [rdi - 0x16]
mov qword [rsp + 0x1c0], rsi
call sub.MSVCR90.dll_fseek
xor edi, edi
mov esi, edi
cmp di, word [rsp + 0x2a]
jae 0x14014a2df
nop word [rax + rax]
mov edx, 1
lea rcx, [rsp + 0x38]
mov r9, rbx
lea r8d, [rdx + 0x2d]
call sub.MSVCR90.dll_fread
movzx r8d, word [rsp + 0x54]
lea rcx, [rsp + 0x70]
mov r9, rbx
mov edx, 1
call sub.MSVCR90.dll_fread
movzx r11d, word [rsp + 0x54]
movzx edx, word [rsp + 0x56]
mov r8d, 1
mov rcx, rbx
mov byte [rsp + r11 + 0x70], 0
call sub.MSVCR90.dll_fseek
movzx edx, word [rsp + 0x58]
mov r8d, 1
mov rcx, rbx
call sub.MSVCR90.dll_fseek
lea rdx, [rsp + 0x48]
mov r8d, 4
mov ecx, edi
call fcn.140144600
inc esi
mov edi, eax
movzx eax, word [rsp + 0x2a]
cmp esi, eax
jl 0x14014a260
mov rcx, rbx
call sub.MSVCR90.dll_fclose
mov rsi, qword [rsp + 0x1c0]
mov dword [rbp], edi
xor eax, eax
mov rdi, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x198
pop rbp
pop rbx
ret

Function at 0x14014a320
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
xor r10d, r10d
mov rbx, rcx
mov esi, r9d
mov dword [rcx], r10d
mov dword [rcx + 4], r10d
add rcx, 8
mov ebp, r8d
mov r12, rdx
mov eax, r10d
nop word [rax + rax]
mov byte [rcx], al
inc eax
inc rcx
cmp eax, 0x100
jl 0x14014a360
mov r9d, r10d
lea rdi, [rbx + 8]
nop word [rax + rax]
movzx r8d, byte [rdi]
mov eax, r9d
inc r9d
cdq
inc rdi
idiv ebp
movsxd rax, edx
movzx ecx, byte [rax + r12]
add ecx, r8d
add ecx, r10d
cmp r9d, 0x100
movzx r10d, cl
movzx eax, byte [r10 + rbx + 8]
mov byte [rdi - 1], al
mov byte [r10 + rbx + 8], r8b
jl 0x14014a380
test esi, esi
jle 0x14014a3f2
mov rdi, rsi
mov eax, dword [rbx]
inc eax
movzx r10d, al
mov eax, dword [rbx + 4]
movzx r8d, byte [r10 + rbx + 8]
add eax, r8d
sub rdi, 1
movzx edx, al
movzx eax, byte [rdx + rbx + 8]
mov byte [r10 + rbx + 8], al
mov byte [rdx + rbx + 8], r8b
mov dword [rbx], r10d
mov dword [rbx + 4], edx
jne 0x14014a3c0
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r12
ret
Function at 0x14014a410
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
test r8d, r8d
jle 0x14014a489
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov rsi, rdx
mov r11, rcx
xor ebx, ebx
movsxd rdi, r8d
nop
mov eax, dword [r11]
inc rbx
inc eax
movzx r9d, al
mov eax, dword [r11 + 4]
movzx r10d, byte [r9 + r11 + 8]
lea ecx, [r10 + rax]
movzx edx, cl
movzx ecx, byte [rdx + r11 + 8]
mov byte [r9 + r11 + 8], cl
mov byte [rdx + r11 + 8], r10b
add r10b, cl
mov dword [r11], r9d
mov dword [r11 + 4], edx
movzx eax, r10b
movzx ecx, byte [rax + r11 + 8]
xor byte [rbx + rsi - 1], cl
cmp rbx, rdi
jl 0x14014a430
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
repz ret
Function at 0x140180950
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0xe0
movaps xmmword [rax - 0x18], xmm6
movsd xmm6, qword [0x1403392c0]
mov rbx, rcx
lea rdi, [rcx + 0x10610]
lea rsi, [rcx + 0x106c0]
mov ebp, 2
nop dword [rax]
lea rcx, [rsp + 0x28]
mov rdx, rsi
mov qword [rsp + 0x20], rbx
call fcn.14024f090
mov r11, qword [rdi]
mov rcx, qword [rbx + 8]
movsd xmm0, qword [r11 + 0xa8]
lea r8, [0x140180790]
lea rdx, [rsp + 0x20]
xorpd xmm0, xmm6
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x68], xmm0
movsd xmm1, qword [r11 + 0xa0]
xorpd xmm1, xmm6
cvtsd2ss xmm0, xmm1
movss dword [rsp + 0x6c], xmm0
movsd xmm2, qword [r11 + 0xa0]
xorpd xmm2, xmm6
cvtsd2ss xmm0, xmm2
movss dword [rsp + 0x70], xmm0
cvtsd2ss xmm1, qword [r11 + 0xa8]
movss dword [rsp + 0x74], xmm1
cvtsd2ss xmm0, qword [r11 + 0xa0]
movss dword [rsp + 0x78], xmm0
cvtsd2ss xmm1, qword [r11 + 0xa0]
movss dword [rsp + 0x7c], xmm1
call fcn.1401a0410
add rsi, 0xe310
add rdi, 0xe310
sub rbp, 1
jne 0x140180990
lea r11, [rsp + 0xe0]
xor eax, eax
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rdi
ret
Function at 0x140197260
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
call fcn.1401a1100
mov rbx, rax
test rax, rax
jne 0x14019728a
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp dword [rax + 0x22550], 0
je 0x14019727a
lea rdx, [0x140326fec]
mov rcx, rdi
mov qword [rsp + 0x38], rsi
call sub.MSVCR90.dll_fopen
mov rsi, rax
test rax, rax
jne 0x1401972c2
lea eax, [rsi + 1]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 1
lea rcx, [rbx + 0x22558]
mov r9, rax
lea r8d, [rdx + 3]
mov qword [rsp + 0x30], rbp
call sub.MSVCR90.dll_fwrite
mov eax, dword [rbx + 0x22558]
xor edi, edi
test eax, eax
jle 0x140197339
nop dword [rax + rax]
mov ecx, dword [rbx + 0x22554]
cmp eax, ecx
jne 0x140197307
mov eax, dword [rbx + 0x2255c]
add eax, edi
cdq
idiv ecx
jmp 0x140197309
mov edx, edi
movsxd rcx, edx
mov r9, rsi
mov r8d, 0x122c
mov edx, 1
imul rcx, rcx, 0x122c
add rcx, qword [rbx + 0x22560]
call sub.MSVCR90.dll_fwrite
mov eax, dword [rbx + 0x22558]
inc edi
cmp edi, eax
jl 0x1401972f0
mov rcx, rsi
call sub.MSVCR90.dll_fclose
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1401bd9c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
call fcn.1401a0c80
mov rbx, rax
test rax, rax
jne 0x1401bd9ea
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp dword [rax + 0x3ea5c], 0
je 0x1401bd9da
lea rdx, [0x140326fec]
mov rcx, rdi
mov qword [rsp + 0x38], rsi
call sub.MSVCR90.dll_fopen
mov rsi, rax
test rax, rax
jne 0x1401bda22
lea eax, [rsi + 1]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 1
lea rcx, [rbx + 0x3ea64]
mov r9, rax
lea r8d, [rdx + 3]
mov qword [rsp + 0x30], rbp
call sub.MSVCR90.dll_fwrite
mov eax, dword [rbx + 0x3ea64]
xor edi, edi
test eax, eax
jle 0x1401bda99
nop dword [rax + rax]
mov ecx, dword [rbx + 0x3ea60]
cmp eax, ecx
jne 0x1401bda67
mov eax, dword [rbx + 0x3ea68]
add eax, edi
cdq
idiv ecx
jmp 0x1401bda69
mov edx, edi
movsxd rcx, edx
mov r9, rsi
mov r8d, 0x197c
mov edx, 1
imul rcx, rcx, 0x197c
add rcx, qword [rbx + 0x3ea70]
call sub.MSVCR90.dll_fwrite
mov eax, dword [rbx + 0x3ea64]
inc edi
cmp edi, eax
jl 0x1401bda50
mov rcx, rsi
call sub.MSVCR90.dll_fclose
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1401da6a0
Capabilities:
Write file on windows

Disassembly:
dec ecx
cmp ecx, 2
ja 0x14019df70
movsxd rcx, ecx
lea rax, [0x140547e88]
imul rcx, rcx, 0x5e38
add rcx, rax
jmp 0x1401da6a0
mov eax, 1
ret
push rsi
sub rsp, 0x20
cmp qword [rcx + 0x170], 0
mov rax, rdx
mov rsi, rcx
jne 0x1401da6c1
mov eax, 1
add rsp, 0x20
pop rsi
ret
lea rdx, [0x140326fec]
mov rcx, rax
mov qword [rsp + 0x40], rbp
call sub.MSVCR90.dll_fopen
mov rbp, rax
test rax, rax
jne 0x1401da6eb
lea eax, [rbp + 1]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov edx, 1
lea rcx, [rsp + 0x30]
mov r9, rax
lea r8d, [rdx + 3]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x565247
mov qword [rsp + 0x48], rdi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsi + 0x148]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsi + 0x150]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov r11d, dword [rsi + 0x150]
mov rcx, qword [rsi + 0x170]
imul r11d, dword [rsi + 0x148]
movsxd r8, r11d
mov r9, rbp
mov edx, 1
shl r8, 2
call sub.MSVCR90.dll_fwrite
mov rcx, rbp
call sub.MSVCR90.dll_fclose
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x1401da9c0
Capabilities:
Write file on windows

Disassembly:
dec ecx
cmp ecx, 2
ja 0x14019dfd0
movsxd rcx, ecx
lea rax, [0x140547e88]
imul rcx, rcx, 0x5e38
add rcx, rax
jmp 0x1401da9c0
mov eax, 1
ret
push rsi
sub rsp, 0x20
cmp qword [rcx + 0x1c0], 0
mov rax, rdx
mov rsi, rcx
jne 0x1401da9e1
mov eax, 1
add rsp, 0x20
pop rsi
ret
lea rdx, [0x140326fec]
mov rcx, rax
mov qword [rsp + 0x40], rbp
call sub.MSVCR90.dll_fopen
mov rbp, rax
test rax, rax
jne 0x1401daa0b
lea eax, [rbp + 1]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov edx, 1
lea rcx, [rsp + 0x30]
mov r9, rax
lea r8d, [rdx + 3]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x42524d
mov qword [rsp + 0x48], rdi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsi + 0x148]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsi + 0x150]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov r11d, dword [rsi + 0x150]
mov rcx, qword [rsi + 0x1c0]
imul r11d, dword [rsi + 0x148]
movsxd r8, r11d
mov r9, rbp
mov edx, 1
shl r8, 2
call sub.MSVCR90.dll_fwrite
mov rcx, rbp
call sub.MSVCR90.dll_fclose
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x1401dad00
Capabilities:
Write file on windows

Disassembly:
dec ecx
cmp ecx, 2
ja 0x14019e030
movsxd rcx, ecx
lea rax, [0x140547e88]
imul rcx, rcx, 0x5e38
add rcx, rax
jmp 0x1401dad00
mov eax, 1
ret
push rsi
sub rsp, 0x20
cmp qword [rcx + 0x210], 0
mov rax, rdx
mov rsi, rcx
jne 0x1401dad21
mov eax, 1
add rsp, 0x20
pop rsi
ret
lea rdx, [0x140326fec]
mov rcx, rax
mov qword [rsp + 0x40], rbp
call sub.MSVCR90.dll_fopen
mov rbp, rax
test rax, rax
jne 0x1401dad4b
lea eax, [rbp + 1]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov edx, 1
lea rcx, [rsp + 0x30]
mov r9, rax
lea r8d, [rdx + 3]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x544557
mov qword [rsp + 0x48], rdi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsi + 0x128]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsi + 0x148]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsi + 0x150]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov r11d, dword [rsi + 0x150]
mov rcx, qword [rsi + 0x210]
imul r11d, dword [rsi + 0x148]
movsxd r8, r11d
mov r9, rbp
mov edx, 1
shl r8, 2
call sub.MSVCR90.dll_fwrite
mov rcx, rbp
call sub.MSVCR90.dll_fclose
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x1401e0790
Capabilities:
Write file on windows

Disassembly:
dec ecx
cmp ecx, 2
ja 0x14019e060
movsxd rcx, ecx
lea rax, [0x140547e88]
imul rcx, rcx, 0x5e38
add rcx, rax
jmp 0x1401e0790
mov eax, 1
ret
push rsi
sub rsp, 0x20
cmp qword [rcx + 0x7a8], 0
mov rax, rdx
mov rsi, rcx
jne 0x1401e07b1
mov eax, 1
add rsp, 0x20
pop rsi
ret
lea rdx, [0x140326fec]
mov rcx, rax
mov qword [rsp + 0x40], rbp
call sub.MSVCR90.dll_fopen
mov rbp, rax
test rax, rax
jne 0x1401e07db
lea eax, [rbp + 1]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov edx, 1
lea rcx, [rsp + 0x30]
mov r9, rax
lea r8d, [rdx + 3]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x4d4644
mov qword [rsp + 0x48], rdi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsi + 0x740]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsi + 0x744]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov r11d, dword [rsi + 0x744]
mov rcx, qword [rsi + 0x7a8]
imul r11d, dword [rsi + 0x740]
movsxd r8, r11d
mov r9, rbp
mov edx, 1
shl r8, 2
call sub.MSVCR90.dll_fwrite
mov rcx, rbp
call sub.MSVCR90.dll_fclose
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x1401e8c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push r12
sub rsp, 0x58
mov rbx, qword [rcx + 0x88]
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x50], rdi
movaps xmmword [rsp + 0x40], xmm6
mov eax, dword [rbx + 0x458]
mov edx, dword [rbx + 0x390]
mov r12, rcx
cmp eax, edx
jge 0x1401e8c55
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [rbx + 0x394]
jmp 0x1401e8c64
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [rbx + 0x394]
cmp dword [rbx + 0x18], 0
je 0x1401e8c90
movss xmm4, dword [rbx + 8]
movss xmm1, dword [rbx + 0x14]
movaps xmm2, xmm4
addss xmm2, dword [rbx + 0x1c]
movss dword [rsp + 0x30], xmm4
movss dword [rsp + 0x34], xmm2
movss dword [rsp + 0x38], xmm1
jmp 0x1401e8cba
movss xmm4, dword [rbx + 0x88]
movss xmm1, dword [rbx + 0x94]
movss xmm2, dword [rbx + 0x8c]
movss dword [rsp + 0x30], xmm4
movss dword [rsp + 0x38], xmm1
movss dword [rsp + 0x34], xmm2
mov eax, dword [rbx + 0x398]
movaps xmm3, xmm1
mov dword [rsp + 0x20], eax
addss xmm3, xmm0
movaps xmm0, xmm4
movss dword [rsp + 0x3c], xmm3
call fcn.1402261d0
xor esi, esi
cmp dword [rbx + 0x458], esi
xorps xmm6, xmm6
mov edi, esi
jle 0x1401e8dc7
mov qword [rsp + 0x78], rbp
mov rbp, rsi
cmp esi, dword [rbx + 0x390]
jge 0x1401e8dc2
cmp edi, dword [rbx + 0x42c]
jl 0x1401e8db0
mov rax, qword [rbx + 0x460]
movsxd rdx, dword [rax + rbp]
mov rax, qword [rbx + 0x450]
mov r8d, dword [rax + rdx*4]
mov eax, dword [rbx + 0x434]
dec eax
add r8d, 4
cmp edx, eax
jne 0x1401e8d3e
mov eax, dword [rbx + 0x3a0]
mov dword [rsp + 0x70], eax
jmp 0x1401e8d48
mov eax, dword [rbx + 0x39c]
mov dword [rsp + 0x70], eax
cmp dword [rbx + 0x18], 0
jne 0x1401e8d7e
cmp dword [rbx + 0x20], 0
je 0x1401e8d7e
movsxd rdx, r8d
lea rax, [rbx + 0x238]
lea r9, [rsp + 0x30]
add rdx, qword [rbx + 0x440]
lea r8, [rsp + 0x70]
movaps xmm0, xmm6
mov qword [rsp + 0x20], rax
call fcn.1401e2870
jmp 0x1401e8da6
movsxd rdx, r8d
lea rax, [rbx + 0x2e8]
lea r9, [rsp + 0x30]
add rdx, qword [rbx + 0x440]
lea r8, [rsp + 0x70]
movaps xmm0, xmm6
mov qword [rsp + 0x20], rax
call fcn.1401e2870
addss xmm6, dword [rbx + 0x394]
inc esi
inc edi
add rbp, 4
cmp edi, dword [rbx + 0x458]
jl 0x1401e8cf4
mov rbp, qword [rsp + 0x78]
cmp dword [rbx + 0x470], 0
movaps xmm6, xmmword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x80]
je 0x1401e8df3
mov edx, dword [r12 + 0x40]
lea rcx, [rbx + 0x478]
call fcn.1401e8150
xor eax, eax
add rsp, 0x58
pop r12
pop rbx
ret
Function at 0x14023eef0
Capabilities:
Delete file
Read file on windows

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x170
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, rcx
lea r9, [rcx + 0x104]
lea r8, [0x14037dd54]
lea rcx, [rsp + 0x40]
lea rdx, str._s_s
call sub.MSVCR90.dll_sprintf
lea rdx, [0x140327fe8]
lea rcx, [rsp + 0x40]
call sub.MSVCR90.dll_fopen
mov rbx, rax
test rax, rax
jne 0x14023ef51
lea eax, [rbx + 1]
jmp 0x14023f1be
mov edx, 1
lea rcx, [rsp + 0x24]
mov r9, rax
lea r8d, [rdx + 3]
mov qword [rsp + 0x198], rsi
mov qword [rsp + 0x1a0], rdi
call sub.MSVCR90.dll_fread
lea rsi, [rsp + 0x24]
lea rdi, [0x1403135e0]
mov ecx, 4
repe cmpsb byte [rsi], byte [rdi]
jne 0x14023efac
mov edx, 1
lea rcx, [rsp + 0x20]
mov r9, rbx
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fread
cmp dword [rsp + 0x20], 0x100
je 0x14023efbe
mov rcx, rbx
call sub.MSVCR90.dll_fclose
mov eax, 1
jmp 0x14023f1ae
mov edx, 1
lea rcx, [rsp + 0x28]
mov r9, rbx
lea r8d, [rdx + 8]
call sub.MSVCR90.dll_fread
lea rdx, [rbp + 0x104]
lea rcx, [rsp + 0x28]
call sub.MSVCR90.dll__stricmp
test eax, eax
je 0x14023f005
mov rcx, rbx
call sub.MSVCR90.dll_fclose
lea rcx, [rsp + 0x40]
call sub.MSVCR90.dll_remove
mov eax, 1
jmp 0x14023f1ae
mov edx, 1
lea rcx, [rbp + 0x110]
mov r9, rbx
lea r8d, [rdx + 3]
mov qword [rsp + 0x168], r13
mov qword [rsp + 0x160], r14
call sub.MSVCR90.dll_fread
mov ecx, dword [rbp + 0x110]
imul ecx, ecx, 0x98
call fcn.14014a890
xor r14d, r14d
cmp dword [rbp + 0x110], r14d
mov qword [rbp + 0x118], rax
mov r13d, r14d
jle 0x14023f194
mov r12, r14
nop dword [rax + rax]
mov rax, qword [rbp + 0x118]
mov edx, 1
movsxd rdi, r13d
lea r8d, [rdx + 0x63]
mov r9, rbx
imul rdi, rdi, 0x98
lea rcx, [rdi + rax]
call sub.MSVCR90.dll_fread
mov rdx, qword [rbp + 0x118]
mov r9, rbx
lea rcx, [rdx + rdi + 0x64]
mov edx, 1
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fread
mov rdx, qword [rbp + 0x118]
mov r9, rbx
lea rcx, [rdx + rdi + 0x68]
mov edx, 1
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fread
mov rdx, qword [rbp + 0x118]
mov r9, rbx
lea rcx, [rdx + rdi + 0x6c]
mov edx, 1
lea r8d, [rdx + 0xf]
call sub.MSVCR90.dll_fread
mov rdx, qword [rbp + 0x118]
mov r9, rbx
lea rcx, [rdx + rdi + 0x80]
mov edx, 1
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fread
mov rdx, qword [rbp + 0x118]
mov r9, rbx
lea rcx, [rdx + rdi + 0x7c]
mov edx, 1
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fread
mov rdx, qword [rbp + 0x118]
mov r9, rbx
lea rcx, [rdx + rdi + 0x84]
mov edx, 1
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fread
mov rdx, qword [rbp + 0x118]
mov rcx, rbx
mov qword [rdx + r12 + 0x88], r14
call sub.MSVCR90.dll_ftell
mov rcx, qword [rbp + 0x118]
mov dword [rcx + r12 + 0x90], eax
mov rax, qword [rbp + 0x118]
mov r8d, 1
mov edx, dword [rax + r12 + 0x84]
mov rcx, rbx
call sub.MSVCR90.dll_fseek
inc r13d
add r12, 0x98
cmp r13d, dword [rbp + 0x110]
jl 0x14023f060
mov rcx, rbx
call sub.MSVCR90.dll_fclose
mov r14, qword [rsp + 0x160]
mov r13, qword [rsp + 0x168]
xor eax, eax
mov rsi, qword [rsp + 0x198]
mov rdi, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x170
pop r12
pop rbp
pop rbx
ret
Function at 0x14023f1e0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp dword [0x14037dd50], 0
je 0x14023f21f
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x158
ret
lea rdx, [0x14037dd54]
mov qword [rsp + 0x160], rbx
sub rdx, rcx
movzx eax, byte [rcx]
inc rcx
mov byte [rdx + rcx - 1], al
test al, al
jne 0x14023f231
lea r8, [0x14037dd54]
lea rdx, str._smain
lea rcx, [rsp + 0x30]
mov dword [0x14037dd50], 1
call sub.MSVCR90.dll_sprintf
lea rdx, [0x140327fe8]
lea rcx, [rsp + 0x30]
call sub.MSVCR90.dll_fopen
mov rbx, rax
test rax, rax
jne 0x14023f282
lea eax, [rbx + 1]
jmp 0x14023f3c1
mov edx, 1
lea rcx, [rsp + 0x24]
mov r9, rax
lea r8d, [rdx + 3]
mov qword [rsp + 0x168], rsi
mov qword [rsp + 0x150], rdi
call sub.MSVCR90.dll_fread
lea rsi, [rsp + 0x24]
lea rdi, [0x1403135e4]
mov ecx, 4
repe cmpsb byte [rsi], byte [rdi]
jne 0x14023f2dd
mov edx, 1
lea rcx, [rsp + 0x20]
mov r9, rbx
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fread
cmp dword [rsp + 0x20], 0x100
je 0x14023f2ef
mov rcx, rbx
call sub.MSVCR90.dll_fclose
mov eax, 1
jmp 0x14023f3b1
mov edx, 1
lea rcx, [0x14037de5c]
mov r9, rbx
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fread
mov ecx, dword [0x14037de5c]
imul ecx, ecx, 0x128
call fcn.14014a890
movsxd r8, dword [0x14037de5c]
xor edx, edx
mov rcx, rax
mov qword [0x14037de60], rax
imul r8, r8, 0x128
call sub.MSVCR90.dll_memset
xor esi, esi
cmp dword [0x14037de5c], esi
jle 0x14023f3a7
mov eax, dword [0x14037de58]
nop word [rax + rax]
movsxd rdi, eax
mov r9, rbx
mov edx, 1
mov r8d, 0x104
imul rdi, rdi, 0x128
add rdi, qword [0x14037de60]
mov rcx, rdi
call sub.MSVCR90.dll_fread
mov edx, 1
lea rcx, [rdi + 0x104]
lea r8d, [rdx + 8]
mov r9, rbx
call sub.MSVCR90.dll_fread
mov eax, dword [0x14037de58]
inc esi
inc eax
cmp esi, dword [0x14037de5c]
mov dword [0x14037de58], eax
jl 0x14023f350
mov rcx, rbx
call sub.MSVCR90.dll_fclose
xor eax, eax
mov rsi, qword [rsp + 0x168]
mov rdi, qword [rsp + 0x150]
mov rbx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x158
ret
Function at 0x14023f3f0
Capabilities:
Delete file
Write file on windows

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp dword [0x14037dd50], 0
jne 0x14023f42f
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x158
ret
cmp dword [0x14037de68], 0
mov qword [rsp + 0x168], rbp
je 0x14023f5c3
mov edx, dword [0x14037de5c]
mov qword [rsp + 0x150], rdi
xor edi, edi
mov eax, edi
mov dword [rsp + 0x20], eax
test edx, edx
jle 0x14023f47d
mov rcx, qword [0x14037de60]
cmp byte [rcx], dil
je 0x14023f470
inc eax
mov dword [rsp + 0x20], eax
add rcx, 0x128
sub rdx, 1
jne 0x14023f465
lea r8, [0x14037dd54]
lea rdx, str._smain
lea rcx, [rsp + 0x30]
call sub.MSVCR90.dll_sprintf
cmp dword [rsp + 0x20], edi
je 0x14023f5b1
lea rdx, [0x140326fec]
lea rcx, [rsp + 0x30]
call sub.MSVCR90.dll_fopen
mov rbp, rax
test rax, rax
je 0x14023f5bb
mov edx, 1
lea rcx, [rsp + 0x24]
mov r9, rax
lea r8d, [rdx + 3]
mov dword [rsp + 0x24], 0x484343
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsp + 0x28]
lea r8d, [rdx + 3]
mov r9, rbp
mov dword [rsp + 0x28], 0x100
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov ecx, dword [0x14037de5c]
test ecx, ecx
jle 0x14023f5a7
mov rax, qword [0x14037de60]
mov qword [rsp + 0x170], rsi
mov rsi, rdi
mov qword [rsp + 0x160], rbx
cmp byte [rsi + rax], 0
je 0x14023f58a
movsxd rbx, edi
mov r9, rbp
mov edx, 1
mov r8d, 0x104
imul rbx, rbx, 0x128
lea rcx, [rbx + rax]
call sub.MSVCR90.dll_fwrite
mov r11, qword [0x14037de60]
mov edx, 1
lea r8d, [rdx + 8]
lea rcx, [rbx + r11 + 0x104]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov rax, qword [0x14037de60]
mov ecx, dword [0x14037de5c]
inc edi
add rsi, 0x128
cmp edi, ecx
jl 0x14023f536
mov rsi, qword [rsp + 0x170]
mov rbx, qword [rsp + 0x160]
mov rcx, rbp
call sub.MSVCR90.dll_fclose
jmp 0x14023f5bb
lea rcx, [rsp + 0x30]
call sub.MSVCR90.dll_remove
mov rdi, qword [rsp + 0x150]
mov rcx, qword [0x14037de60]
call fcn.14014a8e0
lea rcx, [0x14037dd50]
xor edx, edx
mov r8d, 0x120
call sub.MSVCR90.dll_memset
mov rbp, qword [rsp + 0x168]
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x158
ret