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

Disassembly:
sub rsp, 0xd48
mov rax, qword [0x14010c080]
xor rax, rsp
mov qword [rsp + 0xd30], rax
lea rdx, [0x14010dec0]
lea rcx, [rsp + 0x128]
call fcn.14000d9c0
nop
mov dword [rsp + 0x30], 0x400
lea rcx, [rsp + 0x88]
call fcn.140012810
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [0x14010de60]
call fcn.14000658c
lea rcx, [rsp + 0x88]
call fcn.140004118
lea rdx, [rsp + 0x530]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x530]
lea rcx, [0x14010de40]
call fcn.14001177c
mov edx, 0x400
lea rcx, [rsp + 0x130]
call fcn.14005d2f4
test eax, eax
jne 0x1400132ac
lea rdx, [rsp + 0x130]
lea rcx, [0x14010de80]
call fcn.140011758
lea rcx, [rsp + 0x130]
call fcn.14005d26c
mov qword [rsp + 0x38], rax
lea rdx, [0x1400e5e02]
lea rcx, [0x14010dea0]
call fcn.140011758
cmp qword [rsp + 0x38], 0
je 0x1400132ac
mov dword [rsp + 0x20], 0
jmp 0x1400130e4
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x18]
cmp qword [rcx + rax*8], 0
je 0x1400132ac
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x20], 0
jbe 0x14001312c
lea rdx, [0x1400e5e44]
lea rcx, [0x14010dea0]
call fcn.1400118ec
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xa8]
call fcn.140012fa8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [0x14010dea0]
call fcn.1400118c8
nop
lea rcx, [rsp + 0xa8]
call fcn.1400040f0
lea rdx, [0x1400e5e48]
lea rcx, [0x14010dea0]
call fcn.1400118ec
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xc8]
call fcn.140012fa8
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [0x14010dea0]
call fcn.1400118c8
nop
lea rcx, [rsp + 0xc8]
call fcn.1400040f0
lea rdx, [0x1400e5e4c]
lea rcx, [0x14010dea0]
call fcn.1400118ec
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xe8]
call fcn.140012fa8
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [0x14010dea0]
call fcn.1400118c8
nop
lea rcx, [rsp + 0xe8]
call fcn.1400040f0
lea rdx, [0x1400e5e50]
lea rcx, [0x14010dea0]
call fcn.1400118ec
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0x108]
call fcn.140012fa8
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [0x14010dea0]
call fcn.1400118c8
nop
lea rcx, [rsp + 0x108]
call fcn.1400040f0
jmp 0x1400130da
lea rcx, [rsp + 0x128]
call fcn.14000dbf8
mov rcx, qword [rsp + 0xd30]
xor rcx, rsp
call fcn.1400b6680
add rsp, 0xd48
ret
Function at 0x14004f4c0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14010c080]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [0x1400ea0d8]
call fcn.140051f90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14004f4fa
jmp 0x14004f5d0
lea rcx, [0x1400ea0e8]
call fcn.140051f90
mov rdx, rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14004f526
jmp 0x14004f5d0
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14004f54a
jmp 0x14004f5d0
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0xb8
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0x57
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 7
mov eax, 1
imul rax, rax, 4
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0x80
mov eax, 1
imul rax, rax, 5
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0xc3
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x30]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b6680
add rsp, 0x48
ret
Function at 0x14005f230
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x14010c080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14005f280
xor eax, eax
jmp 0x14005f284
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b6680
add rsp, 0x48
ret

Function at 0x14005f2d0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x14010c080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14005f320
xor al, al
jmp 0x14005f33e
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
je 0x14005f32e
xor al, al
jmp 0x14005f33e
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b6680
add rsp, 0x48
ret
Function at 0x140061b8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [0x1400ec478]
mov edx, 0x68
mov rcx, qword [0x14010e150]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140061bc2
xor eax, eax
jmp 0x140061ce2
mov rdx, qword [rsp + 0x28]
mov rcx, qword [0x14010e150]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140061be8
xor eax, eax
jmp 0x140061ce2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140061c07
xor eax, eax
jmp 0x140061ce2
mov rdx, qword [rsp + 0x28]
mov rcx, qword [0x14010e150]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
xor edx, edx
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov ecx, 2
div ecx
mov eax, eax
mov ecx, eax
call fcn.1400b67b0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x24], 0
jmp 0x140061c5d
mov eax, dword [rsp + 0x24]
add eax, 2
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jae 0x140061cc6
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
sub eax, 0x41
mov byte [rsp + 0x20], al
mov eax, dword [rsp + 0x24]
inc eax
mov eax, eax
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
sub eax, 0x41
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x20]
shl eax, 4
movzx ecx, byte [rsp + 0x21]
or eax, ecx
mov byte [rsp + 0x22], al
xor edx, edx
mov eax, dword [rsp + 0x24]
mov ecx, 2
div ecx
mov eax, eax
mov rcx, qword [rsp + 0x40]
mov dl, byte [rsp + 0x22]
mov byte [rcx + rax], dl
jmp 0x140061c52
xor edx, edx
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov ecx, 2
div ecx
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
mov rax, qword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x14006223c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor edx, edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x28
ret
Function at 0x1400b5ddc
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400b5e0a
xor eax, eax
jmp 0x1400b5ef0
cmp qword [rcx + 0x68], 0
je 0x1400b5e1b
call fcn.14004f1cc
jmp 0x1400b5ef0
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400b5e32
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400b5e34
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400b5e66
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400db300
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400b5eea
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400b5e9d
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400b5ec6
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400c76b8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400b5eea
cmp rsi, rbx
ja 0x1400b5ea4
test rsi, rsi
je 0x1400b5eea
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400c76b8
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400b7278
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b72c2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b72c2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b72c2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b72c2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b72c2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b72c4
xor al, al
add rsp, 0x28
ret
Function at 0x1400bd2fc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x1400bd337
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400c6c5c
call fcn.1400c6ce8
mov eax, dword [rax]
jmp 0x1400bd3ae
cmp rdi, qword [rbx + 0x18]
ja 0x1400bd343
mov qword [rbx + 0x20], rdi
jmp 0x1400bd3ac
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x1400bd35a
mov rcx, qword [rbx + 0x10]
call fcn.1400cb51c
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.1400cb558
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x1400bd3ae
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x1400bd321
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c3fb0
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 0x1400c3fe7
call fcn.1400c6ce8
mov dword [rax], SafeArrayCopy
call fcn.1400bd9a4
xor eax, eax
jmp 0x1400c4075
mov rdx, r9
mov rcx, r8
call fcn.1400c3f4c
mov rbx, rax
test rax, rax
je 0x1400c4072
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400c3e78]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400c405f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400c6c5c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400c4046
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400c4055
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400cb51c
jmp 0x1400c4072
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400c406f
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 0x1400c8d70
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400c8b6c
Function at 0x1400cc9f8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14010c080]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400cca42
call fcn.1400c6cc8
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayDestroy
call fcn.1400c6ce8
mov dword [rax], SafeArrayGetDim
call fcn.1400bd9a4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b6680
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400cca4d
lea eax, [rbx + 1]
jmp 0x1400cca2f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400cca2d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400cca2f
Function at 0x1400cfc1c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400cfc32
mov al, 1
jmp 0x1400cfc92
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400cfc43
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400cfc90
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400d46b4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400cfc90
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400cfc90
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400cfc90
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400cfc92
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400d1aa0
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.1400b6760
sub rsp, rax
mov rax, qword [0x14010c080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400cdc58
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400d1aef
mov rax, rbp
jmp 0x1400d1bf7
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 + 0x10f6e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400d2980
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x10f6e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400d1bf3
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 0x1400d1bf3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400d2980
test rax, rax
js 0x1400d1bf3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400d1bf3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400d1be5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400d1be5
cmp byte [rcx], 0xd
jne 0x1400d1bcb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400d1bda
cmp byte [rcx + 1], 0xa
jne 0x1400d1bda
inc rcx
jmp 0x1400d1bda
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x10c4d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400d1bad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400d1bf7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400b6680
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 0x1400d1d20
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, [0x14010f6e0]
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 0x1400d1d77
cmp word [rdx], r13w
jne 0x1400d1d77
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400d1d7c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400d1ea1
mov r11d, SafeArrayGetDim
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400d1ec2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400d1db5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400d1ddc
cmp r9, r8
jae 0x1400d1dec
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 0x1400d1d96
jmp 0x1400d1ea1
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 0x1400d1e96
cmp dword [rsp + 0x80], esi
je 0x1400d1e96
lea r8, [0x14010f6e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400d1e6e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400d1e3e
mov word [rbx], r13w
jmp 0x1400d1e9e
mov ecx, SafeArrayGetDim
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 0x1400d1e4b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400d1e9e
cmp word [rsp + 0x70], r13w
jne 0x1400d1e7b
cmp rbx, r14
je 0x1400d1e38
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400d2988
cmp word [rsp + 0x70], r13w
je 0x1400d1ea1
mov ecx, SafeArrayGetDim
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, [0x14010f6e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400d1e9b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400d1ea1
Function at 0x1400d3fe8
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 0x1400d4018
xor eax, eax
jmp 0x1400d40db
mov rbp, rbx
cmp word [rax], si
je 0x1400d403d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400d4024
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400d4020
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.1400cb5b8
movsxd r14, eax
test eax, eax
jne 0x1400d407b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400d4011
mov rcx, r14
call fcn.1400cb558
mov rdi, rax
test rax, rax
jne 0x1400d4094
xor ecx, ecx
call fcn.1400cb51c
jmp 0x1400d4070
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.1400cb5b8
test eax, eax
jne 0x1400d40c5
mov rcx, rdi
call fcn.1400cb51c
jmp 0x1400d40cf
xor ecx, ecx
call fcn.1400cb51c
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 0x1400d6c08
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.1400cba10
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 0x1400d6ca9
cmp ebx, dword [rsp + 0x30]
je 0x1400d6ca2
test esi, esi
je 0x1400d6ca2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400d6c7d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400d6c8a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400d6c67
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400d6c8e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400d6cab
mov eax, 1
jmp 0x1400d6cab
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400dafb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400dafd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400dafd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140012840
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14001284d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14001285d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140012845
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140012875
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140012862
sub eax, 3
jb 0x14001288f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400128c6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400128b6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400128b4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400128a3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140012802
jmp 0x14001284d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x5800
mov dl, 7
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140012912
cmp rsi, rcx
jae 0x14001291a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400128f9
cmp al, 0x8f
ja 0x1400128f9
cmp byte [rsi - 2], 0xf
je 0x1400128ff
sub al, 0xe8
cmp al, 1
ja 0x1400128e3
cmp rsi, rcx
jae 0x14001291a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400128e9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14001291a
lodsb al, byte [rsi]
jmp 0x1400128f9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x10000]
mov eax, dword [rdi]
or eax, eax
je 0x140012977
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x128d0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140012927
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140012971
mov qword [rbx], rax
add rbx, 8
jmp 0x140012947
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400129b1
cmp al, 0xef
ja 0x1400129a3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140012983
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140012992
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x20f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140012a05
sub rsp, 0xffffffffffffff80
jmp 0x1400017c4