joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003e80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006590]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003ea0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003ea8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003ea0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003efd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140003ef4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003ea0
add rax, 0x28
cmp rax, r9
jne 0x140003ee0
xor eax, eax
ret

Function at 0x140003f00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006590]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003f1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003f28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003f1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003fc0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006590]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003fdf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003fe8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1801d24b6
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dword [rsp + 5], r8d
push word [rsp + 6]
pop cx
lea rdx, [rax + rsi]
mov r8b, 0xf1
jmp 0x1801d2455

Function at 0x1801d2556
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov word [rsp + 0xc], r15w
jmp 0x1801d2562
push qword [rsp + 3]
mov r10, 0x4108a73a
jmp 0x1801d2593
mov qword [rsp + 0xc], r10
mov r13, qword [rsp + 0x18]
rdtsc
jmp 0x1801d25e1
bswap r8
mov r9d, eax
mov rcx, qword [rsp + 0x20]
bswap ebx
rdtsc
mov r12b, 0x1b
jmp 0x1801d2686
mov rcx, 0xffffffffcf6079fe
lea r10, [0x2c1ddf6a]
mov rdx, 0xffffffffeb186475
mov edx, r10d
mov ax, r8w
cpuid
jmp 0x1801d25c3
sete r8b
call fcn.1801d264f
lea rbx, [rbp + riz + 0x1cdd987a]
mov rax, qword [rsp + 0x50]
mov r9, qword [rsp]
xchg bx, r9w
jmp 0x1801d26c4
lea rbx, [rdx + r13]
mov r8w, 0x62b3
bswap r10
mov r15b, byte [rsp]
jmp 0x1801d26fd
mov dl, byte [rsp]
mov r10, qword [rsp + 0x58]
mov r15, qword [rsp]
lea r15, [r11 + r11]
setne bl
mov dl, r10b
jmp 0x1801d2764
lea rdx, [0x13a25b25]
call fcn.1801d2736
fcomp qword [rbp - 0x33]
xchg esp, eax
push rcx
sub al, 0x3f
invalid
mov edx, r11d
mov r9, qword [rsp + 0x60]
lea rbx, [rax + rbx]
mov r8d, dword [rsp]
xchg r8, rdx
mov r15b, 0xa
jmp 0x1801d274c

Function at 0x1801d2808
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
xchg qword [rsp], r15
mov r15, qword [rsp + 0x90]
bswap r8d
jmp 0x1801d2811
lea r8, [r8 + r11]
xchg r15d, r8d
jmp 0x1801d27f2
bswap r8d
bswap r8
mov r8, r9
mov r8, qword [rsp]
push r15w
lea r8, [r8 + rbp]
jmp 0x1801d28d0
mov rax, qword gs:[0x60]
mov rax, qword [rax + riz + 0x18]
mov rax, qword [rax + riz + 0x30]
jmp 0x1801d2848
mov r8, qword [rsp]
bswap r8
lea rsp, [rsp + 2]
mov r8, qword [rsp + 0x9e]
lea rsp, [rsp + 0xa8]
jmp 0x1801d286f
Function at 0x1400016d0
Capabilities:
Log keystrokes via polling
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jb 0x14000170d
nop dword [rax + rax]
xor edx, edx
lea ecx, [rdx + 0x32]
call qword [sym.imp.KERNEL32.dll_SleepEx]
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1400016f0
mov r9d, 0x40
lea r8, str.Injector
lea rdx, str.Stopping_task_manager_monitoring.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140002304
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000234e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000234e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000234e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000234e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000234e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002350
xor al, al
add rsp, 0x28
ret
Function at 0x180004970
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
push rsi
push rdi
sub rsp, 0x38
lea rax, [rsp + 0x18]
lea rcx, str.cNmPUSrybeWKYfuMjV
mov rdi, rax
mov rsi, rcx
mov ecx, 0x13
rep movsb byte [rdi], byte [rsi]
mov eax, 1
mov word [rsp + 4], ax
mov qword [rsp + 8], 8
mov byte [rsp + 1], 0
jmp 0x1800049c2
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x180004a4b
mov byte [rsp], 0
jmp 0x1800049db
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x180004a46
movzx eax, byte [rsp + 1]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 0x50]
shl edx, 2
movzx edi, byte [rsp + 1]
shl edi, 2
lea edx, [rdi + rdx*4]
movzx edi, byte [rsp]
add edx, edi
movsxd rdx, edx
mov rdi, qword [rsp + 0x60]
movzx edx, byte [rdi + rdx]
movzx eax, byte [rax + rcx]
xor eax, edx
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 1]
mov rdi, qword [rsp + 0x58]
lea rdx, [rdi + rdx*4]
mov byte [rdx + rcx], al
mov byte [rsp + 2], 0x4d
mov qword [rsp + 0x10], 3
jmp 0x1800049d2
jmp 0x1800049b7
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x180004a60
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
mov byte [rsp + 2], 0
lea rax, [rsp + 0x40]
lea rcx, str.IkUzDmuCAXJKTVgMoWlOYsaxfqrQScLdebNntBHyvEPhRw
mov rdi, rax
mov rsi, rcx
mov ecx, 0x2f
rep movsb byte [rdi], byte [rsi]
mov byte [rsp + 1], 0
jmp 0x180004a9b
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x180004b34
mov byte [rsp], 0
jmp 0x180004ab8
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x180004b2f
movzx eax, byte [rsp]
mov rcx, qword [rsp + 0x90]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp + 1]
movzx eax, byte [rax + rcx]
lea rcx, [0x18004be60]
movzx edx, byte [rsp]
mov rdi, qword [rsp + 0x90]
lea rdx, [rdi + rdx*4]
movzx edi, byte [rsp + 1]
movzx eax, byte [rcx + rax]
mov byte [rdx + rdi], al
mov qword [rsp + 8], 0
mov byte [rsp + 3], 0
lea rax, [rsp + 0x18]
lea rcx, str.xODiBKYyjMJbTtIEguvlaPQFdkHSpnWNzhGZmLR
mov rdi, rax
mov rsi, rcx
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x10], 4
jmp 0x180004aaf
jmp 0x180004a90
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x180005800
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x108
mov rax, qword [0x180052080]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov byte [rsp + 0x28], 0
lea rax, [rsp + 0x54]
lea rcx, str.MSouW
mov rdi, rax
mov rsi, rcx
mov ecx, 6
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x48], 0
mov eax, 5
mov word [rsp + 0x30], ax
mov eax, 8
mov word [rsp + 0x34], ax
mov byte [rsp + 0x29], 0
mov byte [rsp + 0x2a], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0x10
jmp 0x180005894
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x130]
cmp dword [rsp + 0x24], eax
jae 0x180005a4c
lea rax, [rsp + 0xe8]
mov rcx, qword [rsp + 0x120]
mov rdi, rax
lea rsi, [rcx + 0xb0]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xb8]
lea rcx, str.exLnOQTfEMvzHUpylFXSdctqhKJIYgRasPABiCwWjmk
mov rdi, rax
mov rsi, rcx
mov ecx, 0x2c
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x60], 0
mov eax, 8
mov word [rsp + 0x38], ax
mov eax, 2
mov word [rsp + 0x3c], ax
mov byte [rsp + 0x2b], 0
mov dword [rsp + 0x4c], 8
mov rax, qword [rsp + 0x120]
mov rdx, rax
lea rcx, [rsp + 0xe8]
call fcn.1800055e0
mov dword [rsp + 0x20], 0xf
jmp 0x180005938
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x1800059ca
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x120]
movzx eax, byte [rcx + rax + 0xb0]
cmp eax, 0xff
jne 0x180005998
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x120]
mov byte [rcx + rax + 0xb0], 0
jmp 0x18000592e
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x120]
movzx eax, byte [rcx + rax + 0xb0]
inc eax
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x120]
mov byte [rdx + rcx + 0xb0], al
jmp 0x1800059ca
mov dword [rsp + 0x20], 0
mov eax, 4
mov word [rsp + 0x40], ax
mov byte [rsp + 0x2c], 0x79
mov byte [rsp + 0x2d], 0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x128]
movzx eax, byte [rcx + rax]
movsxd rcx, dword [rsp + 0x20]
movzx ecx, byte [rsp + rcx + 0xe8]
xor eax, ecx
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x128]
mov byte [rdx + rcx], al
mov byte [rsp + 0x2e], 0x62
mov dword [rsp + 0x50], 5
mov eax, 6
mov word [rsp + 0x44], ax
lea rax, [rsp + 0x90]
lea rcx, str.RslZEqvriBmUkJCQaWIDOeFVjpntXSzGNbTgx
mov rdi, rax
mov rsi, rcx
mov ecx, 0x26
rep movsb byte [rdi], byte [rsi]
jmp 0x180005880
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1800184f0
add rsp, 0x108
pop rdi
pop rsi
ret
Function at 0x18000a4e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x180052080]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x80], 0
jg 0x18000a514
xor eax, eax
jmp 0x18000a6c0
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x18000a53c
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.18000b1b0
jmp 0x18000a6c0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
call fcn.18000ed60
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x18000a5d8
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.18000a6e0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x70]
call fcn.18000ef20
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.18000fc70
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call fcn.18000ee80
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x18000a6b0
mov rcx, qword [rsp + 0x70]
call fcn.18000e750
mov qword [rsp + 0x38], 0xfff
cmp qword [rsp + 0x40], 0xfff
jbe 0x18000a678
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.180023e04
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x28], 0xfff
je 0x18000a676
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x18000a6c0
jmp 0x18000a5fe
cmp qword [rsp + 0x40], 0
jbe 0x18000a6b0
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.180023e04
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800184f0
add rsp, 0x68
ret

Function at 0x18002d3ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18002d402
mov al, 1
jmp 0x18002d462
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18002d413
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18002d460
mov ecx, dword [rcx + 0x18]
nop
call fcn.180033910
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18002d460
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18002d460
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18002d460
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18002d462
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18002ea80
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.180019000
sub rsp, rax
mov rax, qword [0x180052080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18002adb4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18002eacf
mov rax, rbp
jmp 0x18002ebd7
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x54940]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18002e6bc
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x54940]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18002ebd3
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 0x18002ebd3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18002e6bc
test rax, rax
js 0x18002ebd3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18002ebd3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18002ebc5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18002ebc5
cmp byte [rcx], 0xd
jne 0x18002ebab
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18002ebba
cmp byte [rcx + 1], 0xa
jne 0x18002ebba
inc rcx
jmp 0x18002ebba
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x524c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18002eb8d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18002ebd7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800184f0
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 0x18002ed00
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, [0x180054940]
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 0x18002ed57
cmp word [rdx], r13w
jne 0x18002ed57
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18002ed5c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18002ee81
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18002eea2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18002ed95
mov rdx, r9
mov word [rbx], cx
jmp 0x18002edbc
cmp r9, r8
jae 0x18002edcc
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 0x18002ed76
jmp 0x18002ee81
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 0x18002ee76
cmp dword [rsp + 0x80], esi
je 0x18002ee76
lea r8, [0x180054940]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18002ee4e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18002ee1e
mov word [rbx], r13w
jmp 0x18002ee7e
mov ecx, 0xd
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 0x18002ee2b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18002ee7e
cmp word [rsp + 0x70], r13w
jne 0x18002ee5b
cmp rbx, r14
je 0x18002ee18
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18002e6c4
cmp word [rsp + 0x70], r13w
je 0x18002ee81
mov ecx, 0xd
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, [0x180054940]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18002ee7b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18002ee81
Function at 0x180032f60
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180032f90
xor eax, eax
jmp 0x180033053
mov rbp, rbx
cmp word [rax], si
je 0x180032fb5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180032f9c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180032f98
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180031648
movsxd r14, eax
test eax, eax
jne 0x180032ff3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180032f89
mov rcx, r14
call fcn.180029a20
mov rdi, rax
test rax, rax
jne 0x18003300c
xor ecx, ecx
call fcn.180028d18
jmp 0x180032fe8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180031648
test eax, eax
jne 0x18003303d
mov rcx, rdi
call fcn.180028d18
jmp 0x180033047
xor ecx, ecx
call fcn.180028d18
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180037718
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.18002b304
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 0x1800377b9
cmp ebx, dword [rsp + 0x30]
je 0x1800377b2
test esi, esi
je 0x1800377b2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18003778d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18003779a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180037777
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18003779e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800377bb
mov eax, 1
jmp 0x1800377bb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18003a7ec
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.18002e6c4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18002e6c4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18003a93c
cmp rax, 0xffffffffffffffff
je 0x18003a93c
xor edi, edi
test rbp, rbp
jle 0x18003a8e7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180028ca0
mov rbx, rax
test rax, rax
jne 0x18003a874
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18003a8dd
mov edx, 0x8000
mov ecx, r14d
call fcn.18003a670
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.18002e14c
cmp eax, 0xffffffff
je 0x18003a8bd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18003a884
mov edx, r15d
mov ecx, r14d
call fcn.18003a670
jmp 0x18003a8dd
cmp byte [rsi + 0x38], dil
je 0x18003a8d4
cmp dword [rsi + 0x34], 5
jne 0x18003a8d4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18003a8dd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180028d18
jmp 0x18003a950
jns 0x18003a950
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18002e6c4
cmp rax, 0xffffffffffffffff
jne 0x18003a908
cmp byte [rsi + 0x30], dil
je 0x18003a950
mov edi, dword [rsi + 0x2c]
jmp 0x18003a950
mov ecx, r14d
call fcn.180033910
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18003a950
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18003a950
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18003a949
mov eax, dword [rsi + 0x2c]
jmp 0x18003a94e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18002e6c4
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 0x18003b170
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18003b198
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18003b198
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002538
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002582
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002582
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002582
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002582
cmp dword [rcx + 0x84], 0xe
jbe 0x140002582
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002584
xor al, al
add rsp, 0x28
ret
Function at 0x1400021d8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14d, ecx
call fcn.140002194
mov rdx, qword [rax + 0x18]
mov rbp, qword [rdx + 0x20]
mov r11, rbp
mov rcx, r11
call fcn.1400021d0
mov r11, qword [r11]
mov r10, qword [rax + 0x30]
test r10, r10
je 0x140002263
movsxd rax, dword [r10 + 0x3c]
mov ecx, dword [rax + r10 + 0x88]
test ecx, ecx
je 0x140002263
lea rdi, [r10 + rcx]
mov ecx, dword [rdi + 0xc]
add rcx, r10
call fcn.1400021a0
mov esi, dword [rdi + 0x20]
xor ebx, ebx
add rsi, r10
mov r15d, eax
cmp dword [rdi + 0x18], ebx
jbe 0x140002263
mov ecx, dword [rsi]
add rcx, r10
call fcn.1400021a0
add eax, r15d
cmp r14d, eax
je 0x140002283
inc ebx
add rsi, 4
cmp ebx, dword [rdi + 0x18]
jb 0x140002246
cmp r11, rbp
jne 0x140002203
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov ecx, dword [rdi + 0x24]
add rcx, r10
movzx r8d, word [rcx + rbx*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + r8*4]
add rax, r10
jmp 0x14000226a