joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019dbe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea r12, [rsp - 0x10]
cmp r12, qword [r14 + 0x10]
jbe 0x14019dd81
push rbp
mov rbp, rsp
sub rsp, 0x88
movups xmmword [rsp + 0x58], xmm15
lea rdx, [rsp + 0x3b]
mov qword [rsp + 0x80], rdx
test byte [rdx], al
movabs rsi, 0x6fad85dcc07407f8
mov qword [rdx], rsi
movabs rsi, 0x63ae96a1656fad85
mov qword [rdx + 5], rsi
movabs rsi, 0xaadfc9460c478261
mov qword [rdx + 0xd], rsi
mov rdx, qword [rsp + 0x80]
test byte [rdx], al
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], 0x15
mov qword [rsp + 0x78], 0x15
movabs rdx, 0x90311010b140a07
mov qword [rsp + 0x1c], rdx
movabs rdx, 0x1110101013061212
mov qword [rsp + 0x24], rdx
movabs rdx, 0x10a0411101010
mov qword [rsp + 0x28], rdx
movabs rdx, 0xe0001060400050a
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x50], 0
nop
jmp 0x14019dca2
cmp qword [rsp + 0x50], 0x1c
jl 0x14019dcaf
jmp 0x14019dd5c
mov rdx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x50]
lea rsi, [rsp + rsi + 0x1c]
movzx esi, byte [rsi]
mov rdi, qword [rsp + 0x50]
lea rdi, [rsp + rdi + 0x1d]
movzx edi, byte [rdi]
xor esi, edi
lea edi, [rdx + rsi]
lea edx, [rdx + rsi]
lea edx, [rdx - 0x5c]
mov byte [rsp + 0x38], dl
mov rdx, qword [rsp + 0x50]
lea rdx, [rsp + rdx + 0x1d]
movzx edx, byte [rdx]
mov byte [rsp + 0x3a], dl
mov rdx, qword [rsp + 0x50]
lea rdx, [rsp + rdx + 0x1c]
movzx edx, byte [rdx]
add rdx, qword [rsp + 0x68]
movzx edx, byte [rdx]
lea edx, [rdi + rdx]
lea edx, [rdx - 0x5c]
mov byte [rsp + 0x39], dl
mov rdx, qword [rsp + 0x50]
lea rdx, [rsp + rdx + 0x1c]
movzx edx, byte [rdx]
add rdx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x50]
lea rsi, [rsp + rsi + 0x1d]
movzx esi, byte [rsi]
add rsi, qword [rsp + 0x68]
movzx esi, byte [rsi]
lea esi, [rdi + rsi]
lea esi, [rsi - 0x5c]
mov byte [rdx], sil
movzx edx, byte [rsp + 0x3a]
add rdx, qword [rsp + 0x68]
movzx esi, byte [rsp + 0x39]
mov byte [rdx], sil
jmp 0x14019dd51
add qword [rsp + 0x50], 2
jmp 0x14019dca2
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
xor eax, eax
call fcn.140053e40
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
add rsp, 0x88
pop rbp
nop
ret
call fcn.140056be0
jmp fcn.14019dbe0
Function at 0x1401a14a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea r12, [rsp - 8]
cmp r12, qword [r14 + 0x10]
jbe 0x1401a1626
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
movups xmmword [rsp + 0x50], xmm15
lea rdx, [rsp + 0x36]
mov qword [rsp + 0x78], rdx
test byte [rdx], al
movabs rsi, 0xa56f66dc59e0df75
mov qword [rdx], rsi
movabs rsi, 0x6fa3a56f66dc59e0
mov qword [rdx + 2], rsi
movabs rsi, 0x4ad059e0204be1e0
mov qword [rdx + 0xa], rsi
mov rdx, qword [rsp + 0x78]
test byte [rdx], al
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], 0x12
mov qword [rsp + 0x70], 0x12
movabs rdx, 0x100c081106060308
mov qword [rsp + 0x1d], rdx
movabs rdx, 0x70104100607100c
mov qword [rsp + 0x23], rdx
movabs rdx, 0x10a0f0a08020b0e
mov qword [rsp + 0x2b], rdx
mov qword [rsp + 0x48], 0
jmp 0x1401a1548
cmp qword [rsp + 0x48], 0x16
jl 0x1401a1555
jmp 0x1401a1605
mov rdx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x48]
lea rsi, [rsp + rsi + 0x1d]
movzx esi, byte [rsi]
mov rdi, qword [rsp + 0x48]
lea rdi, [rsp + rdi + 0x1e]
movzx edi, byte [rdi]
xor esi, edi
lea edi, [rdx + rsi]
lea edx, [rdx + rsi]
lea edx, [rdx + 0x72]
mov byte [rsp + 0x33], dl
mov rdx, qword [rsp + 0x48]
lea rdx, [rsp + rdx + 0x1e]
movzx edx, byte [rdx]
mov byte [rsp + 0x35], dl
mov rdx, qword [rsp + 0x48]
lea rdx, [rsp + rdx + 0x1d]
movzx edx, byte [rdx]
add rdx, qword [rsp + 0x60]
movzx edx, byte [rdx]
lea edx, [rdi + rdx]
lea edx, [rdx + 0x72]
mov byte [rsp + 0x34], dl
mov rdx, qword [rsp + 0x48]
lea rdx, [rsp + rdx + 0x1d]
movzx edx, byte [rdx]
add rdx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x48]
lea rsi, [rsp + rsi + 0x1e]
movzx esi, byte [rsi]
add rsi, qword [rsp + 0x60]
movzx esi, byte [rsi]
lea esi, [rdi + rsi]
lea esi, [rsi + 0x72]
mov byte [rdx], sil
movzx edx, byte [rsp + 0x35]
add rdx, qword [rsp + 0x60]
movzx esi, byte [rsp + 0x34]
mov byte [rdx], sil
jmp 0x1401a15f7
add qword [rsp + 0x48], 2
nop dword [rax]
jmp 0x1401a1548
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
xor eax, eax
call fcn.140053e40
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbx
sub rsp, 0xffffffffffffff80
pop rbp
ret
call fcn.140056be0
jmp fcn.1401a14a0
Function at 0x1401a8ca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea r12, [rsp - 0x18]
cmp r12, qword [r14 + 0x10]
jbe 0x1401a8e5e
push rbp
mov rbp, rsp
sub rsp, 0x90
movups xmmword [rsp + 0x60], xmm15
lea rdx, [rsp + 0x3f]
mov qword [rsp + 0x88], rdx
test byte [rdx], al
movabs rsi, 0x736943dc17636569
mov qword [rdx], rsi
movabs rsi, 0x6c6fd9edee6a65d5
mov qword [rdx + 8], rsi
movabs rsi, 0x476c6fd9edee6a65
mov qword [rdx + 9], rsi
movabs rsi, 0xf5e3dcf3fc406add
mov qword [rdx + 0x11], rsi
mov rdx, qword [rsp + 0x88]
test byte [rdx], al
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], 0x19
mov qword [rsp + 0x80], 0x19
movabs rdx, 0x17170d0817050311
mov qword [rsp + 0x1a], rdx
movabs rdx, 0x41717170d081705
mov qword [rsp + 0x1c], rdx
movabs rdx, 0x110c0c1317180117
mov qword [rsp + 0x24], rdx
movabs rdx, 0x11716120a011018
mov qword [rsp + 0x2c], rdx
movabs rdx, 0x1516041018140b01
mov qword [rsp + 0x34], rdx
mov qword [rsp + 0x58], 0
nop
jmp 0x1401a8d82
cmp qword [rsp + 0x58], 0x22
jl 0x1401a8d8f
jmp 0x1401a8e3a
mov rdx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x58]
lea rsi, [rsp + rsi + 0x1a]
movzx esi, byte [rsi]
mov rdi, qword [rsp + 0x58]
lea rdi, [rsp + rdi + 0x1b]
movzx edi, byte [rdi]
xor esi, edi
lea edi, [rdx + rsi]
lea edx, [rdx + rsi]
lea edx, [rdx + 0x5c]
mov byte [rsp + 0x3c], dl
mov rdx, qword [rsp + 0x58]
lea rdx, [rsp + rdx + 0x1b]
movzx edx, byte [rdx]
mov byte [rsp + 0x3e], dl
mov rdx, qword [rsp + 0x58]
lea rdx, [rsp + rdx + 0x1a]
movzx edx, byte [rdx]
add rdx, qword [rsp + 0x70]
movzx edx, byte [rdx]
sub edx, edi
add edx, 0xffffffa4
mov byte [rsp + 0x3d], dl
mov rdx, qword [rsp + 0x58]
lea rdx, [rsp + rdx + 0x1a]
movzx edx, byte [rdx]
add rdx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x58]
lea rsi, [rsp + rsi + 0x1b]
movzx esi, byte [rsi]
add rsi, qword [rsp + 0x70]
movzx esi, byte [rsi]
sub esi, edi
add esi, 0xffffffa4
mov byte [rdx], sil
movzx edx, byte [rsp + 0x3e]
add rdx, qword [rsp + 0x70]
movzx esi, byte [rsp + 0x3d]
mov byte [rdx], sil
jmp 0x1401a8e2f
add qword [rsp + 0x58], 2
jmp 0x1401a8d82
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
xor eax, eax
call fcn.140053e40
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
add rsp, 0x90
pop rbp
ret
nop
call fcn.140056be0
jmp fcn.1401a8ca0
Function at 0x1401af360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea r12, [rsp - 0x18]
cmp r12, qword [r14 + 0x10]
jbe 0x1401af511
push rbp
mov rbp, rsp
sub rsp, 0x90
movups xmmword [rsp + 0x60], xmm15
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x88], rdx
test byte [rdx], al
movabs rsi, 0xe9fadee1203af6e5
mov qword [rdx], rsi
movabs rsi, 0xd872e443208773d4
mov qword [rdx + 8], rsi
movabs rsi, 0xdaec48c2d872e443
mov qword [rdx + 0xc], rsi
movabs rsi, 0xeeed685f696e6927
mov qword [rdx + 0x14], rsi
mov rdx, qword [rsp + 0x88]
test byte [rdx], al
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], 0x1c
mov qword [rsp + 0x80], 0x1c
movabs rdx, 0x81a1b14120106
mov qword [rsp + 0x1d], rdx
movabs rdx, 0x130a0d0d0c00180d
mov qword [rsp + 0x25], rdx
movabs rdx, 0x7041204130a0d0d
mov qword [rsp + 0x29], rdx
movabs rdx, 0x500071000110f0c
mov qword [rsp + 0x31], rdx
mov qword [rsp + 0x58], 0
jmp 0x1401af431
cmp qword [rsp + 0x58], 0x1c
jl 0x1401af43e
jmp 0x1401af4ed
mov rdx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x58]
lea rsi, [rsp + rsi + 0x1d]
movzx esi, byte [rsi]
mov rdi, qword [rsp + 0x58]
lea rdi, [rsp + rdi + 0x1e]
movzx edi, byte [rdi]
xor esi, edi
lea edi, [rdx + rsi]
lea edx, [rdx + rsi]
lea edx, [rdx + 0x72]
mov byte [rsp + 0x39], dl
mov rdx, qword [rsp + 0x58]
lea rdx, [rsp + rdx + 0x1e]
movzx edx, byte [rdx]
mov byte [rsp + 0x3b], dl
mov rdx, qword [rsp + 0x58]
lea rdx, [rsp + rdx + 0x1d]
movzx edx, byte [rdx]
add rdx, qword [rsp + 0x70]
movzx edx, byte [rdx]
lea edx, [rdi + rdx]
lea edx, [rdx + 0x72]
mov byte [rsp + 0x3a], dl
mov rdx, qword [rsp + 0x58]
lea rdx, [rsp + rdx + 0x1d]
movzx edx, byte [rdx]
add rdx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x58]
lea rsi, [rsp + rsi + 0x1e]
movzx esi, byte [rsi]
add rsi, qword [rsp + 0x70]
movzx esi, byte [rsi]
lea esi, [rdi + rsi]
lea esi, [rsi + 0x72]
mov byte [rdx], sil
movzx edx, byte [rsp + 0x3b]
add rdx, qword [rsp + 0x70]
movzx esi, byte [rsp + 0x3a]
mov byte [rdx], sil
nop
jmp 0x1401af4e2
add qword [rsp + 0x58], 2
jmp 0x1401af431
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
xor eax, eax
call fcn.140053e40
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
add rsp, 0x90
pop rbp
ret
call fcn.140056be0
jmp fcn.1401af360
Function at 0x1401c7d40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea r12, [rsp - 8]
cmp r12, qword [r14 + 0x10]
jbe 0x1401c7ec6
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
movups xmmword [rsp + 0x50], xmm15
lea rdx, [rsp + 0x37]
mov qword [rsp + 0x78], rdx
test byte [rdx], al
movabs rsi, 0xaf3631a65618e326
mov qword [rdx], rsi
movabs rsi, 0x43af3631a65618e3
mov qword [rdx + 1], rsi
movabs rsi, 0x7ee23f642e6214b5
mov qword [rdx + 9], rsi
mov rdx, qword [rsp + 0x78]
test byte [rdx], al
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], 0x11
mov qword [rsp + 0x70], 0x11
movabs rdx, 0x100a0c0208100900
mov qword [rsp + 0x1c], rdx
movabs rdx, 0xe03070205021008
mov qword [rsp + 0x24], rdx
movabs rdx, 0xc03090410010f0e
mov qword [rsp + 0x2c], rdx
mov qword [rsp + 0x48], 0
jmp 0x1401c7de8
cmp qword [rsp + 0x48], 0x18
jl 0x1401c7df5
jmp 0x1401c7ea5
mov rdx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x48]
lea rsi, [rsp + rsi + 0x1c]
movzx esi, byte [rsi]
mov rdi, qword [rsp + 0x48]
lea rdi, [rsp + rdi + 0x1d]
movzx edi, byte [rdi]
xor esi, edi
lea edi, [rdx + rsi]
lea edx, [rdx + rsi]
lea edx, [rdx + 0x72]
mov byte [rsp + 0x34], dl
mov rdx, qword [rsp + 0x48]
lea rdx, [rsp + rdx + 0x1d]
movzx edx, byte [rdx]
mov byte [rsp + 0x36], dl
mov rdx, qword [rsp + 0x48]
lea rdx, [rsp + rdx + 0x1c]
movzx edx, byte [rdx]
add rdx, qword [rsp + 0x60]
movzx edx, byte [rdx]
lea edx, [rdi + rdx]
lea edx, [rdx + 0x72]
mov byte [rsp + 0x35], dl
mov rdx, qword [rsp + 0x48]
lea rdx, [rsp + rdx + 0x1c]
movzx edx, byte [rdx]
add rdx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x48]
lea rsi, [rsp + rsi + 0x1d]
movzx esi, byte [rsi]
add rsi, qword [rsp + 0x60]
movzx esi, byte [rsi]
lea esi, [rdi + rsi]
lea esi, [rsi + 0x72]
mov byte [rdx], sil
movzx edx, byte [rsp + 0x36]
add rdx, qword [rsp + 0x60]
movzx esi, byte [rsp + 0x35]
mov byte [rdx], sil
jmp 0x1401c7e97
add qword [rsp + 0x48], 2
nop dword [rax]
jmp 0x1401c7de8
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
xor eax, eax
call fcn.140053e40
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbx
sub rsp, 0xffffffffffffff80
pop rbp
ret
call fcn.140056be0
jmp fcn.1401c7d40

Function at 0x1401ce8a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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.1401cf9b0
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.1401cf9b0
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 0x1401ce910
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140323af4]
mov rbx, rcx
test esi, esi
jle 0x1401cea40
mov rax, qword [0x140323af8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1401ce95b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1401ce9e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1401ce940
mov rcx, rbx
call fcn.1401cf3c0
mov rdi, rax
test rax, rax
je 0x1401cea62
mov rax, qword [0x140323af8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1401cf500
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140323af8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401cea47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1401ce9de
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1401ce9f0
add dword [0x140323af4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140323af8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401ce9de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1401ce8a0
nop dword [rax]
xor esi, esi
jmp 0x1401ce968
mov rax, qword [0x140323af8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1401ce8a0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1401ce8a0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1401cf000
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140323b60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140323b40]
test rbx, rbx
je 0x1401cf064
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1401cf05b
test eax, eax
jne 0x1401cf05b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1401cf040
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1401cf3c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402cf140]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1401cf3e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1401cf3e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401cf3e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1401cf43d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1401cf434
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1401cf3e0
add rax, 0x28
cmp rax, r9
jne 0x1401cf420
xor eax, eax
ret

Function at 0x1401cf440
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402cf140]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1401cf45f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1401cf468
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1401cf45f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1401cf500
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402cf140]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1401cf51f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1401cf528
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004044b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004044c0]
mov dword [rax], 1
mov rax, qword [0x004044d0]
mov dword [rax], 1
mov rax, qword [0x004044a0]
mov dword [rax], 1
mov rax, qword [0x00404390]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00404490]
mov dword [0x0040700c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00404450]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00404340]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401a90
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x4024d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x402524
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40251b
test r12, r12
je 0x40251b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402500
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402750
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x402760
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x402770
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4027b5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x4027ac
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4027b7
add rax, 0x28
cmp rax, r9
jne 0x402798
xor eax, eax
ret

Function at 0x402860
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00404390]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x4028d9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4028d9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x4028d6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x4028cd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x4028d9
add r8, 0x28
cmp r8, r9
jne 0x4028b8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x4029c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00404390]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x402a2f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a2f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x402a2d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x402a24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402a38
add rax, 0x28
cmp rax, r9
jne 0x402a10
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402a50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404390]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x402ac8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402ac8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402ac8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402ac8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x402abc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402ad0
add rdx, 0x28
cmp rdx, r10
jne 0x402aa8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x402ae0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402aee
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402ac5
test r8d, r8d
jg 0x402ad8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x18708f0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x18708fd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x187090d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x18708f5
lea eax, [rcx + 1]
jmp 0x187091b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x187092e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1870914
sub eax, 3
jb 0x187094e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x187099d
sar eax, 1
movsxd rbp, eax
jb 0x1870984
jmp 0x187095c
add ebx, ebx
jne 0x187095a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1870984
inc ecx
add ebx, ebx
jne 0x187096a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1870984
call r11
adc ecx, ecx
add ebx, ebx
jne 0x187097d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x187096c
add ecx, 2
jmp 0x1870989
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.018708b2
jmp 0x18708fd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x145a000]
mov eax, dword [rdi]
or eax, eax
je 0x18709f9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1470000]
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 0x18709a9
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 0x18709f3
mov qword [rbx], rax
add rbx, 8
jmp 0x18709c9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1870a3d
cmp al, 0xef
ja 0x1870a25
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1870a05
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1870a14
mov eax, dword [rdi]
add rdi, 4
jmp 0x1870a14
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1870a91
sub rsp, 0xffffffffffffff80
jmp 0x46e7a0

Function at 0x14069cc00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x69cc70
movabs r10, 0x69cc74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x14069cc66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x14069cc50
lea rax, [r9 + r11]
jmp rax