joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420830
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0044ad04]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4209b8
mov rax, qword [0x0044ad08]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x42087c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x420905
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x420860
mov rcx, rbx
call fcn.004214d0
test rax, rax
mov r12, rax
je 0x4209ed
mov rax, qword [0x0044ad08]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00421600
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0044ad08]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4209d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4208fe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x420960
add dword [0x0044ad04], 1
cmp edi, 8
jae 0x420933
test dil, 4
jne 0x4209a4
test edi, edi
je 0x420928
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4209bf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x420928
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x42094c
jmp 0x420928
add rsi, qword [0x0044ad08]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4208fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00421a70
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x420928
xor esi, esi
jmp 0x420887
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x420928
mov rax, qword [0x0044ad08]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00421a70
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00421a70
nop
nop dword [rax]

Function at 0x421140
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0044afe0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0044afc0]
test rbx, rbx
je 0x421194
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x42118b
test rsi, rsi
je 0x42118b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x421170
lea rcx, [0x0044afe0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4214d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00443a80]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x42153d
mov rcx, r8
call fcn.004213b0
test eax, eax
je 0x42153d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x42153d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x421534
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x42153f
add rax, 0x28
cmp rax, r9
jne 0x421520
xor eax, eax
add rsp, 0x28
ret

Function at 0x421a70
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.004218e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.004218e0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x1400082c0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push rbp
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
mov r9, rbp
xor ecx, ecx
mov r10b, byte [r15]
cmp r10b, 0x20
jne 0x140008328
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jne 0x140008328
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jne 0x140008328
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jne 0x140008328
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
je 0x14000831c
jl 0x1400083dc
cmp r10b, 0x22
je 0x1400083b9
mov rax, r15
cmp r10b, 0x20
jle 0x140008373
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jle 0x140008371
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jle 0x140008371
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jle 0x140008371
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jg 0x140008365
je 0x1400083b0
inc ecx
mov qword [r9], rax
add r9, 8
cmp ecx, 0x200
jl 0x1400082ef
mov rdx, rbp
call fcn.1400083f0
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov byte [r15], 0
inc r15
jmp 0x140008373
inc r15
mov rax, r15
mov r10b, byte [r15]
cmp r10b, 0x22
je 0x1400083b0
cmp r10b, 0x20
jl 0x140008373
inc r15
mov r10b, byte [r15]
cmp r10b, 0x22
jne 0x1400083c8
jmp 0x1400083b0
mov byte [r15], 0
jmp 0x140008388
Function at 0x140008cf0
Capabilities:
Get memory capacity

Disassembly:
push r14
push r15
push rbp
sub rsp, 0x1b0
mov r14, r8
mov rbp, r9
lea r8, [rsp + 0x68]
mov r15, rcx
call fcn.140008f80
test eax, eax
lea rax, [rsp + 0x68]
mov dword [rax + 0x108], 0x40
lea rcx, [rsp + 0x170]
cmovne rbp, rax
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140008d7c
mov rax, qword [rsp + 0x180]
cmp rax, qword [rsp + 0x1a0]
mov r9, qword [rsp + 0x1a0]
cmovb r9, qword [rsp + 0x180]
mov rax, rsp
mov rcx, r15
mov rdx, rbp
mov r8, r14
mov dword [rax + 0x20], 0
call fcn.140008db0
add rsp, 0x1b0
pop rbp
pop r15
pop r14
ret
mov dword [rsp + 0x30], 0x38
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea rdx, [rsp + 0x40]
mov rax, qword [rdx]
cmp rax, qword [rdx + 0x20]
mov r9, qword [rdx + 0x20]
cmovb r9, qword [rdx]
jmp 0x140008d57

Function at 0x140008f80
Capabilities:
Read .ini file

Disassembly:
push r15
push rbp
sub rsp, 0x38
mov r9, r8
movsxd rax, dword [rcx + 0x160]
mov r10d, 1
cmp rax, 1
jle 0x140008fd3
mov r8, qword [rcx + 0x168]
mov rbp, qword [r8 + r10*8]
cmp byte [rbp], 0x2d
jne 0x140008fc3
xor r11d, r11d
mov r15b, byte [r11 + rdx]
inc r11
test r15b, r15b
je 0x140009003
cmp r15b, byte [r11 + rbp]
je 0x140008fb1
nop dword [rax + rax]
inc r10
cmp r10, rax
jl 0x140008fa4
mov rax, rsp
lea r10, [rcx + 0x178]
add rcx, 0x188
xor r8d, r8d
mov qword [rax + 0x28], rcx
mov rcx, r10
mov dword [rax + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add rsp, 0x38
pop rbp
pop r15
ret
mov rax, rbp
cmp byte [r11 + rax], 0x3d
jne 0x140009017
inc r11
cmp byte [r11 + rax], 0x3d
je 0x14000900d
add r11, rax
xor edx, edx
mov al, byte [r11]
test al, al
je 0x140009032
mov byte [rdx + r9], al
inc rdx
mov al, byte [rdx + r11]
test al, al
jne 0x140009023
mov byte [rdx + r9], 0
mov eax, edx
add rsp, 0x38
pop rbp
pop r15
ret
Function at 0x140009ef0
Capabilities:
Write file on windows

Disassembly:
push rdi
push r12
push r13
push r14
push r15
push rbp
sub rsp, 0x38
mov eax, dword [rcx + 0x28c]
cmp eax, 1
je 0x140009f92
cmp eax, 2
jne 0x140009fc2
mov rax, r8
test r8, r8
je 0x140009f80
mov r12, rax
mov r14, rdx
mov rdi, rcx
mov r13, r8
mov rbp, qword [rdi + 0x48]
cmp rbp, r12
mov rdx, r14
cmovae rbp, r12
mov ebp, ebp
mov r8, rbp
mov rcx, qword [rdi + 0x40]
mov r15, qword [rdi + 0x28]
call fcn.14001eff0
mov dword [r15], 2
mov dword [r15 + 4], ebp
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rdi + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [r15 + 8]
test eax, eax
jl 0x140009fd5
add r14, rbp
sub r12, rbp
jne 0x140009f2a
mov r8, r13
mov eax, r8d
add rsp, 0x38
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rsp
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + 0x298]
mov qword [rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x30]
add rsp, 0x38
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor eax, eax
dec eax
add rsp, 0x38
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
add rsp, 0x38
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14000a050
Capabilities:
Get system information on windows

Disassembly:
push r14
push r15
sub rsp, 0x68
mov r14, rcx
mov r15, rdx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, rsp
mov rcx, r14
mov rdx, r15
mov r8d, 1
mov r9d, dword [rsp + 0x50]
mov dword [rax + 0x20], 0
call fcn.140008db0
add rsp, 0x68
pop r15
pop r14
ret

Function at 0x14000a460
Capabilities:
Read file on windows

Disassembly:
push rdi
push r12
push r13
push r14
push r15
push rbp
sub rsp, 0x38
mov eax, dword [rcx + 0x28c]
cmp eax, 1
je 0x14000a539
cmp eax, 2
jne 0x14000a569
cmp rdx, qword [rcx + 0x30]
je 0x14000a522
mov rax, r8
test r8, r8
je 0x14000a4ff
mov r12, rax
mov r14, rdx
mov rdi, rcx
mov r13, r8
mov rbp, qword [rdi + 0x38]
cmp rbp, r12
cmovae rbp, r12
mov ebp, ebp
test rbp, rbp
je 0x14000a4f4
mov r15, qword [rdi + 0x28]
mov dword [r15], 1
mov dword [r15 + 4], ebp
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rdi + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [r15 + 8]
test eax, eax
jle 0x14000a511
mov rcx, r14
mov r8, rbp
mov rdx, qword [rdi + 0x30]
call fcn.14001eff0
add r14, rbp
sub r12, rbp
jne 0x14000a4a4
mov r8, r13
mov eax, r8d
add rsp, 0x38
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
jge 0x14000a4f4
add rsp, 0x38
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rdx, r8
call fcn.140009eb0
add rsp, 0x38
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rsp
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + 0x290]
mov qword [rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x30]
add rsp, 0x38
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor eax, eax
dec eax
add rsp, 0x38
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001b68
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x240
mov rbp, rcx
mov rdi, r8
mov rsi, rdx
mov r13d, 0x104
lea rcx, [rax - 0x127]
xor r12d, r12d
mov r8, r13
xor edx, edx
mov byte [rax - 0x128], r12b
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x21]
mov r8, r13
xor edx, edx
mov byte [rsp + 0x20], r12b
call sub.msvcrt.dll_memset
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov rcx, rdi
mov rbx, rax
call sub.msvcrt.dll_strlen
lea rcx, [rbx + rax + 1]
cmp rcx, r13
jae 0x140001bf3
lea r8, [rsp + 0x130]
mov rdx, rdi
mov rcx, rsi
call fcn.140006700
jmp 0x140001bfb
mov byte [rsp + 0x130], r12b
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x130]
lea rdx, [0x1400117e4]
lea rcx, [0x140001a00]
call fcn.140006838
cmp byte [rsp + 0x20], r12b
jne 0x140001ced
lea rcx, str.cookies.sqlite
call sub.msvcrt.dll_strlen
lea rcx, [rsp + 0x130]
mov rbx, rax
call sub.msvcrt.dll_strlen
lea rcx, [rbx + rax + 1]
cmp rcx, r13
jae 0x140001c67
lea r8, [rsp + 0x20]
lea rdx, str.cookies.sqlite
lea rcx, [rsp + 0x130]
call fcn.140006700
jmp 0x140001c6c
mov byte [rsp + 0x20], r12b
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or edi, 0xffffffff
cmp eax, edi
jne 0x140001ce0
lea rcx, str.cookies.txt
call sub.msvcrt.dll_strlen
lea rcx, [rsp + 0x130]
mov rbx, rax
call sub.msvcrt.dll_strlen
lea rcx, [rbx + rax + 1]
cmp rcx, r13
jae 0x140001cbf
lea r8, [rsp + 0x20]
lea rdx, str.cookies.txt
lea rcx, [rsp + 0x130]
call fcn.140006700
jmp 0x140001cc4
mov byte [rsp + 0x20], r12b
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
movzx ecx, byte [rsp + 0x20]
cmp eax, edi
cmove ecx, r12d
mov byte [rsp + 0x20], cl
jmp 0x140001ce4
mov cl, byte [rsp + 0x20]
cmp cl, r12b
jne 0x140001ced
xor eax, eax
jmp 0x140001cff
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.140010a1c
mov eax, 1
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x140005cf8
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x3b0
mov rdi, r8
mov rsi, rdx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x104
mov byte [rsp + 0x20], 0
call sub.msvcrt.dll_memset
mov rcx, rsi
call sub.msvcrt.dll_strlen
lea rcx, str.nss3.dll
mov rbx, rax
call sub.msvcrt.dll_strlen
lea rcx, [rbx + rax + 1]
cmp rcx, 0x104
jae 0x140005d62
lea r8, [rsp + 0x20]
lea rdx, str.nss3.dll
mov rcx, rsi
call fcn.140006700
jmp 0x140005d67
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140005e00
test rdi, rdi
je 0x140005df9
lea rcx, [rsp + 0x274]
xor edx, edx
mov r8d, 0x13c
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x140005dee
cmp byte [rsp + 0x15c], 0x2e
lea rdx, [rsp + 0x130]
jne 0x140005dd2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140005db1
jmp 0x140005de5
lea rcx, [rsp + 0x270]
mov r8d, 0x140
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, qword [rsp + 0x284]
mov qword [rdi], rax
mov eax, 1
jmp 0x140005e02
xor eax, eax
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000611c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
call sub.msvcrt.dll_strlen
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140006328
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbx, rcx
xor edi, edi
call qword [sym.imp.USER32.dll_EmptyClipboard]
xor edx, edx
mov rcx, rbx
call fcn.1400060bc
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1400063d3
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x2000
mov ebp, eax
lea edx, [rbp + 1]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp rax, rdi
mov rsi, rax
je 0x1400063c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea r9, [rsp + 0x58]
mov r8d, ebp
mov rcx, rbx
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov r12, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x1400063c0
mov rcx, rsi
mov byte [rbp + r12], dil
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [rdi + 1]
mov rdx, rsi
call qword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x1400063c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400063db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x14000648c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x130
mov rdi, rdx
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x1400064c3
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rcx, [rsp + 0x20]
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov byte [rbx], 0
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov rax, rbx
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret
Function at 0x140006740
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rsi, rcx
lea rcx, [rsp + 0x20]
mov rdi, r8
mov rbx, rdx
call fcn.140010a1c
lea rcx, [rsp + 0x20]
mov edx, 0x5c
call sub.msvcrt.dll_strrchr
test rax, rax
jne 0x14000677f
mov byte [rsp + 0x20], al
jmp 0x140006782
mov byte [rax], 0
lea rdx, [rsp + 0x130]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1400067d7
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x130]
mov r8, rdi
call rsi
test eax, eax
je 0x1400067c7
lea rdx, [rsp + 0x130]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14000679c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x1400067d9
xor eax, eax
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1400067f0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x1400163d0], 0
mov rbx, rcx
jne 0x14000681a
lea rcx, [0x1400163d0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [0x1400164d8], eax
lea rdx, [0x1400163d0]
mov rcx, rbx
call fcn.140010a1c
mov eax, dword [0x1400164d8]
add rsp, 0x20
pop rbx
ret

Function at 0x1400071f0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, rdx
mov rbx, rcx
xor edx, edx
mov rcx, rax
call fcn.1400060bc
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x140007281
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rbx]
test rcx, rcx
mov esi, eax
je 0x140007236
call sub.msvcrt.dll_free
and qword [rbx], 0
and dword [rbx + 8], 0
and dword [rbx + 0xc], 0
mov edx, esi
mov rcx, rbx
call fcn.140007094
mov rdx, qword [rbx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rax, qword [rbx]
mov rcx, rdi
mov byte [rsi + rax], 0
mov dword [rbx + 0xc], esi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140007283
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140007c34
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1040
call fcn.140010d80
sub rsp, rax
mov rbx, rcx
mov rdi, rdx
lea r8d, [rax - 0x40]
lea rcx, [rsp + 0x31]
xor edx, edx
mov byte [rsp + 0x30], 0
call sub.msvcrt.dll_memset
lea r11, [0x140016140]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], r11
lea r8, [0x14001178f]
lea rcx, [0x140016250]
mov rdx, rbx
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [rsp + 0x30], 0
je 0x140007cad
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140010a1c
mov eax, 1
jmp 0x140007caf
xor eax, eax
mov rbx, qword [rsp + 0x1050]
add rsp, 0x1040
pop rdi
ret
Function at 0x140007cc0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
mov eax, 0x1040
call fcn.140010d80
sub rsp, rax
mov rbx, rcx
mov rdi, rdx
lea r8d, [rax - 0x40]
lea rcx, [rsp + 0x31]
xor edx, edx
mov byte [rsp + 0x30], 0
call sub.msvcrt.dll_memset
lea rbp, [0x140016140]
lea r9, [rsp + 0x30]
lea r8, [0x14001178f]
lea rcx, [0x140016250]
mov rdx, rbx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [rsp + 0x30], 0
jne 0x140007d42
lea rcx, [0x140016250]
mov r9, rbp
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x140007d44
xor eax, eax
lea r11, [rsp + 0x1040]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140008060
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push rbx
sub rsp, 0x140
mov ebx, 0x104
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8, rbx
mov byte [rsp + 0x30], 0
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x30]
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x30]
mov edx, 0x2e
call sub.msvcrt.dll_strrchr
test rax, rax
je 0x1400080a9
mov byte [rax], 0
lea rdx, str._lng.ini
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_strcat
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140008153
lea rbx, [0x140016140]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140010a1c
lea rdx, str.general
lea rcx, [0x140016250]
call fcn.140010a1c
lea rdx, [0x140011bb0]
lea rcx, [0x140016250]
mov r9, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor edx, edx
lea r9, [0x1400162a0]
cmp eax, 1
lea r8, [0x14001178f]
lea rcx, [0x140016250]
sete dl
mov qword [rsp + 0x28], rbx
mov byte [0x1400162a0], 0
mov dword [0x140016134], edx
lea rdx, str.charset
mov dword [rsp + 0x20], 0x3f
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add rsp, 0x140
pop rbx
ret
Function at 0x14000c4ac
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rdi
push r12
sub rsp, 0x130
mov rdi, rcx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x104
mov byte [rsp + 0x20], 0
call sub.msvcrt.dll_memset
mov ebp, 0x1a
lea rcx, [rdi + 0x38d]
mov edx, ebp
mov byte [rdi + 0x38d], 0
call fcn.14000ff84
lea rcx, [rdi + 0x38d]
call fcn.14000615c
lea rdx, str.MozillaFirefoxProfiles
lea rcx, [rdi + 0x38d]
call sub.msvcrt.dll_strcat
lea rcx, [rdi + 0x38d]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or r12d, 0xffffffff
cmp eax, r12d
jne 0x14000c57a
lea rcx, [rdi + 0x38d]
mov edx, ebp
mov byte [rdi + 0x38d], 0
call fcn.14000ff84
lea rcx, [rdi + 0x38d]
call fcn.14000615c
lea rdx, str.MozillaProfiles
lea rcx, [rdi + 0x38d]
call sub.msvcrt.dll_strcat
lea rcx, [rdi + 0x38d]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, r12d
jne 0x14000c57a
mov byte [rdi + 0x38d], 0
cmp byte [rdi + 0x38d], 0
mov ebp, 0x258
je 0x14000c5b8
lea rdx, [rdi + 0x288]
lea r8, [rdi + 0x38d]
lea rcx, [rsp + 0x20]
call fcn.140001d1c
test eax, eax
je 0x14000c5b8
mov rcx, qword [rdi + 0x258]
lea rdx, [rsp + 0x20]
add rcx, rbp
call fcn.140010a1c
mov rdx, qword [rdi + 0x250]
add rdx, 0x44
cmp byte [rdx], 0
je 0x14000c5d7
mov rcx, qword [rdi + 0x258]
add rcx, rbp
call fcn.140010a1c
mov rdx, qword [rdi + 0x250]
add rdx, 0x149
cmp byte [rdx], 0
je 0x14000c5f6
lea rcx, [rdi + 0x38d]
call fcn.140010a1c
lea rcx, str._cookiesfile
call fcn.14000a70c
lea r12, [0x1400152b0]
test eax, eax
js 0x14000c62c
mov rcx, qword [rdi + 0x258]
add eax, 1
movsxd rdx, eax
add rcx, rbp
imul rdx, rdx, 0x108
add rdx, r12
call fcn.140010a1c
lea rcx, str._profilesfolder
call fcn.14000a70c
test eax, eax
js 0x14000c658
add eax, 1
lea rcx, [rdi + 0x38d]
movsxd rdx, eax
imul rdx, rdx, 0x108
add rdx, r12
call fcn.140010a1c
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret