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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14007d040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rdx
mov qword [rbp + 0xf], rdx
movaps xmm0, xmmword [r8]
movdqu xmmword [rbp + 0x37], xmm0
lea r9, [rbp + 0xf]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x37]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
movdqa xmm1, xmmword [0x140071730]
movdqu xmmword [rbp + 0x27], xmm1
mov byte [rbp + 0x17], 0
test eax, eax
js 0x140011a06
mov r8, qword [rbp + 0xf]
lea rdx, [rbp - 0x11]
call fcn.1400117c8
mov rdx, rax
lea rcx, [rbp + 0x17]
call fcn.14000352c
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x140011a15
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400119ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011ac9
call fcn.14002ed50
jmp 0x140011a15
mov edx, eax
call fcn.1400031b0
mov rcx, rax
call fcn.140004f08
mov rbx, qword [rbp + 0xf]
mov edx, 2
mov rcx, rbx
call fcn.14002ed50
test rbx, rbx
je 0x140011a33
mov qword [rbp + 0xf], 0x8123
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0xf
cmova rdx, qword [rbp + 0x17]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
and qword [rdi + 0x10], 0
and qword [rdi + 0x18], 0
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140011a55
mov rcx, rdi
call fcn.14000510c
nop
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x140011a9f
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011a9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011ac3
call fcn.14002ed50
mov rax, rdi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14002ed30
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14003a92c
nop
call fcn.14003a92c
nop
int3
Function at 0x1400127d8
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14007d040]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, rdx
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x50], 0x238
xor ebp, ebp
xor edx, edx
lea ecx, [rbp + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x140012891
mov rcx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x14001283e
mov rcx, qword [rdi]
mov r8, qword [rdi + 0x10]
add r8, rcx
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140012852
mov rdx, qword [rdi]
lea rcx, [rsp + 0x20]
call fcn.1400089b4
cmp qword [rax + 0x18], 7
jbe 0x140012866
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x7c]
call fcn.14003aa94
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140008950
test ebx, ebx
je 0x140012897
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140012831
jmp 0x14001289b
mov ebp, dword [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x1400128db
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400128d6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140012916
mov rcx, r8
call fcn.14002ed50
and qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov eax, ebp
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14002ed30
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14003a92c
int3
Function at 0x14001291c
Capabilities:
Contain obfuscated stackstrings
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x58]
sub rsp, 0x150
mov rax, qword [0x14007d040]
xor rax, rsp
mov qword [rbp + 0x48], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rax
mov dword [rsp + 0x20], 0x7265706f
mov dword [rsp + 0x24], 0x78652e61
mov byte [rsp + 0x28], 0x65
lea rax, [rsp + 0x20]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x29]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140003408
mov r8, rax
lea rdx, [rbp - 0x30]
call fcn.140002c64
nop
mov dword [rsp + 0x30], 0x6f726863
mov dword [rsp + 0x34], 0x652e656d
mov word [rsp + 0x38], 0x6578
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x3a]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x68]
call fcn.140003408
mov r8, rax
lea rdx, [rbp - 0x10]
call fcn.140002c64
nop
mov dword [rsp + 0x40], 0x776f7262
mov dword [rsp + 0x44], 0x2e726573
mov word [rsp + 0x48], 0x7865
mov byte [rsp + 0x4a], 0x65
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x4b]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x50]
call fcn.140003408
mov r8, rax
lea rdx, [rbp + 0x10]
call fcn.140002c64
nop
lea rax, [rbp - 0x30]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x30]
call fcn.14001a344
nop
lea r9, [fcn.1400034d0]
mov edx, 0x20
lea r8d, [rdx - 0x1d]
lea rcx, [rbp - 0x30]
call fcn.14002edcc
xor esi, esi
mov rax, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x30]
sub rax, rcx
sar rax, 5
test rax, rax
je 0x140012b07
xor ebx, ebx
lea r8, [rbx + rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
and qword [rsp + 0x70], 0
and qword [rsp + 0x78], 0
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x140012aa2
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rsp + 0x60]
call fcn.1400051cc
lea rdx, [rsp + 0x60]
call fcn.1400127d8
test eax, eax
je 0x140012ae8
mov r8d, eax
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140012ae8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rsi
add rbx, 0x20
mov rax, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x30]
sub rax, rcx
sar rax, 5
cmp rsi, rax
jb 0x140012a7d
lea rcx, [rbp + 0x30]
call fcn.14000b1f8
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.14002ed30
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14001b9dc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x14007d040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov edi, r8d
mov rbx, rdx
mov qword [rbp - 9], rdx
and dword [rbp - 0x29], 0
mov dword [rbp - 0x69], 0x64636261
mov dword [rbp - 0x65], 0x68676665
mov dword [rbp - 0x61], 0x6c6b6a69
mov dword [rbp - 0x5d], 0x706f6e6d
mov dword [rbp - 0x59], 0x74737271
mov dword [rbp - 0x55], 0x78777675
mov dword [rbp - 0x51], 0x42417a79
mov dword [rbp - 0x4d], 0x46454443
mov dword [rbp - 0x49], 0x4a494847
mov dword [rbp - 0x45], 0x4e4d4c4b
mov dword [rbp - 0x41], 0x5251504f
mov dword [rbp - 0x3d], 0x56555453
mov dword [rbp - 0x39], 0x5a595857
mov dword [rbp - 0x35], 0x34333231
mov dword [rbp - 0x31], 0x38373635
mov word [rbp - 0x2d], 0x3039
lea rax, [rbp - 0x69]
mov qword [rbp - 0x19], rax
lea rax, [rbp - 0x2b]
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 1]
call fcn.140003408
mov r8, rax
lea rdx, [rbp + 0x17]
call fcn.140002c64
nop
mov esi, dword [rbp + 0x27]
xor ecx, ecx
call fcn.14003d590
mov rcx, rax
call fcn.14003d570
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
and qword [rbx + 0x10], 0
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rbp - 0x29], 1
movsxd rdx, edi
cmp edi, 0xf
je 0x14001baf4
jbe 0x14001baf0
mov rcx, rbx
call fcn.14001d154
and qword [rbx + 0x10], 0
test edi, edi
jle 0x14001bb50
call fcn.14003d540
cdq
idiv esi
movsxd rcx, edx
lea rax, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0xf
cmova rax, qword [rbp + 0x17]
mov r9b, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x14001bb3b
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14001bb30
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14001bb4a
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140005818
sub rdi, 1
jne 0x14001baf4
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x14001bb87
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bb82
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001bba9
call fcn.14002ed50
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14002ed30
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
call fcn.14003a92c
int3
Function at 0x14001bbb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x14007d040]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor edx, edx
mov r8d, 0x90
lea rcx, [rbp - 0x20]
call fcn.14005a710
lea rax, [rbp - 0x80]
mov qword [rbp - 0x60], rax
mov dword [rsp + 0x30], 0x70747468
mov dword [rsp + 0x34], 0x2f2f3a73
mov dword [rsp + 0x38], 0x6d617865
mov dword [rsp + 0x3c], 0x2e656c70
mov word [rsp + 0x40], 0x6f63
mov byte [rsp + 0x42], 0x6d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov ebx, 0x60
mov ecx, ebx
call fcn.14002ed58
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
and qword [rbp - 0x70], 0
and qword [rbp - 0x68], 0
xor r8d, r8d
lea rdx, [0x14006e39e]
lea rcx, [rbp - 0x80]
call fcn.14000510c
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov ecx, ebx
call fcn.14002ed58
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x43]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x58]
call fcn.140003408
mov r8, rax
lea rdx, [rbp - 0x40]
call fcn.140002c64
nop
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x80]
lea r8, [rsp + 0x48]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1400215cc
nop
lea rcx, [rsp + 0x48]
call fcn.14001a834
nop
lea rcx, [rsp + 0x58]
call fcn.14001a834
cmp dword [rbp + 0x28], 0xc8
sete bl
lea rcx, [rbp - 0x20]
call fcn.14001fbb0
mov al, bl
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14002ed30
mov rbx, qword [rsp + 0x190]
add rsp, 0x180
pop rbp
ret
Function at 0x140027d20
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov eax, 0x12345678
mov ebx, 0x23456789
mov r9d, 0x34567890
mov dword [rdx], eax
mov dword [rdx + 4], ebx
mov r11, rcx
mov dword [rdx + 8], r9d
mov r10, rdx
movzx ecx, byte [rcx]
test cl, cl
je 0x140027d9a
nop dword [rax + rax]
mov edx, eax
lea r11, [r11 + 1]
xor rdx, rcx
shr eax, 8
movzx ecx, dl
xor eax, dword [r8 + rcx*4]
movzx ecx, al
add ecx, ebx
mov dword [r10], eax
imul ebx, ecx, 0x8088405
mov ecx, r9d
shr r9d, 8
inc ebx
mov dword [r10 + 4], ebx
mov edx, ebx
shr rdx, 0x18
xor rdx, rcx
movzx ecx, dl
xor r9d, dword [r8 + rcx*4]
mov dword [r10 + 8], r9d
movzx ecx, byte [r11]
test cl, cl
jne 0x140027d50
mov rbx, qword [rsp + 8]
ret

Function at 0x140027da0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x10108], 0
mov rbx, rcx
je 0x140027e64
xor r11d, r11d
cmp dword [rcx + 0xd4], r11d
jbe 0x140027e64
nop word [rax + rax]
movzx eax, byte [r11 + rbx + 0x100]
mov edx, dword [rbx + 0x10128]
xor rax, rdx
mov r8, qword [rbx + 0x10138]
mov r10d, dword [rbx + 0x10130]
movzx ecx, al
and r10d, 0xfffd
shr edx, 8
or r10d, 2
xor edx, dword [r8 + rcx*4]
movzx eax, dl
add eax, dword [rbx + 0x1012c]
imul ecx, eax, 0x8088405
mov dword [rbx + 0x10128], edx
mov edx, dword [rbx + 0x10130]
inc ecx
mov dword [rbx + 0x1012c], ecx
shr rcx, 0x18
xor rcx, rdx
shr edx, 8
movzx eax, cl
xor edx, dword [r8 + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 0x10130], edx
imul eax, r10d
shr eax, 8
xor byte [r11 + rbx + 0x100], al
inc r11d
cmp r11d, dword [rbx + 0xd4]
jb 0x140027dd0
mov r9d, dword [rbx + 0xd4]
lea r8, [rbx + 0x100]
mov rdx, qword [rbx + 0x58]
mov rcx, qword [rbx + 0x38]
call qword [rbx + 0x10]
mov ecx, dword [rbx + 0xd4]
sub eax, ecx
mov dword [rbx + 0xd4], 0
neg eax
sbb eax, eax
add qword [rbx + 0x10118], rcx
mov ecx, dword [rbx + 0x84]
add qword [rbx + 0x10120], rcx
mov dword [rbx + 0x84], 0
add rsp, 0x20
pop rbx
ret
Function at 0x14002f820
Capabilities:
Parse pe header

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

Function at 0x140043600
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.14002f540
sub rsp, rax
mov rax, qword [0x14007d040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400475b0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004364f
mov rax, rbp
jmp 0x140043757
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 + 0x7f890]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004d53c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x7f890]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140043753
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 0x140043753
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004d53c
test rax, rax
js 0x140043753
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140043753
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140043745
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140043745
cmp byte [rcx], 0xd
jne 0x14004372b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004373a
cmp byte [rcx + 1], 0xa
jne 0x14004373a
inc rcx
jmp 0x14004373a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7d4d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004370d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140043757
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002ed30
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 0x140044560
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004435c
Function at 0x14004aad0
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, [0x14007f890]
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 0x14004ab27
cmp word [rdx], r13w
jne 0x14004ab27
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004ab2c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004ac51
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004ac72
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004ab65
mov rdx, r9
mov word [rbx], cx
jmp 0x14004ab8c
cmp r9, r8
jae 0x14004ab9c
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 0x14004ab46
jmp 0x14004ac51
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 0x14004ac46
cmp dword [rsp + 0x80], esi
je 0x14004ac46
lea r8, [0x14007f890]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004ac1e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004abee
mov word [rbx], r13w
jmp 0x14004ac4e
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 0x14004abfb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004ac4e
cmp word [rsp + 0x70], r13w
jne 0x14004ac2b
cmp rbx, r14
je 0x14004abe8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004d544
cmp word [rsp + 0x70], r13w
je 0x14004ac51
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, [0x14007f890]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004ac4b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004ac51
Function at 0x14004b81c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004b832
mov al, 1
jmp 0x14004b892
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004b843
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004b890
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400507a0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004b890
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004b890
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004b890
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004b892
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004fd98
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 0x14004fe1f
mov rsi, rbx
cmp word [rax], bp
je 0x14004fdde
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004fdc8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004fdc4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140048104
mov rdi, rax
test rax, rax
je 0x14004fe0c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14005a070
mov rbp, rdi
xor ecx, ecx
call fcn.140047574
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 0x140052ec8
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.140047da0
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 0x140052f69
cmp ebx, dword [rsp + 0x30]
je 0x140052f62
test esi, esi
je 0x140052f62
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140052f3d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140052f4a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140052f27
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140052f4e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140052f6b
mov eax, 1
jmp 0x140052f6b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140057960
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.14004d544
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004d544
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140057ab0
cmp rax, 0xffffffffffffffff
je 0x140057ab0
xor edi, edi
test rbp, rbp
jle 0x140057a5b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400474fc
mov rbx, rax
test rax, rax
jne 0x1400579e8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140057a51
mov edx, 0x8000
mov ecx, r14d
call fcn.1400445dc
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.14004c444
cmp eax, 0xffffffff
je 0x140057a31
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400579f8
mov edx, r15d
mov ecx, r14d
call fcn.1400445dc
jmp 0x140057a51
cmp byte [rsi + 0x38], dil
je 0x140057a48
cmp dword [rsi + 0x34], 5
jne 0x140057a48
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140057a51
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140047574
jmp 0x140057ac4
jns 0x140057ac4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004d544
cmp rax, 0xffffffffffffffff
jne 0x140057a7c
cmp byte [rsi + 0x30], dil
je 0x140057ac4
mov edi, dword [rsi + 0x2c]
jmp 0x140057ac4
mov ecx, r14d
call fcn.1400507a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140057ac4
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 0x140057ac4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140057abd
mov eax, dword [rsi + 0x2c]
jmp 0x140057ac2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004d544
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 0x1400584c0
Capabilities:
Parse pe header

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