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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov esi, ecx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rdx, rdx
je 0x140153cd7
cmp dword [0x14023ebf0], esi
jg 0x140153cd7
mov rdi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
movsxd r15, eax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r14, rax
mov qword [rsp + 0x30], r15
lea rbp, [rdi + r15]
lea r15, [rsp + 0x3c]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
mov r12, rdi
nop dword [rax]
cmp r12, rbp
jae 0x140153cc7
mov dword [rsp + 0x3c], 0
mov r8d, ebp
sub r8d, r12d
mov qword [rsp + 0x20], 0
mov rcx, r14
mov rdx, r12
mov r9, r15
call r13
test eax, eax
je 0x140153cc7
mov eax, dword [rsp + 0x3c]
add r12, rax
test eax, eax
jne 0x140153c90
test ebx, ebx
je 0x140153cd7
mov rax, qword [rsp + 0x30]
cmp byte [rax + rdi - 1], 0xa
jne 0x140153cff
cmp esi, 3
je 0x140153d73
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14019eb90
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdi, rax
lea r15, [0x1401ee61f]
lea r12, [0x1401ee620]
lea rbx, [rsp + 0x3c]
mov r14, r15
nop word cs:[rax + rax]
cmp r14, r12
jae 0x140153cd7
mov dword [rsp + 0x3c], 0
mov r8d, r15d
sub r8d, r14d
inc r8d
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, r14
mov r9, rbx
call r13
test eax, eax
je 0x140153cd7
mov eax, dword [rsp + 0x3c]
add r14, rax
test eax, eax
jne 0x140153d30
jmp 0x140153cd7
int3

Function at 0x14015b7fc
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x14015b8b0]
xor ecx, ecx
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 8], rax
test rax, rax
je 0x14015b857
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14019eb90
nop
add rsp, 0x68
pop rdi
pop rsi
ret
lea rdx, str.Start
lea r8, str....._third_partycrashpadcrashpadutil_thread_thread_win.cc
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov r9d, 0x1b
call fcn.1400afa40
lea rdi, [rsp + 0x58]
mov rcx, rdi
mov rdx, rsi
call fcn.1400b8260
lea rdx, [0x1401fc1f1]
mov rcx, rdi
call fcn.1400da8b6
mov rcx, rdi
call fcn.1400b8300
jmp 0x14015b842

Function at 0x140160d96
Capabilities:
Parse pe header

Disassembly:
cmp rdx, 0x40
jb 0x140160dec
cmp byte [rcx], 0x4d
jne 0x140160dec
cmp byte [rcx + 1], 0x5a
jne 0x140160dec
mov r9d, dword [rcx + 0x3c]
mov r10, rdx
sub r10, r9
xor eax, eax
cmp r10, 0x18
jb 0x140160dee
cmp r9, rdx
jae 0x140160dee
cmp r9d, 0x40
jb 0x140160dee
mov r10d, r9d
and r10d, 7
jne 0x140160dee
cmp byte [rcx + r9], 0x50
jne 0x140160dec
cmp byte [rcx + r9 + 1], 0x45
jne 0x140160dec
cmp byte [rcx + r9 + 2], 0
jne 0x140160dec
cmp byte [rcx + r9 + 3], 0
je 0x140160def
xor eax, eax
ret
add r9, 0x18
xor eax, eax
sub rdx, r9
jbe 0x140160dee
cmp rdx, 2
jb 0x140160dee
cmp word [rcx + r9], r8w
sete al
ret
Function at 0x1401742e0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1401742f5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x140174350
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140174392
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
nop word [rax + rax]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14017439c
add rdi, rbx
sub rsi, rbx
jne 0x140174370
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x140177850
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 0xaaaaaaaa
lea rdi, [rsp + 0x44]
mov dword [rdi], eax
lea r8, [rsp + 0x40]
mov dword [r8], eax
lea rax, [rsp + 0x3c]
mov dword [rax], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rdi]
xor ecx, 4
or ecx, eax
sete bl
jne 0x1401778b0
mov eax, dword [rsp + 0x40]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14019eb90
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140177970
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x1a0
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x198], rax
movaps xmm0, xmmword [0x1401e7440]
lea rsi, [rsp + 0x160]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsi + 0x20], 0x100
jb 0x140177a03
mov ecx, 1
call fcn.1400ad460
test al, al
je 0x140177a03
lea rdx, str....._third_partycrashpadcrashpad_snapshotwin_system_snapshot_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x10a
mov r9d, 1
call fcn.1400ad510
lea rcx, [rsp + 0x38]
lea rdx, str.dwNumberOfProcessors_exceeds_uint8_t_storage
mov r8d, 0x2c
call fcn.14002e9c2
mov rcx, rsi
call fcn.1400ad9f0
mov eax, dword [rsp + 0x180]
cmp eax, 0x100
mov esi, 0xff
cmovb esi, eax
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14019eb90
mov eax, esi
add rsp, 0x1a0
pop rsi
ret
Function at 0x14018f830
Capabilities:
Decompress data using quicklz

Disassembly:
mov r8d, dword [rdx]
mov eax, r8d
and eax, 0xf800d000
cmp eax, 0xf0008000
sete al
mov r9d, r8d
not r9d
test r9d, 0x3c00000
setne r9b
and r9b, al
test cl, 1
sete r10b
lea eax, [rcx + 0x100000]
cmp eax, 0x200000
setb al
and al, r10b
and al, r9b
cmp al, 1
jne 0x14018f8ce
mov r9d, ecx
shr r9d, 1
and r9d, 0x7ff
and r8d, 0xfbc0d000
mov r10d, ecx
shl r10d, 6
and r10d, 0x4000000
mov r11d, ecx
shl r11d, 4
and r11d, 0x3f0000
or r11d, r10d
mov r10d, ecx
shr r10d, 5
and r10d, 0x2000
or r10d, r11d
shr ecx, 8
and ecx, 0x800
or ecx, r10d
or ecx, r9d
or ecx, r8d
mov dword [rdx], ecx
ret

Function at 0x14018f938
Capabilities:
Decompress data using quicklz

Disassembly:
mov eax, edx
or eax, ecx
test al, 1
jne 0x14018f955
sub edx, ecx
mov eax, edx
and eax, 1
lea ecx, [rdx + rax]
add ecx, 0xfffffffc
mov rdx, r8
jmp fcn.14018f830
xor eax, eax
ret
Function at 0x14019388a
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x1401e7440]
lea r15, [rsp + 0x160]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.140028126
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.14019adfa
test al, al
je 0x14019395b
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x1401939a4
mov rcx, r14
call fcn.140028126
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0x108
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.14019adfa
test al, al
je 0x1401939ed
cmp dword [rbx], 0x4550
jne 0x140193a30
mov sil, 1
test rdi, rdi
je 0x140193a9b
mov qword [rdi], r14
jmp 0x140193a9b
mov ecx, 1
call fcn.1400ad460
test al, al
je 0x140193a99
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.1400ad510
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
jmp 0x140193a70
mov ecx, 1
call fcn.1400ad460
test al, al
je 0x140193a99
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.1400ad510
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x140193a70
mov ecx, 1
call fcn.1400ad460
test al, al
je 0x140193a99
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.1400ad510
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x140193999
mov ecx, 1
call fcn.1400ad460
test al, al
je 0x140193a99
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.1400ad510
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
call fcn.14002e9c2
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140193a86
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.14002e9c2
mov rcx, rdi
call fcn.1400ad9f0
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14019eb90
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140193abc
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x1401e7440]
lea r15, [rsp + 0x160]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.140028126
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.14019adfa
test al, al
je 0x140193b8d
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x140193bd6
mov rcx, r14
call fcn.140028126
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0xf8
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.14019adfa
test al, al
je 0x140193c1f
cmp dword [rbx], 0x4550
jne 0x140193c62
mov sil, 1
test rdi, rdi
je 0x140193ccd
mov qword [rdi], r14
jmp 0x140193ccd
mov ecx, 1
call fcn.1400ad460
test al, al
je 0x140193ccb
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.1400ad510
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
jmp 0x140193ca2
mov ecx, 1
call fcn.1400ad460
test al, al
je 0x140193ccb
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.1400ad510
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x140193ca2
mov ecx, 1
call fcn.1400ad460
test al, al
je 0x140193ccb
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.1400ad510
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x140193bcb
mov ecx, 1
call fcn.1400ad460
test al, al
je 0x140193ccb
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.1400ad510
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
call fcn.14002e9c2
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140193cb8
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.14002e9c2
mov rcx, rdi
call fcn.1400ad9f0
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14019eb90
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1401964d0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov dword [rcx + 0x78], 0x1003f
mov eax, dword [rdx + 0x234]
mov dword [rcx + 0x7c], eax
mov eax, dword [rdx + 0x238]
mov dword [rcx + 0x80], eax
mov eax, dword [rdx + 0x23c]
mov dword [rcx + 0x84], eax
mov eax, dword [rdx + 0x240]
mov dword [rcx + 0x88], eax
mov eax, dword [rdx + 0x24c]
mov dword [rcx + 0x8c], eax
mov eax, dword [rdx + 0x250]
mov dword [rcx + 0x90], eax
lea rdx, [rcx + 0x94]
lea rbx, [rdi + 0x34]
mov rcx, rbx
call fcn.14015f8b8
movzx eax, word [rdi + 0x30]
mov dword [rsi + 0x104], eax
movzx eax, word [rdi + 0x2e]
mov dword [rsi + 0x108], eax
movzx eax, word [rdi + 0x2c]
mov dword [rsi + 0x10c], eax
movzx eax, word [rdi + 0x2a]
mov dword [rsi + 0x110], eax
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x114], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x118], eax
mov eax, dword [rdi + 4]
mov dword [rsi + 0x11c], eax
mov eax, dword [rdi + 0xc]
mov dword [rsi + 0x120], eax
mov eax, dword [rdi + 8]
mov dword [rsi + 0x124], eax
mov eax, dword [rdi]
mov dword [rsi + 0x128], eax
mov eax, dword [rdi + 0x18]
mov dword [rsi + 0x12c], eax
mov eax, dword [rdi + 0x20]
mov dword [rsi + 0x130], eax
movzx eax, word [rdi + 0x28]
mov dword [rsi + 0x134], eax
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x138], eax
mov eax, dword [rdi + 0x1c]
mov dword [rsi + 0x13c], eax
movzx eax, word [rdi + 0x32]
mov dword [rsi + 0x140], eax
add rsi, 0x144
mov r8d, 0x200
mov rcx, rsi
mov rdx, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1401a0610
Function at 0x14019de34
Capabilities:
Parse pe header

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

Function at 0x1401b1138
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1401b116f
call fcn.1401b46d0
mov dword [rax], 0x16
call fcn.1401b626c
xor eax, eax
jmp 0x1401b11fd
mov rdx, r9
mov rcx, r8
call fcn.1401b1220
mov rbx, rax
test rax, rax
je 0x1401b11fa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1401b1290]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1401b11e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401b4710
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401b11ce
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401b11dd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140099ec0
jmp 0x1401b11fa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401b11f7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1401b1364
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401b14ac
Function at 0x1401b17ec
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1401b69ac
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401b69ac
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401b193c
cmp rax, 0xffffffffffffffff
je 0x1401b193c
xor edi, edi
test rbp, rbp
jle 0x1401b18e7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140099f50
mov rbx, rax
test rax, rax
jne 0x1401b1874
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401b18dd
mov edx, 0x8000
mov ecx, r14d
call fcn.1401b7a98
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1401bbe40
cmp eax, 0xffffffff
je 0x1401b18bd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401b1884
mov edx, r15d
mov ecx, r14d
call fcn.1401b7a98
jmp 0x1401b18dd
cmp byte [rsi + 0x38], dil
je 0x1401b18d4
cmp dword [rsi + 0x34], 5
jne 0x1401b18d4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohl
cmp byte [rsi + 0x30], dil
je 0x1401b18dd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140099ec0
jmp 0x1401b1950
jns 0x1401b1950
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401b69ac
cmp rax, 0xffffffffffffffff
jne 0x1401b1908
cmp byte [rsi + 0x30], dil
je 0x1401b1950
mov edi, dword [rsi + 0x2c]
jmp 0x1401b1950
mov ecx, r14d
call fcn.1401b558c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401b1950
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, ntohl
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohl
jmp 0x1401b1950
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401b1949
mov eax, dword [rsi + 0x2c]
jmp 0x1401b194e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401b69ac
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1401b4e10
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1401dbfa0]
mov rbp, rcx
call fcn.1401c37e0
xor edi, edi
test rax, rax
je 0x1401b4ef6
mov ebx, edi
call fcn.1401b46d0
mov r14d, dword [rax]
call fcn.1401b46d0
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1401bbac4
mov rsi, rax
test rax, rax
je 0x1401b4e87
call fcn.1401b46d0
mov dword [rax], r14d
jmp 0x1401b4eb1
call fcn.1401b46d0
cmp dword [rax], 0x22
jne 0x1401b4eee
call fcn.1401b46d0
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1401bbac4
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1401b4eee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1401b4eb5
cmp rax, 3
je 0x1401b4ed0
mov rcx, rsi
call fcn.1401b4d6c
test al, al
je 0x1401b4ee1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1401b4ee1
mov dil, 1
mov rcx, rbx
call fcn.140099ec0
mov al, dil
jmp 0x1401b4ef8
mov rcx, rbx
call fcn.140099ec0
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14019eb90
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1401b7678
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140230530]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1401b76cf
cmp word [rdx], r13w
jne 0x1401b76cf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401b76d4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401b77f9
mov r11d, ntohl
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401b781a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401b770d
mov rdx, r9
mov word [rbx], cx
jmp 0x1401b7734
cmp r9, r8
jae 0x1401b7744
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1401b76ee
jmp 0x1401b77f9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401b77ee
cmp dword [rsp + 0x80], esi
je 0x1401b77ee
lea r8, [0x140230530]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401b77c6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401b7796
mov word [rbx], r13w
jmp 0x1401b77f6
mov ecx, ntohl
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1401b77a3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401b77f6
cmp word [rsp + 0x70], r13w
jne 0x1401b77d3
cmp rbx, r14
je 0x1401b7790
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401b69ac
cmp word [rsp + 0x70], r13w
je 0x1401b77f9
mov ecx, ntohl
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140230530]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401b77f3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401b77f9
Function at 0x1401bebe0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14019eb30
sub rsp, rax
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401b4ac8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401bec2f
mov rax, rbp
jmp 0x1401bed37
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x230530]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401b6a50
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x230530]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401bed33
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401bed33
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401b6a50
test rax, rax
js 0x1401bed33
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401bed33
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401bed25
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401bed25
cmp byte [rcx], 0xd
jne 0x1401bed0b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401bed1a
cmp byte [rcx + 1], 0xa
jne 0x1401bed1a
inc rcx
jmp 0x1401bed1a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x21f320]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401beced
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401bed37
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14019eb90
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401c39d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401c39f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401c39f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1401cd5f8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1401c7524
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1401cd699
cmp ebx, dword [rsp + 0x30]
je 0x1401cd692
test esi, esi
je 0x1401cd692
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401cd66d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401cd67a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401cd657
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401cd67e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401cd69b
mov eax, 1
jmp 0x1401cd69b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret