joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140061a00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140073180
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140073180
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400626d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400897a8]
test eax, eax
je 0x14006276a
lea rax, [0x140089780]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400897b0]
mov qword [rbp - 8], rax
jmp 0x14006274e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140062742
cmp qword [rbp - 0x10], 0
je 0x140062742
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140062708
lea rax, [0x140089780]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14006276b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140062870
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140062898
mov eax, 0
jmp 0x1400628e6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400628c1
mov eax, 0
jmp 0x1400628e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400628e1
mov eax, 0
jmp 0x1400628e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400628ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14006296a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140062961
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140062961
mov rax, qword [rbp - 8]
jmp 0x14006297f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140062934
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400e4900
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x2c], r8d
lea rdi, [0x140000000]
mov dword [rsp + 0x28], 0x42494b45
lea rdx, [rsp + 0x20]
mov rax, qword [rdi + 0xe2f575]
mov qword [rcx], rax
movzx eax, byte [rdi + 0xe2f57d]
mov byte [rcx + 8], al
xor eax, eax
lea ecx, [rax + 0xe]
mov qword [rsp + 0x39], rax
call qword [0x140546638]
mov r11d, dword [rsp + 0x20]
xor edx, edx
mov word [rsp + 0x41], r11w
movzx ecx, r11w
mov r8, rdx
nop word [rax + rax]
imul ecx, ecx, 0x343fd
inc r8
add ecx, 0x269ec3
mov eax, ecx
shr eax, 0x10
xor byte [rsp + r8 + 0x27], al
cmp r8, 0x19
jl 0x1400e4980
mov dword [0x1404af7dc], ecx
movzx r9d, dx
movzx r10d, dx
mov rcx, rdx
movzx r8d, dx
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x28]
add rcx, 3
add r9w, ax
movzx eax, byte [rsp + rcx + 0x26]
add r8w, ax
movzx eax, byte [rsp + rcx + 0x27]
add r10w, ax
cmp rcx, 0x1b
jl 0x1400e49c0
add r8w, r10w
add r8w, r9w
mov word [rsp + 0x43], r8w
nop word [rax + rax]
movzx r8d, byte [rsp + rdx + 0x28]
mov eax, r8d
shr eax, 4
cmp eax, 0xf
ja case.default.0x1400e4a1b
mov ecx, dword [rdi + rax*4 + 0xe4aec]
add rcx, rdi
jmp rcx
mov al, 0x46
jmp 0x1400e4a5f
mov al, 0x45
jmp 0x1400e4a5f
mov al, 0x44
jmp 0x1400e4a5f
mov al, 0x43
jmp 0x1400e4a5f
mov al, 0x42
jmp 0x1400e4a5f
mov al, 0x41
jmp 0x1400e4a5f
mov al, 0x39
jmp 0x1400e4a5f
mov al, 0x38
jmp 0x1400e4a5f
mov al, 0x37
jmp 0x1400e4a5f
mov al, 0x36
jmp 0x1400e4a5f
mov al, 0x35
jmp 0x1400e4a5f
mov al, 0x34
jmp 0x1400e4a5f
mov al, 0x33
jmp 0x1400e4a5f
mov al, 0x32
jmp 0x1400e4a5f
mov al, 0x31
jmp 0x1400e4a5f
mov al, 0x30
jmp 0x1400e4a5f
mov al, 0x3f
and r8d, 0xf
mov byte [rbx + rdx*2], al
cmp r8d, 0xf
ja case.default.0x1400e4a79
movsxd rax, r8d
mov ecx, dword [rdi + rax*4 + 0xe4b2c]
add rcx, rdi
jmp rcx
mov al, 0x46
jmp 0x1400e4abd
mov al, 0x45
jmp 0x1400e4abd
mov al, 0x44
jmp 0x1400e4abd
mov al, 0x43
jmp 0x1400e4abd
mov al, 0x42
jmp 0x1400e4abd
mov al, 0x41
jmp 0x1400e4abd
mov al, 0x39
jmp 0x1400e4abd
mov al, 0x38
jmp 0x1400e4abd
mov al, 0x37
jmp 0x1400e4abd
mov al, 0x36
jmp 0x1400e4abd
mov al, 0x35
jmp 0x1400e4abd
mov al, 0x34
jmp 0x1400e4abd
mov al, 0x33
jmp 0x1400e4abd
mov al, 0x32
jmp 0x1400e4abd
mov al, 0x31
jmp 0x1400e4abd
mov al, 0x30
jmp 0x1400e4abd
mov al, 0x3f
mov byte [rbx + rdx*2 + 1], al
inc rdx
cmp rdx, 0x1d
jl 0x1400e4a00
mov byte [rbx + 0x3a], 0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140291ec0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14010e400
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0xa0]
dec ecx
mov r13d, r9d
mov rbp, r8
mov rdi, rdx
cmp ecx, 9
ja 0x14010e5e2
lea r12, [0x140e26f40]
movsxd rax, ecx
mov r12, qword [r12 + rax*8]
test r12, r12
je 0x14010e5e2
lea rdx, [0x140327fe8]
mov rcx, rdi
mov qword [rsp + 0x90], rbx
call sub.MSVCR90.dll_fopen
mov rbx, rax
test rax, rax
je 0x14010e59a
mov edx, 1
lea rcx, [rsp + 0x24]
mov r9, rax
lea r8d, [rdx + 3]
mov qword [rsp + 0x98], rsi
call sub.MSVCR90.dll_fread
lea rsi, [rsp + 0x24]
lea rdi, [0x140327fec]
mov ecx, 4
repe cmpsb byte [rsi], byte [rdi]
mov rsi, qword [rsp + 0x98]
jne 0x14010e592
mov edx, 1
lea rcx, [rsp + 0x20]
mov r9, rbx
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fread
cmp dword [rsp + 0x20], 2
jne 0x14010e592
mov edx, 1
lea rcx, [rsp + 0x30]
mov r9, rbx
lea r8d, [rdx + 9]
call sub.MSVCR90.dll_fread
lea rdx, [rsp + 0x30]
sub rbp, rdx
movzx ecx, byte [rdx]
movzx eax, byte [rdx + rbp]
sub ecx, eax
jne 0x14010e502
inc rdx
test eax, eax
jne 0x14010e4f0
test ecx, ecx
jne 0x14010e592
lea edx, [rcx + 1]
lea r8d, [rcx + 4]
lea rcx, [rsp + 0x20]
mov r9, rbx
call sub.MSVCR90.dll_fread
cmp dword [rsp + 0x20], r13d
jne 0x14010e592
mov edx, 1
lea rcx, [rsp + 0x28]
mov r9, rbx
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fread
movsxd rdx, dword [rsp + 0x28]
cmp edx, dword [rsp + 0xa8]
jne 0x14010e592
mov r8, rdx
mov r9, rbx
mov rcx, r14
mov edx, 1
call sub.MSVCR90.dll_fread
mov edx, 1
mov r9, rbx
lea r8d, [rdx + 3]
mov rcx, r12
call sub.MSVCR90.dll_fread
mov edx, 1
lea rcx, [r12 + 4]
lea r8d, [rdx + 3]
mov r9, rbx
call sub.MSVCR90.dll_fread
movsxd rdx, dword [r12 + 4]
cmp edx, dword [r12 + 8]
jle 0x14010e5c1
mov rcx, rbx
call sub.MSVCR90.dll_fclose
mov eax, 1
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
mov rcx, qword [r12 + 0x10]
mov r8, rdx
mov r9, rbx
mov edx, 1
call sub.MSVCR90.dll_fread
mov rcx, rbx
call sub.MSVCR90.dll_fclose
xor eax, eax
jmp 0x14010e59f
mov eax, 1
jmp 0x14010e5a7
Function at 0x14010e5f0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
sub rsp, 0x58
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, rdx
lea rdx, [0x140327fe8]
mov r13, r9
mov r12d, r8d
call sub.MSVCR90.dll_fopen
mov rbx, rax
test rax, rax
je 0x14010e674
mov edx, 1
lea rcx, [rsp + 0x24]
mov r9, rax
lea r8d, [rdx + 3]
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x50], rdi
call sub.MSVCR90.dll_fread
lea rsi, [rsp + 0x24]
lea rdi, [0x140327fec]
mov ecx, 4
repe cmpsb byte [rsi], byte [rdi]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x88]
je 0x14010e67e
mov rcx, rbx
call sub.MSVCR90.dll_fclose
mov eax, 1
jmp 0x14010e73a
mov edx, 1
lea rcx, [rsp + 0x20]
mov r9, rbx
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fread
cmp dword [rsp + 0x20], 2
jne 0x14010e66c
mov edx, 1
lea rcx, [rsp + 0x30]
mov r9, rbx
lea r8d, [rdx + 9]
call sub.MSVCR90.dll_fread
lea rdx, [rsp + 0x30]
sub rbp, rdx
nop dword [rax]
movzx ecx, byte [rdx]
movzx eax, byte [rdx + rbp]
sub ecx, eax
jne 0x14010e6d2
inc rdx
test eax, eax
jne 0x14010e6c0
test ecx, ecx
jne 0x14010e66c
lea edx, [rcx + 1]
lea r8d, [rcx + 4]
lea rcx, [rsp + 0x20]
mov r9, rbx
call sub.MSVCR90.dll_fread
cmp dword [rsp + 0x20], r12d
jne 0x14010e66c
mov edx, 1
lea rcx, [rsp + 0x28]
mov r9, rbx
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fread
movsxd rdx, dword [rsp + 0x28]
cmp edx, dword [rsp + 0xa0]
jne 0x14010e66c
mov r8, rdx
mov r9, rbx
mov rcx, r13
mov edx, 1
call sub.MSVCR90.dll_fread
mov rcx, rbx
call sub.MSVCR90.dll_fclose
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x58
pop r13
pop r12
pop rbp
pop rbx
ret
Function at 0x14010e760
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x20], r9d
push rsi
sub rsp, 0x30
dec ecx
mov rbx, r8
mov r9, rdx
mov dword [rsp + 0x40], 0x534847
cmp ecx, 9
ja 0x14010e8b1
lea rsi, [0x140e26f40]
movsxd rax, ecx
mov rsi, qword [rsi + rax*8]
test rsi, rsi
je 0x14010e8b1
lea rdx, [0x140326fec]
mov rcx, r9
mov qword [rsp + 0x48], rdi
call sub.MSVCR90.dll_fopen
mov rdi, rax
test rax, rax
jne 0x14010e7ce
lea eax, [rdi + 1]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov edx, 1
lea rcx, [rsp + 0x40]
mov r9, rax
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 3]
mov r9, rdi
mov dword [rsp + 0x20], 2
call sub.MSVCR90.dll_fwrite
mov edx, 1
mov r9, rdi
lea r8d, [rdx + 9]
mov rcx, rbx
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 3]
mov r9, rdi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsp + 0x68]
lea r8d, [rdx + 3]
mov r9, rdi
call sub.MSVCR90.dll_fwrite
movsxd r8, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov r9, rdi
mov edx, 1
call sub.MSVCR90.dll_fwrite
mov edx, 1
mov r9, rdi
lea r8d, [rdx + 3]
mov rcx, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsi + 4]
lea r8d, [rdx + 3]
mov r9, rdi
call sub.MSVCR90.dll_fwrite
movsxd r8, dword [rsi + 4]
mov rcx, qword [rsi + 0x10]
mov r9, rdi
mov edx, 1
call sub.MSVCR90.dll_fwrite
mov rcx, rdi
call sub.MSVCR90.dll_fclose
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x1401204a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, qword [rsp + 0xb8]
mov r15, qword [rsp + 0xc0]
mov rbp, rdx
lea rdx, [0x140327fe8]
mov r13, r9
mov r12d, r8d
call sub.MSVCR90.dll_fopen
mov rbx, rax
test rax, rax
je 0x140120538
mov edx, 1
lea rcx, [rsp + 0x34]
mov r9, rax
lea r8d, [rdx + 3]
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x50], rdi
call sub.MSVCR90.dll_fread
lea rsi, [rsp + 0x34]
lea rdi, [0x1403288a0]
mov ecx, 4
repe cmpsb byte [rsi], byte [rdi]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x98]
je 0x140120542
mov rcx, rbx
call sub.MSVCR90.dll_fclose
mov eax, 1
jmp 0x14012064e
mov edx, 1
lea rcx, [rsp + 0x20]
mov r9, rbx
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fread
cmp dword [rsp + 0x20], 0xa
jne 0x140120530
mov edx, 1
lea rcx, [rsp + 0x38]
mov r9, rbx
lea r8d, [rdx + 9]
call sub.MSVCR90.dll_fread
lea rdx, [rsp + 0x38]
sub rbp, rdx
nop dword [rax]
movzx ecx, byte [rdx]
movzx eax, byte [rdx + rbp]
sub ecx, eax
jne 0x140120592
inc rdx
test eax, eax
jne 0x140120580
test ecx, ecx
jne 0x140120530
lea edx, [rcx + 1]
lea r8d, [rcx + 4]
lea rcx, [rsp + 0x20]
mov r9, rbx
call sub.MSVCR90.dll_fread
cmp dword [rsp + 0x20], r12d
jne 0x140120530
mov edx, 1
lea rcx, [rsp + 0x30]
mov r9, rbx
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fread
mov edx, 1
lea rcx, [rsp + 0x2c]
lea r8d, [rdx + 3]
mov r9, rbx
call sub.MSVCR90.dll_fread
movsxd rdx, dword [rsp + 0x2c]
cmp edx, dword [rsp + 0xb0]
jne 0x140120530
mov r8, rdx
mov r9, rbx
mov rcx, r13
mov edx, 1
call sub.MSVCR90.dll_fread
mov edx, 1
lea rcx, [rsp + 0x28]
lea r8d, [rdx + 3]
mov r9, rbx
call sub.MSVCR90.dll_fread
mov edx, 1
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 3]
mov r9, rbx
call sub.MSVCR90.dll_fread
mov rcx, rbx
call sub.MSVCR90.dll_fclose
mov eax, dword [rsp + 0x30]
mov edx, dword [rsp + 0x24]
sub edx, dword [rsp + 0x28]
mov dword [r14], edx
mov dword [r15], eax
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rbp
pop rbx
ret
Function at 0x1401225d0
Capabilities:
Create directory

Disassembly:
push rsi
sub rsp, 0x180
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov esi, dword [0x140545c64]
test esi, esi
je 0x14012260e
cmp esi, 1
je 0x140122604
mov eax, 1
jmp 0x14012272a
mov dword [rsp + 0x50], 0x67706a
jmp 0x140122616
mov dword [rsp + 0x50], 0x616774
lea rcx, [0x140545730]
mov qword [rsp + 0x190], rbx
call sub.MSVCR90.dll__mkdir
xor ebx, ebx
nop dword [rax]
lea rax, [rsp + 0x50]
lea r8, [0x140545730]
lea rdx, str._s_screen_03d._s
lea rcx, [rsp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], rax
call sub.MSVCR90.dll_sprintf
lea rdx, [0x140327fe8]
lea rcx, [rsp + 0x60]
call sub.MSVCR90.dll_fopen
test rax, rax
je 0x140122687
mov rcx, rax
call sub.MSVCR90.dll_fclose
inc ebx
cmp ebx, 0x3e8
jl 0x140122630
mov eax, 1
jmp 0x140122722
mov eax, dword [0x140e26e10]
mov ebx, dword [0x140e26994]
mov qword [rsp + 0x198], rbp
imul eax, ebx
shl eax, 2
movsxd rcx, eax
call sub.MSVCR90.dll_malloc
mov edx, dword [0x140e26e10]
mov ecx, ebx
mov r8, rax
mov rbp, rax
call fcn.140218630
test esi, esi
je 0x1401226ce
cmp esi, 1
jne 0x140122710
lea edx, [rsi + 2]
lea r8d, [rsi + 0x59]
jmp 0x1401226d7
mov edx, 1
lea r8d, [rdx + 0x17]
mov eax, dword [0x140e26e10]
mov dword [rsp + 0x40], 2
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov eax, dword [0x140e26994]
lea rcx, [rsp + 0x60]
mov r9, rbp
mov dword [rsp + 0x20], eax
call fcn.140252330
mov rcx, rbp
call sub.MSVCR90.dll_free
mov rbp, qword [rsp + 0x198]
xor eax, eax
mov rbx, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x180
pop rsi
ret
Function at 0x140122750
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rdi, rcx
xor ebx, ebx
nop word [rax + rax]
lea rdx, str._s_screen_03d.tga
lea rcx, [rsp + 0x60]
mov r9d, ebx
mov r8, rdi
call sub.MSVCR90.dll_sprintf
lea rdx, [0x140327fe8]
lea rcx, [rsp + 0x60]
call sub.MSVCR90.dll_fopen
test rax, rax
je 0x1401227c9
mov rcx, rax
call sub.MSVCR90.dll_fclose
inc ebx
cmp ebx, 0x3e8
jl 0x140122780
mov eax, 1
jmp 0x140122892
mov r8d, dword [0x140545720]
mov edx, dword [0x140545d74]
mov ecx, dword [0x1405459ec]
call fcn.140223b40
test eax, eax
jne 0x1401227bf
mov rcx, rdi
call sub.MSVCR90.dll__mkdir
call fcn.140221470
call fcn.14022bf70
lea rcx, [rsp + 0x50]
call fcn.14023b710
mov ecx, dword [rsp + 0x50]
call fcn.14023b720
mov r11d, dword [0x1405459ec]
imul r11d, dword [0x140545d74]
shl r11d, 2
movsxd rcx, r11d
call sub.MSVCR90.dll_malloc
mov edx, dword [0x140545d74]
mov ecx, dword [0x1405459ec]
mov r8, rax
mov rbx, rax
call fcn.140221500
mov ecx, dword [0x140545d74]
mov dword [rsp + 0x40], 2
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], ecx
mov ecx, dword [0x1405459ec]
mov edx, 1
mov r9, rbx
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 0x17]
call fcn.140252330
mov rcx, rbx
call sub.MSVCR90.dll_free
call fcn.1402211f0
call fcn.140223b60
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140291ec0
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret

Function at 0x1401228c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140122948
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x30], rdi
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
mov rdx, rcx
lea ecx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x14012293d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
nop word [rax + rax]
movzx ecx, byte [rbx]
inc rax
inc rbx
mov byte [rax - 1], cl
test cl, cl
jne 0x140122910
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rdi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1401231d0
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r8, [rsp + 0x38]
mov edx, 5
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x14012329a
mov rcx, qword [rsp + 0x38]
lea rdx, [0x1405458e0]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1405458e0]
repne scasb al, byte [rdi]
mov rax, qword [str.PiBoSo_]
lea rcx, [0x1405458e0]
mov qword [rdi - 1], rax
movzx eax, byte [0x1403289d0]
mov byte [rdi + 7], al
call sub.MSVCR90.dll__mkdir
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1405458e0]
repne scasb al, byte [rdi]
xor edx, edx
nop word [rax + rax]
movzx eax, byte [rbx + rdx]
inc rdx
mov byte [rdi + rdx - 2], al
test al, al
jne 0x140123260
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1405458e0]
repne scasb al, byte [rdi]
movzx eax, word [0x1403289d4]
lea rcx, [0x1405458e0]
mov word [rdi - 1], ax
call sub.MSVCR90.dll__mkdir
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140123a50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea rdx, [0x140327fe8]
call sub.MSVCR90.dll_fopen
mov rdi, rax
test rax, rax
jne 0x140123a7f
lea eax, [rdi + 1]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rdx, [0x140326fec]
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call sub.MSVCR90.dll_fopen
mov rsi, rax
test rax, rax
jne 0x140123ab6
mov rcx, rdi
call sub.MSVCR90.dll_fclose
lea eax, [rsi + 1]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x30], rbp
lea r8d, [rdx + 2]
call sub.MSVCR90.dll_fseek
mov rcx, rdi
call sub.MSVCR90.dll_ftell
xor r8d, r8d
xor edx, edx
mov rcx, rdi
movsxd rbx, eax
call sub.MSVCR90.dll_fseek
mov ecx, ebx
call fcn.14014a890
mov rbp, rax
test rax, rax
jne 0x140123b05
mov rcx, rsi
call sub.MSVCR90.dll_fclose
mov rcx, rdi
call sub.MSVCR90.dll_fclose
lea eax, [rbp + 1]
jmp 0x140123b45
mov r9, rdi
mov r8, rbx
mov edx, 1
mov rcx, rax
call sub.MSVCR90.dll_fread
mov r9, rsi
mov r8, rbx
mov edx, 1
mov rcx, rbp
call sub.MSVCR90.dll_fwrite
mov rcx, rbp
call fcn.14014a8e0
mov rcx, rsi
call sub.MSVCR90.dll_fclose
mov rcx, rdi
call sub.MSVCR90.dll_fclose
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140126350
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
xor edx, edx
lea rcx, [0x1405458e0]
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
inc rdx
mov byte [rsp + rdx + 0x1f], al
test al, al
jne 0x140126380
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
mov eax, dword [str.cache_]
lea rcx, [rsp + 0x20]
mov dword [rdi - 1], eax
movzx eax, word [0x140326d48]
mov word [rdi + 3], ax
movzx eax, byte [0x140326d4a]
mov byte [rdi + 5], al
call sub.MSVCR90.dll__mkdir
lea rax, [rsp + 0x20]
sub rbx, rax
lea rdx, [rsp + 0x20]
movzx eax, byte [rdx]
inc rdx
mov byte [rbx + rdx - 1], al
test al, al
jne 0x1401263d1
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140291ec0
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rdi
ret
Function at 0x140126e60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r8, qword [rcx]
mov eax, dword [rcx + 8]
xor edx, edx
mov byte [r8 + 0x16], dl
mov byte [r8 + 0x17], dl
lea r11, [r8 + 0x16]
lea rbx, [r8 + 0x17]
lea rdi, [r8 + 0x18]
lea rsi, [r8 + 0x19]
mov byte [rdi], dl
mov r9, rcx
lea rbp, [0x14032ace0]
mov byte [rsi], dl
test eax, eax
jle 0x140126ed1
mov r10, rax
nop dword [rax]
movzx eax, byte [r8]
mov ecx, edx
inc r8
shr rcx, 0x18
xor rcx, rax
mov eax, edx
mov edx, dword [rbp + rcx*4]
shl eax, 8
xor edx, eax
sub r10, 1
jne 0x140126eb0
mov eax, dword [r9 + 0x18]
test eax, eax
jle 0x140126f01
mov r8, qword [r9 + 0x10]
mov r9, rax
movzx eax, byte [r8]
mov ecx, edx
inc r8
shr rcx, 0x18
xor rcx, rax
mov eax, edx
mov edx, dword [rbp + rcx*4]
shl eax, 8
xor edx, eax
sub r9, 1
jne 0x140126ee0
mov rbp, qword [rsp + 0x10]
mov byte [r11], dl
mov eax, edx
shr eax, 8
mov byte [rbx], al
mov rbx, qword [rsp + 8]
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [rdi], al
mov rdi, qword [rsp + 0x20]
mov byte [rsi], dl
mov rsi, qword [rsp + 0x18]
ret
Function at 0x140134a40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, r9
mov rbx, r8
mov r11, rdx
call fcn.140134880
mov rcx, r11
mov edi, eax
call fcn.140134880
cmp edi, eax
mov r11d, eax
jge 0x140134ab4
mov r11d, edi
mov edi, eax
lea rax, [rsp + 0x20]
xor edx, edx
sub rbx, rax
nop word [rax + rax]
lea rcx, [rsp + rdx + 0x20]
inc rdx
movzx eax, byte [rbx + rcx]
xor al, 1
and al, 3
cmp rdx, 0x10
mov byte [rcx], al
jl 0x140134a90
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
jmp 0x140134ad3
jne 0x140134ac2
xor edx, edx
mov rcx, rdx
mov qword [rsp + 0x20], rdx
jmp 0x140134ace
mov rcx, qword [rbx]
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdx
movzx eax, byte [rsp + 0x23]
mov byte [rsi], dil
mov byte [rsi + 2], r11b
shl al, 2
sar edi, 8
sar r11d, 8
or al, byte [rsp + 0x22]
mov byte [rsi + 1], dil
mov byte [rsi + 3], r11b
shl al, 2
or al, byte [rsp + 0x21]
shl al, 2
or al, cl
mov byte [rsi + 4], al
movzx eax, byte [rsp + 0x27]
shl al, 2
or al, byte [rsp + 0x26]
shl al, 2
or al, byte [rsp + 0x25]
shl al, 2
or al, byte [rsp + 0x24]
mov byte [rsi + 5], al
movzx eax, byte [rsp + 0x2b]
shl al, 2
or al, byte [rsp + 0x2a]
shl al, 2
or al, byte [rsp + 0x29]
shl al, 2
or al, dl
mov byte [rsi + 6], al
movzx eax, byte [rsp + 0x2f]
shl al, 2
or al, byte [rsp + 0x2e]
shl al, 2
or al, byte [rsp + 0x2d]
shl al, 2
or al, byte [rsp + 0x2c]
mov byte [rsi + 7], al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret