joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040da0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14004dd08], rbx
je 0x140040e07
cmp rax, rbx
jne 0x140040dfa
mov ebx, 1
mov esi, ebx
jmp 0x140040e0c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140040ddf
mov ebx, 1
mov eax, dword [0x14004dd10]
cmp eax, ebx
jne 0x140040e24
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x140040e90
mov eax, dword [0x14004dd10]
test eax, eax
jne 0x140040e85
mov dword [0x14004dd10], ebx
lea r15, [0x140044330]
lea rdi, [0x140044318]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140040e77
test eax, eax
jne 0x140040e7b
cmp qword [rdi], r14
je 0x140040e6c
mov rax, qword [rdi]
mov rcx, qword [0x1400442d8]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140040e4e
test eax, eax
je 0x140040e8b
mov eax, 0xff
jmp 0x140040fe6
mov dword [0x14004d384], ebx
mov edi, 0x1f
mov eax, dword [0x14004dd10]
cmp eax, ebx
jne 0x140040eb7
lea rdx, [0x140044310]
lea rcx, [0x1400442e0]
call sub.msvcrt.dll__initterm
mov dword [0x14004dd10], 2
test esi, esi
jne 0x140040ec5
mov rax, r14
xchg qword [0x14004dd08], rax
cmp qword [0x14004dd28], r14
je 0x140040ef8
lea rcx, [0x14004dd28]
call fcn.140041400
test eax, eax
je 0x140040ef8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14004dd28]
mov r9, qword [0x1400442d8]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140040f11
mov eax, 0xff
jmp 0x140040fe6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140040f97
test ax, ax
je 0x140040f2c
test edx, edx
jne 0x140040f97
sub ax, bx
cmp ax, di
ja 0x140040f42
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140040f2c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400024cc
mov dword [0x14004d380], eax
cmp dword [0x14004d3a0], r14d
jne 0x140040f80
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14004d384], r14d
jne 0x140040f95
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14004d380]
jmp 0x140040fe6
cmp ax, 0x22
jne 0x140040fab
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140040f1a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call 0x140181000
add rsp, 0x28
jmp 0x140040da0
Function at 0xd5c3f0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xd5c3fd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xd5c40d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xd5c3f5
lea eax, [rcx + 1]
jmp 0xd5c41b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xd5c42e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xd5c414
sub eax, 3
jb 0xd5c44e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xd5c49d
sar eax, 1
movsxd rbp, eax
jb 0xd5c484
jmp 0xd5c45c
add ebx, ebx
jne 0xd5c45a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xd5c484
inc ecx
add ebx, ebx
jne 0xd5c46a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xd5c484
call r11
adc ecx, ecx
add ebx, ebx
jne 0xd5c47d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xd5c46c
add ecx, 2
jmp 0xd5c489
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00d5c3b2
jmp 0xd5c3fd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3e8600
mov dl, 0x7f
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xd5c4e9
cmp rsi, rcx
jae 0xd5c4f1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xd5c4d0
cmp al, 0x8f
ja 0xd5c4d0
cmp byte [rsi - 2], 0xf
je 0xd5c4d6
sub al, 0xe8
cmp al, 1
ja 0xd5c4ba
cmp rsi, rcx
jae 0xd5c4f1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xd5c4c0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xd5c4f1
lodsb al, byte [rsi]
jmp 0xd5c4d0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x94f000]
mov eax, dword [rdi]
or eax, eax
je 0xd5c54e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x961c74]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xd5c4fe
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xd5c548
mov qword [rbx], rax
add rbx, 8
jmp 0xd5c51e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xd5c592
cmp al, 0xef
ja 0xd5c57a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xd5c55a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xd5c569
mov eax, dword [rdi]
add rdi, 4
jmp 0xd5c569
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xd5c5e6
sub rsp, 0xffffffffffffff80
jmp 0x478440
Function at 0x140002590
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140004650], rbx
je 0x1400025dc
cmp rax, rbx
jne 0x1400025cf
mov ebx, 1
mov esi, ebx
jmp 0x1400025e1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400025b4
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x1400025f7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000265c
mov eax, dword [0x140004658]
test eax, eax
jne 0x140002656
mov dword [0x140004658], ebx
lea r15, [0x1400033c0]
lea rdi, [0x1400033a8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002648
test eax, eax
jne 0x14000264c
cmp qword [rdi], 0
je 0x14000263d
mov rax, qword [rdi]
mov rcx, qword [0x140003388]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000261e
test eax, eax
je 0x14000265c
mov eax, 0xff
jmp 0x140002738
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002683
lea rdx, [0x1400033a0]
lea rcx, [0x140003390]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x140002690
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x1400026c4
lea rcx, [0x140004660]
call fcn.140002940
test eax, eax
je 0x1400026c4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003388]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.1400019b0
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x1400026f4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002709
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x140002738
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140165000
add rsp, 0x28
jmp 0x140002590

Function at 0x14000282c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002878
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002870
cmp dword [rcx + 0x3c], edx
jl 0x140002870
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002870
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140002878
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1401e88f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, r9
mov ebp, r8d
mov rdi, rdx
mov rbx, rcx
mov ecx, dword [r9]
call fcn.1401eb680
mov r14d, eax
test eax, eax
jne 0x1401e8a57
mov ecx, dword [rsi + 4]
lea eax, [rcx - 0x81]
mov r14d, 0x16
cmp eax, 0xffffff80
jb 0x1401e8a57
test cl, 7
jne 0x1401e8a57
mov eax, dword [rsi + 8]
cmp eax, 0x80
ja 0x1401e8a57
cmp eax, ecx
jne 0x1401e89b1
cmp ecx, ebp
ja 0x1401e89b1
movsxd rax, dword [rsi]
lea rax, [rax + rax*4]
shl rax, 5
lea rdx, [0x14066abf0]
mov r10, qword [rax + rdx + 0x68]
test r10, r10
je 0x1401e89b1
lea r8, [rsi + 0x110]
mov r11d, dword [rsi + 0xc]
lea r9, [rsi + 0x10]
mov eax, ebp
xor edx, edx
div ecx
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], r11d
mov rcx, rbx
mov rdx, rdi
mov r8d, eax
call r10
mov r14d, eax
test eax, eax
jne 0x1401e8a57
mov eax, ebp
xor edx, edx
div dword [rsi + 4]
mov ebp, edx
xor r14d, r14d
test ebp, ebp
je 0x1401e8a57
lea r15, [rsi + 0x110]
lea r12, [rsi + 0x90]
lea r13, [rsi + 0x10]
mov eax, dword [rsi + 4]
mov ecx, dword [rsi + 8]
cmp ecx, eax
jne 0x1401e8a15
mov rcx, rsi
call fcn.1401eb6b0
movsxd rax, dword [rsi]
lea rax, [rax + rax*4]
shl rax, 5
mov rcx, r13
mov rdx, r12
mov r8, r15
lea r9, [0x14066abf0]
call qword [rax + r9 + 0x28]
test eax, eax
je 0x1401e8a09
mov r14d, eax
jmp 0x1401e8a57
mov dword [rsi + 8], 0
mov eax, dword [rsi + 4]
jmp 0x1401e8a19
test ecx, ecx
jne 0x1401e8a6b
xor ecx, ecx
cmp ebp, eax
jb 0x1401e8a6b
xor ecx, ecx
test eax, eax
jle 0x1401e8a42
movsxd rcx, ecx
mov rax, qword [rsi + rcx + 0x90]
xor rax, qword [rbx + rcx]
mov qword [rdi + rcx], rax
add ecx, 8
mov eax, dword [rsi + 4]
cmp ecx, eax
jl 0x1401e8a25
cdqe
add rbx, rax
add rdi, rax
sub ebp, eax
mov dword [rsi + 8], eax
test ebp, ebp
jne 0x1401e89ce
mov eax, r14d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [rbx]
lea edx, [rcx + 1]
mov dword [rsi + 8], edx
movsxd rcx, ecx
xor al, byte [rsi + rcx + 0x90]
inc rbx
mov byte [rdi], al
inc rdi
dec ebp
jmp 0x1401e8a4f
Function at 0x1401eb559
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, r9
mov ebp, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140662998]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, dword [r9]
call fcn.1401eb680
mov r12d, eax
test eax, eax
jne 0x1401eb65b
mov ecx, dword [rsi + 4]
lea eax, [rcx - 0x81]
mov r12d, 0x16
cmp eax, 0xffffff80
jb 0x1401eb65b
mov eax, ebp
xor edx, edx
div ecx
and ecx, 7
or ecx, edx
jne 0x1401eb65b
movsxd rcx, dword [rsi]
lea rcx, [rcx + rcx*4]
shl rcx, 5
lea r13, [0x14066abf0]
mov r10, qword [rcx + r13 + 0x60]
test r10, r10
jne 0x1401eb5bf
test ebp, ebp
jne 0x1401eb5f1
xor r12d, r12d
jmp 0x1401eb65b
lea rcx, [rsi + 0x88]
add rsi, 8
mov qword [rsp + 0x20], rcx
mov rcx, rbx
mov rdx, rdi
mov r8d, eax
mov r9, rsi
call r10
mov esi, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14059f290
mov eax, esi
jmp 0x1401eb66b
lea r14, [rsi + 0x88]
lea r15, [rsp + 0x30]
movsxd rax, dword [rsi]
lea rax, [rax + rax*4]
shl rax, 5
mov rcx, rbx
mov rdx, r15
mov r8, r14
call qword [rax + r13 + 0x30]
test eax, eax
je 0x1401eb61f
mov r12d, eax
jmp 0x1401eb65b
mov ecx, dword [rsi + 4]
xor eax, eax
test ecx, ecx
jle 0x1401eb64b
cdqe
mov rcx, qword [rsp + rax + 0x30]
xor rcx, qword [rsi + rax + 8]
mov rdx, qword [rbx + rax]
mov qword [rsi + rax + 8], rdx
mov qword [rdi + rax], rcx
add eax, 8
mov ecx, dword [rsi + 4]
cmp eax, ecx
jl 0x1401eb628
movsxd rax, ecx
add rbx, rax
add rdi, rax
xor r12d, r12d
sub ebp, eax
jne 0x1401eb5fd
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14059f290
mov eax, r12d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401eb710
Capabilities:
Encode data using xor
Execute anti-debugging instructions
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov esi, edx
mov rbx, rcx
mov rax, qword [0x140662998]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rcx, [0x14062c760]
call fcn.140200900
test rax, rax
je 0x1401eb76b
mov r14, rax
lea rdx, [0x14062c76d]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
jne 0x1401eb807
mov rcx, r14
call sub.KERNEL32.dll_FreeLibrary
test esi, esi
je 0x1401eb82d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea r14, [rsp + 0x28]
mov ebp, esi
xor eax, eax
xor r15d, r15d
xor r12d, r12d
mov r13d, 7
mov edi, eax
rdtsc
mov eax, eax
shl rdx, 0x20
or rdx, rax
mov qword [rsp + 0x28], rdx
mov edx, 8
mov rcx, r14
call fcn.1402009b0
mov r8d, eax
and eax, 1
xor r15d, eax
rdtsc
mov eax, eax
shl rdx, 0x20
or rdx, rax
mov qword [rsp + 0x28], rdx
mov edx, 8
mov rcx, r14
call fcn.1402009b0
mov r8d, eax
and eax, 1
xor eax, edi
mov edi, r15d
cmp r15d, eax
je 0x1401eb792
add r12d, r12d
or r12d, r15d
sub r13d, 1
jae 0x1401eb790
mov byte [rbx], r12b
inc rbx
dec ebp
jne 0x1401eb787
mov eax, 4
mov rdi, qword [rsp + 0x20]
jmp 0x1401eb82f
mov rcx, rbx
mov edx, esi
call rax
mov ebp, eax
mov rcx, r14
call sub.KERNEL32.dll_FreeLibrary
cmp bpl, 1
jne 0x1401eb76b
test esi, esi
je 0x1401eb82d
mov eax, 5
jmp 0x1401eb82f
xor eax, eax
test rdi, rdi
je 0x1401eb836
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14059f290
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140200900
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x128
mov rsi, rcx
lea rcx, [0x14066ca58]
lea rdx, [0x14062d673]
call fcn.1402006b0
test eax, eax
jne 0x14020098f
lea rcx, [rsp + 0x20]
mov edx, 0x104
call sub.KERNEL32.dll_GetSystemDirectoryA
test eax, eax
jne 0x14020093a
xor eax, eax
jmp 0x140200984
mov edi, eax
mov rcx, rsi
call fcn.1401ee050
lea ecx, [rdi + 1]
add rcx, rax
add rcx, 1
cmp rcx, 0x104
ja 0x140200936
inc rax
mov ecx, edi
add rcx, rsp
add rcx, 0x21
mov byte [rcx - 1], 0x5c
mov rdx, rsi
mov r8, rax
call fcn.1401fed70
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 8
call 0x14059ebf0
nop
add rsp, 0x128
pop rdi
pop rsi
ret
mov rcx, rsi
xor edx, edx
mov r8d, 0x800
add rsp, 0x128
pop rdi
pop rsi
jmp 0x14059ebf0
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
Function at 0x1402009b0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov r11d, 0x9e3779b9
cmp rdx, 3
jae 0x1402009cc
mov eax, 0x9e3779b9
mov r10, rdx
jmp 0x140200a68
mov r9d, 2
mov r10, rdx
mov eax, 0x9e3779b9
movzx ebx, byte [rcx]
add ebx, eax
movzx eax, byte [rcx + 1]
add eax, r11d
movzx edi, byte [rcx + 2]
add edi, r8d
sub ebx, eax
sub ebx, edi
mov esi, edi
shr esi, 0xd
xor esi, ebx
sub eax, edi
sub eax, esi
mov ebx, esi
shl ebx, 8
xor ebx, eax
sub edi, esi
sub edi, ebx
mov eax, ebx
shr eax, 0xd
xor eax, edi
sub esi, ebx
sub esi, eax
mov edi, eax
shr edi, 0xc
xor edi, esi
sub ebx, eax
sub ebx, edi
mov esi, edi
shl esi, 0x10
xor esi, ebx
sub eax, edi
sub eax, esi
mov ebx, esi
shr ebx, 5
xor ebx, eax
sub edi, esi
sub edi, ebx
mov eax, ebx
shr eax, 3
xor eax, edi
sub esi, ebx
sub esi, eax
mov r11d, eax
shl r11d, 0xa
xor r11d, esi
sub ebx, eax
sub ebx, r11d
mov r8d, r11d
shr r8d, 0xf
xor r8d, ebx
add rcx, 3
add r10, 0xfffffffffffffffd
cmp r10, r9
ja 0x1402009da
add edx, r8d
cmp r10, 1
je 0x140200a7e
cmp r10, 2
jne 0x140200a83
movzx ebx, byte [rcx + 1]
add r11d, ebx
movzx ecx, byte [rcx]
add eax, ecx
sub eax, edx
sub eax, r11d
mov ecx, edx
shr ecx, 0xd
xor ecx, eax
sub r11d, edx
sub r11d, ecx
mov eax, ecx
shl eax, 8
xor eax, r11d
sub edx, ecx
sub edx, eax
mov ebx, eax
shr ebx, 0xd
xor ebx, edx
sub ecx, eax
sub ecx, ebx
mov edx, ebx
shr edx, 0xc
xor edx, ecx
sub eax, ebx
sub eax, edx
mov edi, edx
shl edi, 0x10
xor edi, eax
sub ebx, edx
sub ebx, edi
mov ecx, edi
shr ecx, 5
xor ecx, ebx
sub edx, edi
sub edx, ecx
mov eax, ecx
shr eax, 3
xor eax, edx
sub edi, ecx
sub edi, eax
sub ecx, eax
shl eax, 0xa
xor eax, edi
sub ecx, eax
shr eax, 0xf
xor eax, ecx
pop rbx
pop rdi
pop rsi
ret
Function at 0x140248040
Capabilities:
Print debug messages
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
call sub.KERNEL32.dll_OutputDebugStringA
lea rcx, [0x140630048]
call fcn.140200900
test rax, rax
je 0x14024811a
mov rdi, rax
lea rdx, [0x140630055]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rbx, rax
lea rdx, [0x14063006a]
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
mov r15, rax
lea rdx, [0x140630077]
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rbx, rbx
je 0x140248112
test r15, r15
je 0x140248112
mov r14, rax
test rax, rax
je 0x140248112
lea rax, [0x14063008d]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rsi
lea rdx, [0x14063009b]
xor ecx, ecx
call rbx
test rax, rax
je 0x140248112
mov rbx, rax
xor eax, eax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 2
mov rcx, rbx
mov dx, 1
xor r8d, r8d
mov r9d, 0xc0070003
call r15
mov rcx, rbx
call r14
mov rcx, rdi
call sub.KERNEL32.dll_FreeLibrary
lea rcx, [0x1406300a3]
call fcn.140200900
test rax, rax
je 0x14024815e
mov rdi, rax
lea rdx, [0x1406300ae]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140248156
lea r8, [0x1406300ba]
xor ecx, ecx
mov rdx, rsi
mov r9d, 0x10
call rax
mov rcx, rdi
call sub.KERNEL32.dll_FreeLibrary
call sub.KERNEL32.dll_GetCurrentProcess
mov rcx, rax
mov edx, 1
call sub.KERNEL32.dll_TerminateProcess
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140319da0
Capabilities:
Encode data using xor

Disassembly:
movabs r9, 0x9e3779b97f4a7c13
cmp rdx, 0x18
jae 0x140319dbb
mov r11, r8
mov r10, rdx
jmp 0x140319e9e
mov r10, rdx
mov r11, r8
add r11, qword [rcx]
add r8, qword [rcx + 8]
add r9, qword [rcx + 0x10]
sub r11, r8
sub r11, r9
mov rax, r9
shr rax, 0x2b
xor rax, r11
sub r8, r9
sub r8, rax
mov r11, rax
shl r11, 9
xor r11, r8
sub r9, rax
sub r9, r11
mov r8, r11
shr r8, 8
xor r8, r9
sub rax, r11
sub rax, r8
mov r9, r8
shr r9, 0x26
xor r9, rax
sub r11, r8
sub r11, r9
mov rax, r9
shl rax, 0x17
xor rax, r11
sub r8, r9
sub r8, rax
mov r11, rax
shr r11, 5
xor r11, r8
sub r9, rax
sub r9, r11
mov r8, r11
shr r8, 0x23
xor r8, r9
sub rax, r11
sub rax, r8
mov r9, r8
shl r9, 0x31
xor r9, rax
sub r11, r8
sub r11, r9
mov rax, r9
shr rax, 0xb
xor rax, r11
sub r8, r9
sub r8, rax
mov r11, rax
shr r11, 0xc
xor r11, r8
sub r9, rax
sub r9, r11
mov r8, r11
shl r8, 0x12
xor r8, r9
sub rax, r11
sub rax, r8
mov r9, r8
shr r9, 0x16
xor r9, rax
add rcx, 0x18
add r10, 0xffffffffffffffe8
cmp r10, 0x17
ja 0x140319dc1
add r9, rdx
dec r10
cmp r10, 0x16
ja case.default.0x140319ebc
lea rax, [0x14031a070]
movsxd rdx, dword [rax + r10*4]
add rdx, rax
jmp rdx
movzx eax, byte [rcx + 0x16]
shl rax, 0x38
add r9, rax
movzx eax, byte [rcx + 0x15]
shl rax, 0x30
add r9, rax
movzx eax, byte [rcx + 0x14]
shl rax, 0x28
add r9, rax
movzx eax, byte [rcx + 0x13]
shl rax, 0x20
add r9, rax
movzx eax, byte [rcx + 0x12]
shl rax, 0x18
add r9, rax
movzx eax, byte [rcx + 0x11]
shl rax, 0x10
add r9, rax
movzx eax, byte [rcx + 0x10]
shl rax, 8
add r9, rax
movzx eax, byte [rcx + 0xf]
shl rax, 0x38
add r8, rax
movzx eax, byte [rcx + 0xe]
shl rax, 0x30
add r8, rax
movzx eax, byte [rcx + 0xd]
shl rax, 0x28
add r8, rax
movzx eax, byte [rcx + 0xc]
shl rax, 0x20
add r8, rax
movzx eax, byte [rcx + 0xb]
shl rax, 0x18
add r8, rax
movzx eax, byte [rcx + 0xa]
shl rax, 0x10
add r8, rax
movzx eax, byte [rcx + 9]
shl rax, 8
add r8, rax
movzx eax, byte [rcx + 8]
add r8, rax
movzx eax, byte [rcx + 7]
shl rax, 0x38
add r11, rax
movzx eax, byte [rcx + 6]
shl rax, 0x30
add r11, rax
movzx eax, byte [rcx + 5]
shl rax, 0x28
add r11, rax
movzx eax, byte [rcx + 4]
shl rax, 0x20
add r11, rax
movzx eax, byte [rcx + 3]
shl rax, 0x18
add r11, rax
movzx eax, byte [rcx + 2]
shl rax, 0x10
add r11, rax
movzx eax, byte [rcx + 1]
shl rax, 8
add r11, rax
movzx eax, byte [rcx]
add r11, rax
sub r11, r8
sub r11, r9
mov rax, r9
shr rax, 0x2b
xor rax, r11
sub r8, r9
sub r8, rax
mov rcx, rax
shl rcx, 9
xor rcx, r8
sub r9, rax
sub r9, rcx
mov rdx, rcx
shr rdx, 8
xor rdx, r9
sub rax, rcx
sub rax, rdx
mov r8, rdx
shr r8, 0x26
xor r8, rax
sub rcx, rdx
sub rcx, r8
mov rax, r8
shl rax, 0x17
xor rax, rcx
sub rdx, r8
sub rdx, rax
mov rcx, rax
shr rcx, 5
xor rcx, rdx
sub r8, rax
sub r8, rcx
mov rdx, rcx
shr rdx, 0x23
xor rdx, r8
sub rax, rcx
sub rax, rdx
mov r8, rdx
shl r8, 0x31
xor r8, rax
sub rcx, rdx
sub rcx, r8
mov r9, r8
shr r9, 0xb
xor r9, rcx
sub rdx, r8
sub rdx, r9
mov rax, r9
shr rax, 0xc
xor rax, rdx
sub r8, r9
sub r8, rax
sub r9, rax
shl rax, 0x12
xor rax, r8
sub r9, rax
shr rax, 0x16
xor rax, r9
ret
Function at 0x14031afc0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
call fcn.14043b2d0
lea rbx, [rsp + 0x2c]
mov dword [rbx], 0xffffffff
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rdi
mov r8d, esi
mov r9, rbx
call sub.KERNEL32.dll_WriteFile
mov edx, dword [rbx]
xor ecx, ecx
cmp eax, 1
sbb rcx, rcx
or rcx, rdx
mov rax, rcx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x14031b010
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
mov ecx, dword [0x140639ba4]
cmp ecx, 0xffffffff
jne 0x14031b02f
call sub.KERNEL32.dll_TlsAlloc
mov ecx, eax
mov dword [0x140639ba4], eax
movsxd rdx, esi
add rsp, 0x20
pop rsi
jmp sub.KERNEL32.dll_TlsSetValue

Function at 0x14031be90
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, rcx
cmp dword [rcx + 0x398], 0
jne 0x14031becc
lea rdi, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_GetSystemTimeAsFileTime
mov ebx, dword [rdi]
xor ebx, dword [rdi + 4]
call sub.KERNEL32.dll_GetCurrentProcessId
xor eax, ebx
mov ecx, eax
shl ecx, 0x1f
sub ecx, eax
mov dword [r14 + 0x398], ecx
cmp byte [r14 + 0x1d8], 0
jne 0x14031bedd
mov al, 1
jmp 0x14031c069
lea rax, [0x14031c4c0]
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
sete al
setne cl
add cl, cl
or cl, al
movzx eax, cl
movzx ecx, byte [0x14063afff]
bt ecx, eax
jb 0x14031c05a
mov al, byte [0x14063afff]
lea rdx, [0x14031c4c0]
mov edi, edx
and edi, 1
inc edi
xor esi, esi
mov ebx, edx
xor ebx, edi
sete sil
mov ecx, esi
not ecx
lea ecx, [rsi + rcx*2]
and cl, 3
xor cl, 7
mov bl, 1
shl bl, cl
or bl, al
lock cmpxchg byte [0x14063afff], bl
jne 0x14031bf1e
lea rcx, [0x14031c4c0]
mov edx, ecx
and edx, 1
inc edx
xor ebx, ebx
xor edx, ecx
sete bl
mov ecx, ebx
not ecx
lea ecx, [rbx + rcx*2]
and cl, 3
xor cl, 7
movzx ecx, cl
movzx eax, al
bt eax, ecx
jae 0x14031bfa2
lea rax, [0x14031c4c0]
mov ecx, eax
and ecx, 1
inc ecx
mov edx, eax
xor edx, ecx
sete dl
setne bl
add bl, bl
or bl, dl
movzx edx, bl
movzx ebx, byte [0x14063afff]
bt ebx, edx
jae 0x14031bf80
jmp 0x14031c05a
lea rax, [0x14031c4c0]
mov ecx, eax
and ecx, 1
inc ecx
xor edx, edx
xor ecx, eax
sete dl
mov eax, 0xbb8d58b8
or rax, rdx
not edx
and edx, 0x545
lea rdx, [rax + rdx*2]
mov eax, edx
and al, 7
movzx eax, al
movzx ecx, byte [0x14063afff]
bt ecx, eax
jb 0x14031c02e
lea rdi, [0x14063afd0]
xor eax, eax
mov ebx, dword [rdi]
xor ebx, edx
mov esi, edx
mov ecx, eax
shl esi, cl
xor cl, 0x1f
shr edx, cl
mov dword [rdi], ebx
or edx, esi
not ebx
imul edx, ebx
add rdi, 4
inc eax
cmp eax, 0xb
jne 0x14031bfe7
lea rax, [0x14031c4c0]
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
sete al
setne cl
add cl, cl
or cl, al
mov al, 1
shl al, cl
or byte [0x14063afff], al
lea rax, [0x14031c4c0]
mov ecx, eax
and ecx, 1
inc ecx
xor edx, edx
xor ecx, eax
sete dl
mov eax, edx
not eax
lea ecx, [rdx + rax*2]
and cl, 3
xor cl, 7
mov al, 0xfe
rol al, cl
and byte [0x14063afff], al
lea rdx, [0x14063afd0]
mov rcx, r14
call fcn.14031b720
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret