joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003ec4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x14000c338]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
xor ebp, ebp
test rdi, rdi
jne 0x140003f10
mov edx, 0x80070057
mov ebx, edx
jmp 0x140003f37
lea rdx, [0x140009534]
lea rcx, [0x140009538]
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
mov ebx, ebp
mov edx, 0x80070057
test rax, rax
cmovne ebx, edx
mov qword [rdi], rbp
test ebx, ebx
js 0x140004023
mov r14d, 0x103
lea rax, [0x140009538]
mov ecx, r14d
cmp word [rax], bp
je 0x140003f61
add rax, 2
sub rcx, 1
jne 0x140003f52
mov rax, rcx
neg rax
sbb ebx, ebx
not ebx
and ebx, edx
test rcx, rcx
je 0x140003f7a
mov rdx, r14
sub rdx, rcx
jmp 0x140003f7d
mov rdx, rbp
mov rax, rcx
neg rax
sbb rsi, rsi
and rsi, rdx
test rcx, rcx
je 0x140004023
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
mov ecx, eax
lea rax, [rcx - 1]
cmp rax, 0x101
ja 0x140003fbf
lea rax, [rsi + rcx]
cmp rax, r14
jb 0x140003fc4
mov ebx, 0x80004005
test ebx, ebx
js 0x140004023
mov eax, 0x5c
lea r8, [0x140009538]
mov word [rsp + rcx*2 + 0x20], ax
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140003dec
mov ebx, eax
test eax, eax
js 0x140004023
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
test rax, rax
jne 0x140004020
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140004023
mov qword [rdi], rax
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140006b00
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400041e4
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x60]
lea rdx, str.CatalogFile
mov ebx, r9d
mov qword [rsp + 0x28], rax
mov r9, r8
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rcx, str.Version
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
nop dword [rax + rax]
mov edx, eax
test eax, eax
jne 0x140004249
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
je 0x140004242
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x14000425a
mov eax, 0x80070490
jmp 0x14000425a
xor eax, eax
lea ecx, [rbx - 1]
cmp edx, ecx
mov r8d, 0x8007007a
cmove eax, r8d
add rsp, 0x30
pop rbx
ret
Function at 0x1400043b4
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rsi, rdx
mov rbp, rcx
lea rdx, [0x140009f40]
mov ecx, 0x2000
call fcn.1400070d8
mov rdi, rax
mov qword [rsp + 0x20], rax
neg rax
sbb ebx, ebx
xor r15d, r15d
not ebx
and ebx, 0x8007000e
test rdi, rdi
je 0x140004431
mov r9, rsi
mov r8d, 0x1000
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
nop dword [rax + rax]
test eax, eax
je 0x140004522
cmp eax, 0xffe
mov ecx, 0x8007007a
cmove ebx, ecx
mov r14, rdi
test ebx, ebx
js 0x140004522
or r12, 0xffffffffffffffff
mov edi, 0x8007000e
cmp word [r14], r15w
je 0x14000451d
mov rbp, r12
inc rbp
cmp word [r14 + rbp*2], r15w
jne 0x140004452
lea r8, [rsp + 0x88]
mov qword [rsp + 0x88], r15
lea rdx, [0x1400098d0]
mov rcx, r14
inc rbp
call qword [sym.imp.msvcrt.dll_wcstok_s]
nop dword [rax + rax]
test rax, rax
je 0x140004511
cmp qword [rsp + 0x88], r15
je 0x140004511
mov rcx, rax
call fcn.140004268
mov rcx, qword [rsp + 0x88]
mov r12, rax
call fcn.140004268
mov qword [rsp + 0x88], rax
cmp word [r12], r15w
je 0x14000450d
cmp word [rax], r15w
je 0x14000450d
mov rax, qword [rsp + 0x80]
lea rsi, str.DataFile
mov r13, qword [rsi + 8]
cmp qword [rax + r13], 0
jne 0x1400044fd
mov rdx, qword [rsi]
mov rcx, r12
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140004549
mov rax, qword [rsp + 0x80]
inc r15d
add rsi, 0x18
cmp r15d, 0x14
jb 0x1400044d4
xor r15d, r15d
or r12, 0xffffffffffffffff
lea r14, [r14 + rbp*2]
test ebx, ebx
jns 0x140004445
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rsp + 0x88]
or r12, 0xffffffffffffffff
mov rsi, r12
xor r15d, r15d
inc rsi
cmp word [rax + rsi*2], r15w
jne 0x14000455b
inc rsi
mov eax, 2
mul rsi
lea rdx, [0x140009f40]
cmovo rax, r12
mov rcx, rax
call fcn.1400070d8
mov rcx, qword [rsp + 0x80]
test rax, rax
cmove ebx, edi
mov qword [rcx + r13], rax
test ebx, ebx
js 0x140004511
mov r8, qword [rsp + 0x88]
mov rdx, rsi
mov rcx, rax
call fcn.140003d60
mov ebx, eax
jmp 0x140004511
Function at 0x1400045c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, rdx
mov rsi, rdx
neg rax
mov rbp, rcx
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdx, rdx
je 0x140004606
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
mov ecx, 0x80070002
cmove ebx, ecx
test ebx, ebx
js 0x140004697
lea rdx, [0x140009f40]
mov ecx, 0xa0
call fcn.1400070d8
mov rdi, rax
test rax, rax
je 0x140004633
xor edx, edx
mov rcx, rax
call fcn.140004340
jmp 0x140004635
xor edi, edi
test rdi, rdi
mov eax, 0x8007000e
cmove ebx, eax
test ebx, ebx
js 0x140004679
mov r8, rdi
lea rcx, str.DriverConfig
mov rdx, rbp
call fcn.1400043b4
mov ebx, eax
test eax, eax
js 0x140004679
mov r8, rdi
lea rcx, str.BidiFiles
mov rdx, rbp
call fcn.1400043b4
mov ebx, eax
test eax, eax
js 0x140004679
mov qword [rsi], rdi
xor edi, edi
test rdi, rdi
je 0x140004697
mov dl, 1
mov rcx, rdi
call fcn.140004340
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140006440
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov edi, r8d
mov rbp, rcx
lea rcx, [r11 + 0x18]
mov rsi, rdx
mov qword [r11 - 0x30], rcx
mov r9, rdx
xor edx, edx
xor ecx, ecx
lea eax, [rdi + rdi]
mov dword [rsp + 0x20], eax
lea r8d, [rdx + 1]
call qword [sym.imp.WINSPOOL.DRV_GetPrinterDriverDirectoryW]
nop dword [rax + rax]
xor r14d, r14d
test eax, eax
jne 0x1400064ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140006542
mov rdx, rdi
lea r8, str.V4Connections_
mov rcx, rsi
call fcn.140003dec
mov ebx, eax
test eax, eax
js 0x140006542
or rax, 0xffffffffffffffff
mov rcx, rax
inc rcx
cmp word [rsi + rcx*2], r14w
jne 0x1400064ca
sub edi, ecx
add edi, edi
mov dword [rsp + 0x70], edi
inc rax
cmp word [rsi + rax*2], r14w
jne 0x1400064dc
lea rax, [rsi + rax*2]
mov r9d, 2
lea rcx, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x30], rcx
lea r8, str.ConnectionGUID
mov qword [rsp + 0x28], rax
mov rcx, rbp
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x140006535
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140006542
cmp dword [rsp + 0x78], 1
mov eax, 0x8000ffff
cmovne ebx, eax
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140006900
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14000c918], rbx
je 0x14000694c
cmp rax, rbx
jne 0x14000693f
mov ebx, 1
mov esi, ebx
jmp 0x140006951
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140006924
mov ebx, 1
mov eax, dword [0x14000c920]
cmp eax, ebx
jne 0x140006967
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400069cc
mov eax, dword [0x14000c920]
test eax, eax
jne 0x1400069c6
mov dword [0x14000c920], ebx
lea r15, [0x1400085d8]
lea rdi, [0x1400085c0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400069b8
test eax, eax
jne 0x1400069bc
cmp qword [rdi], 0
je 0x1400069ad
mov rax, qword [rdi]
mov rcx, qword [0x1400085a0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000698e
test eax, eax
je 0x1400069cc
mov eax, 0xff
jmp 0x140006aa8
mov dword [0x14000c354], ebx
mov eax, dword [0x14000c920]
cmp eax, ebx
jne 0x1400069f3
lea rdx, [0x1400085b8]
lea rcx, [0x1400085a8]
call sub.msvcrt.dll__initterm
mov dword [0x14000c920], 2
test esi, esi
jne 0x140006a00
xor eax, eax
xchg qword [0x14000c918], rax
cmp qword [0x14000c928], 0
je 0x140006a34
lea rcx, [0x14000c928]
call fcn.140006d70
test eax, eax
je 0x140006a34
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000c928]
mov r9, qword [0x1400085a0]
call r9
mov r8, qword [0x14000c368]
mov rdx, qword [0x14000c360]
mov ecx, dword [0x14000c358]
call fcn.1400017f4
mov dword [0x14000c350], eax
cmp dword [0x14000c370], 0
jne 0x140006a64
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000c354], 0
jne 0x140006a79
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000c350]
jmp 0x140006aa8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14009c000
add rsp, 0x28
jmp 0x140006900

Function at 0x140006c5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006ca8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140006ca0
cmp dword [rcx + 0x3c], edx
jl 0x140006ca0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140006ca0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140006ca8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x6d8c3960
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8e45e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8c3ae8
mov rax, qword [0x6d8e45e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8c39ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8c3a35
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8c3990
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8c3b1d
mov rax, qword [0x6d8e45e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8e45e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8c3b00
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8c3a2e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8c3a90
add dword [0x6d8e45e4], 1
cmp edi, 8
jae 0x6d8c3a63
test dil, 4
jne 0x6d8c3ad4
test edi, edi
je 0x6d8c3a58
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8c3aef
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 0x6d8c3a58
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 0x6d8c3a7c
jmp 0x6d8c3a58
add rsi, qword [0x6d8e45e8]
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 0x6d8c3a2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8c3a58
xor esi, esi
jmp 0x6d8c39b7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8c3a58
mov rax, qword [0x6d8e45e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8c4270
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8e48c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8e48a0]
test rbx, rbx
je 0x6d8c42c4
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 0x6d8c42bb
test rsi, rsi
je 0x6d8c42bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8c42a0
lea rcx, [0x6d8e48c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8c4500
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8c4510
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8c4520
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d8c4561
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8c4558
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8c4563
add rax, 0x28
cmp rax, r9
jne 0x6d8c4544
xor eax, eax
ret

Function at 0x6d8c4600
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8e11f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8c466d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8c466d
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 0x6d8c466d
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 0x6d8c4664
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8c466f
add rax, 0x28
cmp rax, r9
jne 0x6d8c4650
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8c4770
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8e11f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8c4790
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8c4788
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 0x6d8c47ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8c47e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8c47f4
add rax, 0x28
cmp rax, r9
jne 0x6d8c47d0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8c4810
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8e11f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8c487e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8c487e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8c487e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8c487e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8c4875
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8c4885
add rcx, 0x28
cmp rcx, rax
jne 0x6d8c4860
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8c4898
jmp 0x6d8c487e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8c48a6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8c487e
test r9d, r9d
jg 0x6d8c4890
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8c4c10
Capabilities:
Write file on windows

Disassembly:
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400016ec
Capabilities:
Reference http user-agent string

Disassembly:
push rbx
sub rsp, 0x50
lea r8, [rcx + 0x20]
mov rbx, rcx
cmp qword [r8 + 0x18], 0x10
jb 0x140001703
mov r8, qword [r8]
mov rcx, qword [rcx + 8]
mov edx, 0x2712
call fcn.140010930
and qword [rsp + 0x30], 0
lea rdx, str.Mozilla_5.0__Windows_NT_6.1__WOW64__rv:13.0__Gecko_20100101_Firefox_13.0.1
lea rcx, [rsp + 0x20]
mov r8d, Ordinal_79
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x20], 0
call fcn.1400015c4
cmp qword [rsp + 0x38], 0x10
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x20]
mov edx, 0x2722
cmovae r8, qword [rsp + 0x20]
call fcn.140010930
mov rcx, qword [rbx + 8]
mov edx, 0x44
lea r8d, [rdx - 0x3f]
call fcn.140010930
mov rcx, qword [rbx + 8]
mov edx, 0x34
lea r8d, [rdx - 0x33]
call fcn.140010930
mov rcx, qword [rbx + 8]
mov edx, 0x63
lea r8d, [rdx - 0x62]
call fcn.140010930
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea edx, [r8 + 0x2f]
call fcn.140010930
mov rcx, qword [rbx + 8]
lea r8, [0x1400010d4]
mov edx, 0x4e2b
call fcn.140010930
mov rcx, qword [rbx + 8]
mov r8, rbx
mov edx, 0x2711
call fcn.140010930
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea edx, [r8 + 0x40]
call fcn.140010930
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea edx, [r8 + 0x51]
call fcn.140010930
cmp qword [rsp + 0x38], 0x10
jb 0x1400017f9
mov rcx, qword [rsp + 0x20]
call fcn.14004dac0
add rsp, 0x50
pop rbx
ret

Function at 0x14000194c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rsi, rcx
lea rdx, str.bvisdhhofhdfbxbcvrghg
lea rcx, str.C:UsersPublicCr36PkXaqjsaC4pf66Z0Qn8YbjnZq8dl.dat
call fcn.14000f640
xor edi, edi
mov rbx, rax
test rax, rax
jne 0x140001982
xor eax, eax
jmp 0x1400019f7
mov rdx, rsi
mov rcx, rax
call fcn.14000d79c
mov rcx, rbx
test eax, eax
je 0x14000199b
call fcn.14000f6a4
jmp 0x14000197e
lea r8, [rsp + 0x20]
or edx, 0xffffffff
call fcn.14000d75c
test eax, eax
je 0x1400019b1
mov rcx, rbx
jmp 0x140001994
mov esi, dword [rsp + 0x20]
test esi, esi
jle 0x1400019dd
lea r8, [rsp + 0x20]
mov edx, edi
mov rcx, rbx
call fcn.14000d75c
lea r8, [rsp + 0x24]
mov edx, edi
mov rcx, rbx
call fcn.14000f688
inc edi
cmp edi, esi
jl 0x1400019b9
mov rcx, rbx
call fcn.14000f6a4
lea rcx, str.C:UsersPublicCr36PkXaqjsaC4pf66Z0Qn8YbjnZq8dl.dat
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140001a0c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov rsi, rdx
xor edx, edx
mov r12, r8
mov rbx, rcx
xor ebp, ebp
call fcn.140068bdc
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasb al, byte [rdi]
lea r14d, [rbp + 1]
lea rdx, [0x14006b7b8]
not rcx
sub rcx, r14
mov r13, rcx
mov rcx, rbx
call fcn.14004e998
lea rdx, [0x14006b77c]
mov rcx, rsi
mov rdi, rax
call fcn.14004e998
mov rbx, rax
jmp 0x140001ab8
lea rcx, [rsp + 0x68]
mov r9, rdi
mov r8, r14
mov rdx, r14
call fcn.14004eedc
mov rcx, rdi
call fcn.14004ebac
test eax, eax
jne 0x140001ab8
mov eax, ebp
mov r9, rbx
mov r8, r14
cdq
idiv r13d
movsxd rax, edx
mov rdx, r14
mov cl, byte [rax + r12]
xor byte [rsp + 0x68], cl
lea rcx, [rsp + 0x68]
call fcn.14004dfa0
add ebp, r14d
mov rcx, rdi
call fcn.14004ebac
test eax, eax
je 0x140001a72
mov rcx, rdi
call fcn.14004e0ac
mov rcx, rbx
call fcn.14004e0ac
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140004968
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, rcx
cmp qword [rcx + 0x80], 0
je 0x140004af9
cmp byte [rcx + 0x89], 0
je 0x140004af9
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
jne 0x1400049b9
xor al, al
jmp 0x140004afb
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x10], rdx
and qword [rbp - 0x18], 0
mov byte [rbp - 0x28], 0
lea r13d, [rdx - 7]
cmp r13b, 0xfe
jbe 0x1400049e2
lea rcx, str.string_too_long
call fcn.14000f798
int3
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], r13
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
lea rdx, [rbp - 0x28]
cmp r10, 0x10
cmovae rdx, r9
lea r8, [rbp - 0x28]
cmovae r8, r9
mov rcx, qword [rbx + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x18]
lea r9, [rdx + rax]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x8c]
call qword [r10 + Ordinal_50]
test eax, eax
je 0x140004a47
dec eax
jne 0x140004abe
jmp 0x140004a4e
mov byte [rbx + 0x89], 0
lea rax, [rbp - 0x28]
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
cmp r10, 0x10
cmovae rax, r9
mov rdi, qword [rbp + 0x20]
sub rdi, rax
je 0x140004a98
lea rcx, [rbp - 0x28]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rbx + 0x98]
mov r8, rdi
mov edx, 1
call fcn.14004dfa0
cmp rdi, rax
jne 0x140004ad2
mov r10, qword [rbp - 0x10]
mov r9, qword [rbp - 0x28]
cmp byte [rbx + 0x89], 0
je 0x140004aeb
test rdi, rdi
jne 0x140004a03
xor r8d, r8d
mov rdx, r13
lea rcx, [rbp - 0x28]
call fcn.140003ca8
jmp 0x1400049fb
sub eax, 2
je 0x140004ac5
jmp 0x140004ad2
cmp qword [rbp - 0x10], 0x10
jb 0x140004af9
mov rcx, qword [rbp - 0x28]
jmp 0x140004af4
cmp qword [rbp - 0x10], 0x10
jb 0x1400049b2
mov rcx, qword [rbp - 0x28]
call fcn.14004dac0
jmp 0x1400049b2
cmp r10, 0x10
jb 0x140004af9
mov rcx, r9
call fcn.14004dac0
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret