joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400aa7e0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rsi
sub rsp, 0x30
add rcx, 4
mov edx, 0x9676de20
mov r8, 0xfffffffffffffd90
mov r9d, 0x80000000
mov r10d, 0x7fffffff
mov r11d, 0xb3e0eba0
nop word [rax + rax]
cmp edx, 0xdd9a1f9b
jle 0x1400aa850
cmp edx, 0x20049b81
jle 0x1400aa880
cmp edx, 0x20049b82
je 0x1400aa946
cmp edx, 0x38b4ebf9
jne 0x1400aa810
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 8]
cmp rdx, 0x4e0
mov edx, 0x20049b82
cmovb edx, r11d
jmp 0x1400aa810
cmp edx, 0x9676de20
je 0x1400aa8d3
cmp edx, 0xb3e0eba0
je 0x1400aa907
cmp edx, 0xd5d998e8
jne 0x1400aa810
mov edx, 0x38b4ebf9
mov eax, 0x270
jmp 0x1400aa810
cmp edx, 0xdd9a1f9c
je 0x1400aa8dd
cmp edx, 0x32f540f
jne 0x1400aa810
mov edx, dword [rsp + 0x20]
and edx, r10d
or edx, dword [rsp + 0x1c]
mov esi, edx
shr esi, 1
and edx, 1
neg edx
and edx, 0x9908b0df
xor edx, esi
mov dword [rsp + 0x24], edx
mov rdx, qword [rsp + 0x10]
mov rsi, qword [rsp]
lea rdx, [rsi + rdx*4]
add rdx, 0x634
mov qword [rsp + 0x28], rdx
mov edx, 0xdd9a1f9c
jmp 0x1400aa810
mov edx, 0xd5d998e8
jmp 0x1400aa810
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
xor eax, dword [rsp + 0x24]
mov rdx, qword [rsp]
mov rsi, qword [rsp + 8]
mov dword [rdx + rsi*4], eax
mov rax, qword [rsp + 8]
add rax, 1
mov edx, 0x38b4ebf9
jmp 0x1400aa810
mov qword [rsp], rcx
mov rdx, qword [rsp + 8]
add rdx, r8
mov qword [rsp + 0x10], rdx
mov rdx, qword [rsp]
mov rsi, qword [rsp + 0x10]
mov edx, dword [rdx + rsi*4]
and edx, r9d
mov dword [rsp + 0x1c], edx
mov rdx, qword [rsp + 0x10]
mov rsi, qword [rsp]
mov edx, dword [rsi + rdx*4 + 4]
mov dword [rsp + 0x20], edx
mov edx, 0x32f540f
jmp 0x1400aa810
add rsp, 0x30
pop rsi
ret
Function at 0x140109f90
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
not r8d
mov edi, 0x168d6187
mov r9d, 0x82a06d27
lea r10, [0x14031fa10]
jmp 0x140109fc0
mov edi, dword [rsp]
not edi
mov dword [rsp + 0x14], edi
mov edi, 0xb940a299
nop dword [rax]
cmp edi, 0x2f48123c
jle 0x14010a010
cmp edi, 0x5a721746
jg 0x14010a040
cmp edi, 0x2f48123d
je 0x14010a08d
cmp edi, 0x4cbf9d01
jne 0x140109fc0
mov edi, dword [rsp]
shr edi, 8
mov dword [rsp + 8], edi
mov edi, dword [rsp]
movzx edi, dil
mov dword [rsp + 0xc], edi
mov rdi, qword [rsp + 0x18]
add rdi, 1
mov qword [rsp + 0x28], rdi
mov edi, 0x5ef1d832
jmp 0x140109fc0
cmp edi, 0xb940a298
jg 0x14010a076
cmp edi, 0x82a06d27
je 0x140109fae
cmp edi, 0xb8a0fcb3
jne 0x140109fc0
mov edi, 0x2f48123d
mov esi, dword [rsp + 4]
mov r11, rdx
mov rax, rcx
jmp 0x140109fc0
cmp edi, 0x5a721747
je 0x14010a0af
cmp edi, 0x5ef1d832
jne 0x140109fc0
mov rdi, qword [rsp + 0x18]
movzx edi, byte [rdi]
xor edi, dword [rsp + 0xc]
mov ebx, dword [rsp + 8]
xor ebx, dword [r10 + rdi*4]
mov dword [rsp + 0x10], ebx
mov edi, 0x5a721747
jmp 0x140109fc0
cmp edi, 0x168d6187
jne 0x14010a0c7
mov dword [rsp + 4], r8d
mov edi, 0xb8a0fcb3
jmp 0x140109fc0
mov qword [rsp + 0x18], rax
mov dword [rsp], esi
mov rdi, r11
sub rdi, 1
mov qword [rsp + 0x20], rdi
mov edi, 0x4cbf9d01
cmovb edi, r9d
jmp 0x140109fc0
mov r11, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov edi, 0x2f48123d
mov esi, dword [rsp + 0x10]
jmp 0x140109fc0
cmp edi, 0xb940a299
jne 0x140109fc0
mov eax, dword [rsp + 0x14]
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140281f50
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
call fcn.14010fbf0
mov qword [rsp + 0x40], rax
mov eax, 0x2085677f
mov edi, 0x868bef09
mov ebx, 0x90
nop word cs:[rax + rax]
nop dword [rax + rax]
cmp eax, 0xd34151ae
jg 0x140281fa0
cmp eax, 0x868bef09
je 0x140281fc7
cmp eax, 0xb3a7975d
je 0x140281fe7
cmp eax, 0xca0b78e6
jne 0x140281f80
jmp 0x14028200f
cmp eax, 0xd34151af
je 0x140281fd8
cmp eax, 0x4591c609
je 0x140281ff8
cmp eax, 0x2085677f
jne 0x140281f80
cmp qword [rsp + 0x40], 0
setne byte [rsp + 0x2f]
mov eax, 0xb3a7975d
jmp 0x140281f80
call fcn.14012fb50
mov qword [rsp + 0x48], rax
mov eax, 0x4591c609
jmp 0x140281f80
mov rax, qword [rsp + 0x50]
mov rsi, qword [rax]
mov eax, 0xca0b78e6
jmp 0x140281f80
cmp byte [rsp + 0x2f], 0
mov eax, 0xca0b78e6
cmovne eax, edi
xor esi, esi
jmp 0x140281f80
mov rax, qword [rsp + 0x48]
add rax, rbx
mov qword [rsp + 0x50], rax
mov eax, 0xd34151af
jmp 0x140281f80
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr eax, 0x10
mov dword [rsp + 0x3c], eax
add rsi, 0x2c
mov qword [rsp + 0x30], rsi
mov eax, 0xe038d57a
mov rsi, qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov edi, 0x1c01b6aa
mov ebx, 0x585c2c44
mov ebp, 0xe669f310
jmp 0x140282060
mov rax, qword [rsp + 0x30]
mov dword [rax], 0
mov eax, 0xe669f310
nop word cs:[rax + rax]
nop
cmp eax, 0xbbcf970
jg 0x140282090
cmp eax, 0xe038d579
jg 0x1402820b0
cmp eax, 0xa7d2b049
je 0x140282044
cmp eax, 0xdf0f4793
jne 0x140282060
mov eax, 0x4366a3a5
jmp 0x140282060
cmp eax, 0x4366a3a4
jg 0x1402820ef
cmp eax, 0xbbcf971
je 0x14028211c
cmp eax, 0x1c01b6aa
jne 0x140282060
mov eax, 0xdf0f4793
jmp 0x140282060
cmp eax, 0xe038d57a
je 0x14028212e
cmp eax, 0xe669f310
jne 0x140282060
mov rax, qword [rsp + 0x30]
mov dword [rax], 0
mov eax, dword [0x14035ce48]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov eax, 0xa7d2b049
cmove eax, edi
cmp dword [0x14035ce4c], 0xa
cmovl eax, edi
jmp 0x140282060
cmp eax, 0x585c2c44
jne 0x140282155
mov eax, dword [0x14035ce48]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov eax, 0xa7d2b049
cmove eax, ebp
cmp dword [0x14035ce4c], 0xa
cmovl eax, ebp
jmp 0x140282060
cmp byte [rsp + 0x2e], 0
mov eax, 0x4366a3a5
cmovne eax, ebx
jmp 0x140282060
mov r8, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x3c]
mov edx, 0x20001004
mov r9d, 4
call rsi
test eax, eax
sete byte [rsp + 0x2e]
mov eax, 0xbbcf971
jmp 0x140282060
cmp eax, 0x4366a3a5
jne 0x140282060
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x1402d2590
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r14d, r9d
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14035bae8]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rbp, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
mov rax, qword [rsp + 0x30]
mov eax, 0xf972bb9f
mov r15, qword [sym.imp.ntdll.dll_NtSetValueKey]
mov r12d, 0x1144c720
mov r13d, 0x8d847779
nop word cs:[rax + rax]
nop dword [rax]
cmp eax, 0xf972bb9e
jle 0x1402d2640
cmp eax, 0x588bc0cb
je 0x1402d2653
cmp eax, 0x1144c720
je 0x1402d2695
cmp eax, 0xf972bb9f
jne 0x1402d25f0
mov eax, dword [0x14035cf10]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov eax, 0x588bc0cb
cmove eax, r13d
cmp dword [0x14035cf14], 0xa
cmovl eax, r13d
jmp 0x1402d25f0
cmp eax, 0x8d847779
je 0x1402d269f
cmp eax, 0xaff515bc
jne 0x1402d25f0
jmp 0x1402d2703
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov rdx, rbp
mov r8d, edi
mov r9d, r14d
call r15
mov rax, qword [rsp + 0x30]
mov eax, 0x8d847779
jmp 0x1402d25f0
mov eax, 0xaff515bc
jmp 0x1402d25f0
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov rdx, rbp
mov r8d, edi
mov r9d, r14d
call r15
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [0x14035cf10]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov eax, 0x588bc0cb
cmove eax, r12d
cmp dword [0x14035cf14], 0xa
cmovl eax, r12d
jmp 0x1402d25f0
mov esi, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402e6030
mov eax, esi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1402f7044
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 0x1402f707b
call fcn.1402f9708
mov dword [rax], 0x16
call fcn.1402fa220
xor eax, eax
jmp 0x1402f710d
mov rdx, r9
mov rcx, r8
call fcn.1402f7130
mov rbx, rax
test rax, rax
je 0x1402f710a
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x1402f7194]
mov eax, dword [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1402f70f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1402f9750
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1402f70de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1402f70ed
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140305350
jmp 0x1402f710a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1402f7107
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 0x1402f7260
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1402f7370
Function at 0x1402fd5c4
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.1402e5fd0
sub rsp, rax
mov rax, qword [0x14035bae8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140309c70
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1402fd613
mov rax, rbp
jmp 0x1402fd71f
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 + 0x373be0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14030e3ec
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x373be0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1402fd71b
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1402fd71b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14030e3ec
test rax, rax
js 0x1402fd71b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1402fd71b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1402fd70d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1402fd70d
cmp byte [rcx], 0xd
jne 0x1402fd6f3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1402fd702
cmp byte [rcx + 1], 0xa
jne 0x1402fd702
inc rcx
jmp 0x1402fd702
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x35c7c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1402fd6d5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1402fd71f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1402e6030
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 0x140305ef8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140381050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x140305f5d
test rax, rax
jne 0x140305f4b
lea r9, [0x14032d338]
lea r8, [0x14032d330]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.1403065f8
test rax, rax
je 0x140305f5d
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.140319630
jmp 0x140305f77
xor edx, edx
mov rcx, rbp
call fcn.1403061e8
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14030d548
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x14030d5bb
cmp word [rcx], si
je 0x14030d5bb
lea rdx, [0x14033bbd0]
call fcn.140316c70
test eax, eax
je 0x14030d5bb
lea rdx, [0x14033bbc8]
mov rcx, rbx
call fcn.140316c70
test eax, eax
jne 0x14030d5b1
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14030d5d8
mov eax, dword [rsp + 0x30]
jmp 0x14030d5ea
mov rcx, rbx
call fcn.140314d18
jmp 0x14030d5ea
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x14030d5dc
xor eax, eax
jmp 0x14030d5ea
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14030d5ea
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14030d5fc
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.1403055e8
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14030d69f
cmp edi, dword [rsp + 0x30]
je 0x14030d698
test ebp, ebp
je 0x14030d698
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x14030d674
sub dx, 0x61
cmp dx, 0x19
ja 0x14030d680
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x14030d661
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x14030d684
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x14030d6a1
mov eax, 1
jmp 0x14030d6a1
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14030ee24
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 0x14030ee54
xor eax, eax
jmp 0x14030ef17
mov rbp, rbx
cmp word [rax], si
je 0x14030ee79
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14030ee60
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14030ee5c
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.1403054a0
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14030eeba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14030ee4d
call fcn.1403053b0
mov rdi, rax
test rax, rax
jne 0x14030eed0
xor ecx, ecx
call fcn.140305350
jmp 0x14030eeaf
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.1403054a0
test eax, eax
jne 0x14030ef01
mov rcx, rdi
call fcn.140305350
jmp 0x14030ef0b
xor ecx, ecx
call fcn.140305350
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 0x14031188c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1403118a2
mov al, 1
jmp 0x14031190e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1403118b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14031190c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14030f734
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14031190c
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14031190c
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14031190c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14031190e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1403122bc
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
xor edi, edi
mov rax, r15
lea rcx, [0x140373be0]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x140312312
cmp word [rdx], r9w
jne 0x140312312
or byte [rax + rbp*8 + 0x38], 4
jmp 0x140312317
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x140312496
mov r11d, select
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x140312461
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x14031235f
cmp rcx, r8
jae 0x14031237f
cmp word [rcx], r9w
jne 0x14031235f
add rax, 4
mov edx, r9d
jmp 0x140312362
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x140312334
jmp 0x140312496
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14031245a
cmp dword [rsp + 0x80], edi
je 0x14031245a
lea r9, [0x140373be0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x140312434
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x1403123e7
mov word [rbx], bp
jmp 0x140312493
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x140312402
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x140312493
cmp word [rsp + 0x70], bp
jne 0x140312440
cmp rbx, rsi
je 0x1403123df
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14030e348
cmp word [rsp + 0x70], bp
je 0x140312496
mov word [rbx], 0xd
jmp 0x140312493
mov rcx, r15
lea r9, [0x140373be0]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140312490
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140312496
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x140318050
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1402ebaec
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1403180da
cmp byte [rbp - 0x21], r15b
je 0x1403180d5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140318110
call fcn.140305d18
test eax, eax
jne 0x1403180fc
cmp byte [rbp - 0x21], r15b
je 0x1403180f4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140318110
cmp byte [rbp - 0x21], r15b
je 0x14031810d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1402ebb88
test eax, eax
jne 0x1403181b0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1402ebaec
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14031814f
cmp byte [rbp - 0x21], r15b
je 0x140318184
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140318184
call fcn.140305d18
test eax, eax
jne 0x140318170
cmp byte [rbp - 0x21], r15b
je 0x140318169
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140318184
cmp byte [rbp - 0x21], r15b
je 0x140318181
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1402ebb88
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1403181b0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1403181b3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1403181c1
mov rcx, rdi
call fcn.140305350
cmp byte [rbp + 0x3f], r15b
je 0x1403181d0
mov rcx, qword [rbp + 0x27]
call fcn.140305350
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140318c04
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.14030e348
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14030e348
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140318d51
cmp rax, 0xffffffffffffffff
je 0x140318d51
xor edi, edi
test rbp, rbp
jle 0x140318cff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1403068b0
mov rbx, rax
test rax, rax
jne 0x140318c8c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140318cf5
mov edx, 0x8000
mov ecx, r14d
call fcn.1402fabe8
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.1403109ac
cmp eax, 0xffffffff
je 0x140318cd5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140318c9c
mov edx, r15d
mov ecx, r14d
call fcn.1402fabe8
jmp 0x140318cf5
cmp byte [rsi + 0x38], dil
je 0x140318cec
cmp dword [rsi + 0x34], 5
jne 0x140318cec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], select
cmp byte [rsi + 0x30], dil
je 0x140318cf5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140305350
jmp 0x140318d63
jns 0x140318d63
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14030e348
cmp rax, 0xffffffffffffffff
jne 0x140318d1d
cmp byte [rsi + 0x30], dil
je 0x140318d63
jmp 0x140318d59
mov ecx, r14d
call fcn.14030f734
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140318d63
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], select
jmp 0x140318d63
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140318d5e
mov edi, dword [rsi + 0x2c]
jmp 0x140318d63
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14030e348
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 0x18064abf8
Capabilities:
Encode data using xor

Disassembly:
mov r9d, r11d
sar r9b, 0x81
lea r11, [0x180640798]
mov r9d, 0xcc0dd89d
movzx r9d, byte [rdx]
push 0x6fa4b4a0
xor r9d, eax
push 0x621bb8b3
and r9d, 0xff
mov r9d, dword [r11 + r9*4]
shr eax, 8
not qword [rsp + 8]
xor eax, r9d
inc rdx
push 0x612d9297
xor eax, 0x7385281b
dec rbx
lea rsp, [rsp + 0x18]
jne 0x18060c1db
pop r9
mov r11d, 0x2e2a8f13
pop r11
jmp 0x18061b808
add r11, 0xc
xor eax, eax
test rbx, rbx
jmp 0x180625dbe
push 0x183e3892
not eax
call fcn.1806153bc
lea rsp, [rsp + 8]
je 0x18060c22d
push r11
mov r11d, 0xfb3c81a9
push r9
jmp 0x18060c1cd
mov rdx, qword [r11 + rbx*4 + 0x79519394]
not bl
add bx, bx
dec ebx
mov rbx, qword [r11 + 8]
js 0x18061212d