joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002760
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x60]
mov r10, qword [rax + 0x18]
add r10, 0x10
mov eax, dword [0x180020a94]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a98], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r9b
or r9b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r14b
or r14b, al
lea rax, [rcx - 1]
mov r15, r10
test r8b, r8b
je 0x180002890
mov r15, qword [r15]
cmp r15, r10
je 0x1800028b2
mov rdi, rax
test r9b, r9b
je 0x1800028a0
nop word cs:[rax + rax]
nop
cmp byte [rdi + 1], 0
lea rdi, [rdi + 1]
jne 0x180002810
test r14b, r14b
je 0x1800028b0
sub rdi, rcx
je 0x180002878
mov r12, qword [r15 + 0x60]
xor edx, edx
nop
movzx esi, word [r12 + rdx*2]
lea ebx, [rsi - 0x41]
lea ebp, [rsi + 0x20]
cmp bx, 0x1a
cmovae ebp, esi
movsx ebx, byte [rcx + rdx]
lea r13d, [rbx - 0x41]
lea r11d, [rbx + 0x20]
cmp r13b, 0x1a
cmovae r11d, ebx
sub ebp, r11d
test esi, esi
je 0x180002870
test ebp, ebp
jne 0x180002870
add rdx, 1
cmp rdi, rdx
jne 0x180002830
jmp 0x180002878
test ebp, ebp
jne 0x1800027e4
mov rax, qword [r15 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002890
jmp 0x1800028a0
jmp 0x1800028b0
xor eax, eax
jmp 0x18000287c

Function at 0x140001dcc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e16
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001e16
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001e16
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001e16
cmp dword [rcx + 0x84], 0xe
jbe 0x140001e16
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001e18
xor al, al
add rsp, 0x28
ret
Function at 0x180001f24
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
mov eax, 0x13b0
call fcn.180066400
sub rsp, rax
mov rbx, rcx
xor ecx, ecx
call fcn.180075c40
or dword [rsp + 0x13a4], 0xffffffff
mov r8d, 1
mov edx, r8d
mov dword [rsp + 0x24], eax
mov r9d, 0x270
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul ecx, ecx, 0x6c078965
add ecx, edx
mov dword [rsp + rdx*4 + 0x24], ecx
mov eax, ecx
add rdx, r8
cmp rdx, r9
jb 0x180001f58
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], r9d
lea rcx, [rsp + 0x13c0]
mov dword [rsp + 0x13c0], r8d
mov dword [rsp + 0x13c4], 6
call fcn.18000d640
mov dword [rbx + 0x30], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, dword [rbx + 0x30]
sub edx, 1
je 0x180002052
sub edx, 1
je 0x180002038
sub edx, 1
je 0x18000201b
sub edx, 1
je 0x180002001
sub edx, 1
je 0x180001fe4
cmp edx, 1
jne 0x18000206c
mov ecx, 0x21f0
call fcn.180065dfc
mov qword [rbx + 0x28], rax
jmp 0x18000206c
xor ecx, ecx
mov edx, 0x21f0
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x20], rax
jmp 0x18000206c
mov edx, 8
mov r8d, 0x21f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x18], rax
jmp 0x18000206c
xor ecx, ecx
mov edx, 0x21f0
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x10], rax
jmp 0x18000206c
mov edx, 8
mov r8d, 0x21f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], rax
jmp 0x18000206c
xor ecx, ecx
mov edx, 0x21f0
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx], rax
mov rax, rbx
add rsp, 0x13b0
pop rbx
ret
Function at 0x180002114
Capabilities:
Hide graphical window

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r13
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
xor edx, edx
mov rbx, rcx
lea rcx, [rbp + 7]
lea r8d, [rdx + 0x48]
call fcn.18008e140
lea rax, [0x180002318]
mov qword [rbp + 0x1f], rbx
lea rdi, str.BrainStorm
mov qword [rbp + 0xf], rax
lea rcx, [rbp + 7]
mov qword [rbp + 0x47], rdi
call qword [sym.imp.USER32.dll_RegisterClassW]
and qword [rsp + 0x58], 0
lea r8, str.Brain_Storm
mov qword [rsp + 0x50], rbx
mov eax, 0xf0
and qword [rsp + 0x48], 0
mov r9d, 0xcf0000
and qword [rsp + 0x40], 0
mov rdx, rdi
mov dword [rsp + 0x38], eax
xor ecx, ecx
mov dword [rsp + 0x30], eax
mov eax, 0x80000000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rax
mov qword [0x180110d18], rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x180110d18]
call qword [sym.imp.USER32.dll_UpdateWindow]
lea r13, [0x180110cd0]
mov ecx, 1
mov rax, r13
lea r8, [0x180110d10]
mov edx, 4
mov dword [rax], ecx
inc ecx
add rax, 4
sub rdx, 1
jne 0x1800021ef
cmp rax, r8
jl 0x1800021ea
and dword [0x180110d0c], edx
xor ecx, ecx
mov dword [0x180110d38], 3
mov dword [0x180110cc8], 3
call fcn.180075c40
mov rcx, rax
call fcn.180074418
mov esi, 0x3e8
mov ebx, dword [0x180110d38]
mov edi, dword [0x180110cc8]
call fcn.1800743ec
and eax, 0x80000003
jge 0x18000224f
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x18000226e
sub eax, 1
je 0x18000226a
sub eax, 1
je 0x180002266
cmp eax, 1
jne 0x180002270
inc ebx
jmp 0x180002270
dec ebx
jmp 0x180002270
inc edi
jmp 0x180002270
dec edi
cmp ebx, 3
ja 0x1800022b6
cmp edi, 3
ja 0x1800022b6
movsxd rcx, dword [0x180110d38]
movsxd rax, dword [0x180110cc8]
mov dword [0x180110d38], ebx
mov dword [0x180110cc8], edi
lea r8, [rax + rcx*4]
movsxd rcx, ebx
movsxd rax, edi
lea rdx, [rax + rcx*4]
mov eax, dword [r13 + r8*4]
mov ecx, dword [r13 + rdx*4]
mov dword [r13 + rdx*4], eax
mov dword [r13 + r8*4], ecx
sub rsi, 1
jne 0x180002230
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
jmp 0x1800022e5
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1800022d1
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r13, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
add rsp, 0x28
jmp 0x180002114
Function at 0x180006184
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
xor edx, edx
mov rdi, rcx
lea rcx, [rbp + 7]
lea r8d, [rdx + 0x48]
call fcn.18008e140
mov rax, qword [sym.imp.USER32.dll_DefWindowProcW]
lea rbx, str.ConvClass
lea rcx, [rbp + 7]
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x47], rbx
call qword [sym.imp.USER32.dll_RegisterClassA]
and qword [rsp + 0x58], 0
lea r8, str.Currency_Converter
mov qword [rsp + 0x50], rdi
mov eax, 0x80000000
and qword [rsp + 0x48], 0
mov r9d, 0xcf0000
and qword [rsp + 0x40], 0
mov rdx, rbx
mov dword [rsp + 0x38], 0x12c
xor ecx, ecx
mov dword [rsp + 0x30], 0x190
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
and qword [rsp + 0x58], 0
lea r8, [0x18009d505]
mov qword [rsp + 0x50], rdi
lea rdx, str.EDIT
and qword [rsp + 0x48], 0
mov r9d, 0x50802000
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov dword [rsp + 0x38], 0x1e
mov rbx, rax
mov dword [rsp + 0x30], 0x64
mov dword [rsp + 0x28], 0x32
mov dword [rsp + 0x20], 0x32
call qword [sym.imp.USER32.dll_CreateWindowExA]
and qword [rsp + 0x58], 0
lea r8, str.Convert_to_Euro
mov qword [rsp + 0x50], rdi
lea rdx, str.BUTTON
and qword [rsp + 0x48], 0
mov r9d, 0x50000001
mov qword [rsp + 0x40], rbx
xor ecx, ecx
mov dword [rsp + 0x38], 0x1e
mov dword [rsp + 0x30], 0x96
mov dword [rsp + 0x28], 0x32
mov dword [rsp + 0x20], 0xa0
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
and qword [rsp + 0x58], 0
lea r8, [0x18009d505]
mov qword [rsp + 0x50], rdi
lea rdx, str.EDIT
and qword [rsp + 0x48], 0
mov r9d, 0x50800804
mov qword [rsp + 0x40], rbx
xor ecx, ecx
mov dword [rsp + 0x38], 0x96
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x32
call qword [sym.imp.USER32.dll_CreateWindowExA]
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
jmp 0x180006352
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x18000633e
mov eax, dword [rbp - 0x19]
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
add rsp, 0x28
jmp 0x180006184
Function at 0x180006aa4
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edx, edx
lea rcx, [rbp + 7]
mov rbx, rax
lea r8d, [rdx + 0x48]
call fcn.18008e140
lea rax, [0x180004838]
mov qword [rbp + 0x1f], rbx
lea rdi, str.BritishFlag
mov qword [rbp + 0xf], rax
lea rcx, [rbp + 7]
mov qword [rbp + 0x47], rdi
call qword [sym.imp.USER32.dll_RegisterClassW]
and qword [rsp + 0x58], 0
lea r8, str.British_Flag
mov qword [rsp + 0x50], rbx
mov eax, 0x80000000
and qword [rsp + 0x48], 0
mov r9d, 0xcf0000
and qword [rsp + 0x40], 0
mov rdx, rdi
mov dword [rsp + 0x38], 0xc8
xor ecx, ecx
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rax
mov qword [0x180110d50], rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x180110d50]
call qword [sym.imp.USER32.dll_UpdateWindow]
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
jmp 0x180006b8c
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x180006b78
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180009244
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, edx
test edx, edx
je 0x18000925d
mov eax, 0x8b671e0
mov dword [0x180110cc4], eax
jmp 0x180009263
mov eax, dword [0x180110cc4]
cmp eax, 0x3330028b
jne 0x1800093b2
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FreeLibraryWhenCallbackReturns]
xor edx, edx
lea rcx, str.ZztZgn5Fv42U7WNtR
call qword [sym.imp.KERNEL32.dll_LoadPackagedLibrary]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetAtomNameW]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetMenuStringW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_PowerClearRequest]
and dword [rsp + 0x20], 0
lea r9, str.JdIj8Etxijvy7OGU8AoP
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_IsNLSDefinedString]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_DlgDirListW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetWindowDC]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_LookupIconIdFromDirectory]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_QueryUnbiasedInterruptTime]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCompressedFileSizeTransactedW]
xor ecx, ecx
call qword [sym.imp.USER32.dll_BringWindowToTop]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetRectEmpty]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeleteTimerQueue]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
call qword [sym.imp.USER32.dll_EmptyClipboard]
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetProcessDefaultLayout]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetClassLongPtrW]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeleteSynchronizationBarrier]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp ebx, 1
jne 0x1800093e4
mov ecx, 0x11b
lea rax, [0x180008c1c]
mov dword [rsp + 0x38], ecx
add rax, rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.18000d83c
mov eax, 1
add rsp, 0x40
pop rbx
ret
Function at 0x1800191e4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r9, qword [rcx]
mov ebx, 0x270
mov ecx, dword [r9]
cmp ecx, ebx
jne 0x18001924f
lea r8, [r9 + 8]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, r10d
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub rbx, 1
jne 0x180019212
mov ecx, dword [r9]
jmp 0x18001931d
cmp ecx, 0x4e0
jb 0x18001931d
lea rbx, [r9 + 0x9c4]
mov esi, 0xe3
mov edi, dword [rbx]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov eax, edi
mov edi, dword [rbx + 4]
mov edx, eax
lea rbx, [rbx + 4]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [rbx + 0x630]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rsi, 1
jne 0x180019275
lea rbx, [r9 + 0xd50]
mov esi, 0x18c
mov edi, dword [rbx]
mov eax, edi
mov edi, dword [rbx + 4]
mov edx, eax
lea rbx, [rbx + 4]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [rbx - 0xd50]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rsi, 1
jne 0x1800192b6
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
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
ret

Function at 0x180079a5c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180079a72
mov al, 1
jmp 0x180079ad2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180079a83
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180079ad0
mov ecx, dword [rcx + 0x18]
nop
call fcn.180084974
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180079ad0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180079ad0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180079ad0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180079ad2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18007f47c
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.180066400
sub rsp, rax
mov rax, qword [0x1800b20c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18007993c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18007f4cb
mov rax, rbp
jmp 0x18007f5d3
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 + 0x110550]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180080e9c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x110550]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18007f5cf
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 0x18007f5cf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180080e9c
test rax, rax
js 0x18007f5cf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18007f5cf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18007f5c1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18007f5c1
cmp byte [rcx], 0xd
jne 0x18007f5a7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18007f5b6
cmp byte [rcx + 1], 0xa
jne 0x18007f5b6
inc rcx
jmp 0x18007f5b6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xb24d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18007f589
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18007f5d3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180066220
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 0x18008023c
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, [0x180110550]
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 0x180080293
cmp word [rdx], r13w
jne 0x180080293
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180080298
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800803bd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800803de
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800802d1
mov rdx, r9
mov word [rbx], cx
jmp 0x1800802f8
cmp r9, r8
jae 0x180080308
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 0x1800802b2
jmp 0x1800803bd
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 0x1800803b2
cmp dword [rsp + 0x80], esi
je 0x1800803b2
lea r8, [0x180110550]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18008038a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18008035a
mov word [rbx], r13w
jmp 0x1800803ba
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 0x180080367
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800803ba
cmp word [rsp + 0x70], r13w
jne 0x180080397
cmp rbx, r14
je 0x180080354
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180080ea4
cmp word [rsp + 0x70], r13w
je 0x1800803bd
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, [0x180110550]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800803b7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800803bd
Function at 0x1800841b8
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 0x1800841e8
xor eax, eax
jmp 0x1800842ab
mov rbp, rbx
cmp word [rax], si
je 0x18008420d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800841f4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800841f0
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.1800828a0
movsxd r14, eax
test eax, eax
jne 0x18008424b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800841e1
mov rcx, r14
call fcn.18007be68
mov rdi, rax
test rax, rax
jne 0x180084264
xor ecx, ecx
call fcn.18007be2c
jmp 0x180084240
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.1800828a0
test eax, eax
jne 0x180084295
mov rcx, rdi
call fcn.18007be2c
jmp 0x18008429f
xor ecx, ecx
call fcn.18007be2c
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 0x180087020
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.180079f60
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 0x1800870c1
cmp ebx, dword [rsp + 0x30]
je 0x1800870ba
test esi, esi
je 0x1800870ba
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180087095
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800870a2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18008707f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800870a6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800870c3
mov eax, 1
jmp 0x1800870c3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret