joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011758
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rsp + 0x28]
mov r11d, edx
xor r11d, 0x1da
add eax, 0xfffff557
cmp eax, dword [rsp + 0x38]
jne 0x140011796
mov rax, qword [section..data]
mov ecx, dword [r8 + 0x78]
cmp dword [rax + 0x114], ecx
je 0x14001180b
mov eax, 0xfffff760
sub eax, dword [r8]
add dword [r8 + 0x18], eax
jmp 0x14001180b
mov rcx, qword [section..data]
mov edx, dword [r8 + 0x3c]
mov eax, dword [rcx + 0x4c]
sub eax, dword [r8 + 0xe0]
xor eax, dword [r8 + 0xec]
cmp edx, eax
jb 0x14001180b
mov eax, dword [rcx + 0x78]
sub eax, dword [r8 + 0x114]
add eax, dword [r8 + 0xe8]
mov r9d, dword [0x14002b01c]
cmp r9d, eax
jne 0x14001180b
mov r10d, dword [r8 + 0x64]
xor r10d, dword [rsp + 0x30]
or r10d, 0x2e87
xor edx, r10d
add r9d, 4
mov dword [r8 + 0x3c], edx
mov rax, qword [section..data]
mov ecx, dword [rax + 0x78]
sub ecx, dword [r8 + 0x114]
add ecx, dword [r8 + 0xe8]
cmp r9d, ecx
je 0x1400117e3
lea eax, [r11 - 0x76a]
ret
Function at 0x140011814
Capabilities:
Encode data using xor
Read file on windows
Read pipe
Write pipe

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov eax, dword [rsp + 0xd0]
lea ebx, [r8 + 0xb7a]
mov edi, dword [rsp + 0xe0]
lea r15d, [r8 + 0x11ef]
add eax, 0xfffff975
mov dword [rsp + 0xb0], ebx
mov dword [rsp + 0xc0], eax
lea r12d, [r8 - 0x16f]
lea eax, [r15 - 0x413]
add edi, 0xfffff8f0
lea r13d, [r8 - 0x185b]
mov rsi, rdx
lea r14d, [rcx - 0x4bb]
cmp ebx, eax
je 0x1400118e0
imul eax, dword [0x14002b020], 0x17418f
lea ecx, [rdi - 0x328]
mov dword [rsp + 0x30], ecx
lea r8d, [rdi + 0x11d]
mov r10d, edi
lea edx, [r13 + 0x23be]
xor r10d, 0x3a92
mov r9d, r12d
mov dword [rsp + 0x28], r10d
xor r9d, 0xa43
mov dword [0x14002b020], eax
mov rcx, rsi
lea eax, [rdi - 0xcd2]
mov dword [rsp + 0x20], eax
call fcn.140004784
mov ebx, eax
mov dword [rsp + 0xb0], eax
sub r14d, 0x30
lea ecx, [rbx - 0x3b9]
cmp edi, ecx
jg 0x140011908
mov rcx, qword [section..data]
mov edx, dword [rcx + 0xf8]
xor edx, 0x141f90
mov dword [rsi + 0xc8], edx
jmp 0x140011a4d
mov rax, qword [section..data]
mov ecx, dword [rax + 0xc]
or ecx, dword [rsi + 0x114]
cmp ebx, ecx
jbe 0x140011a4d
mov eax, dword [0x14002b0b8]
add eax, 0x16ec
cmp ebx, eax
jne 0x140011a4d
movsxd rax, ebx
movsxd rbp, edi
or rbp, 0x192c
and rbp, rax
lea eax, [r13 - 0x192c]
cdqe
mov qword [rsp + 0x48], rax
mov eax, r15d
and eax, 0x2637
mov qword [rsp + 0x40], rax
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov eax, r15d
mov r15, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
lea eax, [r14 + r12]
mov r14d, dword [rsp + 0xc0]
mov r12, qword [rsp + 0x50]
cdqe
mov qword [rsp + 0x60], rax
mov ecx, dword [rsi + 0x11c]
xor ecx, 0x23d5
sub ecx, 0x2e87
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [rsi + 0x14]
mov ecx, dword [rsi + 0xd8]
sub edx, r14d
or ecx, dword [rsi + 0xe8]
mov r9d, dword [rsi + 0xcc]
mov r8d, dword [rsi + 0x78]
xor r9d, r13d
xor r8d, dword [rsi + 0x114]
sub r9d, r14d
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rdx
mov rdx, r15
mov dword [rsp + 0x20], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov ecx, dword [rsi + 0x54]
mov r9d, dword [rsi + 0xcc]
xor rcx, 0x23be
mov rdx, qword [0x14002b108]
and rcx, r12
mov r8d, dword [rsi + 0x7c]
xor rdx, qword [rsp + 0x58]
and r8d, 0x2cd7
mov qword [rsp + 0x20], rcx
and edx, 0x214c
mov rcx, qword [rsp + 0x60]
imul r9d, r14d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x14002b0b8]
add ebx, 3
add eax, 0x16ec
cmp ebx, eax
je 0x14001198f
mov ebx, dword [rsp + 0xb0]
lea eax, [rbx - 0x1b0]
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012bc4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r15d, dword [rsp + 0xb0]
lea esi, [r9 - 0x16ec]
add r15d, 0xffffdb25
mov dword [rsp + 0x48], esi
mov edi, r9d
mov dword [rsp + 0x50], r15d
lea r13d, [r9 + 0xdef]
xor edi, 0x16ec
lea eax, [r13 - 0x445]
mov rbx, r8
lea ebp, [r9 + 0x764]
mov dword [rsp + 0x4c], ebp
cmp esi, eax
jge 0x140012d17
cmp dword [r8 + 0xf8], 0x15586
jb 0x140012c48
mov eax, dword [r8 + 0x14]
xor eax, 0x173f71
sub dword [r8 + 0x44], eax
jmp 0x140012c5d
mov rax, qword [section..data]
mov ecx, dword [rax + 0x54]
xor ecx, dword [r8 + 0x44]
xor ecx, dword [r8]
mov dword [r8 + 0x44], ecx
cmp dword [0x14002b024], 0x131f0
jb 0x140012c83
mov eax, dword [r8 + 0x11c]
xor eax, dword [0x14002b020]
xor eax, 0x257a5
mov dword [0x14002b108], eax
jmp 0x140012c91
mov eax, dword [r8 + 0xd4]
mov dword [r8 + 0xd0], eax
mov ecx, edi
lea eax, [r13 - 0x35f]
xor ecx, 0x23be
cmp eax, ecx
je 0x140012e14
mov ecx, ebp
lea eax, [rsi + 0x2cd7]
xor ecx, 0x3287
lea r8d, [r15 + 0x185b]
xor edi, 0x214c
lea edx, [rsi + 0x2096]
mov dword [rsp + 0x30], edi
xor ebp, 0x349e
mov dword [rsp + 0x28], ecx
mov r9d, ebp
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.140010f84
cmp dword [rbx + 0x68], 0x17f8e
ja 0x140012d05
mov eax, dword [rbx + 0x54]
xor eax, dword [0x14002b12c]
sub eax, 0x34713
add dword [rbx + 0x38], eax
jmp 0x140012e14
mov eax, dword [rbx]
sub eax, 0x2195e
or dword [rbx + 0xf8], eax
jmp 0x140012e14
mov ecx, dword [r8 + 0x114]
mov eax, ecx
xor eax, dword [r8 + 0xa8]
mov r14d, dword [r8 + 0x84]
jmp 0x140012dfe
mov eax, dword [rbx + 0x14]
and eax, ecx
cmp r15d, eax
jae 0x140012dec
lea eax, [rsi + rsi]
mov r12d, esi
mov dword [rsp + 0x40], eax
lea ecx, [rbp - 0x192c]
mov esi, dword [rsp + 0x40]
lea eax, [rbp - 0x3aa8]
cdqe
xor r12d, 0x2096
mov r14, rax
mov ebp, ecx
mov rax, qword [section..data]
mov r8d, esi
mov r9d, dword [rbx + 0x110]
mov ecx, edi
sub ecx, dword [0x14002b110]
and r9d, r12d
mov edx, edi
add ecx, r13d
sub r8d, dword [rax + 0xe0]
xor edx, r13d
mov dword [rsp + 0x28], r8d
mov r8, rbx
mov dword [rsp + 0x20], r9d
mov r9d, ebp
call fcn.140012e38
mov rcx, r14
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rbx + 0x114]
inc r15d
lea ecx, [rdx - 0x2096]
or ecx, 0x2637
or dword [rbx + 0x74], ecx
mov ecx, dword [rbx + 0x14]
and ecx, edx
cmp r15d, ecx
jb 0x140012d69
mov esi, dword [rsp + 0x48]
mov ebp, dword [rsp + 0x4c]
mov r14d, dword [rsp + 0xb0]
mov r15d, dword [rsp + 0x50]
mov ecx, dword [rbx + 0x114]
add r14d, 3
mov eax, ecx
xor eax, dword [rbx + 0xa8]
add eax, 0x2637
mov dword [rsp + 0xb0], r14d
cmp r14d, eax
jb 0x140012d33
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
lea eax, [rsi + 0x2cd7]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140012e38
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, dword [rsp + 0x50]
lea r10d, [rdx - 0xbfa]
mov r9d, r10d
lea eax, [rdx - 0x11ef]
mov edi, ecx
xor r9d, 0x341a
xor edi, 0x24db
add ebx, 0xfffffcc1
mov r11, r8
lea r8d, [rdx - 0x8fe]
cmp eax, r9d
jg 0x140012e92
mov eax, dword [r11 + 0x64]
cmp eax, 0x17b01
jbe 0x140012eb6
xor eax, 0xffebccae
sub dword [0x14002b048], eax
jmp 0x140012eb6
mov eax, dword [r11 + 0x7c]
mov ecx, 0x217c
xor eax, ecx
cmp r8d, eax
je 0x140012eb6
sub ecx, dword [r11 + 0x74]
mov eax, r10d
xor eax, 0x2e87
add r8d, ecx
sub eax, edi
imul ebx, eax
cmp r10d, r8d
jg 0x140012f22
xor r10d, 0x30d7
cmp edi, r10d
jge 0x140012f22
mov eax, dword [0x14002b074]
xor ebx, 0x3ec6
cmp dword [0x14002b138], eax
jbe 0x140012ef0
mov rcx, qword [section..data]
mov eax, dword [rcx + 0xe0]
add eax, 0xd1e0f
xor dword [rcx + 0x38], eax
mov r8d, dword [r11 + 0x110]
xor ecx, ecx
xor r8d, dword [0x14002b010]
mov edx, dword [r11 + 0x38]
sub r8d, 0x14051d
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
add rax, 0x5000
mov qword [0x14002b0d0], rax
xor ebx, 0x3dee
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140013150
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov word [rsp + 0x10], dx
push rsi
push rdi
push r12
push r13
push r14
push r15
movzx r14d, byte [0x140048d30]
movzx r11d, dx
mov r8, qword [rsp + 0x60]
mov edx, 1
movsxd rbx, dword [0x140048d10]
sub rbx, qword [0x140048d50]
movzx esi, cx
dec rbx
mov r15b, byte [r8 + 0x2a00]
add r15b, byte [0x140048cde]
movzx ebp, r9b
movzx r9d, word [0x140048cf0]
mov edi, ebp
movzx eax, sil
imul r14d, eax
movzx eax, word [0x140048d04]
add ax, dx
mov word [0x140048d04], ax
movzx eax, ax
imul r10d, eax, 0x1bc
mov al, bpl
sub al, dl
mov dword [rsp + 0x50], r14d
movzx ecx, al
mov rax, qword [0x140048cf8]
add rcx, rcx
movzx r14d, r14b
mov qword [rsp + 0x60], r14
movsxd r12, dword [rax + rcx*8]
mov eax, 0x62e
add dword [0x140048d64], edx
xor edx, edx
div qword [0x140048cb8]
movzx ecx, word [r8 + r14*2]
xor edx, edx
mov r13, rax
mov eax, 0x18ff
div ecx
mov ecx, 0x55
xor edx, edx
mov word [r8 + r14*2], ax
sub cl, byte [0x140048cb8]
xor byte [0x140048cb3], cl
mov ecx, ebp
mov rax, qword [0x140048cd0]
mov r14, qword [rsp + 0x70]
shl ecx, 2
and byte [rcx + rax], r11b
mov r11d, r9d
mov ecx, dword [0x140048d30]
dec ecx
mov dword [0x140048d30], ecx
movzx eax, word [r9 + r9 + 0x1fb5]
or rax, rbx
movsxd rcx, ecx
or rax, 0x544
div rcx
mov ecx, 0x23
xor byte [rbp + r10], al
cmp dword [0x140048cec], ecx
je 0x1400132d1
movzx eax, word [r14 + r9*2]
sub si, 2
movzx r8d, word [0x140048cdc]
and ax, cx
add word [0x140048d04], ax
inc rbx
movzx eax, si
xor eax, 0xf25
movzx ecx, word [r12 + r8*2]
cdq
idiv ecx
xor edx, edx
movzx ecx, r15b
mov word [r12 + r8*2], ax
mov rax, rbx
div rcx
movzx eax, byte [0x140048cb3]
add edx, eax
xor dword [0x140048d14], edx
movsxd rcx, dword [rdi + r9*4]
mov r9d, 0x8df
mov rsi, qword [rsp + 0x68]
cmp rcx, r9
jge 0x14001333c
movzx r12d, word [rsp + 0x40]
lea rax, [rcx + rcx*2]
lea r10, [rdi + rax*4]
movzx r15d, r15b
sub r9, rcx
inc bpl
xor edx, edx
movzx eax, bpl
lea ecx, [rax + rax*2]
mov rax, qword [0x140048cd0]
movzx eax, byte [rax + 0x3db]
add rax, r15
div qword [rsi + 0x3768]
add word [r13 + rcx*2], dx
mov eax, dword [r10]
xor eax, r12d
xor eax, 0x18a
mov dword [r10], eax
lea r10, [r10 + 0xc]
sub r9, 1
jne 0x1400132fa
movzx eax, byte [rsp + 0x50]
mov edx, 0xf8d
mov rbp, qword [rsp + 0x48]
lea ecx, [rax + rax]
movzx eax, word [rdi + 0x6cc4]
and ax, dx
and word [rcx + rcx + 0x1fb5], ax
movabs rax, 0x50e89cc2afb93477
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rsi + rcx*8]
mul rcx
shr rdx, 0xb
imul rax, rdx, 0x1950
sub rcx, rax
xor word [r14 + r11*2], cx
mov eax, dword [0x140048cec]
add eax, 0xfffff28b
cdq
idiv dword [0x140048d30]
mov dword [0x140048d30], eax
movzx eax, word [0x140048cb0]
imul rax, rbx
mov rbx, qword [rsp + 0x38]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140013654
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor ecx, 0x341a
lea esi, [rdx + 0xc41]
mov rbx, r9
add r8d, 0xffffdc42
mov r9d, dword [rsp + 0x60]
mov edi, r9d
xor edi, 0x3b8e
lea eax, [rcx - 0x56f]
lea r10d, [r9 + 0x106]
cmp r10d, eax
jl 0x140013777
add ecx, 0xffffee11
lea eax, [r9 + 0x6f9]
cmp eax, ecx
jle 0x140013752
mov eax, dword [rbx + 0xec]
cmp eax, dword [0x14002b020]
jae 0x1400136dd
mov rax, qword [section..data]
mov ecx, dword [rax + 0x11c]
xor ecx, dword [rax]
add ecx, 0x89a2c
mov dword [rbx + 0x128], ecx
jmp 0x1400136e0
xor dword [rbx + 0x34], eax
lea eax, [r8 + 0x23d5]
xor esi, 0x619
mov dword [rsp + 0x28], eax
lea r9d, [rdi + 0x8f1]
mov ecx, esi
mov qword [rsp + 0x20], rbx
lea r8d, [rdi + 0xc80]
lea edx, [r10 - 0xbaf]
call fcn.14000484c
mov rdx, qword [section..data]
mov esi, eax
imul ecx, dword [rdx + 0xf8], 0xd8d41
mov dword [rdx + 0xf8], ecx
cmp dword [rbx + 0x14], 0x210b
jae 0x140013777
mov rcx, qword [section..data]
mov edx, dword [rbx + 0x128]
sub edx, dword [rcx + 0x44]
sub edx, 0x1b085f
mov dword [rbx + 0xe4], edx
jmp 0x140013777
mov eax, dword [rbx + 0x10]
and eax, 0x2140
or eax, 0xc
cmp dword [rbx + 0x74], eax
jbe 0x140013777
mov ebx, dword [rbx + 0x78]
xor edi, r8d
jmp 0x140013773
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
add ebx, 4
cmp ebx, edi
jg 0x14001376a
mov rbx, qword [rsp + 0x40]
lea eax, [rsi + 0x5c3]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140016da0
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.14002e180
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.140024960
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140016df9
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x14002ce60
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.14003e5e0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14003e5e0
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 0x14002db32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140053088]
test eax, eax
je 0x14002dbca
lea rax, [0x140053060]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140053090]
mov qword [rbp - 8], rax
jmp 0x14002dbae
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 0x14002dba2
cmp qword [rbp - 0x10], 0
je 0x14002dba2
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 0x14002db68
lea rax, [0x140053060]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002dbcb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14002dcd0
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 0x14002dcf8
mov eax, 0
jmp 0x14002dd46
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 0x14002dd21
mov eax, 0
jmp 0x14002dd46
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 0x14002dd41
mov eax, 0
jmp 0x14002dd46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000aa00
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 0x14000aa22
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 0x14000aa9c
mov rdi, r14
mov rcx, rbx
call fcn.140007a80
test rax, rax
jle 0x14000aa74
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.14002f360
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 0x14000aa8c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000aa94
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14000aa36
sub r14, rdi
jmp 0x14000ab7f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14000aab3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000aab5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000aae7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14002f360
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 0x14000ab7c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000ab22
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 0x14000ab5d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140018b74
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000ab7c
cmp rbp, rax
ja 0x14000ab30
test rbp, rbp
je 0x14000ab7c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140018b74
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 0x14000c310
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 0x14000c34a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000c34f
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 0x14000c398
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400336f0]
cmp byte [rcx + rax], 0
je 0x14000c398
dec r8
sub rdx, 1
jne 0x14000c37e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14000de94
Capabilities:
Parse pe header

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

Function at 0x1400142bc
Capabilities:
Parse pe header

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

Function at 0x140021454
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002146a
mov al, 1
jmp 0x1400214ca
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002147b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400214c8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140027a60
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400214c8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400214c8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400214c8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400214ca
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400234d8
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.14000d890
sub rsp, rax
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001f698
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140023527
mov rax, rbp
jmp 0x14002362f
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 + 0x46a80]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400248d0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x46a80]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002362b
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 0x14002362b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400248d0
test rax, rax
js 0x14002362b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002362b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002361d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002361d
cmp byte [rcx], 0xd
jne 0x140023603
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140023612
cmp byte [rcx + 1], 0xa
jne 0x140023612
inc rcx
jmp 0x140023612
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x44470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400235e5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002362f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000d240
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 0x140023c70
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, [0x140046a80]
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 0x140023cc7
cmp word [rdx], r13w
jne 0x140023cc7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140023ccc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140023df1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140023e12
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140023d05
mov rdx, r9
mov word [rbx], cx
jmp 0x140023d2c
cmp r9, r8
jae 0x140023d3c
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 0x140023ce6
jmp 0x140023df1
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 0x140023de6
cmp dword [rsp + 0x80], esi
je 0x140023de6
lea r8, [0x140046a80]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140023dbe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140023d8e
mov word [rbx], r13w
jmp 0x140023dee
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 0x140023d9b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140023dee
cmp word [rsp + 0x70], r13w
jne 0x140023dcb
cmp rbx, r14
je 0x140023d88
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400248d8
cmp word [rsp + 0x70], r13w
je 0x140023df1
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, [0x140046a80]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140023deb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140023df1