joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004f9b0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 8
call fcn.14004fa20
shl edx, 4
test eax, eax
jne 0x14004fa16
lea rcx, [r8 + rdx + 0x10]
movups xmm0, xmmword [r8]
movups xmm1, xmmword [rcx]
movups xmmword [rcx], xmm0
movups xmmword [r8], xmm1
lea r8, [r8 + 0x10]
lea rcx, [rcx - 0x10]
movups xmm0, xmmword [r8]
movups xmm1, xmmword [rcx]
aesimc xmm0, xmm0
aesimc xmm1, xmm1
lea r8, [r8 + 0x10]
lea rcx, [rcx - 0x10]
movups xmmword [rcx + 0x10], xmm0
movups xmmword [r8 - 0x10], xmm1
cmp rcx, r8
ja 0x14004f9db
movups xmm0, xmmword [r8]
aesimc xmm0, xmm0
pxor xmm1, xmm1
movups xmmword [rcx], xmm0
pxor xmm0, xmm0
add rsp, 8
repz ret
Function at 0x140050b00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm4, xmmword [rcx - 0x80]
vmovdqu xmm2, xmmword [r11 + 0x20]
lea r13, [rbp - 1]
vmovups xmm15, xmmword [rcx - 0x70]
lea r12, [rcx - 0x60]
vpxor xmm9, xmm1, xmm4
add ebx, 0x6000000
jb 0x140050c20
vpaddb xmm10, xmm1, xmm2
vpaddb xmm11, xmm10, xmm2
vpxor xmm10, xmm10, xmm4
vpaddb xmm12, xmm11, xmm2
vpxor xmm11, xmm11, xmm4
vpaddb xmm13, xmm12, xmm2
vpxor xmm12, xmm12, xmm4
vpaddb xmm14, xmm13, xmm2
vpxor xmm13, xmm13, xmm4
vpaddb xmm1, xmm14, xmm2
vpxor xmm14, xmm14, xmm4
jmp 0x140050b60
vaesenc xmm9, xmm9, xmm15
vaesenc xmm10, xmm10, xmm15
vaesenc xmm11, xmm11, xmm15
vaesenc xmm12, xmm12, xmm15
vaesenc xmm13, xmm13, xmm15
vaesenc xmm14, xmm14, xmm15
vmovups xmm15, xmmword [r12]
lea r12, [r12 + 0x10]
dec r13d
jne 0x140050b60
vmovdqu xmm3, xmmword [r12]
vaesenc xmm9, xmm9, xmm15
vpxor xmm4, xmm3, xmmword [rdi]
vaesenc xmm10, xmm10, xmm15
vpxor xmm5, xmm3, xmmword [rdi + 0x10]
vaesenc xmm11, xmm11, xmm15
vpxor xmm6, xmm3, xmmword [rdi + 0x20]
vaesenc xmm12, xmm12, xmm15
vpxor xmm8, xmm3, xmmword [rdi + 0x30]
vaesenc xmm13, xmm13, xmm15
vpxor xmm2, xmm3, xmmword [rdi + 0x40]
vaesenc xmm14, xmm14, xmm15
vpxor xmm3, xmm3, xmmword [rdi + 0x50]
lea rdi, [rdi + 0x60]
vaesenclast xmm9, xmm9, xmm4
vaesenclast xmm10, xmm10, xmm5
vaesenclast xmm11, xmm11, xmm6
vaesenclast xmm12, xmm12, xmm8
vaesenclast xmm13, xmm13, xmm2
vaesenclast xmm14, xmm14, xmm3
vmovups xmmword [rsi], xmm9
vmovups xmmword [rsi + 0x10], xmm10
vmovups xmmword [rsi + 0x20], xmm11
vmovups xmmword [rsi + 0x30], xmm12
vmovups xmmword [rsi + 0x40], xmm13
vmovups xmmword [rsi + 0x50], xmm14
lea rsi, [rsi + 0x60]
repz ret
vpshufb xmm6, xmm1, xmm0
vmovdqu xmm5, xmmword [r11 + 0x30]
vpaddd xmm10, xmm6, xmmword [r11 + 0x40]
vpaddd xmm11, xmm6, xmm5
vpaddd xmm12, xmm10, xmm5
vpshufb xmm10, xmm10, xmm0
vpaddd xmm13, xmm11, xmm5
vpshufb xmm11, xmm11, xmm0
vpxor xmm10, xmm10, xmm4
vpaddd xmm14, xmm12, xmm5
vpshufb xmm12, xmm12, xmm0
vpxor xmm11, xmm11, xmm4
vpaddd xmm1, xmm13, xmm5
vpshufb xmm13, xmm13, xmm0
vpxor xmm12, xmm12, xmm4
vpshufb xmm14, xmm14, xmm0
vpxor xmm13, xmm13, xmm4
vpshufb xmm1, xmm1, xmm0
vpxor xmm14, xmm14, xmm4
jmp 0x140050b60
Function at 0x140076740
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x140076775
nop
movdqu xmm0, xmmword [rdx + r8]
pxor xmm0, xmmword [r8]
movdqu xmmword [rcx + r8], xmm0
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x140076750
and r10, 0xf
je 0x1400767a5
mov r9d, reloc.WS2_32.dll_recv
sub r9, r10
xor eax, eax
mov al, byte [rdx + r8]
xor al, byte [r8]
mov byte [rcx + r8], al
mov byte [r8], al
lea r8, [r8 + 1]
dec r10
jne 0x140076780
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x140076799
mov rax, r8
repz ret

Function at 0x1400767b0
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x1400767ed
nop
movdqu xmm0, xmmword [rdx + r8]
movdqa xmm1, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [rcx + r8], xmm1
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x1400767c0
pxor xmm1, xmm1
and r10, 0xf
je 0x140076823
mov r9d, reloc.WS2_32.dll_recv
sub r9, r10
xor eax, eax
xor r11, r11
mov r11b, byte [rdx + r8]
mov al, byte [r8]
xor al, r11b
mov byte [rcx + r8], al
mov byte [r8], r11b
lea r8, [r8 + 1]
dec r10
jne 0x1400767fb
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x140076817
mov rax, r8
repz ret
Function at 0x1400817e0
Capabilities:
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x110
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
test rax, rax
je 0x14008183c
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14008182f
call qword [0x140500a48]
mov qword [rbx + 8], 0
jmp 0x140081833
mov qword [rbx + 8], rax
add rsp, 0x110
pop rbx
ret
lea rdx, str.MapViewOfFile_failed.
lea rcx, [rsp + 0x38]
call fcn.14007c470
nop
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
lea rdx, str.FileManipulation.hpp
lea rcx, [rsp + 0x58]
call fcn.14007c470
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8d, 0x94
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x80]
call fcn.14007c820
lea rdx, [0x140513c30]
lea rcx, [rsp + 0x80]
call fcn.1402154f0
int3
Function at 0x14012fd60
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx eax, byte [rdx]
mov rbx, r8
mov r10, rdx
dec eax
mov rdi, rcx
cmp eax, 0x1e
ja case.0x14012fda4.12
lea rsi, [0x140000000]
nop dword [rax]
cdqe
movzx eax, byte [rsi + rax + 0x12ff80]
mov ecx, dword [rsi + rax*4 + 0x12ff54]
add rcx, rsi
jmp rcx
movzx eax, byte [r10 + 1]
sub eax, 0x4a
movsxd rcx, eax
mov rax, qword [r8 + 0x148]
lea r10, [rax + rcx*2]
movzx eax, byte [rax + rcx*2]
dec eax
cmp eax, 0x1e
jbe 0x14012fd90
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rax, dword [r8 + 0x140]
movzx edx, byte [rax + rsi + 0x34c980]
mov rcx, rdi
call fcn.140089a70
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [r8 + 0x10c]
cmp al, 8
jae case.0x14012fda4.12
movzx edx, al
mov rcx, rdi
add edx, 0x5a
call fcn.140089a70
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, r10
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14012ffa0
movzx eax, byte [r8 + 0x112]
mov r9, rbx
mov rcx, rdi
mov rdx, qword [r8 + rax*8 + 0x118]
inc al
mov byte [r8 + 0x112], al
mov r8, r10
call fcn.14012e760
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, dword [r8 + 0xc8]
cmp eax, 2
jne 0x14012fe92
lea edx, [rax + 0x29]
jmp 0x14012fea4
cmp eax, 1
jne 0x14012fe9f
lea edx, [rax + 0x1c]
lea eax, [rdx + 0x10]
jmp 0x14012fea9
mov edx, 0x2d
mov eax, 0x1d
cmp byte [r8 + 0xc], 0
mov rcx, rdi
cmovne edx, eax
call fcn.140089a70
movsxd rax, dword [rbx + 0x6c]
mov rcx, rdi
movzx edx, byte [rax + rsi + 0x34ca5c]
call fcn.140089a70
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, dword [r8 + 0xc8]
cmp eax, 2
jne 0x14012fef0
lea edx, [rax + 0x25]
jmp 0x14012ff02
cmp eax, 1
jne 0x14012fefd
lea edx, [rax + 0x16]
lea eax, [rdx - 9]
jmp 0x14012ff07
mov edx, recv
mov eax, 0x17
cmp byte [r8 + 0xc], 0
mov rcx, rdi
cmovne edx, eax
call fcn.140089a70
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret
movsxd rax, dword [r8 + 0x128]
jmp 0x14012fde0
movzx edx, byte [r8 + 0x110]
and edx, 7
add edx, 0x72
jmp 0x14012fde8
movsxd rax, dword [r8 + 0x108]
jmp 0x14012fde0
Function at 0x14014cf30
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1402358a0
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x14015fb00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov eax, 0x20
call fcn.1402358a0
sub rsp, rax
mov rbx, rcx
mov rsi, rdx
mov rcx, rdx
call fcn.140146750
test eax, eax
je 0x14015fb3f
xor edx, edx
mov rcx, rbx
call fcn.140146c00
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbp
mov ebp, dword [rsi + 8]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r14
mov r14, qword [rsi]
lea eax, [rbp - 1]
movsxd rdi, eax
xor eax, eax
mov rcx, qword [r14 + rdi*8]
cmp rcx, 1
sete al
sub ebp, eax
cmp rsi, rbx
je 0x14015fb87
mov edx, ebp
mov rcx, rbx
call fcn.140147170
test rax, rax
je 0x14015fbed
mov eax, dword [rsi + 0x10]
mov dword [rbx + 0x10], eax
mov rcx, qword [r14 + rdi*8]
mov rax, qword [rbx]
mov rdx, rcx
xor rdx, 1
inc rdx
neg rdx
shl rdx, 0x3f
lea r8, [rax + rdi*8]
shr rcx, 1
je 0x14015fba7
mov qword [r8], rcx
test rdi, rdi
jle 0x14015fbde
sub r14, rax
nop
mov rcx, qword [r14 + r8 - 8]
lea r8, [r8 - 8]
mov rax, rcx
dec rdi
shr rax, 1
or rax, rdx
mov rdx, rcx
xor rdx, 1
mov qword [r8], rax
inc rdx
neg rdx
shl rdx, 0x3f
test rdi, rdi
jg 0x14015fbb0
mov dword [rbx + 8], ebp
test ebp, ebp
jne 0x14015fbe8
mov dword [rbx + 0x10], ebp
mov eax, 1
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret

Function at 0x14017c730
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1402358a0
sub rsp, rax
lea rcx, [0x14068b6b8]
add rsp, 0x28
jmp fcn.14014cd90
Function at 0x1401b1740
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.1402358a0
sub rsp, rax
mov r10, rdx
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
add rdx, 0xf
lea rax, [r8 + 0xf]
mov r11, rcx
cmp r10, rax
ja 0x1401b1770
xor r9d, r9d
cmp rdx, r8
jae 0x1401b1789
movdqu xmm1, xmmword [r10]
movdqu xmm0, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [r10], xmm1
mov r9d, reloc.WS2_32.dll_recv
cmp r9, 0x10
jae 0x1401b17b1
sub r8, r10
lea rax, [r9 + r10]
mov edx, reloc.WS2_32.dll_recv
sub rdx, r9
nop
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x1401b17a0
mov rcx, qword [r11 + 8]
lea r8, [rsp + 0x40]
mov r9, r10
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rdx, r10
call fcn.140174ce0
test eax, eax
je 0x1401b17e2
cmp dword [rsp + 0x40], 0x10
jne 0x1401b17e2
mov eax, 1
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret

Function at 0x1401b1990
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1401b1a18
test r8, r8
je 0x1401b1a18
mov rax, qword [rcx + 0x18]
cmp r8, rax
mov r9, rax
cmovb r9, r8
test r9, r9
je 0x1401b19d6
add rcx, 0x20
mov r11, rdx
sub r11, r10
nop
movzx eax, byte [r11 + rcx - 0x20]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x1401b19c0
mov rax, qword [r10 + 0x18]
cmp r8, rax
jbe 0x1401b1a18
sub r8, rax
mov eax, reloc.WS2_32.dll_recv
cmp r8, rax
cmova r8, rax
xor ecx, ecx
test r8, r8
je 0x1401b1a18
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r10 + 0x18]
add rax, rcx
movzx eax, byte [rax + rdx]
xor byte [r10 + rcx + 0x40], al
inc rcx
cmp rcx, r8
jb 0x1401b1a00
ret

Function at 0x1401fc970
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.1402358a0
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x1401fc999
lea rax, [0x1401fafe0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1401f41c0
lea rax, [0x1401fa1a0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1401f3f10
Function at 0x140203939
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140203b2a
push rbx
mov eax, 0xd0
call fcn.1402358a0
sub rsp, rax
mov rax, qword [0x140515010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xe8], rbp
mov rbx, rdx
mov qword [rsp + 0xf0], rsi
lea rbp, [r8 - 1]
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xc8], r14
lea r14, [rcx + 0xc]
shr rbp, 3
mov qword [rsp + 0xc0], r15
inc rbp
lea r15, [rcx + 0x14]
nop word [rax + rax]
movzx eax, byte [rbx + 1]
mov rcx, r14
movzx edi, byte [rbx]
movzx esi, byte [rbx + 4]
lea rbx, [rbx + 8]
shl eax, 8
or edi, eax
movzx eax, byte [rbx - 6]
shl eax, 0x10
or edi, eax
movzx eax, byte [rbx - 5]
shl eax, 0x18
or edi, eax
movzx eax, byte [rbx - 3]
shl eax, 8
or esi, eax
mov dword [rsp + 0x20], edi
movzx eax, byte [rbx - 2]
shl eax, 0x10
or esi, eax
mov dword [rsp + 0x28], edi
movzx eax, byte [rbx - 1]
and byte [r14], 0xdf
and byte [r15], 0xbf
or byte [r14], 0x40
or byte [r15], 0x20
shl eax, 0x18
or esi, eax
mov dword [rsp + 0x24], esi
mov dword [rsp + 0x2c], esi
call fcn.1401ed230
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.1401ecbd0
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.1401e9910
mov rcx, r15
call fcn.1401ed230
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.1401ecbd0
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.1401e9910
mov r8d, dword [rsp + 0x20]
mov edx, dword [rsp + 0x24]
xor r8d, edi
xor edi, dword [rsp + 0x28]
xor edx, esi
xor esi, dword [rsp + 0x2c]
mov eax, edi
mov byte [r14], dil
shr eax, 8
mov byte [r14 + 1], al
mov eax, edi
shr eax, 0x10
mov byte [r14 + 2], al
mov eax, edx
shr eax, 8
shr edi, 0x18
mov byte [r14 + 3], dil
mov byte [r14 + 4], dl
mov byte [r14 + 5], al
mov eax, edx
shr eax, 0x10
mov byte [r14 + 6], al
mov eax, r8d
shr eax, 8
shr edx, 0x18
mov byte [r14 + 7], dl
mov byte [r15], r8b
mov byte [r15 + 1], al
mov eax, r8d
shr eax, 0x10
mov byte [r15 + 2], al
shr r8d, 0x18
mov byte [r15 + 3], r8b
mov byte [r15 + 4], sil
mov eax, esi
shr eax, 8
mov byte [r15 + 5], al
mov eax, esi
shr eax, 0x10
shr esi, 0x18
mov byte [r15 + 6], al
mov byte [r15 + 7], sil
sub rbp, 1
jne 0x1402039a0
mov r15, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140087670
add rsp, 0xd0
pop rbx
ret

Function at 0x14021e214
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14021df78
Function at 0x14022e6e4
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14022e6c1
call fcn.14021db6c
mov dword [rax], 0x16
call fcn.140218234
or eax, 0xffffffff
jmp 0x14022e6de
sub dword [rcx + 0x10], 1
jns 0x14022e6d0
add rsp, 0x28
jmp fcn.14022f344
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14022e6a0

Function at 0x14022f344
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14022f1e4
call fcn.14021db6c
mov dword [rax], 0x16
call fcn.140218234
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14022f1cc
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14022f1cc
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14022f216
lock or dword [rax + 0x14], 0x10
jmp 0x14022f1cc
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14022f233
mov rcx, qword [rbp + 0x10]
call fcn.140232284
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140220260
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14022ec1c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14022f28a
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14022f1cc
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14022f2f6
mov rcx, qword [rbp + 0x10]
call fcn.140220260
cmp eax, 0xffffffff
je 0x14022f2dd
mov rcx, qword [rbp + 0x10]
call fcn.140220260
cmp eax, 0xfffffffe
je 0x14022f2dd
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140220260
movsxd rdi, eax
lea rsi, [0x14068c0c0]
mov rcx, rbx
sar rdi, 6
call fcn.140220260
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14022f2e4
lea rax, [0x140587e10]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14022f2f6
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14022f32c
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14022f328
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14022f328
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14022f1cf
jmp 0x14022f19c
Function at 0x140001000
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x20
mov rax, qword [0x140004028]
mov dword [rax], 1
mov rax, qword [0x140004030]
mov dword [rax], 1
mov rax, qword [0x140004038]
mov dword [rax], 1
mov rcx, qword [0x140004008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x14000108c
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x14000108c
add rcx, rdx
movzx edx, word [rcx + 0x18]
add rcx, 0x18
cmp edx, 0x20b
je 0x140001077
cmp edx, 0x10b
jne 0x14000108c
cmp dword [rcx + 0x5c], 0xf
jb 0x14000108c
add rcx, 0xd0
jmp 0x140001084
cmp dword [rcx + 0x6c], 0xf
jb 0x14000108c
add rcx, 0xe0
xor eax, eax
cmp dword [rcx], 0
setne al
mov rcx, qword [0x140004020]
cmp dword [rcx], 1
mov dword [0x1400070ec], eax
mov ecx, 2
sbb ecx, 0
call sym._set_app_type
mov rax, qword [0x140004088]
mov esi, dword [rax]
call sym.__p__fmode
mov dword [rax], esi
mov rax, qword [0x140004078]
mov esi, dword [rax]
call sym.__p__commode
mov dword [rax], esi
call dbg._setargv
mov rax, qword [section..rdata]
cmp dword [rax], 1
jne 0x1400010e6
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x140001160
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov rsi, qword [0x140004048]
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
je 0x1400011b9
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
nop word [rax + rax]
mov ecx, 0x3e8
call r14
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
jne 0x1400011a0
mov rdi, qword [0x140004050]
mov eax, dword [rdi]
cmp eax, 1
jne 0x1400011d3
mov ecx, 0x1f
call dbg._amsg_exit
jmp 0x1400011fa
cmp dword [rdi], 0
je 0x1400011e1
mov byte [0x140007108], 1
jmp 0x1400011fa
mov dword [rdi], 1
mov rcx, qword [0x140004068]
mov rdx, qword [0x140004070]
call sym._initterm
mov eax, dword [rdi]
cmp eax, 1
jne 0x14000121a
mov rcx, qword [0x140004058]
mov rdx, qword [0x140004060]
call sym._initterm
mov dword [rdi], 2
test bl, 1
je 0x140001224
xor eax, eax
xchg qword [rsi], rax
mov rax, qword [0x140004010]
mov rax, qword [rax]
test rax, rax
je 0x140001243
xor ecx, ecx
mov edx, 2
xor r8d, r8d
call qword [0x140009008]
call dbg._pei386_runtime_relocator
lea rcx, [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [0x140004040]
mov qword [rcx], rax
lea rcx, [dbg.__mingw_invalidParameterHandler]
call sym._set_invalid_parameter_handler
call dbg._fpreset
movsxd rdi, dword [0x1400070f4]
lea rcx, [rdi*8 + 8]
call sym.malloc
mov rsi, rax
test rdi, rdi
jle 0x1400012d2
mov ebx, edi
mov r14, qword [0x1400070f8]
xor r15d, r15d
nop dword [rax + rax]
mov rcx, qword [r14 + r15*8]
call sym.strlen
lea rdi, [rax + 1]
mov rcx, rdi
call sym.malloc
mov qword [rsi + r15*8], rax
mov rdx, qword [r14 + r15*8]
mov rcx, rax
mov r8, rdi
call sym.memcpy
inc r15
cmp rbx, r15
jne 0x1400012a0
jmp 0x1400012d4
xor ebx, ebx
mov qword [rsi + rbx*8], 0
mov qword [0x1400070f8], rsi
call dbg.__main
mov rax, qword [0x140007100]
mov rcx, qword [0x140004018]
mov rcx, qword [rcx]
mov qword [rcx], rax
mov ecx, dword [0x1400070f4]
mov rdx, qword [0x1400070f8]
mov r8, qword [0x140007100]
call sym.main
mov dword [0x14000710c], eax
cmp dword [0x1400070ec], 0
je 0x140001344
cmp byte [0x140007108], 0
jne 0x140001338
call sym._cexit
mov eax, dword [0x14000710c]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, eax
call sym.exit
int3
Function at 0x140001480
Capabilities:
Check mutex on windows
Create pipe

Disassembly:
sub rsp, 0x48
mov dword [rsp + 0x44], ecx
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x44], 1
jne 0x1400014e0
xor eax, eax
mov ecx, eax
xor edx, edx
lea r8, str.GlobalSyncUnit
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x140007110], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400014db
mov rcx, qword [0x140007110]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x40], 1
jmp 0x14000161b
cmp dword [rsp + 0x44], 2
jne 0x140001536
xor eax, eax
mov ecx, eax
mov edx, 1
xor r8d, r8d
lea r9, str.GlobalSyncUnit
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x140007110], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140001531
mov rcx, qword [0x140007110]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x40], 1
jmp 0x140001616
cmp dword [rsp + 0x44], 3
jne 0x14000158c
xor eax, eax
mov ecx, eax
xor edx, edx
mov r8d, 0x64
lea r9, str.GlobalSyncUnit
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [0x140007110], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140001587
mov rcx, qword [0x140007110]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x40], 1
jmp 0x140001611
cmp dword [rsp + 0x44], 4
jne 0x14000160c
lea rcx, str..pipeSyncUnit
mov edx, 3
mov r8d, 4
mov r9d, 0xff
xor eax, eax
xor eax, eax
mov dword [rsp + 0x20], 0x400
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [0x140007110], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140001607
mov rcx, qword [0x140007110]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x40], 1
jmp 0x14000160c
jmp 0x140001611
jmp 0x140001616
jmp 0x14000161b
mov eax, dword [rsp + 0x40]
add rsp, 0x48
ret

Function at 0x140001690
Capabilities:
Create directory
Get common file path

Disassembly:
sub rsp, 0x258
mov qword [rsp + 0x250], rcx
mov byte [rsp + 0x24f], 0
lea rax, [rsp + 0x140]
xor ecx, ecx
mov r8d, ecx
mov edx, 0x1c
xor r9d, r9d
mov rcx, r8
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp eax, 0
je 0x1400016d8
jmp 0x140001737
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x140]
mov r9, qword [rsp + 0x250]
lea rdx, str._sMicrosoft_s
call dbg.sprintf
lea rcx, [rsp + 0x30]
xor eax, eax
mov edx, eax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 0
jne 0x140001722
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000172f
mov byte [rsp + 0x24f], 1
jmp 0x140001737
mov byte [rsp + 0x24f], 0
add rsp, 0x258
ret