joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140301bb8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1402f4d7c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140301c59
cmp ebx, dword [rsp + 0x30]
je 0x140301c52
test esi, esi
je 0x140301c52
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140301c2d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140301c3a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140301c17
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140301c3e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140301c5b
mov eax, 1
jmp 0x140301c5b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1403020a0
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1402ed14c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1402ed14c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1403021f0
cmp rax, 0xffffffffffffffff
je 0x1403021f0
xor edi, edi
test rbp, rbp
jle 0x14030219b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1402f54a0
mov rbx, rax
test rax, rax
jne 0x140302128
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140302191
mov edx, 0x8000
mov ecx, r14d
call fcn.1402ed994
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1402f35e0
cmp eax, 0xffffffff
je 0x140302171
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140302138
mov edx, r15d
mov ecx, r14d
call fcn.1402ed994
jmp 0x140302191
cmp byte [rsi + 0x38], dil
je 0x140302188
cmp dword [rsi + 0x34], 5
jne 0x140302188
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140302191
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1402f5518
jmp 0x140302204
jns 0x140302204
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1402ed14c
cmp rax, 0xffffffffffffffff
jne 0x1403021bc
cmp byte [rsi + 0x30], dil
je 0x140302204
mov edi, dword [rsi + 0x2c]
jmp 0x140302204
mov ecx, r14d
call fcn.1402fccf0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140302204
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140302204
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1403021fd
mov eax, dword [rsi + 0x2c]
jmp 0x140302202
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1402ed14c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140304e18
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14045e640]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140304e62
call fcn.1402dd608
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1402dd628
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1402d64ec
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1402c66d0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140304e6d
lea eax, [rbx + 1]
jmp 0x140304e4f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140304e4d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140304e4f
Function at 0x140305448
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1402d7728
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1403054d2
cmp byte [rbp - 0x21], r15b
je 0x1403054cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140305508
call fcn.1402f7888
test eax, eax
jne 0x1403054f4
cmp byte [rbp - 0x21], r15b
je 0x1403054ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140305508
cmp byte [rbp - 0x21], r15b
je 0x140305505
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1402eb12c
test eax, eax
jne 0x1403055a8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1402d7728
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140305547
cmp byte [rbp - 0x21], r15b
je 0x14030557c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14030557c
call fcn.1402f7888
test eax, eax
jne 0x140305568
cmp byte [rbp - 0x21], r15b
je 0x140305561
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14030557c
cmp byte [rbp - 0x21], r15b
je 0x140305579
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1402eb12c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1403055a8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1403055ab
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1403055b9
mov rcx, rdi
call fcn.1402f5518
cmp byte [rbp + 0x3f], r15b
je 0x1403055c8
mov rcx, qword [rbp + 0x27]
call fcn.1402f5518
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140308680
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1403086a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1403086a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002f5f0
Capabilities:
Accept command line arguments
Enumerate files on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x9b8
movaps xmmword [rsp + 0x9a0], xmm6
mov rsi, r8
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov rax, qword [0x14019ac40]
xor rax, rsp
mov qword [rsp + 0x998], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
mov eax, dword [0x14019c710]
mov ecx, dword [0x14019dd7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x14]
jg 0x1400301ce
lea r12, [rsp + 0x1d8]
mov qword [rsp + 0x1c0], r12
movaps xmm6, xmmword [0x14016f070]
movups xmmword [rsp + 0x1c8], xmm6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea rcx, [rsp + 0x520]
lea r9, [rsp + 0x1c0]
mov rdx, rbx
mov r8, rax
call fcn.1400363e0
mov eax, dword [rsp + 0x520]
test eax, eax
je 0x14002f6c4
mov ecx, dword [rsp + 0x524]
mov rdx, qword [rsp + 0x528]
mov dword [r13], eax
mov dword [r13 + 4], ecx
mov qword [r13 + 8], rdx
jmp 0x14002ff7c
mov qword [rsp + 0x30], r13
lea rax, [rsp + 0x120]
mov qword [rsp + 0x110], rax
movabs rax, 0x1400000000
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x78], rsi
movups xmm0, xmmword [rsp + 0x1c0]
movups xmmword [rsp + 0x68], xmm0
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x78]
lea r8, [rsp + 0x110]
xor r9d, r9d
call fcn.14000d420
mov eax, dword [rsp + 0x118]
test rax, rax
je 0x14002fc79
mov r13, qword [rsp + 0x110]
lea rax, [rax*8]
add rax, r13
mov qword [rsp + 0x50], rax
lea rdi, [rsp + 0x2f8]
mov rax, qword [rsp + 0x28]
add rax, 0x10
mov qword [rsp + 0x40], rax
lea rsi, [rsp + 0x520]
nop dword [rax]
mov rcx, qword [r13]
mov qword [rsp + 0x58], rcx
test rcx, rcx
je 0x14002f780
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
jmp 0x14002f782
xor eax, eax
mov rbx, rsi
mov qword [rsp + 0x60], rax
mov eax, dword [0x14019c710]
mov ecx, dword [0x14019dd7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x14]
jg 0x14002fc43
lea rax, [0x14016f77c]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], 2
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x100]
xor r8d, r8d
call fcn.140023ff0
mov rsi, qword [rsp + 0x58]
cmp rax, 0xffffffffffffffff
je 0x14002f8f0
cmp qword [rsp + 0x60], 2
jne 0x14002f812
movzx eax, word [rsi]
cmp eax, 0x3f2f
je 0x14002f8f0
movzx eax, word [rsi]
cmp eax, 0x3f2d
je 0x14002f8f0
lea rax, [rsp + 0x790]
mov qword [rsp + 0x778], rax
movups xmmword [rsp + 0x780], xmm6
movups xmm0, xmmword [rsp + 0x58]
movaps xmmword [rsp + 0xf0], xmm0
mov rsi, rbx
mov rcx, rbx
lea rdx, [rsp + 0xf0]
lea r8, [rsp + 0x778]
call fcn.140036220
mov ebp, dword [rsp + 0x520]
mov eax, dword [rsp + 0x524]
mov dword [rsp + 0x3c], eax
mov r15, qword [rsp + 0x528]
test ebp, ebp
jne 0x14002fbc2
invalid
invalid
invalid
Function at 0x140001084
Capabilities:
Create process on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x140003040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rax, qword [0x140003008]
lea r9, [0x140003020]
lea r8, [section..data]
lea rdx, section..text
lea rcx, [rbp + 7]
movups xmm0, xmmword [rax - 0x10]
and qword [0x140003028], 0
and qword [0x140003030], 0
movdqu xmmword [rbp + 7], xmm0
call qword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x1400010fe
mov r8, qword [0x140003008]
lea edx, [rax + 2]
mov rcx, qword [0x140003020]
movzx r9d, word [r8]
call qword [sym.imp.ADVAPI32.dll_EventSetInformation]
cmp dword [section..data], 5
jbe 0x1400011d5
movabs rdx, 0x2000000000000
test qword [0x140003010], rdx
je 0x1400011d5
mov rax, qword [0x140003018]
and rax, rdx
cmp rax, qword [0x140003018]
jne 0x1400011d5
and dword [rbp + 0x43], 0
lea rax, str.CalculatorStarted
mov qword [rbp + 0x37], rax
mov dword [rbp + 0x3f], 0x12
lea rax, str.ETW0
xor r9d, r9d
lea rcx, [0x140002369]
xor r8d, r8d
sub ecx, eax
mov al, byte [0x1400023d8]
movzx eax, word [0x14000236a]
or ecx, 0xb000000
mov dword [rbp - 5], eax
mov rax, qword [0x140003008]
mov qword [rbp + 0x17], rax
mov dword [rbp - 9], ecx
mov rcx, qword [0x140003020]
mov qword [rbp - 1], rdx
lea rdx, [rbp - 9]
movzx eax, word [rax]
mov dword [rbp + 0x1f], eax
lea rax, [0x140002374]
mov qword [rbp + 0x27], rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
mov dword [rbp + 0x23], 2
mov dword [rbp + 0x2f], 0x2a
mov dword [rbp + 0x33], 1
call qword [sym.imp.ADVAPI32.dll_EventWriteTransfer]
mov dword [rsp + 0x28], 1
lea r8, str.calculator:__
and qword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140001220
add rsp, 0x90
pop rbp
ret
Function at 0x14000157c
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 [0x140003620], rbx
je 0x1400015e3
cmp rax, rbx
jne 0x1400015d6
mov ebx, 1
mov esi, ebx
jmp 0x1400015e8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400015bb
mov ebx, 1
mov eax, dword [0x140003628]
cmp eax, ebx
jne 0x140001600
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000166c
mov eax, dword [0x140003628]
test eax, eax
jne 0x140001661
mov dword [0x140003628], ebx
lea r15, [0x140002290]
lea rdi, [0x140002278]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140001653
test eax, eax
jne 0x140001657
cmp qword [rdi], r14
je 0x140001648
mov rax, qword [rdi]
mov rcx, qword [0x140002258]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000162a
test eax, eax
je 0x140001667
mov eax, 0xff
jmp 0x1400017c2
mov dword [0x1400035d4], ebx
mov edi, 0x1f
mov eax, dword [0x140003628]
cmp eax, ebx
jne 0x140001693
lea rdx, [0x140002270]
lea rcx, [0x140002260]
call sub.msvcrt.dll__initterm
mov dword [0x140003628], 2
test esi, esi
jne 0x1400016a1
mov rax, r14
xchg qword [0x140003620], rax
cmp qword [0x140003630], r14
je 0x1400016d4
lea rcx, [0x140003630]
call fcn.140001960
test eax, eax
je 0x1400016d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140003630]
mov r9, qword [0x140002258]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400016ed
mov eax, 0xff
jmp 0x1400017c2
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140001773
test ax, ax
je 0x140001708
test edx, edx
jne 0x140001773
sub ax, bx
cmp ax, di
ja 0x14000171e
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140001708
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.140001084
mov dword [0x1400035d0], eax
cmp dword [0x1400035f0], r14d
jne 0x14000175c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400035d4], r14d
jne 0x140001771
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400035d0]
jmp 0x1400017c2
cmp ax, 0x22
jne 0x140001787
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 0x1400016f6
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 fcn.140001240
add rsp, 0x28
jmp 0x14000157c
Function at 0x140001860
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400018ac
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400018a4
cmp dword [rcx + 0x3c], edx
jl 0x1400018a4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400018a4
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 0x1400018ac
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000d900
Capabilities:
Encode data using base64

Disassembly:
push rbx
xor r9d, r9d
mov qword [rsp + 0x10], rdi
mov r11, rdx
mov r10, rcx
cmp r8, 0xffffffffffffffff
jne 0x14000d927
or rcx, r8
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp r8, 2
jbe 0x14000d9ce
lea rcx, [r8 - 3]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
mov rdi, rdx
shr rdi, 1
inc rdi
mov rax, rdi
imul rax, rax, 0xfffffffffffffffd
add r8, rax
nop dword [rax]
movzx eax, byte [r11 + 1]
movzx ecx, byte [r11]
add r9, 4
shl ecx, 8
add r11, 3
or ecx, eax
movzx eax, byte [r11 - 1]
shl ecx, 8
movsxd rdx, ecx
or rdx, rax
mov rax, rdx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r10 + r9 - 4], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r10 + r9 - 3], al
mov rax, rdx
and edx, 0x3f
shr rax, 6
and eax, 0x3f
dec rdi
movzx eax, byte [rax + rbx]
mov byte [r10 + r9 - 2], al
movzx eax, byte [rdx + rbx]
mov byte [r10 + r9 - 1], al
jne 0x14000d960
mov rdi, qword [rsp + 0x10]
test r8, r8
je 0x14000da42
movzx eax, byte [r11]
shl eax, 0x10
movsxd rcx, eax
cmp r8, 1
jbe 0x14000d9f5
movzx eax, byte [r11 + 1]
shl eax, 8
cdqe
or rcx, rax
mov rax, rcx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + r10], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + r10 + 1], al
cmp r8, 1
jbe 0x14000da2d
shr rcx, 6
and ecx, 0x3f
movzx eax, byte [rcx + rbx]
jmp 0x14000da2f
mov al, 0x3d
mov byte [r9 + r10 + 2], al
mov word [r9 + r10 + 3], 0x3d
lea rax, [r9 + 4]
pop rbx
ret
mov byte [r9 + r10], 0
mov rax, r9
pop rbx
ret

Function at 0x140023c90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x1401298c0], ecx
mov edx, 1
lea r8, [0x1401298c4]
nop word [rax + rax]
mov eax, dword [r8 - 4]
add r8, 4
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul ecx, ecx, 0x6c078965
add ecx, edx
inc edx
mov dword [r8 - 4], ecx
cmp edx, 0x270
jl 0x140023cb0
mov dword [0x140124b24], 1
mov dword [0x14012b704], 1
ret
Function at 0x140023cf0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14012b704], 0
lea rbx, [0x1401298c0]
jne 0x140023d4f
call qword [0x1400ee578]
mov edx, 1
lea r8, [0x1401298c4]
mov dword [0x1401298c0], eax
nop
mov eax, dword [r8 - 4]
add r8, 4
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul ecx, ecx, 0x6c078965
add ecx, edx
inc edx
mov dword [r8 - 4], ecx
cmp edx, 0x270
jl 0x140023d20
mov dword [0x14012b704], 1
mov dword [0x140124b24], 0x270
mov qword [0x1401298b8], rbx
mov r8d, 0xe3
nop word [rax + rax]
mov eax, dword [rbx + 4]
mov ecx, eax
and al, 1
xor ecx, dword [rbx]
and ecx, 0x7ffffffe
xor ecx, dword [rbx]
shr ecx, 1
neg al
sbb eax, eax
add rbx, 4
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [rbx + 0x630]
dec r8d
mov dword [rbx - 4], ecx
jne 0x140023d70
mov r8d, 0x18c
nop word [rax + rax]
mov eax, dword [rbx + 4]
lea rdx, [rbx + 4]
mov ecx, eax
and al, 1
xor ecx, dword [rbx]
and ecx, 0x7ffffffe
xor ecx, dword [rbx]
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [rbx - 0x38c]
dec r8d
mov dword [rbx], ecx
mov rbx, rdx
jne 0x140023db0
mov eax, dword [0x1401298c0]
mov ecx, dword [rdx]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
xor ecx, dword [rdx]
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [rdx - 0x38c]
mov dword [rdx], ecx
add rsp, 0x20
pop rbx
ret

Function at 0x140023e20
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
dec dword [0x140124b24]
jne 0x140023e31
call fcn.140023cf0
mov rax, qword [0x1401298b8]
add rax, 4
mov ecx, dword [rax - 4]
mov qword [0x1401298b8], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
add rsp, 0x28
ret

Function at 0x140023e80
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
dec dword [0x140124b24]
jne 0x140023e91
call fcn.140023cf0
mov rax, qword [0x1401298b8]
pxor xmm0, xmm0
add rax, 4
mov ecx, dword [rax - 4]
mov qword [0x1401298b8], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x1401120a8]
add rsp, 0x28
ret
Function at 0x140073d50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
xor esi, esi
mov rdi, rdx
or r10d, 0xffffffff
mov edx, esi
mov ebp, r9d
mov r12, r8
mov r13, rcx
mov dword [rsp + 0x68], r10d
mov dword [rsp + 0x6c], edx
cmp word [rdi], dx
je 0x140073e57
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], r14
lea r14, [0x140000000]
movzx ebx, word [rdi]
test ebx, 0xffffff80
jne 0x140073dba
mov edx, 2
mov ecx, ebx
call fcn.1400d7278
mov edx, dword [rsp + 0x6c]
mov r10d, dword [rsp + 0x68]
test eax, eax
je 0x140073dba
and ebx, 0xffffffdf
movzx eax, bx
add eax, 0xffffffd5
cmp eax, 0x33
ja case.0x140073ddb.51
cdqe
movzx eax, byte [r14 + rax + 0x73eb4]
mov ecx, dword [r14 + rax*4 + 0x73e90]
add rcx, r14
jmp rcx
movzx esi, word [rdi]
jmp case.0x140073ddb.51
mov ecx, 1
jmp 0x140073e11
mov ecx, 0x20
jmp 0x140073e11
mov ecx, 4
jmp 0x140073e11
mov ecx, 2
jmp 0x140073e11
mov ecx, 0x80
jmp 0x140073e11
mov ecx, 0x1000
jmp 0x140073e11
mov ecx, 0x100
cmp esi, 0x2b
je 0x140073e2d
cmp esi, 0x2d
je 0x140073e24
cmp esi, 0x5e
jne case.0x140073ddb.51
xor edx, ecx
jmp 0x140073e3b
not ecx
and r10d, ecx
and edx, ecx
jmp 0x140073e36
mov eax, ecx
not eax
and r10d, eax
or edx, ecx
mov dword [rsp + 0x68], r10d
mov dword [rsp + 0x6c], edx
add rdi, 2
cmp word [rdi], 0
jne 0x140073d93
mov r14, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
movzx r9d, byte [rsp + 0x80]
lea rax, [rsp + 0x68]
mov r8d, ebp
mov qword [rsp + 0x28], rax
lea rax, [0x140073ef0]
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.140073f30
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001760
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x80
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x78], rax
call fcn.140001f9c
mov rsi, rax
mov qword [rsp + 0x38], rax
mov rcx, rax
call fcn.140001fbb
mov r14, rax
mov qword [rsp + 0x30], rax
call fcn.140001f80
mov r15, rax
mov qword [rsp + 0x40], rax
lea rdx, str.SetProcessMitigationPolicy
mov rcx, rsi
call r14
test rax, rax
je 0x1400017ec
mov dword [rsp + 0x70], 1
mov r8d, 4
lea rdx, [rsp + 0x70]
lea ecx, [r8 + 4]
call rax
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rdx, str.GetSystemFirmwareTable
mov rcx, rsi
call r14
mov rbx, rax
mov r9d, 0x14
lea r8, [rsp + 0x58]
xor edx, edx
mov ecx, 0x56424f58
call rbx
test eax, eax
je 0x140001822
cmp dword [rsp + 0x58], 0x5659424f
je 0x140001917
mov r9d, 0x14
lea r8, [rsp + 0x58]
xor edx, edx
mov ecx, 0x564d5868
call rbx
test eax, eax
je 0x140001848
cmp dword [rsp + 0x58], 0x564d5868
je 0x140001917
mov eax, dword [0x14000331c]
mov dword [rsp + 0x70], eax
movzx eax, byte [0x140003320]
mov byte [rsp + 0x74], al
xor byte [rsp + 0x70], 0x1e
xor byte [rsp + 0x71], 0x1e
xor byte [rsp + 0x72], 0x1e
xor byte [rsp + 0x73], 0x1e
lea rdx, [rsp + 0x70]
mov rcx, rsi
call r14
mov rdi, rax
mov ebx, 0xf
mov edx, 0x3e8
mov ecx, 1
call rdi
sub rbx, 1
jne 0x140001884
lea rdx, str.NtQueryInformationProcess
mov rcx, r15
call r14
mov rdi, rax
lea rdx, [0x1400032d0]
mov rcx, rsi
call r14
test rdi, rdi
je 0x1400018ec
test rax, rax
je 0x1400018ec
mov qword [rsp + 0x50], rbx
call rax
mov rcx, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 8]
lea r8, [rsp + 0x50]
lea edx, [rbx + 0x1e]
call rdi
test eax, eax
jne 0x1400018ee
cmp qword [rsp + 0x50], rbx
jne 0x140001917
jmp 0x1400018ee
xor ebx, ebx
lea r8, [0x1400034a0]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140001917
mov dword [rbx], 0x2a
jmp 0x140001917
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002070
lea r11, [rsp + 0x80]
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
Function at 0x140001f80
Capabilities:
Access peb ldr_data

Disassembly:
xor rax, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
ret

Function at 0x140001f9c
Capabilities:
Access peb ldr_data

Disassembly:
xor rax, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
ret