joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140beaa73
Capabilities:
Encode data using base64

Disassembly:
rol ecx, 1
imul dl
mov qword [rsp + rdi*4 + 0x10], rbp
mov qword [rsp + rdi], r10
xor dword [rsp + rdi*2 + 0x10], ecx
call fcn.140c17dd1

Function at 0x140c06fe9
Capabilities:
Parse pe header

Disassembly:
lea rdi, [r10*8 + 0x23b914b9]
mov eax, dword [rsp + 0xa]
mov dword [r8 + riz + 8], ebx
jae 0x140c119ee
neg esi
mov qword [rsp + rdx], 0x3129f725
mov qword [rsp + rax - 0x223b0032], rbp
xor dword [rsp + rax - 0x223b0032], esi
mul rbx
cqo
jae 0x140c28f8b
mov qword [rsp], rdi
sbb r8, 8
mov qword [rsp + 8], 0xffffffffad104482
sub word [rsp + 6], 0xd30a
shl r10, 0x5a
mov dword [r8 + riz + 0xc], eax
jp 0x140bef963
lea r11, [r11 + rcx*2 - 0x7904dd1e]
movzx ebx, di
add r10d, dword [rcx + r11 - 0x3c826e8d]
xor r10d, ebp
cdq
movsx esi, byte [rsp + rcx - 0x3c826e89]
neg dword [rsp + rcx - 0x3c826e7e]
bswap r10d
pop rdi
sbb ebx, 0x9a1e6ab0
sal byte [rsp + rcx - 0x3c826e86], 0xe3
xor r10d, 0x9fa00f14
sub r10d, edx
bswap r10d
sub r10d, edx
xor r10d, 0x26a99fbe
idiv byte [rsp + rcx - 0x3c826e82]
neg byte [rsp + rcx - 0x3c826e8b]
inc dword [rsp + rsi + 0xb]
rol r10d, 2
btr rdi, 7
sbb r10d, 0x89a32594
add dword [rsp + rcx*2 - 0x7904dd17], 0x7061510
bswap r10d
add ecx, eax
rol esi, 0x39
mov qword [rsp + rbx - 0x65e1aa00], rbp
xor dword [rsp + rcx - 0x3c816e85], r10d
cqo
mov rbp, qword [rsp + rcx - 0x3c816e85]
movsxd r10, r10d
imul esi, esi
shl eax, 0x46
add r9, r10
ror ax, 0x87
cdqe
pop rcx
pop rax
jae fcn.140bedf28
mov edx, 0xc03403a7
lea rdi, [rdx + rdx - 0x43e71d6d]
movsx ebx, dil
sub r11, 8
mov eax, edx
shl dl, 7
movzx ecx, al
mov rsi, qword [r11 + rcx*2 - 0x14e]
xor rsi, rbp
call fcn.140c1ea7e
mov eax, 0xca18c605
movsx esi, ax
mov r10d, dword [r11 + riz - 4]
movsx ebx, al
lea r11, [r11 + rbx*2 - 0xe]
jmp 0x140bed144
dec word [rsp + 2]
mov dword [r8 + riz + 4], ecx
ror word [rsp + 9], 0x44
sal ax, 0xe6
mov dword [r8 + riz], edx
mov ecx, 0x3c826e8d
cbw
jp 0x140c0d0a4
pop rbp
xchg r10, rdx
movsxd rsi, esi
adc r9, rsi
div rdi
mov ecx, edi
xor r10, qword [r8 + rbx - 0x32]
neg cl
push rbx
mov rdi, qword [rbx + r8 - 0x2a]
push rcx
mov esi, 0xc902c1a4
ror rbx, cl
mov cl, byte [r8 + rbx - 0x63fffff0]
dec ebx
xor qword [rsp + rbx - 0x63fffffd], rbx
lea r8, [r8 + rbx - 0x63fffff5]
sbb rdx, rbx
shld r10, rdi, cl
not dword [rsp + rdx*2 - 0x5dfa26e4]
btr ax, dx
sal esi, 0x21
mov qword [r8 + rdx*2 - 0x5dfa26f0], r10
rol rax, 0x73
mov qword [rsp + rbx - 0x63ffffff], r9
ret 8

Function at 0x140c0998d
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp], 0xc865cb8
lea rsp, [rsp + 8]
sub rsp, rcx
push 0xffffffff81920900
lea rsp, [rsp + 8]
and rsp, 0xfffffffffffffff0
add rsp, rcx
push 0xffffffffc791bb0e
jmp 0x140c20ebd

Function at 0x140c1bd09
Capabilities:
Encode data using base64

Disassembly:
xor dword [rsp + rbx*2 - 0x4f13a25e], edi
ror cx, 0x47
mov rbp, qword [rsp + rbx - 0x2789d12b]
not eax
xor cl, 0x81
je 0x140c2485a
movsxd rdi, edi
mov qword [rsp + rbx - 0x2789d12b], r10
call fcn.140c1c7dc
Function at 0x140c20edf
Capabilities:
Encode data using base64

Disassembly:
mov edi, 0x481404bd
not eax
movzx edx, di
movsx ecx, dil
bswap ecx
mov dword [r8 + rdx*2 - 0x97a], eax
movzx r10d, dx
shr cl, 0x64
jmp r9
lea rsp, [rsp + 0x20]
je 0x140c02726
mov esi, 0xeb968e02
lea rsi, [rsi + rsi*8 + 0x753b6d2d]
push r9
lea r9, [0x140c0e580]
movzx esi, byte [rdx]
call fcn.140c10403

Function at 0x140c2488b
Capabilities:
Manually build aes constants

Disassembly:
mov qword [rsp + rbx*2 - 0x6c365e02], rbx
mov qword [rsp + rbx*2 - 0x6c365e02], rbp
neg bl
adc bl, bl
movzx ebp, bx
mov rbp, r8
mov ebx, edx
mov edx, 0x6d96f526
imul rdx, rdx
xor dx, 0xfebc
mov edx, ebx
call fcn.140c17d81

Function at 0x140c272d9
Capabilities:
Encode data using base64

Disassembly:
lea rsp, [rsp + 0x10]
jne 0x140c20eca

Function at 0x140c27d44
Capabilities:
Manually build aes constants

Disassembly:
mov rcx, rax
lea rsp, [rsp + 8]
jmp 0x140c067e7
Function at 0x2ed471420
Capabilities:
Access peb ldr_data

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rbx, rdx
mov rax, qword [rax + 0x20]
mov rsi, qword [rax]
mov r11, qword [rsi - 0x10]
lea r10, [rsi - 0x10]
cmp r11, rsi
je 0x2ed47149c
nop dword [rax]
mov rax, qword [r10 + 0x60]
lea rcx, [rax + 2]
movzx eax, word [rax]
test ax, ax
je 0x2ed471491
mov edx, 0xe0e
nop dword [rax]
mov r9d, edx
add rcx, 2
shl r9d, 6
add edx, r9d
add edx, eax
movzx eax, word [rcx - 2]
test ax, ax
jne 0x2ed471470
cmp edx, 0x18cf5f14
je 0x2ed4714ae
mov r10, r11
mov r11, qword [r10]
cmp r11, rsi
jne 0x2ed471458
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov eax, dword [r10 + 0x40]
mov r12, qword [r10 + 0x30]
mov r13d, eax
sub r13d, r8d
cmp eax, r8d
je 0x2ed47149c
mov ebp, r8d
xor esi, esi
nop word cs:[rax + rax]
lea rdi, [r12 + rsi]
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x2ed47149e
add rsi, 1
cmp esi, r13d
jb 0x2ed4714d0
jmp 0x2ed47149c
Function at 0x2ed471680
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rdi
push rsi
push rbx
mov rax, rcx
lea rcx, [rcx + 0xf]
sub rcx, rdx
cmp rcx, 0x1e
jbe 0x2ed471764
movdqu xmm1, xmmword [rdx]
movups xmmword [rax], xmm1
movdqu xmm0, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm0
movzx edi, byte [rax + 0x1f]
mov r10d, 8
movzx r9d, byte [rax + 0x1e]
lea r11, [0x2ed523120]
movzx r8d, byte [rax + 0x1d]
lea rbx, section..rdata
movzx edx, byte [rax + 0x1c]
jmp 0x2ed471729
movzx r8d, r8b
movzx edx, dl
movzx ecx, byte [r11 + r8]
movzx r8d, r9b
movzx r9d, dil
movzx edi, byte [r11 + rdx]
mov edx, r10d
shr edx, 3
movzx r8d, byte [r11 + r8]
xor cl, byte [rbx + rdx]
movzx r9d, byte [r11 + r9]
mov edx, ecx
xor dl, byte [rax]
add r10d, 1
add rax, 4
xor r8b, byte [rax - 3]
xor r9b, byte [rax - 2]
xor dil, byte [rax - 1]
mov byte [rax + 0x1c], dl
mov byte [rax + 0x1d], r8b
mov byte [rax + 0x1e], r9b
mov byte [rax + 0x1f], dil
cmp r10d, 0x3c
je 0x2ed471760
mov ecx, r10d
and ecx, 7
je 0x2ed4716d0
cmp ecx, 4
jne 0x2ed4716fe
movzx edx, dl
movzx r8d, r8b
movzx esi, r9b
movzx ecx, dil
movzx edx, byte [r11 + rdx]
movzx r8d, byte [r11 + r8]
movzx r9d, byte [r11 + rsi]
movzx edi, byte [r11 + rcx]
jmp 0x2ed4716fe
pop rbx
pop rsi
pop rdi
ret
movzx ecx, byte [rdx]
mov byte [rax], cl
movzx ecx, byte [rdx + 1]
mov byte [rax + 1], cl
movzx ecx, byte [rdx + 2]
mov byte [rax + 2], cl
movzx ecx, byte [rdx + 3]
mov byte [rax + 3], cl
movzx ecx, byte [rdx + 4]
mov byte [rax + 4], cl
movzx ecx, byte [rdx + 5]
mov byte [rax + 5], cl
movzx ecx, byte [rdx + 6]
mov byte [rax + 6], cl
movzx ecx, byte [rdx + 7]
mov byte [rax + 7], cl
movzx ecx, byte [rdx + 8]
mov byte [rax + 8], cl
movzx ecx, byte [rdx + 9]
mov byte [rax + 9], cl
movzx ecx, byte [rdx + 0xa]
mov byte [rax + 0xa], cl
movzx ecx, byte [rdx + 0xb]
mov byte [rax + 0xb], cl
movzx ecx, byte [rdx + 0xc]
mov byte [rax + 0xc], cl
movzx ecx, byte [rdx + 0xd]
mov byte [rax + 0xd], cl
movzx ecx, byte [rdx + 0xe]
mov byte [rax + 0xe], cl
movzx ecx, byte [rdx + 0xf]
mov byte [rax + 0xf], cl
movzx ecx, byte [rdx + 0x10]
mov byte [rax + 0x10], cl
movzx ecx, byte [rdx + 0x11]
mov byte [rax + 0x11], cl
movzx ecx, byte [rdx + 0x12]
mov byte [rax + 0x12], cl
movzx ecx, byte [rdx + 0x13]
mov byte [rax + 0x13], cl
movzx ecx, byte [rdx + 0x14]
mov byte [rax + 0x14], cl
movzx ecx, byte [rdx + 0x15]
mov byte [rax + 0x15], cl
movzx ecx, byte [rdx + 0x16]
mov byte [rax + 0x16], cl
movzx ecx, byte [rdx + 0x17]
mov byte [rax + 0x17], cl
movzx ecx, byte [rdx + 0x18]
mov byte [rax + 0x18], cl
movzx ecx, byte [rdx + 0x19]
mov byte [rax + 0x19], cl
movzx ecx, byte [rdx + 0x1a]
mov byte [rax + 0x1a], cl
movzx ecx, byte [rdx + 0x1b]
mov byte [rax + 0x1b], cl
movzx ecx, byte [rdx + 0x1c]
mov byte [rax + 0x1c], cl
movzx ecx, byte [rdx + 0x1d]
mov byte [rax + 0x1d], cl
movzx ecx, byte [rdx + 0x1e]
mov byte [rax + 0x1e], cl
movzx edx, byte [rdx + 0x1f]
mov byte [rax + 0x1f], dl
jmp 0x2ed4716a7
Function at 0x2ed495930
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.2ed4a2190
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.2ed4a2190
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 0x2ed4959a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2ed546614]
test esi, esi
mov rbx, rcx
jle 0x2ed495ad0
mov rax, qword [0x2ed546618]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2ed4959eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2ed495a75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2ed4959d0
mov rcx, rbx
call fcn.2ed496200
test rax, rax
mov rdi, rax
je 0x2ed495af2
mov rax, qword [0x2ed546618]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2ed496340
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2ed546618]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2ed495ad7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2ed495a6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2ed495a80
add dword [0x2ed546614], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x2ed546618]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2ed495a6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2ed495930
nop dword [rax]
xor esi, esi
jmp 0x2ed4959f8
mov rax, qword [0x2ed546618]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.2ed495930
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.2ed495930
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2ed495e70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2ed546640]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2ed546620]
test rbx, rbx
je 0x2ed495ecc
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 eax, eax
jne 0x2ed495ec3
test rsi, rsi
je 0x2ed495ec3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2ed495ea8
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 0x2ed496200
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x2ed496280
Capabilities:
Parse pe header

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

Function at 0x2ed496340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2ed528690]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x2ed49635f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x2ed496368
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x2ed503340
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
test rax, rax
mov rdi, rcx
je 0x2ed503368
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
lea rsi, [rsp + 0x2c]
mov ebx, 4
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
test eax, eax
jle 0x2ed5033b0
cdqe
add rsi, rax
sub rbx, rax
jne 0x2ed503380
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x2ed5033bc
call rbp
cmp dword [rax], 4
je 0x2ed503380
lea rcx, str.random_device_could_not_be_read
call fcn.2ed51fcc0
nop
nop
nop
nop
nop
nop
nop
nop
mov rax, qword [0x2ed528380]
add rax, 0x10
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov rdx, qword [0x2ed527c70]
mov qword [rcx + 8], rax
mov r8d, dword [rdx]
test r8d, r8d
jne 0x2ed503408
mov edx, dword [rax - 8]
test edx, edx
jle 0x2ed503413
add edx, 1
mov dword [rax - 8], edx
ret
mov eax, dword [rax - 8]
test eax, eax
jg 0x2ed503420
mov rax, qword [rcx + 8]
mov dword [rax - 8], 1
ret
mov edx, dword [rdx]
mov rax, qword [rcx + 8]
test edx, edx
je 0x2ed503430
lock add dword [rax - 8], 1
ret
mov edx, dword [rax - 8]
jmp 0x2ed5033fc
Function at 0x2ed509ef0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
movaps xmmword [rsp], xmm6
movaps xmmword [rsp + 0x10], xmm7
movdqa xmm3, xmmword [0x2ed5234a0]
pxor xmm7, xmm7
movdqa xmm4, xmmword [0x2ed5234b0]
movdqa xmm5, xmmword [0x2ed5234c0]
movdqa xmm6, xmmword [0x2ed5234d0]
mov rdx, rcx
lea rcx, [rcx + 0x380]
mov rax, rdx
nop
movdqu xmm0, xmmword [rax]
add rax, 0x10
movdqu xmm1, xmmword [rax - 0xc]
movdqu xmm2, xmmword [rax + 0x624]
pand xmm0, xmm3
pand xmm1, xmm4
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm2
movdqa xmm2, xmm7
psubd xmm2, xmm0
pand xmm2, xmm6
movdqa xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x2ed509f30
mov eax, dword [rdx + 0x388]
mov ecx, dword [rdx + 0x38c]
movq xmm0, qword [rdx + 0x380]
movq xmm1, qword [0x2ed5234a0]
movq xmm2, qword [0x2ed5234b0]
and eax, 0x80000000
pand xmm0, xmm1
and ecx, 0x7fffffff
movq xmm1, qword [rdx + 0x384]
or eax, ecx
pand xmm1, xmm2
por xmm0, xmm1
movdqa xmm2, xmm0
mov ecx, eax
movq xmm1, qword [rdx + 0x9b4]
psrld xmm2, 1
shr ecx, 1
and eax, 1
xor ecx, dword [rdx + 0x9bc]
neg eax
pxor xmm1, xmm2
and eax, 0x9908b0df
movq xmm2, qword [0x2ed5234c0]
pand xmm0, xmm2
pxor xmm2, xmm2
psubd xmm2, xmm0
movq xmm0, qword [0x2ed5234d0]
xor eax, ecx
mov dword [rdx + 0x388], eax
lea rcx, [rdx + 0x9bc]
pand xmm0, xmm2
lea rax, [rdx + 0x38c]
pxor xmm1, xmm0
pxor xmm2, xmm2
movq qword [rdx + 0x380], xmm1
movdqu xmm0, xmmword [rax]
add rax, 0x10
movdqu xmm1, xmmword [rax - 0xc]
movdqu xmm7, xmmword [rax - 0x39c]
pand xmm0, xmm3
pand xmm1, xmm4
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm7
movdqa xmm7, xmm2
psubd xmm7, xmm0
pand xmm7, xmm6
movdqa xmm0, xmm7
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x2ed50a033
mov eax, dword [rdx + 0x9bc]
mov qword [rdx + 0x9c0], 0
mov ecx, dword [rdx]
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
and eax, 0x80000000
and ecx, 0x7fffffff
or eax, ecx
mov ecx, eax
and eax, 1
shr ecx, 1
xor ecx, dword [rdx + 0x630]
neg eax
and eax, 0x9908b0df
xor eax, ecx
mov dword [rdx + 0x9bc], eax
add rsp, 0x28
ret
Function at 0x2ed51f140
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x2ed522f40]
jmp 0x2ed497070

Function at 0x140f52294
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f5229e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f522c7
pop rbp
sub rbp, 0x33
sub rbp, 0xf52294
sub rsp, 0x20
jmp 0x140f522e6
mov rax, 0xf52294
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x6be88ea3
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f52305
jmp 0x140f5231c
jmp 0x140f52348
movabs dword [0x831bebf3f34ba2eb], eax
push rcx
test dword [rbx - 0x5c5c5c5d], esp
jmp 0x140f52374
mov bpl, 0xa3
movabs dword [0x22ebb292a14b62a3], eax
invalid
Function at 0x180010050
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
dec r8d
cmp r8d, 0x1f
ja case.0x180010078.3
mov rsi, rdx
mov rdi, rcx
lea rax, [0x18005600c]
movsxd rcx, dword [rax + r8*4]
add rcx, rax
jmp rcx
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x180010204
cmp byte [rdi + 0x68], 0
je 0x18001009a
cmp byte [rcx + 0xb8], 0
jne 0x180010204
mov rax, qword [rcx]
call qword [rax + 8]
lea rbx, [rdi + 0x40]
add rdi, 0x50
jmp 0x1800101d1
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x180010204
cmp byte [rdi + 0xb0], 0
je 0x1800100d3
cmp byte [rcx + 0xb8], 0
jne 0x180010204
mov rax, qword [rcx]
call qword [rax + 8]
lea rbx, [rdi + 0x88]
add rdi, 0x98
jmp 0x1800101d1
mov rcx, qword [rdi + 0xf0]
test rcx, rcx
je 0x180010204
cmp byte [rdi + 0xf8], 0
je 0x180010112
cmp byte [rcx + 0xb8], 0
jne 0x180010204
mov rax, qword [rcx]
call qword [rax + 8]
lea rbx, [rdi + 0xd0]
add rdi, 0xe0
jmp 0x1800101d1
mov rcx, qword [rdi + 0x138]
test rcx, rcx
je 0x180010204
cmp byte [rdi + 0x140], 0
je 0x180010151
cmp byte [rcx + 0xb8], 0
jne 0x180010204
mov rax, qword [rcx]
call qword [rax + 8]
lea rbx, [rdi + 0x118]
add rdi, 0x128
jmp 0x1800101d1
mov rcx, qword [rdi + 0x180]
test rcx, rcx
je 0x180010204
cmp byte [rdi + 0x188], 0
je 0x180010189
cmp byte [rcx + 0xb8], 0
jne 0x180010204
mov rax, qword [rcx]
call qword [rax + 8]
lea rbx, [rdi + 0x160]
add rdi, 0x170
jmp 0x1800101d1
mov rcx, qword [rdi + 0x1c8]
test rcx, rcx
je 0x180010204
cmp byte [rdi + 0x1d0], 0
je 0x1800101bd
cmp byte [rcx + 0xb8], 0
jne 0x180010204
mov rax, qword [rcx]
call qword [rax + 8]
lea rbx, [rdi + 0x1a8]
add rdi, 0x1b8
mov qword [rsp + 0x20], rdi
mov byte [rsp + 0x28], 0
lea rcx, [rsp + 0x20]
call fcn.180011ca0
mov rax, qword [rsp + 0x20]
mov qword [rsi], rax
movzx eax, byte [rsp + 0x28]
mov byte [rsi + 8], al
mov qword [rsi + 0x10], rbx
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov ecx, 4
call fcn.180011770
lea rcx, str.Invalid_bit_flag_
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1800107e0
Capabilities:
Terminate process

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0
lea rcx, [rbp - 0x40]
lea r8, [rbp - 0x20]
xor edx, edx
call fcn.18001b660
mov rax, qword [rbp - 0x10]
test al, 1
je 0x180010837
cmp rax, 1
jne 0x1800108be
cmp dword [rbp - 0x20], 0
jne 0x1800108be
lea rdi, [rbp - 0x40]
mov rcx, rdi
call fcn.180049b40
cmp qword [rbp - 0x28], 8
jb 0x18001084e
mov rdi, qword [rbp - 0x40]
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, rsi
mov rdx, rdi
mov r8, rax
call fcn.18001bdc0
mov rax, qword [rbp - 0x28]
cmp rax, 8
jb 0x1800108b0
mov rcx, qword [rbp - 0x40]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x1800108ab
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x1800108fb
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.18004a520
mov rax, rsi
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rbp - 0x20]
lea rsi, [rbp - 0x60]
mov rdx, rsi
call fcn.1800133a0
cmp qword [rbp - 0x48], 0x10
mov rdx, rsi
jb 0x1800108dc
mov rdx, qword [rbp - 0x60]
lea rcx, str.Failed_to_getProgramLoc__:__s
call fcn.180010230
mov rcx, rsi
call fcn.180010ff0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x180016ed0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
cmp edx, 0xffffffff
je 0x180016feb
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x180016f1b
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x180016f1b
dec ecx
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x180017030
cmp qword [rdi + 0x80], 0
je 0x180016fef
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x180016f55
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x180016ff6
mov byte [rsp + 0x4f], sil
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x50]
lea rdx, [rdi + 0x74]
mov r10, qword [rcx]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x60]
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x4f]
mov r8, rbx
call qword [r10 + 0x38]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x18001700f
mov r15, qword [rsp + 0x50]
sub r15, r14
je 0x180016fdb
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r15, rax
jne 0x18001702e
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x58], rbx
mov eax, 0xffffffff
jmp 0x180017029
xor esi, esi
jmp 0x180017030
mov esi, 0xffffffff
jmp 0x180017030
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x180017030
cmp eax, 3
jne 0x18001702e
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x4f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret