joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001130c
Capabilities:
Terminate process

Disassembly:
jmp 0x140023e00
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001137a
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x140011bf0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x20]
lea rcx, [0x14004601f]
call fcn.140011555
mov edx, dword [rbp + 0xf8]
mov rcx, qword [rbp + 0xf0]
call fcn.1400113d4
mov rax, qword [rbp + 0xf0]
mov eax, dword [rax]
mov qword [rbp + 0xc0], rax
mov rcx, qword [rbp + 0xf0]
mov rdi, qword [rcx + 8]
xor eax, eax
mov rcx, qword [rbp + 0xc0]
rep stosb byte [rdi], al
mov rax, qword [rbp + 0x100]
cmp qword [rax], 0xffffffffffffffff
jne 0x140011c6b
mov byte [rbp + 0xc0], 1
jmp 0x140011c72
mov byte [rbp + 0xc0], 0
movzx eax, byte [rbp + 0xc0]
test eax, eax
je 0x140011c89
mov dword [rbp + 0xc4], 1
jmp 0x140011c93
mov dword [rbp + 0xc4], 0
cmp dword [rbp + 0xc4], 0
je 0x140011ca4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140011cde
xor r9d, r9d
mov rax, qword [rbp + 0xf0]
mov r8d, dword [rax]
mov rax, qword [rbp + 0xf0]
mov rdx, qword [rax + 8]
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x108]
mov dword [rcx], eax
mov rax, qword [rbp + 0x108]
mov eax, dword [rax]
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret
Function at 0x1400113d4
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x140019aa0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x140
lea rbp, [rsp + 0x30]
lea rcx, [0x140046045]
call fcn.140011555
mov eax, dword [rbp + 0x138]
mov qword [rbp + 8], rax
lea rax, [rbp + 0xe8]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rax, [rbp + 0xe8]
mov rdi, qword [rbp + 0x130]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rbp + 0x130]
mov eax, dword [rax]
add eax, dword [rbp + 0x138]
mov rcx, qword [rbp + 0x130]
mov dword [rcx], eax
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, qword [rbp + 0x130]
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax + 8], 0
jne 0x140019b4b
mov byte [rbp + 0x104], 1
jmp 0x140019b52
mov byte [rbp + 0x104], 0
movzx eax, byte [rbp + 0x104]
test eax, eax
je 0x140019b69
mov dword [rbp + 0x108], 1
jmp 0x140019b73
mov dword [rbp + 0x108], 0
cmp dword [rbp + 0x108], 0
je 0x140019bd2
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xc0000017
mov dword [rbp + 0x104], eax
mov ecx, dword [0x14003403c]
add ecx, 0xc
mov dword [rbp + 0x108], ecx
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov ecx, dword [rbp + 0x104]
mov dword [rsp + 0x20], ecx
mov ecx, dword [rbp + 0x108]
mov r9d, ecx
lea r8, str.void___cdecl_bwsalloc_struct_BUFFER__unsigned_long_
lea rdx, str.____function__S_failed_on_line__u_with_error_0x_08X_n
mov rcx, rax
call fcn.140011483
jmp 0x140019be5
mov rax, qword [rbp + 0x130]
mov rdi, qword [rax + 8]
xor eax, eax
mov rcx, qword [rbp + 8]
rep stosb byte [rdi], al
lea rsp, [rbp + 0x110]
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400113d9
Capabilities:
Parse pe header

Disassembly:
jmp 0x140026080
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400260a0
xor al, al
jmp 0x140026121
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400260b3
xor al, al
jmp 0x140026121
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 0x1400260dd
xor al, al
jmp 0x140026121
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400260f1
xor al, al
jmp 0x140026121
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140026103
xor al, al
jmp 0x140026121
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002611f
xor al, al
jmp 0x140026121
mov al, 1
add rsp, 0x38
ret
Function at 0x14001156e
Capabilities:
Generate random numbers via winapi

Disassembly:
jmp 0x14001a250
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x140046045]
call fcn.140011555
lea rax, [0x140034288]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
cmp qword [rax], 0
jne 0x14001a2f8
mov dword [rsp + 0x20], 0
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14001a2f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xd4], eax
mov ecx, dword [0x140034030]
add ecx, 4
mov dword [rbp + 0xd8], ecx
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov ecx, dword [rbp + 0xd4]
mov dword [rsp + 0x20], ecx
mov ecx, dword [rbp + 0xd8]
mov r9d, ecx
lea r8, str.void___cdecl_csprng_unsigned_char__unsigned_long_
lea rdx, str.____function__S_failed_on_line__u_with_error_0x_08X_n
mov rcx, rax
call fcn.140011483
mov r8, qword [rbp + 0x100]
mov edx, dword [rbp + 0x108]
mov rax, qword [rbp + 8]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x14001a365
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xd4], eax
mov ecx, dword [0x140034030]
add ecx, 6
mov dword [rbp + 0xd8], ecx
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov ecx, dword [rbp + 0xd4]
mov dword [rsp + 0x20], ecx
mov ecx, dword [rbp + 0xd8]
mov r9d, ecx
lea r8, str.void___cdecl_csprng_unsigned_char__unsigned_long_
lea rdx, str.____function__S_failed_on_line__u_with_error_0x_08X_n
mov rcx, rax
call fcn.140011483
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1400115aa
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x140011d30
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x20]
lea rcx, [0x14004601f]
call fcn.140011555
mov rax, qword [rbp + 0x100]
mov dword [rax], 0
mov rax, qword [rbp + 0xf8]
cmp qword [rax], 0xffffffffffffffff
jne 0x140011d7c
mov byte [rbp + 0xc0], 1
jmp 0x140011d83
mov byte [rbp + 0xc0], 0
movzx eax, byte [rbp + 0xc0]
test eax, eax
je 0x140011d9a
mov dword [rbp + 0xc4], 1
jmp 0x140011da4
mov dword [rbp + 0xc4], 0
cmp dword [rbp + 0xc4], 0
je 0x140011db5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140011def
xor r9d, r9d
mov rax, qword [rbp + 0xf0]
mov r8d, dword [rax]
mov rax, qword [rbp + 0xf0]
mov rdx, qword [rax + 8]
mov rax, qword [rbp + 0xf8]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rbp + 0x100]
mov dword [rcx], eax
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret
Function at 0x1400170a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x1400170c4
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x140017152
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140017120
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140017120
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140053cb0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14001713d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140017145
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x1400170e1
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x140017230
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140017169
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001716b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001719d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140053cb0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14001722d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400171d8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x14001720e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1400360e8
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14001722d
cmp rsi, rax
ja 0x1400171e1
test rsi, rsi
je 0x14001722d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400360e8
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x14001f420
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x2c0
mov rax, qword [0x1400ee080]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov r10, r8
mov rax, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
movzx r8d, r9b
xor r8d, 1
lea r9, [rsp + 0xa0]
mov rdx, r10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x14001f4c7
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
lea rax, [rsp + 0xa0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14001f490
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.140001eb0
mov rax, rbx
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.14002a9d0
add rsp, 0x2c0
pop rbx
ret
mov edx, 9
lea rcx, [rsp + 0x58]
call fcn.140018930
nop
lea rcx, str.Failed_to_get_temp_file_name._Error:_
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0x27
mov r8, rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x78]
call fcn.14001e130
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000e4d0
lea rdx, [0x1400ecca8]
lea rcx, [rsp + 0x40]
call fcn.140030218
int3

Function at 0x14001fdf0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1400ee080]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x238
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001fe49
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x14001fe50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001fea1
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x14001fe5d
mov rdx, qword [rbx]
lea rcx, [rsp + 0x4c]
call fcn.14003934c
mov rcx, rdi
test eax, eax
je 0x14001fe89
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14001fe50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001fea1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002a9d0
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
Function at 0x140027340
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140027405
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140027405
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14002741e
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x1400273f5
cmp byte [rcx], 0x5c
jne 0x1400273ee
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x1400273ee
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400273dc
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x1400273eb
test r8b, 0x10
jne 0x1400273ee
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x1400273ee
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140029a30
test edi, edi
jne 0x140027360
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.140028760
int3

Function at 0x140029fd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14002a004
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140029ff0
ret

Function at 0x14002b428
Capabilities:
Parse pe header

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

Function at 0x14002be6c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14002bea6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14002beab
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14002bef4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400bbf60]
cmp byte [rcx + rax], 0
je 0x14002bef4
dec r8
sub rdx, 1
jne 0x14002beda
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14003b834
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 0x14003b8a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003b8a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003b8a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003b8a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003b8a3
cmp dword [rcx + 0x84], 0xe
jbe 0x14003b8a3
cmp dword [rcx + 0xf8], 0
je 0x14003b8a3
mov ecx, ebx
call fcn.14003b948
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.14003b73c
nop
cmp dword [rbp + 0x20], 0
jne 0x14003b904
call fcn.14004a370
cmp eax, 1
jne 0x14003b8f4
xor dl, dl
jmp 0x14003b8fe
call fcn.14004a33c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14003b90f
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003b918
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14003b834

Function at 0x14003ba1c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003b834

Function at 0x140041a14
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400f7050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x140041a79
test rax, rax
jne 0x140041a67
lea r9, [0x1400de1d0]
lea r8, [0x1400de1c8]
lea rdx, [0x1400de1d0]
lea ecx, [rax + 0xa]
call fcn.140041624
test rax, rax
je 0x140041a79
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.140053c70
jmp 0x140041a93
xor edx, edx
mov rcx, rbp
call fcn.140041d04
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140043c80
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.140053780
sub rsp, rax
mov rax, qword [0x1400ee080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140042358
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140043ccf
mov rax, rbp
jmp 0x140043ddb
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 + 0xf11c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140045030
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xf11c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140043dd7
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140043dd7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140045030
test rax, rax
js 0x140043dd7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140043dd7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140043dc9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140043dc9
cmp byte [rcx], 0xd
jne 0x140043daf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140043dbe
cmp byte [rcx + 1], 0xa
jne 0x140043dbe
inc rcx
jmp 0x140043dbe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xee540]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140043d91
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140043ddb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002a9d0
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 0x1400440f8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004410e
mov al, 1
jmp 0x14004417a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004411f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140044178
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004a84c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140044178
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140044178
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140044178
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004417a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140044318
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
xor edi, edi
mov rax, r15
lea rcx, [0x1400f11c0]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x14004436e
cmp word [rdx], r9w
jne 0x14004436e
or byte [rax + rbp*8 + 0x38], 4
jmp 0x140044373
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x1400444f2
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x1400444bd
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x1400443bb
cmp rcx, r8
jae 0x1400443db
cmp word [rcx], r9w
jne 0x1400443bb
add rax, 4
mov edx, r9d
jmp 0x1400443be
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x140044390
jmp 0x1400444f2
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400444b6
cmp dword [rsp + 0x80], edi
je 0x1400444b6
lea r9, [0x1400f11c0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x140044490
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x140044443
mov word [rbx], bp
jmp 0x1400444ef
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x14004445e
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x1400444ef
cmp word [rsp + 0x70], bp
jne 0x14004449c
cmp rbx, rsi
je 0x14004443b
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140045038
cmp word [rsp + 0x70], bp
je 0x1400444f2
mov word [rbx], 0xd
jmp 0x1400444ef
mov rcx, r15
lea r9, [0x1400f11c0]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400444ec
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400444f2
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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