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

Disassembly:
mov r10, rcx
xor r9b, r9b
xor ecx, ecx
mov r11, rdx
test r8, r8
je 0x1403d58b4
sub r10, rdx
cmp r8, 0x20
jb 0x1403d588e
mov rdx, r8
lea rax, [r11 + 0x10]
and rdx, 0xffffffffffffffe0
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add rcx, 0x20
movdqu xmm1, xmmword [r10 + rax - 0x10]
lea rax, [rax + 0x20]
xorps xmm1, xmm0
orps xmm3, xmm1
movdqu xmm1, xmmword [rax - 0x20]
movdqu xmm0, xmmword [r10 + rax - 0x20]
xorps xmm1, xmm0
orps xmm2, xmm1
cmp rcx, rdx
jb 0x1403d5820
orps xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 2
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 1
orps xmm2, xmm0
movd r9d, xmm2
cmp rcx, r8
jae 0x1403d58b4
lea rax, [rcx + r11]
sub r8, rcx
nop word [rax + rax]
movzx ecx, byte [r10 + rax]
xor cl, byte [rax]
lea rax, [rax + 1]
or r9b, cl
sub r8, 1
jne 0x1403d58a0
movzx eax, r9b
ret

Function at 0x1403d6010
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1403d61cf
mov r11, rsp
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x4c0
mov rax, qword [0x1405c4180]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rbx, qword [rsp + 0x510]
mov r15, rdx
mov qword [r11 + 0x18], rbp
mov rdi, rcx
mov qword [r11 - 0x30], rsi
lea rcx, [r11 - 0x408]
mov rdx, r9
mov qword [r11 - 0x38], r13
mov r12, r9
mov r14, r8
call fcn.1403d67d0
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x20]
lea rbx, [rsp + 0xa0]
movups xmmword [rcx], xmm0
mov rax, qword [rcx]
sub rbx, rdi
mov qword [rcx + 0x10], rax
mov rax, qword [rcx + 8]
mov qword [rcx + 0x18], rax
mov rax, qword [rcx + 0x10]
mov qword [rcx + 0x20], rax
mov rax, qword [rcx + 0x18]
mov qword [rcx + 0x28], rax
mov rax, qword [rcx + 0x20]
mov qword [rcx + 0x30], rax
mov rax, qword [rcx + 0x28]
mov qword [rcx + 0x38], rax
mov r13d, dword [rsp + 0x2c]
bswap r13d
lea ebp, [r13 + 2]
mov ecx, 4
lea rdx, [rsp + 0x20]
cmp r14, rcx
mov eax, r13d
bswap eax
mov dword [rsp + 0x2c], eax
mov rsi, r14
cmovae rsi, rcx
lea eax, [rbp - 1]
bswap eax
mov dword [rsp + 0x3c], eax
lea rcx, [rsp + 0x60]
mov eax, ebp
mov r8, rsi
bswap eax
mov dword [rsp + 0x4c], eax
lea eax, [rbp + 1]
bswap eax
mov dword [rsp + 0x5c], eax
call fcn.1403d7220
mov edx, dword [r12 + 0xf0]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0xe0]
call fcn.1403d6540
lea r8, [rsp + 0x60]
mov rdx, rsi
lea rcx, [rsp + 0xa0]
call fcn.1403d6880
test rsi, rsi
je 0x1403d617b
mov r8, r15
mov rax, rdi
sub r8, rdi
mov r9, rsi
nop dword [rax]
nop word [rax + rax]
mov edx, 2
nop word [rax + rax]
mov rcx, qword [rax + rbx]
xor rcx, qword [rax]
mov qword [r8 + rax], rcx
add rax, 8
sub rdx, 1
jne 0x1403d6160
sub r9, 1
jne 0x1403d6150
sub r14, rsi
je 0x1403d6198
add rdi, 0x40
sub rbx, 0x40
add r15, 0x40
add r13d, 4
add ebp, 4
jmp 0x1403d60bd
mov rsi, qword [rsp + 0x4b8]
mov rbp, qword [rsp + 0x500]
mov r13, qword [rsp + 0x4b0]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1403e2040
add rsp, 0x4c0
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
Function at 0x1403d6260
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
sub rsp, 0x98
mov rax, qword [0x1405c4180]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, r8
cmp edx, 0x80
je 0x1403d62a6
cmp edx, 0x100
je 0x1403d6296
mov eax, 1
jmp 0x1403d641e
mov rdx, rcx
mov rcx, rbx
call fcn.1403d6c90
jmp 0x1403d641c
mov qword [rsp + 0xb8], rbp
mov rdx, rcx
mov qword [rsp + 0xc8], rdi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x80], r15
mov dword [r8 + 0xf0], 0xa
call fcn.1403d6440
movups xmm1, xmmword [rsp + 0x60]
mov rdi, qword [rsp + 0x60]
lea rbp, [rbx + 0x10]
mov esi, 1
lea r12, [0x14046c628]
movups xmmword [rbx], xmm1
mov rbx, qword [rsp + 0x68]
xor r14d, r14d
movabs r15, 0xf000000000000
xorps xmm0, xmm0
mov qword [rsp + 0x28], r14
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x20]
movdqa xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x40], rbx
call fcn.1403d7390
lea rcx, [rsp + 0x20]
call fcn.1403d6ec0
lea rcx, [rsp + 0x20]
call fcn.1403d7390
movzx edx, byte [rsi + r12 - 1]
lea rbp, [rbp + 0x10]
mov rax, qword [rsp + 0x20]
inc rsi
mov rcx, rax
and rax, r15
shr rcx, 0x10
or rcx, rax
mov eax, edx
shr rcx, 0x24
and eax, 0xf
xor rcx, rax
mov rax, qword [rsp + 0x40]
xor rcx, rdi
mov rdi, rcx
shl rdi, 0x10
xor rdi, rcx
shl rdi, 0x10
xor rdi, rcx
shl rdi, 0x10
xor rdi, rcx
mov rcx, rax
shr rcx, 0x10
and rax, r15
or rcx, rax
mov qword [rsp + 0x60], rdi
shr rcx, 0x20
xor rcx, rdx
shr rcx, 4
xor rcx, rbx
mov rbx, rcx
shl rbx, 0x10
xor rbx, rcx
shl rbx, 0x10
xor rbx, rcx
shl rbx, 0x10
xor rbx, rcx
mov qword [rsp + 0x68], rbx
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x10], xmm0
cmp rsi, 0xa
jbe 0x1403d6315
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
mov rdi, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xb8]
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1403e2040
add rsp, 0x98
pop rsi
pop rbx
ret
Function at 0x1403d6880
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
sub rsp, 0x68
movups xmm0, xmmword [r8]
mov rdi, rcx
lea rcx, [rsp + 0x20]
movups xmm1, xmmword [r8 + 0x10]
mov rbx, rdx
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [r8 + 0x20]
movaps xmmword [rsp + 0x30], xmm1
movups xmm1, xmmword [r8 + 0x30]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
call fcn.1403d7390
xor r11d, r11d
test rbx, rbx
je 0x1403d6a02
mov qword [rsp + 0x80], rbp
movabs rbp, 0xff000000ff00
mov qword [rsp + 0x88], rsi
mov esi, 0xffff0000
mov qword [rsp + 0x90], r14
movabs r14, 0xf000f000f000f0
mov qword [rsp + 0x60], r15
movabs r15, 0xffffffff00000000
nop word [rax + rax]
mov r10, qword [rsp + r11*8 + 0x40]
lea rdi, [rdi + 0x10]
mov r8, qword [rsp + r11*8 + 0x20]
mov rdx, r10
shl rdx, 0x20
and r10, r15
mov eax, r8d
inc r11
or rdx, rax
shr r8, 0x20
or r10, r8
mov rcx, rdx
shr rcx, 0x10
xor rcx, rdx
and rcx, rsi
mov rax, rcx
shl rax, 0x10
xor rax, rcx
xor rdx, rax
mov rcx, rdx
shr rcx, 8
xor rcx, rdx
and rcx, rbp
mov rax, rcx
shl rax, 8
xor rax, rcx
mov rcx, r10
xor rdx, rax
shr rcx, 0x10
xor rcx, r10
mov rax, rdx
shr rax, 4
and rcx, rsi
xor rax, rdx
and rax, r14
mov r9, rax
shl r9, 4
xor r9, rax
mov rax, rcx
shl rax, 0x10
xor r9, rdx
xor rax, rcx
mov qword [rdi - 0x10], r9
xor r10, rax
mov rcx, r10
shr rcx, 8
xor rcx, r10
and rcx, rbp
mov rax, rcx
shl rax, 8
xor rax, rcx
xor r10, rax
mov rcx, r10
shr rcx, 4
xor rcx, r10
and rcx, r14
mov rax, rcx
shl rax, 4
xor rax, rcx
xor rax, r10
mov qword [rdi - 8], rax
cmp r11, rbx
jb 0x1403d6910
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
add rsp, 0x68
pop rdi
pop rbx
ret
Function at 0x1403d7220
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xorps xmm0, xmm0
xor esi, esi
mov rbx, r8
mov rdi, rdx
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
test r8, r8
je 0x1403d7377
mov qword [rsp + 0x60], rbp
movabs rbp, 0xf000f000f000f0
mov qword [rsp + 0x68], r12
movabs r12, 0xffffffff00000000
mov qword [rsp + 0x28], r14
movabs r14, 0xff000000ff00
mov qword [rsp + 0x20], r15
mov r15d, 0xffff0000
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rdi]
mov r10, qword [rdi + 8]
lea rdi, [rdi + 0x10]
mov rax, rdx
shr rax, 4
xor rax, rdx
and rax, rbp
mov r8, rax
shl r8, 4
xor r8, rdx
xor r8, rax
mov rdx, r8
shr rdx, 8
xor rdx, r8
and rdx, r14
mov rax, rdx
shl rax, 8
xor rax, rdx
xor r8, rax
mov rax, r8
shr rax, 0x10
xor rax, r8
and rax, r15
mov r11, rax
shl r11, 0x10
xor r11, rax
mov rax, r10
shr rax, 4
xor r11, r8
xor rax, r10
and rax, rbp
mov r9, rax
shl r9, 4
xor r9, r10
xor r9, rax
mov rdx, r9
shr rdx, 8
xor rdx, r9
and rdx, r14
mov rax, rdx
shl rax, 8
xor rax, rdx
xor r9, rax
mov rax, r9
shr rax, 0x10
xor rax, r9
and rax, r15
mov r8, rax
shl r8, 0x10
xor r8, rax
mov eax, r11d
xor r8, r9
shr r11, 0x20
mov rdx, r8
and r8, r12
shl rdx, 0x20
or r11, r8
or rdx, rax
mov qword [rcx + rsi*8 + 0x20], r11
mov qword [rcx + rsi*8], rdx
inc rsi
cmp rsi, rbx
jb 0x1403d7290
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
jmp fcn.1403d7390
Function at 0x1403d9430
Capabilities:
Encode data using xor

Disassembly:
mov r9, rdx
mov r10, rcx
mov rax, 0xffffffffffffffff
test r8, r8
je 0x1403d9482
sub r10, rdx
nop word [rax + rax]
mov rcx, qword [r9 + r10]
xor rcx, qword [r9]
lea r9, [r9 + 8]
lea rdx, [rcx - 1]
not rcx
shr rcx, 0x3f
shr rdx, 0x3f
and rdx, rcx
mov rcx, rax
neg rdx
not rcx
or rdx, rcx
and rax, rdx
sub r8, 1
jne 0x1403d9450
ret
Function at 0x1403da660
Capabilities:
Encrypt data using curve25519

Disassembly:
movzx eax, byte [rcx + 0x1f]
and byte [rcx], 0xf8
and al, 0x3f
or al, 0x40
mov byte [rcx + 0x1f], al
ret

Function at 0x1403e1bd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r11, rcx
xor eax, eax
mov ebx, 0x20
mov r10d, 1
movabs rdi, 0x8000000000000000
nop dword [rax]
nop dword [rax + rax]
shr rax, 1
mov r9, r10
and r9d, 1
neg r9
mov rdx, r9
and r9, rdi
add r9, rax
and rdx, r11
mov r8, rdx
shr r9, 1
xor r8, r10
and rdx, r10
shr r8, 1
add r8, rdx
mov rax, r8
and eax, 1
neg rax
mov rcx, rax
and rax, rdi
and rcx, r11
add rax, r9
mov r10, rcx
and rcx, r8
xor r10, r8
shr r10, 1
add r10, rcx
sub rbx, 1
jne 0x1403e1c00
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x1403e2518
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1403e2562
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1403e2562
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1403e2562
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1403e2562
cmp dword [rcx + 0x84], 0xe
jbe 0x1403e2562
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1403e2564
xor al, al
add rsp, 0x28
ret
Function at 0x1403efa30
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
lea rcx, [0x1404dd985]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1403efa93
mov rdi, rax
lea rdx, [0x1404dd9a6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1403efa93
mov rsi, rax
lea rdx, [0x1404dd9b4]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1403efa93
mov r14, rax
xor ebx, ebx
jmp 0x1403efb19
lea rcx, [0x1404dd940]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1403efb86
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1403efb86
mov rdi, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1403efb86
mov rbx, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1403efb86
mov rsi, rax
lea rcx, [rbp - 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rdi
test eax, eax
jne 0x1403efb86
mov r14, qword [rbp - 0x20]
movzx eax, byte [0x1405c4221]
mov ecx, 0x18
mov edx, 8
call fcn.1400ebbf0
test rax, rax
je 0x1403efb8b
mov rdi, rax
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x1405c42a0], rdi
je 0x1403efb78
mov rsi, rax
cmp qword [rdi], 0
je 0x1403efb62
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.1400ebc00
mov rdi, rsi
mov rax, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
call fcn.1403efa00
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rbx
mov ecx, 8
mov edx, 0x18
call fcn.1403f19b0
ud2

Function at 0x1403f0bc0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.1403c4990
mov rdx, qword [rbp - 0x28]
mov rax, rdx
neg rax
jno 0x1403f0c42
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1403f0c72
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1403f0c86
lea rax, str._buQ_
mov qword [rsi + 8], rax
mov qword [rsi], 1
jae 0x1403f0ca6
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.1400ebc00
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x1403f0ca6
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.1400ebc00
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x141a96058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141a961df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141a96089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141a9606f
add dl, dl
jne 0x141a96096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141a960f6
xor eax, eax
add dl, dl
jne 0x141a960a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141a961ad
add dl, dl
jne 0x141a960b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a960c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a960d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a960dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141a960ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141a9607e
mov eax, 1
add dl, dl
jne 0x141a96106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a96113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141a960fb
sub eax, ebx
mov ebx, 1
jne 0x141a9614c
mov ecx, 1
add dl, dl
jne 0x141a9612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141a9613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141a96123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141a9607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141a96168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141a96175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141a9615d
cmp eax, 0x7d00
jae 0x141a9619b
cmp eax, 0x500
jb 0x141a96196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141a9607e
cmp eax, 0x7f
ja 0x141a9619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141a9607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141a961d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141a9607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004560]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004570]
mov dword [rax], 1
mov rax, qword [0x140004580]
mov dword [rax], 1
mov rax, qword [0x1400044e0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004550]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004630]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004610]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400044c0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001740
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 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x1400017b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400075e4]
mov rbx, rcx
test esi, esi
jle 0x1400018e0
mov rax, qword [0x1400075e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001885
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017e0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001902
mov rax, qword [0x1400075e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400075e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000187e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001890
add dword [0x1400075e4], 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 [0x1400075e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000187e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001808
mov rax, qword [0x1400075e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001ea0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007640]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140007620]
test rbx, rbx
je 0x140001efc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140001ef3
test eax, eax
jne 0x140001ef3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ed8
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 0x140002110
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002128
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002130
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002140
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000218d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002184
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000218f
add rax, 0x28
cmp rax, r9
jne 0x140002170
xor eax, eax
ret

Function at 0x140002190
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002220
mov rdx, qword [0x1400044e0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000220e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000220e
cmp word [rax + 0x18], 0x20b
jne 0x14000220e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002220
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400021f9
add rbx, 0x28
cmp rbx, rdi
je 0x140002220
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400021f0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002230
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400044e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002250
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002258
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002250
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022ad
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 0x1400022a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002250
add rax, 0x28
cmp rax, r9
jne 0x140002290
xor eax, eax
ret

Function at 0x1400022b0
Capabilities:
Parse pe header

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

Function at 0x1400022f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400044e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002310
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002318
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002310
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002360
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002357
test rcx, rcx
je 0x140002310
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002348
xor eax, eax
ret