joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb216b0
Capabilities:
Hash data using sha1

Disassembly:
push rbx
push rsi
push r13
sub rsp, 0xf0
movzx r13d, r9b
mov rbx, r8
mov rsi, rcx
test r9b, r9b
jne 0xb216e0
call fcn.00b20640
test al, al
jne 0xb216e0
add rsp, 0xf0
pop r13
pop rsi
pop rbx
ret
mov qword [rsp + 0x118], rdi
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
mov qword [rsp + 0x120], r12
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
call fcn.00b2ae44
mov r12, rax
test rbx, rbx
je 0xb21943
lea r9, [rsp + 0x20]
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call fcn.00b1bea0
test al, al
je 0xb21943
xor edi, edi
xor al, al
mov qword [rsp + 0x110], rbp
mov rbp, qword [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x88], 0x67452301
mov dword [rsp + 0x84], edi
mov dword [rsp + 0x80], edi
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x8c], 0xefcdab89
mov dword [rsp + 0x90], 0x98badcfe
mov dword [rsp + 0x94], 0x10325476
mov dword [rsp + 0x98], 0xc3d2e1f0
mov byte [rsp + 0x30], al
mov rbx, rdi
test rbp, rbp
je 0xb217e9
nop
movzx eax, byte [rbx + r12]
mov byte [rsp + rcx + 0x40], al
mov rcx, qword [rsp + 0x38]
inc rcx
add dword [rsp + 0x84], 8
mov qword [rsp + 0x38], rcx
jne 0xb217c7
inc dword [rsp + 0x80]
cmp rcx, 0x40
jne 0xb217dc
lea rcx, [rsp + 0x30]
call fcn.00b1c150
mov rcx, qword [rsp + 0x38]
inc rbx
cmp rbx, rbp
jb 0xb217a0
movzx eax, byte [rsp + 0x30]
mov rbp, qword [rsp + 0x110]
mov r8d, 0x40
mov qword [rsp + 0x20], r8
test al, al
jne 0xb2187f
mov byte [rsp + rcx + 0x40], pe_nt_image_headers64
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
cmp rax, 0x38
jbe 0xb2183b
cmp rax, r8
jae 0xb2182c
lea rcx, [rsp + rax + 0x40]
sub r8, rax
xor edx, edx
call fcn.00b304f0
lea rcx, [rsp + 0x30]
call fcn.00b1c150
mov rax, qword [rsp + 0x38]
cmp rax, 0x38
jae 0xb21856
mov r8d, 0x38
lea rcx, [rsp + rax + 0x40]
xor edx, edx
sub r8, rax
call fcn.00b304f0
mov eax, dword [rsp + 0x80]
lea rcx, [rsp + 0x30]
bswap eax
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x84]
bswap eax
mov dword [rsp + 0x7c], eax
call fcn.00b1c150
mov byte [rsp + 0x30], 1
mov rcx, rdi
mov eax, dword [rsp + rcx*4 + 0x88]
inc rcx
bswap eax
mov dword [rsp + rcx*4 + 0x98], eax
cmp rcx, 5
jb 0xb21882
lea r9, [rsp + 0x20]
lea r8, [rsp + 0xb0]
lea rcx, [rsp + 0x9c]
mov edx, 0x14
call fcn.00b1bcf0
mov rdx, qword [rsp + 0x20]
mov rcx, r12
mov byte [rsp + rdx + 0xb0], dil
call fcn.00b2b6b8
test r13b, r13b
lea rax, [0x00b3ba58]
lea rcx, [0x00b3ba70]
cmovne rcx, rax
cmp byte [rsi + 8], dil
je 0xb218fa
nop word [rax + rax]
inc rdi
cmp byte [rsi + rdi + 8], 0
jne 0xb218f0
movzx eax, byte [rcx]
test al, al
je 0xb2191a
cmp rdi, 0x800
jae 0xb2191a
inc rcx
mov byte [rsi + rdi + 8], al
inc rdi
mov al, byte [rcx]
test al, al
jne 0xb21901
lea rdx, [rsp + 0xb0]
mov r8b, 1
mov rcx, rsi
mov byte [rdi + rsi + 8], 0
call fcn.00b20da0
test r13b, r13b
je 0xb2193f
mov rcx, rsi
call fcn.00b20ed0
mov al, 1
jmp 0xb2194d
mov rcx, r12
call fcn.00b2b6b8
xor al, al
mov rdi, qword [rsp + 0x118]
mov r12, qword [rsp + 0x120]
add rsp, 0xf0
pop r13
pop rsi
pop rbx
ret

Function at 0xbbbfca
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
jmp 0xce4fbd
syscall
ret
Function at 0xbf36a3
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
jmp 0xc33a00
syscall
ret

Function at 0xc6be7c
Capabilities:
Execute syscall

Disassembly:
syscall
ret
mov r10, rcx
jmp 0xb8d3ae

Function at 0xc83d3c
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
jmp 0xcb448a
syscall
ret

Function at 0xce8e55
Capabilities:
Execute syscall

Disassembly:
syscall
ret
mov r10, rcx
jmp 0xb381e7

Function at 0xd8f5b3
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
syscall
ret

Function at 0xdf5506
Capabilities:
Execute syscall

Disassembly:
syscall
ret
mov r10, rcx
jmp 0xc775fd
Function at 0x1400053e0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140005402
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000547c
mov rdi, r14
mov rcx, rbx
call fcn.140006cd0
test rax, rax
jle 0x140005454
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.14000ed50
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000546c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140005474
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140005416
sub r14, rdi
jmp 0x140005569
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140005493
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005495
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400054ca
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14000ed50
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140005566
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140005505
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140005541
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140017494
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x14000557f
cmp rbp, rax
ja 0x140005511
mov r8, rdi
test rdi, rdi
je 0x140005566
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140017494
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140005569
Function at 0x1400059b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140046080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400059dd
xor eax, eax
jmp 0x140005b23
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005a17
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140005a17
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140005b23
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140005b16
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140005a5a
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005a69
movsx ecx, dil
jmp 0x140005abd
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x140005ad7
sub eax, 1
je 0x140005ad7
cmp eax, 2
jne 0x140005b16
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.140013068
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005b1b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005b04
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.140016a80
cmp rsi, rax
jne 0x140005b16
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140005b1b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000cea0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x140007d60
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
test rdx, rdx
je 0x140007d95
mov r10d, 0xafbe
nop
imul r8d, r8d, 0x91651
add r8d, 0x654a6
mov eax, r8d
shr eax, 0x10
and ax, r10w
xor word [rcx + r9*2], ax
inc r9
cmp r9, rdx
jb 0x140007d70
ret

Function at 0x140007da0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
test rdx, rdx
je 0x140007dc8
imul r8d, r8d, 0x91651
lea rcx, [rcx + 1]
add r8d, 0x654a6
mov eax, r8d
shr eax, 0x10
and al, 0xbe
xor byte [rcx - 1], al
sub rdx, 1
jne 0x140007da5
ret
Function at 0x1400081d0
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x140048f68]
mov esi, edx
mov rdx, rbx
mov ecx, 0x202
movzx edi, r8w
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140008210
xor al, al
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 1
mov qword [rsp + 0x30], rbp
mov ebp, 2
mov ecx, ebp
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x1a8], rax
cmp rax, 0xffffffffffffffff
je 0x140008261
lea rdx, [rbx + 0x198]
mov word [rbx + 0x19a], di
lea r8d, [rbp + 0xe]
mov word [rdx], bp
mov rcx, rax
mov dword [rbx + 0x19c], esi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140008294
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x1a8]
mov dword [rbx + 0x1b0], eax
test rcx, rcx
je 0x14000828a
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x1a8], 0
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x140008296
mov al, 1
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400171f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001701c
Function at 0x140008990
Capabilities:
Allocate or change rwx memory
Set global application hook

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x14004b080]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov qword [rbp - 0x19], rdx
mov r9d, 0x3000
xor edx, edx
mov qword [rbp - 0x21], r8
mov rsi, rcx
mov qword [rbp - 0x39], 0
mov qword [rbp - 0x31], 0
mov qword [rbp - 0x29], 0
lea r8d, [rdx + 0x6a]
mov qword [rbp - 0x11], 0
mov dword [rbp - 9], 0x1d8d4853
mov dword [rbp - 5], 0xffffffc8
mov dword [rbp - 1], 0x75003b80
mov dword [rbp + 3], 0x103c628
mov dword [rbp + 7], 0x184b8b48
mov dword [rbp + 0xb], 0x20ec8348
mov dword [rbp + 0xf], 0x482053ff
mov dword [rbp + 0x13], 0x4820c483
mov dword [rbp + 0x17], 0x65084389
mov dword [rbp + 0x1b], 0x25048b48
mov dword [rbp + 0x1f], 0x30
mov dword [rbp + 0x23], 0x8968408b
mov dword [rbp + 0x27], 0x3c61043
mov dword [rbp + 0x2b], 0x31485b02
mov word [rbp + 0x2f], 0xc3c0
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x6a
mov qword [rsp + 0x20], 0
mov rdx, rax
lea r8, [rbp - 0x39]
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movabs rax, 0xf17dd7091d7d9b45
lea rdx, [rbp - 0x79]
mov qword [rbp - 0x79], rax
movabs r15, 0x3465643700281b2c
mov qword [rbp - 0x71], r15
movabs r14, 0xf17daf66711ff417
movdqa xmm0, xmmword [rbp - 0x79]
xor ecx, ecx
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], r15
xorps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 0x79], xmm0
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessId]
lea rdx, [rbp - 0x69]
mov rcx, rbx
mov dword [rbp - 0x69], eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov qword [rbp - 0x49], r14
lea rcx, [rbp - 0x59]
mov ebx, eax
mov qword [rbp - 0x41], r15
movabs rax, 0x95539d55037a8762
mov qword [rbp - 0x59], rax
movabs rax, 0x3465643700287740
mov qword [rbp - 0x51], rax
movdqa xmm0, xmmword [rbp - 0x59]
xorps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x59], xmm0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, [rdi + 0x30]
mov r9d, ebx
mov r8, rax
mov ecx, 3
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
lea rdx, str.hook:
mov rbx, rax
lea rcx, [0x14004c3f0]
call fcn.1400069c0
mov rdx, rbx
mov rcx, rax
call fcn.14000af90
mov rcx, rax
lea rdx, [0x140044950]
call fcn.1400069c0
lea rcx, [rbp - 0x79]
mov qword [rbp - 0x79], 0xc8
call fcn.14000d970
mov rcx, rbx
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140014990
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140009ca0
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rsi
sub rsp, 0x1b8
mov rax, qword [0x14004b080]
xor rax, rsp
mov qword [rsp + 0x190], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebp, eax
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140009cfb
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
mov rcx, rsi
test eax, eax
jne 0x140009d02
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140009e95
mov qword [rsp + 0x1d0], rbx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x1d8], rdi
mov qword [rsp + 0x1e0], r12
mov qword [rsp + 0x1b0], r13
mov qword [rsp + 0x1a8], r14
mov qword [rsp + 0x1a0], r15
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x140009e5a
movabs r14, 0x8318c7051f6a955b
movabs r15, 0x3465643765507e02
movabs r12, 0xf17daf66711ff417
movabs r13, 0x3465643700281b2c
nop dword [rax]
cmp dword [rsp + 0x38], ebp
jne 0x140009e44
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x160]
call fcn.1400099b0
mov qword [rsp + 0x20], r14
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], r15
mov rax, 0xffffffffffffffff
movdqa xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x180], r12
mov qword [rsp + 0x188], r13
xorps xmm0, xmmword [rsp + 0x180]
movdqa xmmword [rsp + 0x20], xmm0
inc rax
cmp byte [rcx + rax], 0
jne 0x140009dc5
mov rdi, qword [rsp + 0x178]
lea rcx, [rsp + 0x160]
mov rbx, qword [rsp + 0x160]
cmp rdi, 0x10
mov r8, qword [rsp + 0x170]
cmovae rcx, rbx
cmp r8, rax
jne 0x140009e0d
lea rdx, [rsp + 0x20]
call fcn.140017340
test eax, eax
je 0x140009eaf
cmp rdi, 0x10
jb 0x140009e44
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140009e3c
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009ee7
mov rcx, rbx
call fcn.1400149ec
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140009d70
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x1a8]
mov al, 1
mov r13, qword [rsp + 0x1b0]
mov r12, qword [rsp + 0x1e0]
mov rdi, qword [rsp + 0x1d8]
mov rbx, qword [rsp + 0x1d0]
mov r15, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140014990
add rsp, 0x1b8
pop rsi
pop rbp
ret
cmp rdi, 0x10
jb 0x140009e63
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140009eda
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009ee7
mov rcx, rbx
call fcn.1400149ec
jmp 0x140009e63
call fcn.14001b1f4
int3
Function at 0x140010e70
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140010e92
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140010f0c
mov rdi, r14
mov rcx, rbx
call fcn.14000c4a0
test rax, rax
jle 0x140010ee4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140016840
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140010efc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140010f04
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140010ea6
sub r14, rdi
jmp 0x140010fef
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140010f23
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140010f25
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140010f57
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140016840
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140010fec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140010f92
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 rbp, 0xfff
jbe 0x140010fcd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140020c50
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140010fec
cmp rbp, rax
ja 0x140010fa0
test rbp, rbp
je 0x140010fec
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140020c50
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x1400137c0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140013844
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14003a770]
cmp byte [rcx + rax], 0
je 0x140013844
dec r8
sub rdx, 1
jne 0x14001382a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140015608
Capabilities:
Parse pe header

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

Function at 0x14001b574
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 0x14001b3df
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001b3df
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001b3df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001b3df
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001b3df
cmp dword [rcx + 0x84], 0xe
jbe 0x14001b3df
cmp dword [rcx + 0xf8], 0
je 0x14001b3df
mov ecx, ebx
call fcn.14001b490
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.14001b26c
nop
cmp dword [rbp + 0x20], 0
je 0x14001b42d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001b438
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001b370

Function at 0x140028994
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400289aa
mov al, 1
jmp 0x140028a0a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400289bb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140028a08
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002f748
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140028a08
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140028a08
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140028a08
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140028a0a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002ac8c
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.140015000
sub rsp, rax
mov rax, qword [0x14004b080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400279a8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002acdb
mov rax, rbp
jmp 0x14002ade3
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 + 0x4da00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002c084
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4da00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002addf
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 0x14002addf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002c084
test rax, rax
js 0x14002addf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002addf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002add1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002add1
cmp byte [rcx], 0xd
jne 0x14002adb7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002adc6
cmp byte [rcx + 1], 0xa
jne 0x14002adc6
inc rcx
jmp 0x14002adc6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4b470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002ad99
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002ade3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140014990
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret