joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401ae150
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rbp + 0x37], rax
movzx ebx, cx
xor r15d, r15d
mov qword [rbp - 0x11], r15
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x1401ae331
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
add rax, 0x18
mov qword [rbp - 0x11], rax
mov r8d, ebx
lea rdx, str.._c:
lea rcx, [rbp - 0x11]
call fcn.14001c4c0
xor r14b, r14b
mov sil, 1
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r15 + 3]
mov rbx, qword [rbp - 0x11]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1401ae2de
mov qword [rbp + 0x17], 8
mov dword [rbp - 0x19], r15d
xor eax, eax
mov qword [rbp - 9], rax
mov dword [rbp - 1], eax
mov qword [rsp + 0x38], r15
lea rax, [rbp - 0x19]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], InitCommonControls
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 0xc]
lea r8, [rbp + 0x17]
mov edx, 0x2d1400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401ae25a
cmp dword [rbp - 0x19], 0xc
jne 0x1401ae25a
cmp byte [rbp - 1], r14b
setne r14b
jmp 0x1401ae260
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbp + 0x27], 7
mov dword [rbp - 0x19], r15d
xor eax, eax
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], eax
mov qword [rsp + 0x38], r15
lea rax, [rbp - 0x19]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], InitCommonControls
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, InitCommonControls
lea r8, [rbp + 0x27]
mov edx, 0x2d1400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401ae2c0
cmp dword [rbp - 0x19], 0xc
jne 0x1401ae2c0
cmp byte [rbp + 0xf], 0
setne sil
jmp 0x1401ae2c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14b, r14b
je 0x1401ae2de
test sil, sil
jne 0x1401ae2de
mov dil, 1
jmp 0x1401ae2e1
xor dil, dil
lea rdx, [rbx - 0x18]
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1401ae304
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140038ca6.0]
movzx eax, dil
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1401f74b0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80004005
call fcn.140019300
int3
Function at 0x1401ae340
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov rax, qword [rcx]
cmp dword [rax - 0x10], 2
jge 0x1401ae377
mov rdx, qword [rcx]
jmp 0x1401ae512
cmp word [rax + 2], 0x3a
je 0x1401ae386
mov rdx, qword [rcx]
jmp 0x1401ae512
movzx ecx, word [rax]
call fcn.140218e28
mov esi, eax
lea ecx, [rax - 0x63]
cmp cx, 0x17
ja 0x1401ae50f
mov qword [rsp + 0x28], 0
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x1401ae554
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
add rax, 0x18
mov qword [rsp + 0x28], rax
movzx r8d, si
lea rdx, str._c:_
lea rcx, [rsp + 0x28]
call fcn.14001c4c0
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x1401ae42b
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401ae419
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rcx, rdi
call fcn.1400192b0
mov eax, 3
jmp 0x1401ae537
cmp eax, 4
jne 0x1401ae466
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401ae454
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rcx, rdi
call fcn.1400192b0
mov eax, 4
jmp 0x1401ae537
cmp eax, 3
je 0x1401ae49c
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401ae48f
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rcx, rdi
call fcn.1400192b0
jmp 0x1401ae535
movzx ecx, si
call fcn.1401ae150
nop
test al, al
je 0x1401ae4dc
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401ae4cd
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rcx, rdi
call fcn.1400192b0
mov eax, 1
jmp 0x1401ae537
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401ae500
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rcx, rdi
call fcn.1400192b0
mov eax, 2
jmp 0x1401ae537
mov rdx, qword [rdi]
sub rdx, 0x18
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401ae535
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401f74b0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x80004005
call fcn.140019300
int3
Function at 0x1401b0010
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rsi
push rdi
push r14
mov eax, 0x1068
call fcn.14022c7f0
sub rsp, rax
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
cmp dword [rsp + 0x10c0], 0
mov rbp, r9
mov r14, qword [rsp + 0x10b8]
mov rsi, rcx
jne 0x1401b01ae
cmp r8d, 2
jne 0x1401b0107
mov qword [rsp + 0x1060], rbx
mov qword [rsp + 0x1058], r12
mov r12, qword [rcx + 0x40]
mov rcx, qword [rcx + 0x28]
mov qword [rsp + 0x1050], r15
call fcn.1401f71fc
mov rcx, qword [rsi + 8]
xor edi, edi
mov rbx, rax
mov r15d, edi
lea edx, [rdi - 4]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
cmp rbx, rax
mov rbx, qword [rsp + 0x1060]
jne 0x1401b00cb
mov r8, qword [rsi + 0x40]
lea edx, [rdi - 4]
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
test rax, rax
je 0x1401b00ce
mov rcx, qword [sym.imp.USER32.dll_DefWindowProcW]
mov r15, qword [rsi + 8]
mov qword [rsi + 0x40], rcx
mov qword [rsi + 8], rdi
mov rdi, r15
mov r9, qword [rsp + 0x10b0]
mov r8, rbp
mov edx, 2
mov rcx, rdi
mov rax, r12
call qword [case.0x140038ca6.0]
mov r15, qword [rsp + 0x1050]
mov r12, qword [rsp + 0x1058]
mov qword [r14], rax
mov eax, 1
jmp 0x1401b01b0
cmp r8d, 0x102
jne 0x1401b01ae
cmp rbp, 0x39
ja 0x1401b012a
movabs rax, 0x3ff4000ffffffff
bt rax, rbp
jb 0x1401b0134
lea rax, [r9 - 0x7f]
cmp rax, 0x7f
ja 0x1401b019f
cmp rbp, 0x2e
jne 0x1401b01a9
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x40]
mov r8d, 0x800
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, ebp
lea rcx, [rsp + 0x40]
call fcn.1401f979c
test rax, rax
je 0x1401b01a9
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x30]
mov edx, 0xb0
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x30]
sub edx, eax
je 0x1401b019f
lea rcx, [rsp + 0x40]
lea rcx, [rcx + rax*2]
nop
cmp word [rcx], 0x2e
je 0x1401b01a9
add rcx, 2
sub edx, 1
jne 0x1401b0190
xor edi, edi
mov qword [r14], rdi
lea eax, [rdi + 1]
jmp 0x1401b01b0
xor edi, edi
mov qword [r14], rdi
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401f74b0
add rsp, 0x1068
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401b19b0
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x60], rax
call fcn.14012bfe0
mov dword [rax + 0xcc], 0
mov eax, dword [0x140315cb4]
test eax, eax
jne 0x1401b19fe
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x28]
shr rax, 0x14
mov dword [0x140315cb4], eax
cmp eax, 0xfa0
jl 0x1401b1a7c
call fcn.14012bfe0
cmp dword [rax + 0x118], 0
jne 0x1401b1a7c
call fcn.140166630
cmp dword [rax + 0x63c], 0
jne 0x1401b1a40
call fcn.14012bfe0
mov rcx, rax
call fcn.14012c570
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401f74b0
add rsp, 0x78
ret
mov qword [rsp + 0x70], rbx
call fcn.1401ae9d0
mov ebx, eax
call fcn.140166630
cmp dword [rax + 0x63c], ebx
ja 0x1401b1a6a
call fcn.140166630
mov ecx, dword [rax + 0x63c]
inc ecx
cmp ecx, ebx
ja 0x1401b1a77
call fcn.14012bfe0
mov rcx, rax
call fcn.14012c570
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401f74b0
add rsp, 0x78
ret
Function at 0x1401ba380
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor ebp, ebp
lea rsi, [rcx + 0x98]
cmp dword [rcx + 0x24], 0xcc
mov rbx, rcx
je 0x1401ba3bc
mov rax, qword [rcx + 0x200]
call qword [rax]
mov dword [rsi], ebp
mov dword [rbx + 0x24], 0xcc
mov rax, qword [rbx + 0x200]
mov qword [rsp + 0x30], rdi
cmp byte [rax + 0x10], bpl
je 0x1401ba440
nop
mov eax, dword [rsi]
cmp eax, dword [rbx + 0x78]
jae 0x1401ba418
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401ba3f6
mov dword [rcx + 8], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rbx + 0x78]
mov dword [rcx + 0xc], eax
mov rcx, rbx
mov rax, qword [rbx + 0x10]
call qword [rax]
mov rax, qword [rbx + 0x208]
xor r9d, r9d
mov edi, dword [rsi]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rsi]
cmp eax, edi
je 0x1401ba46e
cmp eax, dword [rbx + 0x78]
jb 0x1401ba3d7
mov rax, qword [rbx + 0x200]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx + 0x200]
mov rcx, rbx
call qword [rax]
mov dword [rsi], ebp
mov rax, qword [rbx + 0x200]
cmp byte [rax + 0x10], bpl
jne 0x1401ba3d0
cmp byte [rbx + 0x59], bpl
mov al, 1
setne bpl
add ebp, 0xcd
mov dword [rbx + 0x24], ebp
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
xor al, al
jmp 0x1401ba453
Function at 0x1401c11c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r13
push r15
sub rsp, 0x30
mov r13d, dword [rcx + 0x64]
mov rdi, rcx
mov rbx, qword [rcx + 0x250]
cmp r13d, 1
mov r8d, 0x2fe
mov qword [rsp + 0x68], rbx
sete al
mov edx, 1
mov byte [rbx + 0x38], al
mov rax, qword [rcx + 8]
mov ecx, 0x100
mov r9d, dword [rdi + 0x7c]
cmovne r8d, ecx
mov rcx, rdi
call qword [rax + InitCommonControls]
mov ebp, dword [rbx + 0x28]
xor r15d, r15d
mov qword [rbx + 0x30], rax
cmp dword [rdi + 0x7c], r15d
jle 0x1401c1341
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x28], r12
lea r12, [rbx + 0x3c]
mov qword [rsp + 0x20], r14
xor r14d, r14d
nop dword [rax]
mov esi, dword [r12]
mov eax, ebp
cdq
idiv esi
mov ebp, eax
cmp r13d, 1
jne 0x1401c125d
mov rax, qword [rbx + 0x30]
add qword [rax + r14], 0xff
mov rax, qword [rbx + 0x30]
lea r11d, [rsi*2 - 2]
xor r8d, r8d
xor r10d, r10d
mov rdi, qword [r14 + rax]
lea eax, [rsi + 0xfe]
cdq
idiv r11d
xor ebx, ebx
mov r9d, eax
cmp r10d, r9d
jle 0x1401c12b7
imul ecx, r8d, 0x1fe
add ecx, 0xfe
add ecx, esi
nop word [rax + rax]
add ecx, 0x1fe
inc r8d
mov eax, ecx
cdq
idiv r11d
mov r9d, eax
cmp r10d, eax
jg 0x1401c12a0
movzx eax, r8b
inc r10d
movzx ecx, bpl
imul ecx, eax
mov byte [rbx + rdi], cl
inc rbx
cmp rbx, 0xff
jle 0x1401c1282
cmp r13d, 1
jne 0x1401c1313
mov ecx, r13d
lea rdx, [rdi - 1]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi]
mov byte [rdx], al
lea rdx, [rdx - 1]
movzx eax, byte [rdi + 0xff]
mov byte [rdi + rcx + 0xff], al
inc rcx
cmp rcx, 0xff
jle 0x1401c12f0
mov rax, qword [rsp + 0x60]
inc r15d
mov rbx, qword [rsp + 0x68]
add r12, 4
add r14, 8
cmp r15d, dword [rax + 0x7c]
jl 0x1401c1240
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r13
pop rdi
pop rbp
pop rbx
ret
Function at 0x1401f8270
Capabilities:
Parse pe header

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

Function at 0x140206450
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.14022c7f0
sub rsp, rax
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14021c7d0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14020649f
mov rax, rbp
jmp 0x1402065a7
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 + 0x30b010]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14021db08
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x30b010]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1402065a3
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 0x1402065a3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14021db08
test rax, rax
js 0x1402065a3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1402065a3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140206595
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140206595
cmp byte [rcx], 0xd
jne 0x14020657b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14020658a
cmp byte [rcx + 1], 0xa
jne 0x14020658a
inc rcx
jmp 0x14020658a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x300460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14020655d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1402065a7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401f74b0
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 0x140216cd8
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 0x140216d0f
call fcn.1401fed34
mov dword [rax], 0x16
call fcn.1401feb94
xor eax, eax
jmp 0x140216d9d
mov rdx, r9
mov rcx, r8
call fcn.140216c74
mov rbx, rax
test rax, rax
je 0x140216d9a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140216ba0]
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 0x140216d87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401feca8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140216d6e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140216d7d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14021b3f4
jmp 0x140216d9a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140216d97
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 0x140219c18
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140219a14
Function at 0x14021dbb4
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, [0x14030b010]
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 0x14021dc0b
cmp word [rdx], r13w
jne 0x14021dc0b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14021dc10
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14021dd35
mov r11d, InitCommonControls
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14021dd56
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14021dc49
mov rdx, r9
mov word [rbx], cx
jmp 0x14021dc70
cmp r9, r8
jae 0x14021dc80
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 0x14021dc2a
jmp 0x14021dd35
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 0x14021dd2a
cmp dword [rsp + 0x80], esi
je 0x14021dd2a
lea r8, [0x14030b010]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14021dd02
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14021dcd2
mov word [rbx], r13w
jmp 0x14021dd32
mov ecx, InitCommonControls
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 0x14021dcdf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14021dd32
cmp word [rsp + 0x70], r13w
jne 0x14021dd0f
cmp rbx, r14
je 0x14021dccc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14021db10
cmp word [rsp + 0x70], r13w
je 0x14021dd35
mov ecx, InitCommonControls
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, [0x14030b010]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14021dd2f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14021dd35
Function at 0x14021f468
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14021f47e
mov al, 1
jmp 0x14021f4de
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14021f48f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14021f4dc
mov ecx, dword [rcx + 0x18]
nop
call fcn.1402260c8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14021f4dc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14021f4dc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14021f4dc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14021f4de
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140225868
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.14021b090
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 0x140225909
cmp ebx, dword [rsp + 0x30]
je 0x140225902
test esi, esi
je 0x140225902
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1402258dd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1402258ea
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1402258c7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1402258ee
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14022590b
mov eax, 1
jmp 0x14022590b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140227204
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 0x14022728b
mov rsi, rbx
cmp word [rax], bp
je 0x14022724a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140227234
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140227230
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14021b430
mov rdi, rax
test rax, rax
je 0x140227278
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14022e460
mov rbp, rdi
xor ecx, ecx
call fcn.14021b3f4
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 0x14022b0bc
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.14021db10
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14021db10
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14022b20c
cmp rax, 0xffffffffffffffff
je 0x14022b20c
xor edi, edi
test rbp, rbp
jle 0x14022b1b7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14021f7e4
mov rbx, rax
test rax, rax
jne 0x14022b144
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14022b1ad
mov edx, 0x8000
mov ecx, r14d
call fcn.14021ab40
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.14021ef6c
cmp eax, 0xffffffff
je 0x14022b18d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14022b154
mov edx, r15d
mov ecx, r14d
call fcn.14021ab40
jmp 0x14022b1ad
cmp byte [rsi + 0x38], dil
je 0x14022b1a4
cmp dword [rsi + 0x34], 5
jne 0x14022b1a4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], InitCommonControls
cmp byte [rsi + 0x30], dil
je 0x14022b1ad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14021b3f4
jmp 0x14022b220
jns 0x14022b220
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14021db10
cmp rax, 0xffffffffffffffff
jne 0x14022b1d8
cmp byte [rsi + 0x30], dil
je 0x14022b220
mov edi, dword [rsi + 0x2c]
jmp 0x14022b220
mov ecx, r14d
call fcn.1402260c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14022b220
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, InitCommonControls
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], InitCommonControls
jmp 0x14022b220
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14022b219
mov eax, dword [rsi + 0x2c]
jmp 0x14022b21e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14021db10
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 0x14022c154
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14022c1cc
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14022c1cc
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14022c1cc
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14022c1c0
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14022c1de
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14022c1ae
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14022c1ce
Function at 0x14022c720
Capabilities:
Parse pe header

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