joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064ab0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140080840]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
mov dword [rsp + 0x20], 0xf0000040
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
lea rcx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x38], rbp
xor edx, edx
mov qword [rsp + 0x40], rbp
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140064b33
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140064b55
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140064c00
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call fcn.14001fc40
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebp
mov edx, 2
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x10
jne 0x140064bb4
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rbx
mov dword [rsp + 0x20], ebp
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140064bc4
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140064bd6
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x140064b38

Function at 0x1400656b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140065702
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140065702
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140065702
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140065702
cmp dword [rcx + 0x84], 0xe
jbe 0x140065702
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140065704
xor al, al
add rsp, 0x28
ret
Function at 0x140001650
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
lea r8, [0x140001310]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov ecx, 0x39
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400016a2
cmp byte [0x14000570c], 0
jne 0x1400016a2
mov byte [0x14000570c], 1
jmp 0x1400016c2
mov ecx, 0x39
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400016cd
cmp byte [0x14000570c], 1
jne 0x1400016cd
mov byte [0x14000570c], 0
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x14000570c], 0
je 0x140001680
call section..text
jmp 0x140001680

Function at 0x14000227c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400022c6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400022c6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400022c6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400022c6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400022c6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400022c8
xor al, al
add rsp, 0x28
ret
Function at 0x14002ccb0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x10
mov qword [rsp + 8], rcx
mov dword [rsp + 4], 0x811c9dc5
mov rax, qword [rsp + 8]
add rax, 2
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov rcx, rax
add rcx, 1
mov qword [rsp + 8], rcx
mov al, byte [rax]
mov byte [rsp + 3], al
cmp byte [rsp + 3], 0
jne 0x14002ccfa
mov eax, dword [rsp + 4]
add rsp, 0x10
ret
mov eax, dword [rsp + 4]
movsx ecx, byte [rsp + 3]
xor eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
mov dword [rsp + 4], eax
jmp 0x14002cccf
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000c9e0]
mov dword [rax], 1
mov rax, qword [0x14000c9f0]
mov dword [rax], 1
mov rax, qword [0x14000ca00]
mov dword [rax], 1
mov rax, qword [0x14000c980]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001e60
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140004140
sub rsp, rax
mov eax, dword [0x140022100]
mov rsi, rcx
test eax, eax
je 0x140001f00
xor ebx, ebx
lea rdi, [0x140020100]
test eax, eax
jg 0x140001e9c
jmp 0x140001eb0
add rbx, 1
cmp dword [0x140022100], ebx
jle 0x140001eb0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140001e90
jmp 0x140001ee7
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x140001ec5
cmp word [rsi + 2], 0x3a
je 0x140001ee7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140001f50
movsxd rbx, dword [0x140022100]
cmp ebx, 0x3ff
jle 0x140001f68
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, [0x14000c122]
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140001720
test al, al
je 0x140001f8a
movsxd rbx, dword [0x140022100]
mov rcx, rdi
lea rdi, [0x140020100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140022100]
add eax, 1
mov dword [0x140022100], eax
jmp 0x140001e81
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140001ed4
xor eax, eax
jmp 0x140001eec
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140022100], 1
mov rdx, rax
lea rax, [0x140020100]
mov qword [rax + rbx*8], rdx
jmp 0x140001ee7
mov rcx, rbx
call fcn.140001dc0
nop
nop word cs:[rax + rax]
nop

Function at 0x140002140
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x1400190a0]
test rcx, rcx
je 0x14000217b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400021a0
mov rcx, qword [0x1400190a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14001e0e0], 0
jne 0x1400021b8
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x1400190a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14000216e
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14000c130]
mov qword [rsp + 0x20], 0
lea rdi, [0x14001e100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002284
test al, 0x10
je 0x140002184
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140002184
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140002230
jmp 0x140002184
Function at 0x140002e20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140009d70
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, [0x14000c400]
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140009d70
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140003af2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400221e8]
test eax, eax
je 0x140003b8a
lea rax, [0x1400221c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400221f0]
mov qword [rbp - 8], rax
jmp 0x140003b6e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140003b62
cmp qword [rbp - 0x10], 0
je 0x140003b62
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140003b28
lea rax, [0x1400221c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140003b8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140003c90
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140003cb8
mov eax, 0
jmp 0x140003d06
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140003ce1
mov eax, 0
jmp 0x140003d06
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140003d01
mov eax, 0
jmp 0x140003d06
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140003d0c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140003d8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140003d81
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140003d81
mov rax, qword [rbp - 8]
jmp 0x140003d9f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140003d54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x108e7c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
xor ebx, ebx
test r8d, r8d
mov qword [rsp + 0x18], rsi
mov r9, rdx
mov rsi, rcx
je 0x108e87d
mov qword [rsp + 0x20], rdi
mov edi, r8d
nop
nop
nop
nop
mov r11b, byte [r9]
shr r11d, 4
and r11d, 0xf
xor r10d, r10d
movsxd rax, r11d
lea r8, [rsi + rax*8 + 4]
cmp r11d, 0xa
jae 0x108e85e
movzx edx, word [r9]
mov ecx, r10d
mov eax, pe_nt_image_headers64
shl eax, cl
test edx, eax
je 0x108e85e
xor dl, byte [r8 - 4]
test dl, 0xf
jne 0x108e84a
movzx eax, word [r8 - 2]
cmp word [r9 + 2], ax
jne 0x108e84a
movzx eax, word [r8]
cmp word [r9 + 4], ax
jne 0x108e84a
movzx eax, word [r8 + 2]
cmp word [r9 + 6], ax
je 0x108e85e
mov rax, qword [r9]
lea ecx, [r10 + r11*2]
mov edx, 1
shl edx, cl
mov qword [r8 - 4], rax
or ebx, edx
inc r10d
add r8, 0x50
cmp r10d, 2
jb 0x108e806
add r9, 8
dec rdi
jne 0x108e7f0
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x18]
mov eax, ebx
mov rbx, qword [rsp + 0x10]
ret
Function at 0x140001500
Capabilities:
Connect socket
Hide graphical window
Initialize winsock library
Resolve dns

Disassembly:
sub rsp, 0x258
mov rax, qword [0x140038078]
xor rax, rsp
mov qword [rsp + 0x240], rax
call qword [sym.imp.KERNEL32.DLL_AllocConsole]
xor edx, edx
lea rcx, str.ConsoleWindowClass
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rsp + 0x40], rax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_ShowWindow]
mov qword [rsp + 0x20], 0
xor eax, eax
cmp eax, 1
je 0x140001742
lea rdx, [rsp + 0xa0]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001587
lea rdx, str.WSAStartup_failed._n
lea rcx, [0x1400392d0]
call fcn.1400018d0
mov eax, 1
jmp 0x140001744
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1400097d0
mov dword [rsp + 0x64], 2
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x6c], 6
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [section..data]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14000160b
lea rdx, str.Failed_to_resolve_hostname._n
lea rcx, [0x1400392d0]
call fcn.1400018d0
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rsp + 0x30], 5
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.140001790
mov rcx, rax
call fcn.140002820
jmp 0x140001549
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax + 0xc]
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 8]
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14000167f
lea rdx, str.Socket_creation_failed._n
lea rcx, [0x1400392d0]
call fcn.1400018d0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rsp + 0x34], 5
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x50]
call fcn.140001790
mov rcx, rax
call fcn.140002820
jmp 0x140001549
mov eax, 2
mov word [rsp + 0x90], ax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x20]
mov eax, dword [rax + 4]
mov dword [rsp + 0x94], eax
mov cx, 0x205e
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x92], ax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140001722
lea rdx, str.Connection_failed._n
lea rcx, [0x1400392d0]
call fcn.1400018d0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rsp + 0x38], 5
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.140001790
mov rcx, rax
call fcn.140002820
jmp 0x140001549
mov rcx, qword [rsp + 0x28]
call fcn.140001190
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140001549
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400083c0
add rsp, 0x258
ret

Function at 0x140012980
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001277c
Function at 0x1400170a8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400170be
mov al, 1
jmp 0x14001711e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400170cf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001711c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001d6bc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001711c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x14001711c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x14001711c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001711e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001876c
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.140008950
sub rsp, rax
mov rax, qword [0x140038078]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140016f88
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400187bb
mov rax, rbp
jmp 0x1400188c3
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 + 0x3aba0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001964c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3aba0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400188bf
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 0x1400188bf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001964c
test rax, rax
js 0x1400188bf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400188bf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400188b1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400188b1
cmp byte [rcx], 0xd
jne 0x140018897
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400188a6
cmp byte [rcx + 1], 0xa
jne 0x1400188a6
inc rcx
jmp 0x1400188a6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x38530]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140018879
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400188c3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400083c0
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 0x1400189ec
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, [0x14003aba0]
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 0x140018a43
cmp word [rdx], r13w
jne 0x140018a43
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140018a48
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140018b6d
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140018b8e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140018a81
mov rdx, r9
mov word [rbx], cx
jmp 0x140018aa8
cmp r9, r8
jae 0x140018ab8
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 0x140018a62
jmp 0x140018b6d
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 0x140018b62
cmp dword [rsp + 0x80], esi
je 0x140018b62
lea r8, [0x14003aba0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140018b3a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140018b0a
mov word [rbx], r13w
jmp 0x140018b6a
mov ecx, recv
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 0x140018b17
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140018b6a
cmp word [rsp + 0x70], r13w
jne 0x140018b47
cmp rbx, r14
je 0x140018b04
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140019654
cmp word [rsp + 0x70], r13w
je 0x140018b6d
mov ecx, recv
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, [0x14003aba0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140018b67
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140018b6d
Function at 0x14001ce84
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 0x14001ceb4
xor eax, eax
jmp 0x14001cf77
mov rbp, rbx
cmp word [rax], si
je 0x14001ced9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001cec0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001cebc
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.14001b580
movsxd r14, eax
test eax, eax
jne 0x14001cf17
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
jmp 0x14001cead
mov rcx, r14
call fcn.14001a1e4
mov rdi, rax
test rax, rax
jne 0x14001cf30
xor ecx, ecx
call fcn.140016194
jmp 0x14001cf0c
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.14001b580
test eax, eax
jne 0x14001cf61
mov rcx, rdi
call fcn.140016194
jmp 0x14001cf6b
xor ecx, ecx
call fcn.140016194
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 0x14001fc10
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.140015aa8
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 0x14001fcb1
cmp ebx, dword [rsp + 0x30]
je 0x14001fcaa
test esi, esi
je 0x14001fcaa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001fc85
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001fc92
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001fc6f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001fc96
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001fcb3
mov eax, 1
jmp 0x14001fcb3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret