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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
xor ebp, ebp
mov dword [rsp + 0x40], ebp
call fcn.140008400
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov qword [rdi], rax
mov esi, 1
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x80], rbp
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x101a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x14004044b
mov rbx, qword [rdi]
mov rcx, qword [rbx - 0x18]
mov eax, dword [rbx - 8]
cmp eax, esi
jle 0x140040383
mov rax, qword [rcx]
mov byte [rsp + 0x30], sil
mov byte [rsp + 0x28], sil
mov byte [rsp + 0x20], sil
mov r9d, 0x820
mov r8d, dword [rbx - 0x10]
mov rdx, qword [rdi]
call qword [rax + 0x28]
mov qword [rdi], rax
mov edx, 0xffffffff
mov ecx, edx
xchg dword [rax - 8], ecx
mov eax, dword [rbx - 8]
cmp eax, 0x7ffffc17
je 0x1400403fb
mov eax, dword [rbx - 8]
cmp eax, edx
je 0x140040373
lock xadd dword [rbx - 8], edx
sub edx, esi
jg 0x1400403fb
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400403fb
mov edx, 0x820
cmp dword [rbx - 0xc], edx
jg 0x1400403f3
mov r9d, esi
add r9d, r9d
shr edx, 1
jne 0x140040390
mov rdx, qword [rdi]
mov eax, dword [rbx - 8]
mov r10, qword [rcx]
cmp eax, 0xffffffff
setne al
mov byte [rsp + 0x30], sil
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], 0
mov r8d, dword [rbx - 0x10]
call qword [r10 + 0x28]
mov qword [rdi], rax
mov edx, 0xffffffff
mov ecx, edx
xchg dword [rax - 8], ecx
mov eax, dword [rbx - 8]
cmp eax, 0x7ffffc17
je 0x1400403fb
mov eax, dword [rbx - 8]
cmp eax, edx
je 0x1400403e3
lock xadd dword [rbx - 8], edx
sub edx, esi
jg 0x1400403fb
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400403fb
mov edx, 0xffffffff
xchg dword [rbx - 8], edx
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rdx, qword [rdi]
test rdx, rdx
je 0x140040435
mov rcx, rdx
nop word [rax + rax]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140040420
sub rcx, rdx
sar rcx, 1
lea ebp, [rcx - 1]
mov dword [rdx - 0x10], ebp
mov eax, dword [rdx - 8]
cmp eax, 0xffffffff
jne 0x140040443
xchg dword [rdx - 8], esi
mov rcx, rdi
call fcn.140048c60
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14004045e
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rdi
call fcn.1400443e0
mov rax, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004bfc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rsi, r8
mov r14, rdx
mov rdi, rcx
xor bl, bl
lea rdx, [rbp + 0x38]
call fcn.140048220
mov rcx, rax
call fcn.140040810
test al, al
je 0x14004c0c9
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.140045dc0
nop
lea rax, [rbp - 0x40]
cmp rdi, rax
je 0x14004c033
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.1400333a0
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x38]
mov rax, qword [rbp - 0x38]
call qword [rax + 0x80]
movzx eax, byte [rdi + 0x18]
mov byte [rbp - 0x28], al
mov dword [rbp - 0x20], 2
mov qword [rbp - 0x1c], 3
xor edi, edi
mov dword [rbp - 0x14], edi
mov byte [rbp - 0x10], dil
mov qword [rbp - 8], 0xffffffffffffffff
lea rcx, [rbp - 0x40]
call fcn.14004fe20
test al, al
je 0x14004c09e
test r14, r14
je 0x14004c09e
test rsi, rsi
jle 0x14004c09e
mov dword [rbp + 0x38], edi
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x38]
mov r8d, esi
mov rdx, r14
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14004c09e
mov eax, dword [rbp + 0x38]
cmp rax, rsi
jne 0x14004c09e
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov bl, 1
cmp byte [rbp - 0x11], 0
je 0x14004c0bc
mov rcx, qword [rbp - 8]
cmp rcx, 0xffffffffffffffff
je 0x14004c0bc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 8], 0xffffffffffffffff
mov byte [rbp - 0x11], 0
lea rcx, [rbp - 0x40]
call fcn.140045eb0
movzx eax, bl
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400572c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140057304
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400572f0
ret
Function at 0x14005c200
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x14005c2e3
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14005c2e3
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14005c301
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14005c2d3
cmp word [rax], 0x5c
jne 0x14005c2cc
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x14005c2cc
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14005c2b7
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x14005c2c9
test r8b, 0x10
jne 0x14005c2cc
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x14005c2cc
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400591c0
test edi, edi
jne 0x14005c230
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.1400591b0
int3
Function at 0x14006da40
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov ebp, r9d
mov r14d, r8d
mov esi, edx
mov rdi, rcx
cmp edx, 9
jne 0x14006da8b
cmp byte [rcx + 0xf8], 0
je 0x14006da8b
lea ecx, [rdx + 7]
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
movzx r8d, al
mov rcx, rdi
call fcn.140070780
xor r15d, r15d
mov rcx, qword [0x14019a6b8]
test rcx, rcx
je 0x14006daaa
mov rax, qword [rcx]
mov dl, 1
call qword [rax + 0x98]
mov rcx, rax
jmp 0x14006daad
mov rcx, r15
mov rax, qword [rcx]
mov dl, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, rax
lea rax, vtable.JRWndPtr.0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x50], r15d
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140068ca0
mov r9, qword [rbx]
mov r8b, 1
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [r9 + 0x18]
mov rbx, rax
test rax, rax
je 0x14006db7e
lea r15, vtable.JRWndDeleteProbe.0
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x38], 0
test rdi, rdi
je 0x14006db27
mov r8, qword [rdi]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [r8 + 0x600]
nop
mov rax, qword [rbx]
mov r9d, ebp
mov r8d, r14d
mov edx, esi
mov rcx, rbx
call qword [rax + 0x188]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14006dba5
cmp byte [rsp + 0x38], 0
jne 0x14006dba5
mov rax, qword [rcx]
call qword [rax + 0x308]
test al, al
je 0x14006dba0
mov qword [rsp + 0x28], r15
cmp byte [rsp + 0x38], 0
jne 0x14006db7e
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14006db7e
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
call qword [rax + 0x608]
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], r15
cmp byte [rsp + 0x38], 0
jne 0x14006dbc5
test rcx, rcx
je 0x14006dbc5
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
call qword [rax + 0x608]
nop
jmp 0x14006db86
Function at 0x140074dc0
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov esi, edx
mov rdi, rcx
test edx, edx
setne bpl
mov byte [rcx + 0x28], bpl
test edx, edx
je 0x140074f0a
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [rax + 0x518]
nop
lea r14, vtable.JRWndPtr.0
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x140074ec5
mov rax, qword [rbx]
lea rdx, str.JRControlWnd
mov rcx, rbx
call qword [rax + 0x2f8]
test al, al
je 0x140074ec0
mov rax, qword [rbx]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [rax + 0x3c8]
test al, al
je 0x140074ebb
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax + 0x518]
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140068eb0
nop
mov qword [rsp + 0x38], r14
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140074e90
cmp dword [rsp + 0x48], 1
jne 0x140074e90
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax + 0x608]
mov rcx, qword [rsp + 0x40]
cmp dword [rsp + 0x48], 2
jne 0x140074eab
test rcx, rcx
je 0x140074eab
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x2e8]
nop
mov rbx, qword [rsp + 0x28]
test rbx, rbx
jne 0x140074e15
jmp 0x140074ec5
xor esi, esi
xor bpl, bpl
mov rbx, qword [rsp + 0x28]
mov qword [rsp + 0x20], r14
test rbx, rbx
je 0x140074eec
cmp dword [rsp + 0x30], 1
jne 0x140074eec
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [rax + 0x608]
mov rbx, qword [rsp + 0x28]
cmp dword [rsp + 0x30], 2
jne 0x140074f0a
test rbx, rbx
je 0x140074f0a
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + 0x2e8]
nop
mov byte [rdi + 0x28], bpl
mov edx, esi
mov rcx, qword [rdi + 0x190]
call qword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
setne bl
cmp byte [rdi + 0x28], 0
je 0x140074f44
cmp byte [rdi + 0x1bc], 0
jne 0x140074f44
mov byte [rdi + 0x1bc], 1
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x6d0]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x14007cdb0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, r8
movzx ebp, cl
mov ecx, edx
call fcn.14007a870
mov sil, 1
mov edi, 0xffffffff
cmp eax, 0xd
jne 0x14007ced4
xor sil, sil
lea r8, str.settings_temp.bin
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.14003ac90
nop
lea r8, str.settings.bin
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.14003ac90
nop
mov rbx, qword [rsp + 0x20]
mov dl, 1
test bpl, bpl
je 0x14007ce43
mov rcx, rbx
call fcn.140042920
test al, al
je 0x14007ce77
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne sil
jmp 0x14007ce77
mov rcx, qword [rsp + 0x68]
call fcn.140042920
test al, al
je 0x14007ce77
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne sil
test eax, eax
je 0x14007ce77
lea rcx, [rsp + 0x68]
call fcn.140042e00
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14007cea3
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14007ce99
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007cea3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14007ced4
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14007ceca
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007ced4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14007cf01
mov ecx, dword [rdx + 0x10]
cmp ecx, 0xffffffff
je 0x14007cef7
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14007cf01
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
movzx eax, sil
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14007fcf0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, r8
mov rdi, rdx
mov dword [rsp + 0x20], 0
mov rcx, r8
call fcn.140048c60
lea r8, str.VIDEO_TS.IFO
mov rdx, r14
mov rcx, rdi
call fcn.14003ac90
mov dword [rsp + 0x20], 1
mov dl, 1
mov rcx, qword [rdi]
call fcn.140042920
movzx ebp, al
mov esi, 0xffffffff
test al, al
jne 0x14007fdce
lea r8, str.VIDEO_TS.BUP
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.14003ac90
nop
mov dl, 1
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.140042920
test al, al
je 0x14007fd94
lea r8d, [rsi + 2]
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dl, 1
mov rcx, qword [rdi]
call fcn.140042920
movzx ebp, al
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14007fdc0
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14007fdb6
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007fdc0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
test bpl, bpl
jne 0x14007fdce
mov rcx, rdi
call fcn.1400336e0
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14007fdfb
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14007fdf1
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14007fdfb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, rdi
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e02dc
Capabilities:
Parse pe header

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

Function at 0x1400ee01c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400ede87
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ede87
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ede87
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ede87
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ede87
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ede87
cmp dword [rcx + 0xf8], 0
je 0x1400ede87
mov ecx, ebx
call fcn.1400edf38
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400edd14
nop
cmp dword [rbp + 0x20], 0
je 0x1400eded5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400edee0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400ede18

Function at 0x1400f69dc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140182028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400f6a26
call fcn.1400f4b10
mov dword [rax], 0xf
call fcn.1400f4b30
mov dword [rax], 0xd
call fcn.1400f49c4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400dff30
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400f6a31
lea eax, [rbx + 1]
jmp 0x1400f6a13
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400f6a11
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400f6a13
Function at 0x1400f6bec
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 0x1400f6c23
call fcn.1400f4b30
mov dword [rax], 0x16
call fcn.1400f49c4
xor eax, eax
jmp 0x1400f6cb1
mov rdx, r9
mov rcx, r8
call fcn.1400f6b88
mov rbx, rax
test rax, rax
je 0x1400f6cae
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400f6ab4]
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 0x1400f6c9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400f4aa4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400f6c82
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400f6c91
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400f9df0
jmp 0x1400f6cae
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400f6cab
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 0x1400ffa30
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.1400f98b0
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 0x1400ffad1
cmp ebx, dword [rsp + 0x30]
je 0x1400ffaca
test esi, esi
je 0x1400ffaca
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400ffaa5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400ffab2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400ffa8f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400ffab6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400ffad3
mov eax, 1
jmp 0x1400ffad3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ffec4
Capabilities:
Terminate process

Disassembly:
push rdi
push r12
push r15
push rbp
sub rsp, 0x58
lea rdi, [0x14018c008]
xor edx, edx
xor r8d, r8d
mov rcx, qword [rdi + 0x54]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, dword [rdi + 0x90]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rbx
call fcn.14010010e
cdqe
lea rbp, [rbx + rax*2]
mov rbx, qword [rdi + 0x2c]
cmp dword [rbx], 0
je 0x1400fff59
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movzx eax, al
cmp al, byte [rbx]
je 0x1400fff43
cmp al, byte [rbx + 1]
jne 0x1400ffff1
mov rcx, rbp
call fcn.140100132
cmp eax, dword [rbx + 4]
je 0x1400fff59
cmp eax, dword [rbx + 8]
jne 0x1400ffff1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, dword [rdi + 0x90]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
mov rcx, qword [rdi + 0x14]
xor edx, edx
xor r8d, r8d
mov rbx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r15, rax
lea r12, sym.imp.KERNEL32.dll_GetProcAddress
mov rcx, r15
mov rdx, qword [rdi + 0x1c]
call qword [r12]
mov qword [rsp + 0x48], rax
mov rcx, r15
mov rdx, qword [rdi + 0x84]
call qword [r12]
mov qword [rsp + 0x50], rax
mov rcx, r15
mov rdx, qword [rdi + 0xc]
call qword [r12]
adc al, 0x24
mov r10, rsp
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
inc edx
xor r9d, r9d
xor eax, eax
mov r11, qword [rsp + 0x48]
mov rcx, qword [rdi + 0x94]
mov dword [rsp + 0x30], eax
mov dword [r10 + 0x20], eax
call r11
mov rcx, rax
test rcx, rcx
jne 0x1400ffff9
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov r11, rsp
xor r8d, r8d
mov rax, qword [rsp + 0x50]
xor r9d, r9d
mov rdx, qword [rdi + 0x68]
mov r10d, dword [rdi + 8]
mov dword [r11 + 0x20], r10d
mov qword [r11 + 0x28], 0
call rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400ffff1
mov rdx, rbp
lea r9, [rsp + 0x30]
mov rax, qword [r9 + 0x10]
mov r8d, dword [rdi + 0x90]
mov rcx, qword [r9 + 8]
call rax
jmp 0x14010006a
mov eax, dword [rsp + 0x30]
test eax, eax
jbe 0x14010006e
lea r9, [rsp + 0x30]
add rbx, rax
mov rdx, rbx
mov r10, qword [r9 + 0x10]
mov r8d, dword [rdi + 0x90]
mov rcx, qword [r9 + 8]
call r10
test eax, eax
jne 0x140100045
cmp rbx, rbp
je 0x1400ffff1
mov r9d, dword [rbp]
xor r8d, r8d
mov rax, qword [rdi + 0x74]
mov ebp, dword [rax + r8]
add ebp, r9d
mov dword [r8 + rbx], ebp
add r8, 4
cmp r8, 0x14
jl 0x14010007e
mov rcx, rsi
mov rdx, rbx
call qword [r12]
test rax, rax
je 0x1400ffff1
xor ecx, ecx
mov r8d, 0x1000
mov edx, dword [rdi + 0x90]
mov r9d, dword [rdi + 0xa4]
call rax
mov rbp, rax
mov ebx, dword [rdi + 0x44]
push 8
pop rdx
mov rax, qword [rdi + 0x4c]
add rbx, rax
mov ecx, dword [rbx + 4]
mov eax, dword [rdx + rbx]
add eax, ecx
mov dword [rdx + rbp], eax
add rdx, 4
cmp rdx, 0x5000
jl 0x1401000d4
mov eax, dword [rdi + 0x8c]
mov dword [rbp + 8], eax
mov ebx, dword [rbp + 0xc]
add rbx, rbp
mov edx, dword [rdi + 0x5c]
add rbx, rdx
mov ecx, dword [rdi + 0x5c]
add rcx, rbp
call rbx
jmp 0x1400ffff1
Function at 0x140101c54
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140101c6a
mov al, 1
jmp 0x140101cca
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140101c7b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140101cc8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140103c2c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140101cc8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140101cc8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140101cc8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140101cca
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401037e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140103867
mov rsi, rbx
cmp word [rax], bp
je 0x140103826
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140103810
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14010380c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400f9e2c
mov rdi, rax
test rax, rax
je 0x140103854
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400e1d70
mov rbp, rdi
xor ecx, ecx
call fcn.1400f9df0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140107a70
Capabilities:
Parse pe header

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