joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017dc5
Capabilities:
Enumerate processes

Disassembly:
jmp 0x14002c490
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x278
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x66
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x298]
mov rax, qword [0x1401d0080]
xor rax, rbp
mov qword [rbp + 0x248], rax
lea rcx, reloc.d2d1.dll_Ordinal_1
call fcn.140018428
nop
mov dword [rbp + 4], 0
xor edx, edx
mov ecx, 2
call fcn.140017992
mov qword [rbp + 0x28], rax
mov r8d, 0x130
xor edx, edx
lea rcx, [rbp + 0x50]
call fcn.140017ef6
nop
mov dword [rbp + 0x50], 0x130
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.140018059
test eax, eax
je 0x14002c548
mov rdx, qword [rbp + 0x270]
lea rcx, [rbp + 0x7c]
call fcn.140018649
test eax, eax
jne 0x14002c537
mov eax, dword [rbp + 0x58]
mov dword [rbp + 4], eax
jmp 0x14002c548
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.140018441
test eax, eax
jne 0x14002c51b
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, reloc.d2d1.dll_Ordinal_1
call fcn.14001807c
mov eax, edi
mov rcx, qword [rbp + 0x248]
xor rcx, rbp
call fcn.1400179c9
lea rsp, [rbp + 0x258]
pop rdi
pop rbp
ret

Function at 0x140017dd4
Capabilities:
Parse pe header

Disassembly:
jmp 0x140043950
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140043970
xor al, al
jmp 0x1400439f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140043983
xor al, al
jmp 0x1400439f1
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 0x1400439ad
xor al, al
jmp 0x1400439f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400439c1
xor al, al
jmp 0x1400439f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400439d3
xor al, al
jmp 0x1400439f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400439ef
xor al, al
jmp 0x1400439f1
mov al, 1
add rsp, 0x38
ret
Function at 0x14001827a
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x14002c020
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x238]
mov rax, qword [0x1401d0080]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
lea rcx, reloc.d2d1.dll_Ordinal_1
call fcn.140018428
nop
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, 0xb
call fcn.140017ec4
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0xc0000004
jne 0x14002c0e6
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov eax, dword [rbp + 0x24]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, 0xb
call fcn.140017ec4
mov dword [rbp + 0x44], eax
jmp 0x14002c092
cmp dword [rbp + 0x44], 0
jge 0x14002c106
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
xor eax, eax
jmp 0x14002c233
mov rax, qword [rbp + 8]
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x84], 0
jmp 0x14002c128
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
cmp dword [rbp + 0x84], eax
jae 0x14002c21e
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax + 8]
mov ecx, dword [rbp + 0x84]
imul rcx, rcx, 0x128
mov rdx, qword [rbp + 0x68]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rbp + 0xa8]
call fcn.140017924
nop
mov rcx, qword [rbp + 0x210]
call fcn.1400171f9
mov qword [rbp + 0x1d8], rax
lea rcx, [rbp + 0xa8]
call fcn.1400171f9
mov qword [rbp + 0x1e0], rax
mov rdx, qword [rbp + 0x1d8]
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.ucrtbased.dll__stricmp]
test eax, eax
jne 0x14002c20c
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
mov rax, qword [rcx + rax + 0x18]
mov qword [rbp + 0xe8], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x1c8], rax
lea rcx, [rbp + 0xa8]
call fcn.140017389
mov rax, qword [rbp + 0x1c8]
jmp 0x14002c233
lea rcx, [rbp + 0xa8]
call fcn.140017389
nop
jmp 0x14002c11a
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14004f5d0]
call fcn.14001807c
mov rax, rdi
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.1400179c9
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret
Function at 0x1400183dd
Capabilities:
Write file on windows

Disassembly:
jmp 0x14002e290
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x1401d0080]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x1401dc3b1]
call fcn.140018428
nop
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x14002e2f7
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14002e2fe
mov al, 1
jmp 0x14002e46e
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.140017573
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.140017573
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.140017fbe
movzx eax, al
test eax, eax
je 0x14002e361
xor al, al
jmp 0x14002e46e
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x14002e3d4
cmp dword [rbp + 0x160], 1
je 0x14002e3df
cmp dword [rbp + 0x160], 3
je 0x14002e45d
jmp 0x14002e46c
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14002e42f
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14002e42f
xor al, al
jmp 0x14002e46e
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14002e44a
mov dword [rbp + 0x154], 1
jmp 0x14002e454
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14002e46e
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14002e46e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400500a0]
call fcn.14001807c
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.1400179c9
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1400183e7
Capabilities:
Create thread

Disassembly:
jmp 0x14001e880
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x1401d0080]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1401dc122]
call fcn.140018428
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1400184fa
mov r8, qword [rbp + 0x140]
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.140017a37
nop
lea rax, [0x1400181bc]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.1400178cf
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x14001e968
lea rcx, [rbp + 8]
call fcn.1400184cd
nop
jmp 0x14001e981
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.14001747e
nop
lea rcx, [rbp + 8]
call fcn.14001858b
nop
lea rcx, [rbp - 0x30]
lea rdx, reloc.d2d1.dll_Ordinal_1
call fcn.14001807c
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1400179c9
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x140041250
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001850e
movzx eax, al
test eax, eax
jne 0x140041270
mov ecx, 7
call fcn.1400180a9
nop
mov byte [rsp + 0x20], 0
call fcn.140018103
mov byte [rsp + 0x21], al
cmp dword [0x1401d1680], 1
jne 0x140041294
mov ecx, 7
call fcn.1400180a9
nop
jmp 0x1400412ec
cmp dword [0x1401d1680], 0
jne 0x1400412e7
mov dword [0x1401d1680], 1
lea rdx, [0x14004b770]
lea rcx, [0x14004b440]
call fcn.14001798d
test eax, eax
je 0x1400412c8
mov eax, 0xff
jmp 0x1400413f1
lea rdx, [0x14004b330]
lea rcx, [section..rdata]
call fcn.1400180e0
mov dword [0x1401d1680], 2
jmp 0x1400412ec
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001805e
call fcn.140017e33
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140041349
mov rcx, qword [rsp + 0x30]
call fcn.14001778f
movzx eax, al
test eax, eax
je 0x140041349
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x1401dd020]
nop
call fcn.140017f3c
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14004137d
mov rcx, qword [rsp + 0x38]
call fcn.14001778f
movzx eax, al
test eax, eax
je 0x14004137d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140018383
nop
call fcn.1400414a0
mov dword [rsp + 0x28], eax
call fcn.140017dd4
movzx eax, al
test eax, eax
jne 0x14004139c
mov ecx, dword [rsp + 0x28]
call fcn.140017195
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400413ab
call fcn.1400183b5
nop
xor edx, edx
mov cl, 1
call fcn.140017708
mov eax, dword [rsp + 0x28]
jmp 0x1400413f1
add rsp, 0x68
ret
Function at 0x1400030b0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rcx
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x78], 0
jg 0x1400030ed
mov qword [rsp + 0x80], 0
jmp 0x1400032b9
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x68], 0
je 0x14000311e
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
call fcn.140003e60
mov qword [rsp + 0x80], rax
jmp 0x1400032b9
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
call fcn.140004210
mov qword [rsp + 0x50], rax
xor eax, eax
cmp rax, qword [rsp + 0x50]
jae 0x1400031bd
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x50]
call fcn.140004ea0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
call fcn.1400042a0
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.140004260
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x48]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
sub rax, rdx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov edx, eax
call fcn.1400042c0
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x80], 0
je 0x1400032a7
mov rcx, qword [rsp + 0x30]
call fcn.140002580
mov qword [rsp + 0x40], 0xfff
mov eax, 0xfff
cmp rax, qword [rsp + 0x60]
jae 0x140003265
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x80]
mov rcx, qword [rsp + 0x70]
mov edx, 1
mov r8d, 0xfff
call fcn.140011cb0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x60]
sub rax, rcx
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x38], 0xfff
je 0x140003260
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
jmp 0x1400032b9
jmp 0x1400031e3
xor eax, eax
cmp rax, qword [rsp + 0x60]
jae 0x1400032a2
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
mov edx, 1
call fcn.140011cb0
mov rcx, rax
mov rax, qword [rsp + 0x60]
sub rax, rcx
mov qword [rsp + 0x60], rax
jmp 0x1400032a7
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
add rsp, 0x88
ret

Function at 0x14000b07c
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400131cf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400131cf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400131cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400131cf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400131cf
cmp dword [rcx + 0x84], 0xe
jbe 0x1400131cf
cmp dword [rcx + 0xf8], 0
je 0x1400131cf
mov ecx, ebx
call fcn.140013280
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001305c
nop
cmp dword [rbp + 0x20], 0
je 0x14001321d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140013228
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140013160

Function at 0x140013364
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013160
Function at 0x14001a22c
Capabilities:
Get file size

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

Function at 0x14001a69c
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, [0x140076070]
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 0x14001a6f3
cmp word [rdx], r13w
jne 0x14001a6f3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001a6f8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001a81d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001a83e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001a731
mov rdx, r9
mov word [rbx], cx
jmp 0x14001a758
cmp r9, r8
jae 0x14001a768
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 0x14001a712
jmp 0x14001a81d
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 0x14001a812
cmp dword [rsp + 0x80], esi
je 0x14001a812
lea r8, [0x140076070]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001a7ea
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001a7ba
mov word [rbx], r13w
jmp 0x14001a81a
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 0x14001a7c7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001a81a
cmp word [rsp + 0x70], r13w
jne 0x14001a7f7
cmp rbx, r14
je 0x14001a7b4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001b304
cmp word [rsp + 0x70], r13w
je 0x14001a81d
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, [0x140076070]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001a817
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001a81d
Function at 0x14001b6c0
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.14000a5e0
sub rsp, rax
mov rax, qword [0x140074580]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140017b38
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001b70f
mov rax, rbp
jmp 0x14001b817
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 + 0x76070]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001b2fc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x76070]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001b813
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 0x14001b813
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001b2fc
test rax, rax
js 0x14001b813
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001b813
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001b805
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001b805
cmp byte [rcx], 0xd
jne 0x14001b7eb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001b7fa
cmp byte [rcx + 1], 0xa
jne 0x14001b7fa
inc rcx
jmp 0x14001b7fa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x74a00]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001b7cd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001b817
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140026410
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 0x14001d23c
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 0x14001d26c
xor eax, eax
jmp 0x14001d32f
mov rbp, rbx
cmp word [rax], si
je 0x14001d291
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001d278
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001d274
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.14001d15c
movsxd r14, eax
test eax, eax
jne 0x14001d2cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001d265
mov rcx, r14
call fcn.14001dc44
mov rdi, rax
test rax, rax
jne 0x14001d2e8
xor ecx, ecx
call fcn.140017afc
jmp 0x14001d2c4
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.14001d15c
test eax, eax
jne 0x14001d319
mov rcx, rdi
call fcn.140017afc
jmp 0x14001d323
xor ecx, ecx
call fcn.140017afc
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 0x1400209a8
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.140018320
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 0x140020a49
cmp ebx, dword [rsp + 0x30]
je 0x140020a42
test esi, esi
je 0x140020a42
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140020a1d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140020a2a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140020a07
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140020a2e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140020a4b
mov eax, 1
jmp 0x140020a4b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret