joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007b40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140007b40
sub rsp, 0xc8
mov rax, qword [0x140096008]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov r10, rcx
lea rcx, [rsp + 0x30]
sub rcx, rdx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140007b70
xor eax, eax
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
cmp byte [rsp + 0x30], al
je 0x140007bd2
mov ecx, eax
test eax, eax
jns 0x140007b99
lea ecx, [rax + 1]
sar ecx, 1
lea r8d, [rax + 1]
movsxd rcx, ecx
movzx edx, byte [rsp + rcx + 0x20]
movzx ecx, dl
and dl, 0xf
shr cl, 4
test al, 1
movzx edx, dl
movzx ecx, cl
cmovne edx, ecx
xor byte [r9], dl
mov edx, eax
xor eax, eax
inc r9
cmp edx, 0xf
cmovne eax, r8d
cmp byte [r9], 0
jne 0x140007b90
lea rdx, [rsp + 0x30]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400025e0
add rsp, 0xc8
ret

Function at 0x140008f2c
Capabilities:
Parse pe header

Disassembly:
jmp 0x140008f2c
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008f76
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008f76
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008f76
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008f76
cmp dword [rcx + 0x84], 0xe
jbe 0x140008f76
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008f78
xor al, al
add rsp, 0x28
ret
Function at 0x140002560
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 0x1400025bd
lea rbx, [0x14003caf0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400025a4
cmp r10, 2
jb 0x1400025a4
cmp byte [r9], r8b
jne 0x1400025a4
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 0x140002580
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400025ff
lea rbx, [0x14003caf0]
cmp r8b, 0x23
jne 0x1400025e3
cmp byte [r9], r8b
jne 0x1400025e3
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 0x1400025d0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002740
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000275a
mov qword [r8], 0
lea rdx, [0x14003c8ec]
call fcn.140002610
mov rbx, rax
test rax, rax
jne 0x14000277a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140002851
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002851
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140002851
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002851
cmp rdi, 0xffffffffffffffff
je 0x140002851
mov rax, qword [0x140049c20]
test rax, rax
je 0x1400027ee
inc dword [rax + 0x3b4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140002851
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14000283e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140049c20]
test rax, rax
je 0x140002833
dec dword [rax + 0x3b4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000285a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000284c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000285c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000e270
Capabilities:
Hash data with crc32

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [0x140049c20]
lea rdx, [0x14003caf0]
mov r8, rcx
mov rbx, qword [rax + 0x1c10]
add rbx, 0xc8
movsxd r9, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + r9*4 - 4]
not edi
movzx eax, r8b
mov r8d, dword [rbx + 4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 9]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xa]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xb]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xc]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xd]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xe]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xf]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
shr edi, 8
xor rcx, rax
xor edi, dword [rdx + rcx*4]
not edi
cmp r9d, r8d
jne 0x14000e371
lea ecx, [r9 + 1]
test r8d, r8d
je 0x14000e35d
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x14000e362
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.1400153b0
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000ece0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140049040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140049c20]
mov edi, edx
cmp byte [rbx + 0x1f4d], 0
jne 0x14000ed40
cmp byte [rbx + 0x1f4e], 0
jne 0x14000ed40
mov r9d, dword [rbx + 0x2ff8]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400024e0
test dil, 1
je 0x14000ee5e
jmp 0x14000edc8
movss xmm1, dword [rbx + 0x1614]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x2ff8]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14004163c]
mulss xmm1, dword [0x140041624]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1cc8], rax
mov dword [rbx + 0x1cb4], 1
movss dword [rbx + 0x1cc0], xmm0
movss dword [rbx + 0x1cc4], xmm1
movss xmm0, dword [rbx + 0x1670]
mulss xmm0, dword [0x140041564]
or dword [rbx + 0x1cb0], 0x41
movss dword [rbx + 0x1d10], xmm0
call fcn.1400024e0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14000ee18
lea r11, [0x14003caf0]
cmp r9b, 0x23
jne 0x14000edfb
cmp byte [r8], r9b
jne 0x14000edfb
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14000ede8
not ecx
call fcn.140008fa0
test rax, rax
je 0x14000ee5e
cmp byte [rax + 0x8e], 0
je 0x14000ee5e
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x2ff8]
mov edx, 0x10
mov r9d, dword [rbx + 0x2ff8]
call fcn.1400024e0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000b5d0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140039a50
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140013430
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x3098], 0
lea rbx, [rcx + 0x30a0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400134d7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001348a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1400151f0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140002ba0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x3098]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x30a8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140049c18]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400134df
mov rcx, rbx
call fcn.140002ba0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140037590
Capabilities:
Create thread
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x140049040]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor esi, esi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x1400370b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [rsp + 0x84], esi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x90], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0xa0], xmm1
movdqa xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0xc8], rsi
lea edx, [rsi + 0x1f]
lea rcx, [rsp + 0xd0]
call fcn.140037200
nop
mov dword [rsp + 0x80], 0x50
lea rax, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 0xf
cmova rax, qword [rsp + 0xd0]
mov qword [rsp + 0xc0], rax
lea rax, [0x140036f40]
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_RegisterClassExA]
call fcn.140038870
mov ebx, dword [rax + 0x24]
call fcn.140038870
mov edi, dword [rax + 0x28]
lea edx, [rsi + 9]
lea rcx, [rsp + 0x60]
call fcn.140037200
cmp qword [rax + 0x18], 0xf
jbe 0x140037685
mov rax, qword [rax]
lea rdx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 0xf
cmova rdx, qword [rsp + 0xd0]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov r9d, 0x90000000
mov r8, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x140049ce8], rax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140037722
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037716
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037716
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140039b40
mov rax, qword [0x140049ce8]
movdqa xmm0, xmmword [0x140041730]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
lea rdx, [0x1400490c0]
mov rcx, rax
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov edx, 0xffffffec
mov r8d, 0x800a0
mov rcx, qword [0x140049ce8]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, 5
mov rcx, qword [0x140049ce8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140049ce8]
call qword [sym.imp.USER32.dll_UpdateWindow]
nop
mov rdx, qword [rsp + 0xe8]
cmp rdx, 0xf
jbe 0x1400377c3
inc rdx
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400377be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400377be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140039b40
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140039a50
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140039870
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 0x1400398d1
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 0x140039890
mov ecx, dword [r9]
jmp 0x1400399b8
cmp ecx, 0x4e0
jb 0x1400399b8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
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 [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1400398f0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
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 [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140039940
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

Function at 0x14003a780
Capabilities:
Parse pe header

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

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rbx, rcx
mov ecx, 0x28
call fcn.180006afc
mov rdi, rax
xor ebp, ebp
test rax, rax
je 0x180001a81
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi + 8], rax
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi + 0x10], rax
jmp 0x180001a84
mov rdi, rbp
mov qword [rdi + 0x18], rbp
mov dword [rdi + 0x20], ebp
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea r9, [rdi + 0x10]
lea r8, [rdi + 8]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call fcn.180001760
mov rbx, qword [rsp + 0x58]
mov r8, rbx
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test rax, rax
je 0x180001b19
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
je 0x180001b19
mov edx, 4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180001b19
lea rcx, [rsi + 4]
mov qword [rdi + 0x18], rcx
mov eax, dword [rsi]
mov dword [rdi + 0x20], eax
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, rdi
lea r8, [0x180001370]
xor edx, edx
xor ecx, ecx
call fcn.180002fa0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180001b5a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x1800022f0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x48
xor eax, eax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, 0x38
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180002397
lea r8, [rsp + 0x34]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x18000238c
mov rcx, qword [rsp + 0x58]
xor eax, eax
lea r8, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18000238c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x48
ret
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x48
ret
Function at 0x1800023b0
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x58
xor eax, eax
lea rcx, [r11 - 0x38]
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
test rcx, rcx
je 0x180002410
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x20]
test rax, rax
je 0x180002405
call rax
jmp 0x18000240b
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x20]
cmp ax, 9
je 0x180002421
cmp ax, 6
mov eax, 0x20
jne 0x180002426
mov eax, 0x40
add rsp, 0x58
ret

Function at 0x180002430
Capabilities:
Acquire debug privileges
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x1800025a8
test r8, r8
je 0x1800025a8
test rcx, rcx
je 0x1800025a8
cmp rcx, 0xffffffffffffffff
je 0x1800025a8
lea rcx, str.SeDebugPrivilege
call fcn.1800022f0
call fcn.1800023b0
cmp eax, 0x20
jne 0x1800024ba
mov rax, qword [rsp + 0x68]
xor r9d, r9d
mov r8, rsi
mov qword [rsp + 0x28], rax
lea rax, str.RunDll
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1800036b0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800025a8
mov qword [rsp + 0x40], rbp
lea rdx, [rsp + 0x48]
xor ebp, ebp
mov rcx, rdi
mov dword [rsp + 0x48], ebp
call rax
test eax, eax
je 0x1800025a4
cmp rsi, 0x1000
jb 0x1800025a4
mov eax, 0x5a4d
cmp ax, word [rbx]
jne 0x1800025a4
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x1800025a4
mov ecx, 0x14c
cmp word [rax + rbx + 4], cx
mov eax, dword [rsp + 0x48]
sete bpl
cmp eax, ebp
jne 0x1800025a4
test eax, eax
jne 0x18000257b
mov rax, qword [rsp + 0x68]
xor r9d, r9d
mov r8, rsi
mov qword [rsp + 0x28], rax
lea rax, str.RunDll
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1800036b0
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rsp + 0x68]
xor r9d, r9d
mov r8, rsi
mov qword [rsp + 0x28], rax
lea rax, str.RunDll
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.180003a10
jmp 0x180002566
xor eax, eax
jmp 0x180002566
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1800025c0
Capabilities:
Check os version
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x180
mov rax, qword [0x18001b068]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbp, qword [rsp + 0x1c0]
mov r12, qword [rsp + 0x1d0]
mov rdi, rcx
lea rcx, [rsp + 0x54]
xor edx, edx
mov r8d, 0x118
mov rsi, r9
call fcn.180009650
lea rcx, [rsp + 0x50]
xor ebx, ebx
mov dword [rsp + 0x50], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180002724
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcessId]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x180002724
mov dword [rsp + 0x44], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x44]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x180002724
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
je 0x180002724
mov eax, dword [rsp + 0x54]
cmp eax, 6
jne 0x180002724
mov eax, dword [rsp + 0x58]
test eax, eax
jne 0x1800026e5
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, [0x1800174c8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov r11, rax
mov rdx, rax
mov eax, 0x3d80
nop word [rax + rax]
cmp ax, word [rdx]
je 0x1800026d4
inc ecx
inc rdx
cmp ecx, 0x300
jb 0x1800026c0
jmp 0x180002724
mov eax, ecx
mov ecx, dword [rcx + r11 + 2]
add rcx, rax
lea rbx, [rcx + r11 + 7]
jmp 0x18000271c
cmp eax, 1
jne 0x180002724
lea rcx, str.KernelBase.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x180002724
lea rdx, str.KernelBaseGetGlobalData
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002724
call rax
test rax, rax
je 0x180002724
lea rbx, [rax + 0x5c]
test rbx, rbx
je 0x180002724
mov byte [rbx], 1
mov qword [rsp + 0x30], r12
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rbx, rbx
je 0x18000274f
mov byte [rbx], 0
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180006a80
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x180002d00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov r12, rcx
test rcx, rcx
je 0x180002e94
cmp rcx, 0xffffffffffffffff
je 0x180002e94
mov eax, 0x5a4d
cmp ax, word [rcx]
jne 0x180002e90
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
je 0x180002d5a
xor eax, eax
jmp 0x180002e96
movzx r13d, word [rdx + 6]
test r13w, r13w
jg 0x180002d6c
xor eax, eax
jmp 0x180002e96
movzx eax, word [rdx + 0x14]
lea rsi, [rax + rdx + 0x18]
mov ebp, 1
xor r14d, r14d
movzx ebx, r14w
cmp r14w, r13w
jge 0x180002e8c
nop dword [rax + rax]
test rsi, rsi
je 0x180002e1d
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.180003320
nop
mov rax, qword [rsp + 0x60]
cmp dword [rax - 0x10], 0
je 0x180002e02
lea rdx, str..text
mov rcx, rax
call fcn.180007b00
test eax, eax
cmove ebp, r14d
lea rcx, [rsp + 0x60]
call fcn.180003270
mov rax, qword [rsp + 0x60]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180002e1d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test ebp, ebp
je 0x180002e34
inc bx
add rsi, 0x28
cmp bx, r13w
jl 0x180002d90
jmp 0x180002e8c
test rsi, rsi
je 0x180002e87
mov ebx, dword [rsi + 8]
mov esi, dword [rsi + 0xc]
add rsi, r12
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call fcn.180007b20
lea ecx, [rax + rdi]
call fcn.180007b08
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call fcn.180007b20
lea ecx, [rax + rdi]
call fcn.180007b08
call fcn.180007b20
mov edi, eax
call fcn.180007b20
imul edi, eax
xor edx, edx
mov eax, edi
div ebx
mov r14d, edx
add r14, rsi
mov rax, r14
jmp 0x180002e96
xor eax, eax
jmp 0x180002e96
xor eax, eax
jmp 0x180002e96
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret