joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800c8f20
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov qword [rsp + 0x270], 0xfffffffffffffffe
mov rax, qword [0x180109f10]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov rcx, qword [rsp + 0x290]
call fcn.1800c7c80
mov dword [rsp + 0x174], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x174]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x290]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1800c8fdf
jmp 0x1800c90b0
mov dword [rsp + 0x170], 0x100
mov dword [rsp + 0x178], 0
jmp 0x1800c9008
mov eax, dword [rsp + 0x178]
add eax, 1
mov dword [rsp + 0x178], eax
mov eax, dword [rsp + 0x174]
cmp dword [rsp + 0x178], eax
jae 0x1800c90b0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x170]
lea r8, [rsp + 0x70]
mov edx, dword [rsp + 0x178]
mov rcx, qword [rsp + 0x290]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1800c90a0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x180]
call fcn.180003820
nop
lea rdx, [rsp + 0x180]
mov rcx, qword [rsp + 0x298]
call fcn.180017360
nop
lea rcx, [rsp + 0x180]
call fcn.1800040e0
mov dword [rsp + 0x170], 0x100
jmp 0x1800c8ff7
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1800576a0
add rsp, 0x288
ret
Function at 0x1800c90d0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x148
mov qword [rsp + 0x128], 0xfffffffffffffffe
mov rax, qword [0x180109f10]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x30]
call fcn.180017200
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
call fcn.1800c8f20
mov rcx, qword [rsp + 0x150]
call fcn.1800c7c40
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.18001a620
jmp 0x1800c913f
lea rcx, [rsp + 0x60]
call fcn.18002e950
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x30]
call fcn.180019010
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.18002e970
movzx eax, al
test eax, eax
je 0x1800c91fc
mov rdx, qword [rsp + 0x150]
add rdx, 8
lea rcx, [rsp + 0x78]
call fcn.180003e80
nop
lea rdx, [0x1800e65b8]
lea rcx, [rsp + 0x78]
call fcn.180026270
lea rcx, [rsp + 0x60]
call fcn.18002e930
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.18000c1d0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x150]
mov rdx, qword [rdx]
lea rcx, [rsp + 0xa0]
call fcn.1800c83d0
nop
lea rcx, [rsp + 0xa0]
call fcn.1800c90d0
nop
lea rcx, [rsp + 0xa0]
call fcn.1800c83a0
nop
lea rcx, [rsp + 0x78]
call fcn.1800040e0
jmp 0x1800c9135
mov rax, qword [rsp + 0x150]
cmp dword [rax + 0x3c], 0
je 0x1800c9311
lea rcx, str.ADVAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.18002e670
nop
lea rcx, [rsp + 0xe0]
call fcn.18002e6b0
test rax, rax
je 0x1800c9304
lea rcx, [rsp + 0xe0]
call fcn.18002e6b0
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe8], 0
je 0x1800c9304
mov rcx, qword [rsp + 0x150]
add rcx, 8
call fcn.180004200
mov rdx, rax
xor r9d, r9d
mov rax, qword [rsp + 0x150]
mov r8d, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x150]
mov rcx, qword [rcx]
call qword [rsp + 0xe8]
test eax, eax
je 0x1800c92db
mov byte [rsp + 0x100], 0
lea rcx, [rsp + 0xe0]
call fcn.18002e690
nop
lea rcx, [rsp + 0x30]
call fcn.180015f20
mov al, byte [rsp + 0x100]
jmp 0x1800c936e
mov byte [rsp + 0x101], 1
lea rcx, [rsp + 0xe0]
call fcn.18002e690
nop
lea rcx, [rsp + 0x30]
call fcn.180015f20
mov al, byte [rsp + 0x101]
jmp 0x1800c936e
lea rcx, [rsp + 0xe0]
call fcn.18002e690
mov rcx, qword [rsp + 0x150]
add rcx, 8
call fcn.180004200
mov rdx, rax
mov rcx, qword [rsp + 0x150]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x1800c9355
mov byte [rsp + 0x102], 0
lea rcx, [rsp + 0x30]
call fcn.180015f20
mov al, byte [rsp + 0x102]
jmp 0x1800c936e
mov byte [rsp + 0x103], 1
lea rcx, [rsp + 0x30]
call fcn.180015f20
mov al, byte [rsp + 0x103]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800576a0
add rsp, 0x148
ret
Function at 0x1800c99b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [rsp + 8], cl
sub rsp, 0x28
mov rax, qword [0x180109f10]
xor rax, rsp
mov qword [rsp + 0x18], rax
mov byte [rsp + 8], Ordinal_50
mov byte [rsp + 9], Ordinal_50
mov byte [rsp + 0xa], reloc.WLDAP32.dll_Ordinal_50
mov byte [rsp + 0xb], 0x33
mov byte [rsp + 0xc], 0x34
mov byte [rsp + 0xd], gethostname
mov byte [rsp + 0xe], gethostname
mov byte [rsp + 0xf], gethostname
mov byte [rsp + 0x10], gethostname
mov byte [rsp + 0x11], reloc.WS2_32.dll_gethostname
mov byte [rsp + 0x12], 0x41
mov byte [rsp + 0x13], 0x42
mov byte [rsp + 0x14], 0x43
mov byte [rsp + 0x15], 0x44
mov byte [rsp + 0x16], 0x45
mov byte [rsp + 0x17], 0x46
movzx eax, byte [rsp + 0x30]
mov al, byte [rsp + rax + 8]
mov rcx, qword [rsp + 0x18]
xor rcx, rsp
call fcn.1800576a0
add rsp, 0x28
ret

Function at 0x1800cb480
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x190
mov rax, qword [0x180109f10]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov dword [rsp + 0x140], 0
mov byte [rsp + 0x30], 0
lea rdi, [rsp + 0x31]
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x1a0]
call fcn.180003820
mov eax, dword [rsp + 0x140]
or eax, 1
mov dword [rsp + 0x140], eax
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.1800576a0
add rsp, 0x190
pop rdi
ret

Function at 0x1800cc2c0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x38], 0
je 0x1800cc341
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x30]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0x30]
add ecx, 1
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x30], ecx
cmp edx, 0x186a0
jl 0x1800cc325
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.1800c6af0
mov rcx, qword [rsp + 0x30]
call fcn.1800c6b40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov r11, qword [rsp + 0x30]
mov dword [r11 + 0x30], 0
mov rcx, qword [rsp + 0x38]
call fcn.18005e010
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.1800c6ba0
add rsp, 0x28
ret
Function at 0x1800cc3d0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2d8
mov qword [rsp + 0x260], 0xfffffffffffffffe
mov rax, qword [0x180109f10]
xor rax, rsp
mov qword [rsp + 0x2c8], rax
mov rcx, qword [rsp + 0x2e0]
call fcn.1800c6cb0
nop
mov rax, qword [rsp + 0x2e0]
mov dword [rax + 0x30], 0
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rcx, [rsp + 0xd8]
call fcn.1800cb990
mov qword [rsp + 0x268], rax
mov rax, qword [rsp + 0x268]
mov qword [rsp + 0x270], rax
lea r8, str.Logger
mov rdx, qword [rsp + 0x270]
lea rcx, [rsp + 0xb0]
call fcn.180025ec0
nop
lea rcx, [rsp + 0xd8]
call fcn.1800040e0
lea rcx, [rsp + 0x88]
call fcn.1800cb8c0
nop
mov r8, 0xffffffffffffffff
mov dl, reloc.WLDAP32.dll_Ordinal_46
lea rcx, [rsp + 0x88]
call fcn.18002dbc0
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x88]
call fcn.180015e00
nop
movzx edx, word [rsp + 0x7e]
lea rcx, [rsp + 0x100]
call fcn.1800cb3e0
mov qword [rsp + 0x278], rax
mov rax, qword [rsp + 0x278]
mov qword [rsp + 0x280], rax
lea r8, [0x1800e6500]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x128]
call fcn.180025ec0
mov qword [rsp + 0x288], rax
mov rax, qword [rsp + 0x288]
mov qword [rsp + 0x290], rax
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x290]
lea rcx, [rsp + 0x150]
call fcn.18000bba0
mov qword [rsp + 0x298], rax
mov rax, qword [rsp + 0x298]
mov qword [rsp + 0x2a0], rax
lea r8, [0x1800e64e4]
mov rdx, qword [rsp + 0x2a0]
lea rcx, [rsp + 0x178]
call fcn.180025ec0
mov qword [rsp + 0x2a8], rax
mov rax, qword [rsp + 0x2a8]
mov qword [rsp + 0x2b0], rax
mov r8, qword [rsp + 0x280]
mov rdx, qword [rsp + 0x2b0]
lea rcx, [rsp + 0x1a0]
call fcn.18000bba0
mov qword [rsp + 0x2b8], rax
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x2c0], rax
lea r8, str..log
mov rdx, qword [rsp + 0x2c0]
lea rcx, [rsp + 0x28]
call fcn.180025ec0
nop
lea rcx, [rsp + 0x1a0]
call fcn.1800040e0
nop
lea rcx, [rsp + 0x178]
call fcn.1800040e0
nop
lea rcx, [rsp + 0x150]
call fcn.1800040e0
nop
lea rcx, [rsp + 0x128]
call fcn.1800040e0
nop
lea rcx, [rsp + 0x100]
call fcn.1800040e0
lea rcx, [rsp + 0xb0]
call fcn.180004200
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rcx, [rsp + 0x28]
call fcn.180004200
mov rdx, rax
lea rcx, [rsp + 0x1c8]
call fcn.180003820
nop
mov r9d, 1
mov r8d, 2
lea rdx, [rsp + 0x1c8]
mov rcx, qword [rsp + 0x2e0]
call fcn.1800c6d50
nop
lea rcx, [rsp + 0x1c8]
call fcn.1800040e0
mov rax, qword [rsp + 0x2e0]
mov dword [rax + 0x30], 0
lea rcx, [rsp + 0x28]
call fcn.1800040e0
nop
lea rcx, [rsp + 0x50]
call fcn.1800040e0
nop
lea rcx, [rsp + 0x88]
call fcn.1800040e0
nop
lea rcx, [rsp + 0xb0]
call fcn.1800040e0
nop
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x2c8]
xor rcx, rsp
call fcn.1800576a0
add rsp, 0x2d8
ret
Function at 0x1800cc890
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x1c8
mov rax, qword [0x180109f10]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
mov dword [rsp + 0x170], 0
mov byte [rsp + 0x40], 0
lea rdi, [rsp + 0x41]
xor eax, eax
mov ecx, Ordinal_301
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x1e0]
call fcn.180004200
mov rbx, rax
mov rcx, qword [rsp + 0x1f8]
call fcn.180004200
mov rdi, rax
mov rcx, qword [rsp + 0x1f0]
call fcn.180004200
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], Ordinal_301
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x1e8]
call fcn.180003820
mov eax, dword [rsp + 0x170]
or eax, 1
mov dword [rsp + 0x170], eax
mov rax, qword [rsp + 0x1e8]
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.1800576a0
add rsp, 0x1c8
pop rdi
pop rbx
ret

Function at 0x140003ae0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003b14
cmp word [rcx], 0x5a4d
jne 0x140003b14
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003b14
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003b14
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003a20
test eax, eax
jne 0x140003b30
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003a90
test rax, rax
je 0x140003b25
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400042dc
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400041e0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004180
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004d90
Capabilities:
Parse pe header

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

Function at 0x140004e61
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1428101d0]
mov r8, rcx
mov rcx, r9
call fcn.140004d90
test eax, eax
je 0x140004e8d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004db4
xor eax, eax
add rsp, 0x28
ret
Function at 0x6dae4790
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6db055e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6dae4918
mov rax, qword [0x6db055e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6dae47dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6dae4865
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6dae47c0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6dae494d
mov rax, qword [0x6db055e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6db055e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6dae4930
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6dae485e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6dae48c0
add dword [0x6db055e4], 1
cmp edi, 8
jae 0x6dae4893
test dil, 4
jne 0x6dae4904
test edi, edi
je 0x6dae4888
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6dae491f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6dae4888
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6dae48ac
jmp 0x6dae4888
add rsi, qword [0x6db055e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6dae485e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6dae4888
xor esi, esi
jmp 0x6dae47e7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6dae4888
mov rax, qword [0x6db055e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6dae50a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6db058c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6db058a0]
test rbx, rbx
je 0x6dae50f4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6dae50eb
test rsi, rsi
je 0x6dae50eb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6dae50d0
lea rcx, [0x6db058c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6dae5330
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6dae5340
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6dae5350
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6dae5391
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6dae5388
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6dae5393
add rax, 0x28
cmp rax, r9
jne 0x6dae5374
xor eax, eax
ret

Function at 0x6dae5430
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6db021f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6dae549d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6dae549d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6dae549d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6dae5494
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6dae549f
add rax, 0x28
cmp rax, r9
jne 0x6dae5480
xor eax, eax
add rsp, 0x28
ret

Function at 0x6dae55a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6db021f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6dae55c0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6dae55b8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6dae561d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6dae5614
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6dae5624
add rax, 0x28
cmp rax, r9
jne 0x6dae5600
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6dae5640
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6db021f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6dae56ae
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6dae56ae
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6dae56ae
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6dae56ae
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6dae56a5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6dae56b5
add rcx, 0x28
cmp rcx, rax
jne 0x6dae5690
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6dae56c8
jmp 0x6dae56ae
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6dae56d6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6dae56ae
test r9d, r9d
jg 0x6dae56c0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6dae5a10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140024276
Capabilities:
Write file on windows

Disassembly:
jmp 0x14005ef70
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140098108]
call fcn.140025bf3
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14005efc7
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14005f0d3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14005f06c
cmp qword [rbp + 0x28], 0
jle 0x14005f06c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14005f00c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140025a27
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14005f0c2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14005f0c2
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140024f6e
Capabilities:
Terminate process

Disassembly:
jmp 0x140067e60
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400251da
Capabilities:
Get geographical location

Disassembly:
jmp 0x140061590
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400615cd
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140025bd0
add rsp, 0x58
ret
Function at 0x140025306
Capabilities:
Parse pe header

Disassembly:
jmp 0x140067210
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140067230
xor al, al
jmp 0x1400672b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140067243
xor al, al
jmp 0x1400672b1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14006726d
xor al, al
jmp 0x1400672b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140067281
xor al, al
jmp 0x1400672b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140067293
xor al, al
jmp 0x1400672b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400672af
xor al, al
jmp 0x1400672b1
mov al, 1
add rsp, 0x38
ret