joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027d90
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b734
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b734
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027ee0
cmp rax, 0xffffffffffffffff
je 0x140027ee0
xor edi, edi
test rbp, rbp
jle 0x140027e8b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dd20
mov rbx, rax
test rax, rax
jne 0x140027e18
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027e81
mov edx, 0x8000
mov ecx, r14d
call fcn.1400158d8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c410
cmp eax, 0xffffffff
je 0x140027e61
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027e28
mov edx, r15d
mov ecx, r14d
call fcn.1400158d8
jmp 0x140027e81
cmp byte [rsi + 0x38], dil
je 0x140027e78
cmp dword [rsi + 0x34], 5
jne 0x140027e78
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027e81
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019df8
jmp 0x140027ef4
jns 0x140027ef4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b734
cmp rax, 0xffffffffffffffff
jne 0x140027eac
cmp byte [rsi + 0x30], dil
je 0x140027ef4
mov edi, dword [rsi + 0x2c]
jmp 0x140027ef4
mov ecx, r14d
call fcn.140016ed8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027ef4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027ef4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027eed
mov eax, dword [rsi + 0x2c]
jmp 0x140027ef2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b734
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140006f00
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006f30
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x140006f2f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006f35
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x140006f2f
mov eax, 0
jmp 0x140006f2f

Function at 0x1400075b0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140007560
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140010bc0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140019700
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140019700
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140010c30
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1409c5dd4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140010dc0
mov rax, qword [0x1409c5dd8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140010c7c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140010d05
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140010c60
mov rcx, rdi
call fcn.140011790
test rax, rax
mov r12, rax
je 0x140010e12
mov rax, qword [0x1409c5dd8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.1400118d0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1409c5dd8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140010df5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140010cfe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140010d70
add dword [0x1409c5dd4], 1
cmp ebx, 8
jae 0x140010d31
test bl, 4
jne 0x140010dd0
test ebx, ebx
je 0x140010d26
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140010de4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140010d26
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x140010d4a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1409c5dd8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140010cfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140010bc0
xor esi, esi
jmp 0x140010c87
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140010d26
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140010d26
mov rax, qword [0x1409c5dd8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140010bc0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140010bc0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x1400113e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1409c5e40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409c5e20]
test rbx, rbx
je 0x140011434
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14001142b
test rsi, rsi
je 0x14001142b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140011410
lea rcx, [0x1409c5e40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140011790
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409bf910]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400117ff
mov rcx, r9
call fcn.140011660
test eax, eax
je 0x1400117ff
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400117fd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400117f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400117ff
add rdx, 0x28
cmp rdx, r9
jne 0x1400117e0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001bb70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409bb8c0]
jmp 0x1400125c0

Function at 0x14001bb80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409bb8c0]
jmp 0x1400125c0
Function at 0x14000ca80
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140017ca0], rbx
je 0x14000cae7
cmp rax, rbx
jne 0x14000cada
mov ebx, 1
mov esi, ebx
jmp 0x14000caec
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000cabf
mov ebx, 1
mov eax, dword [0x140017ca8]
cmp eax, ebx
jne 0x14000cb04
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000cb70
mov eax, dword [0x140017ca8]
test eax, eax
jne 0x14000cb65
mov dword [0x140017ca8], ebx
lea r15, [0x14000eb28]
lea rdi, [0x14000eb10]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000cb57
test eax, eax
jne 0x14000cb5b
cmp qword [rdi], r14
je 0x14000cb4c
mov rax, qword [rdi]
mov rcx, qword [0x14000ea58]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000cb2e
test eax, eax
je 0x14000cb6b
mov eax, 0xff
jmp 0x14000ccc6
mov dword [0x140015544], ebx
mov edi, 0x1f
mov eax, dword [0x140017ca8]
cmp eax, ebx
jne 0x14000cb97
lea rdx, [0x14000eb08]
lea rcx, [0x14000ea60]
call sub.msvcrt.dll__initterm
mov dword [0x140017ca8], 2
test esi, esi
jne 0x14000cba5
mov rax, r14
xchg qword [0x140017ca0], rax
cmp qword [0x140017cb0], r14
je 0x14000cbd8
lea rcx, [0x140017cb0]
call fcn.14000cef0
test eax, eax
je 0x14000cbd8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140017cb0]
mov r9, qword [0x14000ea58]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000cbf1
mov eax, 0xff
jmp 0x14000ccc6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000cc77
test ax, ax
je 0x14000cc0c
test edx, edx
jne 0x14000cc77
sub ax, bx
cmp ax, di
ja 0x14000cc22
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000cc0c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400015bc
mov dword [0x140015540], eax
cmp dword [0x140015560], r14d
jne 0x14000cc60
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140015544], r14d
jne 0x14000cc75
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140015540]
jmp 0x14000ccc6
cmp ax, 0x22
jne 0x14000cc8b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000cbfa
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1401a0000
add rsp, 0x28
jmp 0x14000ca80
Function at 0x1400111ea
Capabilities:
Terminate process

Disassembly:
jmp 0x140012d40
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 0x140011262
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x140011830
push rbp
push rsi
push rdi
sub rsp, 0x860
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x180
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001d008]
xor rax, rbp
mov qword [rbp + 0x838], rax
lea rcx, [0x1400220f3]
call fcn.14001136b
lea rax, [rbp + 0x10]
lea rcx, [0x140019c30]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x5b8
rep movsb byte [rdi], byte [rsi]
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x5b8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x5e8], rax
mov r8d, 0x5b8
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x5e8]
call fcn.1400111ae
call qword [rbp + 0x5e8]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140019c00]
call fcn.140011302
mov eax, edi
mov rcx, qword [rbp + 0x838]
xor rcx, rbp
call fcn.1400111a9
lea rsp, [rbp + 0x840]
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001126c
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014090
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400140b0
xor al, al
jmp 0x140014131
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400140c3
xor al, al
jmp 0x140014131
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 0x1400140ed
xor al, al
jmp 0x140014131
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014101
xor al, al
jmp 0x140014131
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014113
xor al, al
jmp 0x140014131
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001412f
xor al, al
jmp 0x140014131
mov al, 1
add rsp, 0x38
ret
Function at 0x140002330
Capabilities:
Hash data using sha256

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rsp + 0xf8], rbx
mov rax, qword [0x14015b138]
xor rax, rsp
mov qword [rbp + 0x27], rax
movsxd rdi, r8d
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x49], rcx
xor r14d, r14d
mov dword [rbp - 0x59], r14d
xor eax, eax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x19], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], r14
mov qword [rbp - 1], r14
lea r15, [0x140000000]
lea rax, [r15 + 0x123f58]
mov qword [rbp - 0x39], rax
lea edx, [r14 + 0x10]
lea rcx, [rbp - 0x31]
call fcn.140003c60
nop
lea rax, [r15 + 0x124000]
mov qword [rbp - 0x39], rax
lea edx, [r14 + 8]
lea rcx, [rbp - 0x19]
call fcn.140003c60
mov rax, qword [rbp - 9]
mov dword [rax], 0x6a09e667
mov dword [rax + 4], 0xbb67ae85
mov dword [rax + 8], 0x3c6ef372
mov dword [rax + 0xc], 0xa54ff53a
mov dword [rax + 0x10], 0x510e527f
mov dword [rax + 0x14], 0x9b05688c
mov dword [rax + 0x18], 0x1f83d9ab
mov dword [rax + 0x1c], 0x5be0cd19
lea rax, [r15 + 0x1240a8]
mov qword [rbp - 0x39], rax
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140004000
mov rbx, qword [rbp - 0x39]
lea rcx, [rbp - 0x39]
call qword [rbx + Ordinal_41]
mov r8d, eax
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call qword [rbx + 0x60]
nop
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], r14b
mov dword [rbp - 0x59], 2
lea edi, [r14 + 0x37]
nop word [rax + rax]
movzx ebx, byte [rbp + r14 + 7]
movzx eax, bl
shr al, 4
mov ecx, Ordinal_50
cmp al, 0xa
cmovae ecx, edi
add cl, al
mov rdx, qword [rsi + 0x10]
mov r8, qword [rsi + 0x18]
cmp rdx, r8
jae 0x1400024b3
lea rax, [rdx + 1]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp r8, 0x10
jb 0x1400024a9
mov rax, qword [rsi]
mov byte [rax + rdx], cl
mov byte [rax + rdx + 1], 0
jmp 0x1400024bf
movzx r9d, cl
mov rcx, rsi
call fcn.140004700
and bl, 0xf
mov eax, Ordinal_50
cmp bl, 0xa
cmovae eax, edi
add al, bl
mov rdx, qword [rsi + 0x10]
mov r8, qword [rsi + 0x18]
cmp rdx, r8
jae 0x1400024fa
lea rcx, [rdx + 1]
mov qword [rsi + 0x10], rcx
mov rcx, rsi
cmp r8, 0x10
jb 0x1400024f0
mov rcx, qword [rsi]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x140002506
movzx r9d, al
mov rcx, rsi
call fcn.140004700
inc r14
cmp r14, 0x20
jl 0x140002470
mov rbx, qword [rbp - 9]
mov r8, qword [rbp - 0x11]
lea r8, [r8*4]
xor edx, edx
mov rcx, rbx
call fcn.1400cf640
mov rcx, rbx
call fcn.1400cd424
mov rbx, qword [rbp - 0x21]
mov r8, qword [rbp - 0x29]
lea r8, [r8*4]
xor edx, edx
mov rcx, rbx
call fcn.1400cf640
mov rcx, rbx
call fcn.1400cd424
mov rax, rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400cd400
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012810
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140012871
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140012830
mov ecx, dword [r10]
jmp 0x14001295a
cmp ecx, 0x4e0
jb 0x14001295a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140012890
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop word [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400128e0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x1400158d0
Capabilities:
Check if file exists

Disassembly:
test rdx, rdx
je 0x140015953
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rdx], 0
mov rdi, rdx
mov rbx, rcx
je 0x140015949
cmp qword [rcx + 0xc0], 0
je 0x140015914
cmp qword [rcx + 0x18], 0
je 0x14001592a
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x140015909
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x14001592a
cmp qword [rbx + 0x20], 8
lea rdx, [rbx + 8]
jb 0x140015922
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.140014f00
cmp qword [rbx + 0xc0], 0
je 0x140015949
mov rdx, rdi
lea rcx, [rbx + 0x38]
call fcn.1400181c0
lea rcx, [rbx + 0x38]
call fcn.140014090
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140019510
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14015b138]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x1400196d9
cmp byte [rcx + 0x71], 0
je 0x1400196d9
mov rax, qword [rcx]
mov edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
jne 0x14001956c
xor al, al
jmp 0x1400196db
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.140013730
nop
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
nop dword [rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x30]
cmovae r8, rcx
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x1400195f4
sub eax, 1
je 0x1400195f8
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x1400196a2
xor bl, bl
jmp 0x1400196a4
mov byte [rdi + 0x71], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x140019645
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.1400dc370
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x1400195ed
cmp byte [rdi + 0x71], 0
je 0x1400196a2
test rbx, rbx
jne 0x1400195a0
mov rdx, qword [rbp - 0x20]
mov rax, r9
sub rax, rdx
cmp rax, 8
jb 0x140019687
lea rax, [rdx + 8]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
xor ecx, ecx
mov qword [rax + rdx], rcx
mov byte [rax + rdx + 8], cl
jmp 0x140019591
mov byte [rsp + 0x20], 0
mov edx, 8
mov r9d, edx
lea rcx, [rbp - 0x30]
call fcn.140013490
jmp 0x140019591
mov bl, 1
cmp r9, 0x10
jb 0x1400196d4
lea rdx, [r9 + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400196cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400196fd
call fcn.1400cd424
movzx eax, bl
jmp 0x1400196db
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400cd400
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400d20f4
int3
Function at 0x14001c930
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x14001c943
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [rbx + 0x18]
cmp eax, 1
jne 0x14001c97d
cmp rcx, 8
jb 0x14001c95b
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001c975
test al, 0x10
je 0x14001c975
mov al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
cmp rcx, 8
jb 0x14001c986
mov rbx, qword [rbx]
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
sete al
add rsp, 0x20
pop rbx
ret
Function at 0x14001d760
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x14015b138]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, rdx
mov rbx, rcx
mov qword [r11 - 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 7
mov word [rcx], di
mov dword [rsp + 0x20], 1
mov qword [r11 - 0x20], rdi
lea r9, [r11 - 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14001d87d
mov rax, qword [rsp + 0x58]
lea rdx, [0x140125218]
test rax, rax
cmovne rdx, rax
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], di
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001d7f5
lea rcx, [rsp + 0x28]
call fcn.1400149d0
nop
lea rax, [rsp + 0x28]
cmp rbx, rax
je 0x14001d834
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1400149d0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14001d872
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001d86d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d89b
call fcn.1400cd424
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400cd400
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
call fcn.1400d20f4
int3