joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015ee0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140081510]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140015f18
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140015f80
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x140015f90
mov esi, dword [0x140084788]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140015fe8
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140016030
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140015f07
mov rcx, rbx
call fcn.140015e40
mov qword [rsi + r12*8 + 8], rax
jmp 0x140015f07
call fcn.140015e40
mov qword [rbx + 0x10], rax
jmp 0x140015f07
mov r10d, dword [rsi]
test r10d, r10d
je 0x1400160c1
mov r9d, dword [0x14001c410]
test r9d, r9d
je 0x1400160e9
lea rcx, [0x1400847a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x1400160ce
mov eax, dword [rsi]
test eax, eax
je 0x140015f21
lea rcx, [0x1400847a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140015f21
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sym.calloc
mov rsi, rax
test rax, rax
je 0x140016124
mov qword [rax], rdi
mov ecx, dword [0x140084788]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140015f5b
call r13
jmp 0x140015f5b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sym.realloc
mov rsi, rax
test rax, rax
je 0x140016124
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sym.memset
jmp 0x14001600b
lea rcx, [0x1400847a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14001611c
lea rdx, [0x140015df0]
mov ecx, eax
mov dword [0x140084788], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x140016124
mov dword [0x14001c410], 1
mov edx, dword [rsi]
test edx, edx
jne 0x140015fac
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140015f21
mov rax, qword [0x140084780]
lea r12, [rax + 1]
mov qword [0x140084780], r12
mov qword [rbx + 0x10], r12
jmp 0x140015fc6
lock add dword [0x14001c414], 1
je 0x140016079
mov r8d, dword [0x14001c410]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x14001c410]
test r8d, r8d
jne 0x1400160b7
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140016110
jmp 0x1400160b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400160a9
call sym.abort
nop
nop word [rax + rax]
Function at 0x4156e0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x4156ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x4156fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x4156e5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x415715
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x415702
sub eax, 3
jb 0x41572f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x415766
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x415756
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x415754
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x415743
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.004156a2
jmp 0x4156ed
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2400
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x4157b2
cmp rsi, rcx
jae 0x4157ba
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x415799
cmp al, 0x8f
ja 0x415799
cmp byte [rsi - 2], 0xf
je 0x41579f
sub al, 0xe8
cmp al, 1
ja 0x415783
cmp rsi, rcx
jae 0x4157ba
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x415789
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x4157ba
lodsb al, byte [rsi]
jmp 0x415799
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x13000]
mov eax, dword [rdi]
or eax, eax
je 0x415817
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x15000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x4157c7
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x415811
mov qword [rbx], rax
add rbx, 8
jmp 0x4157e7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.0041589a], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.0041589a
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x41588a
sub rsp, 0xffffffffffffff80
jmp 0x4014e0
Function at 0x140011244
Capabilities:
Terminate process

Disassembly:
jmp 0x140013bb0
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 0x1400112e4
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014f00
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014f20
xor al, al
jmp 0x140014fa1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014f33
xor al, al
jmp 0x140014fa1
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 0x140014f5d
xor al, al
jmp 0x140014fa1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014f71
xor al, al
jmp 0x140014fa1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014f83
xor al, al
jmp 0x140014fa1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014f9f
xor al, al
jmp 0x140014fa1
mov al, 1
add rsp, 0x38
ret
Function at 0x140036a90
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx + 8]
test rax, rax
je 0x140036abf
lea r8d, [rdx + 1]
nop dword [rax]
mov ecx, dword [rax + 0xc8]
mov edx, r8d
xor edx, ecx
and edx, 3
xor edx, ecx
mov dword [rax + 0xc8], edx
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140036aa0
ret
Function at 0x1400774c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rsi, qword [rcx + 0x98]
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
mov r12, qword [rcx]
test rsi, rsi
je 0x1400776b4
mov qword [rsp + 0x68], r13
xor r13d, r13d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x60], rbp
nop dword [rax + rax]
movsxd r14, dword [rsi + 0x10]
movzx eax, byte [rbx + 0x1f]
mov r15d, dword [rsi + 0x14]
shl r14, 5
add r14, qword [r12 + 0x20]
test al, al
jne 0x140077521
inc dword [rbx + 0x38]
mov ebp, dword [rbx + 0x38]
jmp 0x140077530
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0xd8]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r15 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x14007755d
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x37
mov rcx, rdi
call fcn.140031be0
jmp 0x14007758b
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r13
mov r9, qword [r14 + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], 0x71
mov r9, qword [r9 + 0x68]
call fcn.1400767d0
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x1400775ca
mov rcx, rdi
call fcn.140031aa0
test eax, eax
jne 0x1400776a0
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r13d
lea rax, [rax + rcx*8]
mov ecx, dword [rdi + 0x90]
mov dword [rax + 0xc], r13d
add ecx, 2
mov dword [rax + 8], ecx
mov byte [rax + 1], r13b
mov qword [rax + 0x10], r13
mov word [rax + 2], r13w
mov qword [rax + 0x18], 0x7f
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], 0x61
mov qword [rax + 0x38], 2
mov qword [rax + 0x40], r13
mov qword [rax + 0x48], 0x80
mov qword [rax + 0x50], r13
mov qword [rax + 0x58], r13
mov qword [rax + 0x60], 0x7a
mov qword [rax + 0x68], r13
mov qword [rax + 0x70], r13
add dword [rdi + 0x90], 5
test rax, rax
je 0x1400776a0
mov dword [rax + 0x3c], ebp
lea edx, [r15 + 1]
mov dword [rax + 4], edx
lea ecx, [r15 - 1]
mov dword [rax + 0x20], edx
mov dword [rax + 0x34], ecx
mov dword [rax + 0x54], edx
mov dword [rax + 0x50], ebp
mov word [rax + 0x4a], 8
test ebp, ebp
je 0x140077694
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x140077694
mov dword [rbx + rax*4 + 0xd8], ebp
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
test rsi, rsi
jne 0x140077500
mov rbp, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400d7ba0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x1400d7bc4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x1400d7c52
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400d7c20
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1400d7c20
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140115280
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400d7c3d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400d7c45
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x1400d7be1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x1400d7d30
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x1400d7c69
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400d7c6b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400d7c9d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140115280
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 0x1400d7d2d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400d7cd8
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 0x1400d7d0e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1400fd218
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x1400d7d2d
cmp rsi, rax
ja 0x1400d7ce1
test rsi, rsi
je 0x1400d7d2d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400fd218
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x1400e7490
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140146040]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
nop
call fcn.1400fd684
lea ecx, [rax - 0x41]
cmp ecx, 0x19
jbe 0x1400e74cd
lea ecx, [rax - 0x30]
cmp ecx, 9
jbe 0x1400e74cd
lea ecx, [rax - 0x61]
cmp ecx, 0x19
ja 0x1400e74b0
mov byte [rsp + rbx + 0x58], al
inc rbx
cmp rbx, 0x1f
jl 0x1400e74b0
mov byte [rsp + 0x77], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rax, [rsp + 0x58]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop
inc r8
cmp byte [rax + r8], 0
jne 0x1400e7500
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x20]
call fcn.1400d19d0
lea rdx, [rsp + 0x20]
lea rcx, [0x140149fe8]
call fcn.1400d9500
lea rcx, [rsp + 0x20]
call fcn.1400d1970
mov r8d, 4
lea rdx, str..txt
lea rcx, [0x140149fe8]
call fcn.1400d2b50
nop
xor ebx, ebx
call fcn.1400fd684
lea ecx, [rax - 0x41]
cmp ecx, 0x19
jbe 0x1400e756d
lea ecx, [rax - 0x30]
cmp ecx, 9
jbe 0x1400e756d
lea ecx, [rax - 0x61]
cmp ecx, 0x19
ja 0x1400e7550
mov byte [rsp + rbx + 0x58], al
inc rbx
cmp rbx, 0x1f
jl 0x1400e7550
mov byte [rsp + 0x77], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rax, [rsp + 0x58]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400e7595
mov r8, rdi
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x20]
call fcn.1400d19d0
lea rdx, [rsp + 0x20]
lea rcx, [0x140149fc8]
call fcn.1400d9500
lea rcx, [rsp + 0x20]
call fcn.1400d1970
mov r8d, 4
lea rdx, str..ps1
lea rcx, [0x140149fc8]
call fcn.1400d2b50
mov dword [rsp + 0x40], 0x18
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x48], 0
xor r9d, r9d
lea r8, [rsp + 0x40]
lea rdx, [0x14014c690]
lea rcx, [0x14014c688]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400e7639
xor r8d, r8d
mov edx, 1
mov rcx, qword [0x14014c688]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
setne al
jmp 0x1400e763b
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400ed420
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x1400ed160
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
push rbx
sub rsp, 0x200
mov rax, qword [0x140146040]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rbx, rdx
lea rcx, [rsp + 0xe0]
xor edx, edx
mov r8d, 0x104
call fcn.140114ec0
lea rdx, [rsp + 0xe0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rax, qword [0x14014c690]
xorps xmm0, xmm0
mov qword [rsp + 0xd0], rax
xor ecx, ecx
movups xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xc8], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rdx, rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0x70], 0x68
movups xmmword [rsp + 0xb0], xmm0
mov dword [rsp + 0xac], 0x101
movups xmmword [rsp + 0x80], xmm0
mov word [rsp + 0xb0], cx
movups xmmword [rsp + 0x90], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400ed279
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400ed27b
xor al, al
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1400ed420
add rsp, 0x200
pop rbx
ret

Function at 0x1400ee144
Capabilities:
Parse pe header

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

Function at 0x1400ee5ac
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 0x1400ee5e6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400ee5eb
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 0x1400ee634
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140118750]
cmp byte [rcx + rax], 0
je 0x1400ee634
dec r8
sub rdx, 1
jne 0x1400ee61a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400f4660
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400f4697
call fcn.1400fac98
mov dword [rax], 0x16
call fcn.1400f53b8
xor eax, eax
jmp 0x1400f4725
mov rdx, r9
mov rcx, r8
call fcn.1400f45fc
mov rbx, rax
test rax, rax
je 0x1400f4722
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400f4528]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400f470f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400fac0c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400f46f6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400f4705
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140101d70
jmp 0x1400f4722
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400f471f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400fdcfc
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 0x1400fdd6b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400fdd6b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400fdd6b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400fdd6b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400fdd6b
cmp dword [rcx + 0x84], 0xe
jbe 0x1400fdd6b
cmp dword [rcx + 0xf8], 0
je 0x1400fdd6b
mov ecx, ebx
call fcn.1400fde1c
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.1400fdbf8
nop
cmp dword [rbp + 0x20], 0
je 0x1400fddb9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400fddc4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400fdcfc

Function at 0x1400fdf00
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400fdcfc
Function at 0x1401041c0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401041d6
mov al, 1
jmp 0x140104236
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401041e7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140104234
mov ecx, dword [rcx + 0x18]
nop
call fcn.14010b0ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140104234
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140104234
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140104234
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140104236
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140105a9c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140105abc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400fac0c
or eax, 0xffffffff
jmp 0x140105abe
xor eax, eax
add rsp, 0x28
ret

Function at 0x140107288
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.140114a30
sub rsp, rax
mov rax, qword [0x140146040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401040a0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401072d7
mov rax, rbp
jmp 0x1401073df
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 + 0x14bc20]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401081d4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x14bc20]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401073db
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 0x1401073db
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401081d4
test rax, rax
js 0x1401073db
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401073db
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401073cd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401073cd
cmp byte [rcx], 0xd
jne 0x1401073b3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401073c2
cmp byte [rcx + 1], 0xa
jne 0x1401073c2
inc rcx
jmp 0x1401073c2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1466a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140107395
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401073df
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400ed420
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret