joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800034e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x180003506
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
dec rcx
call fcn.1800034e0
movzx edx, word [rdi + rbx*2]
mov ecx, eax
mov rbx, qword [rsp + 0x30]
xor rdx, rcx
movzx ecx, dl
lea rdx, [0x18002b990]
shr eax, 8
xor eax, dword [rdx + rcx*4]
add rsp, 0x20
pop rdi
ret

Function at 0x180003540
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x180003566
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
dec rcx
call fcn.180003540
movsx edx, byte [rbx + rdi]
xor r8d, r8d
mov rbx, qword [rsp + 0x30]
mov r9d, 0x20
lea ecx, [rdx - 0x41]
cmp cl, 0x19
mov ecx, edx
lea rdx, [0x18002b990]
cmovbe r8d, r9d
or r8, rcx
xor r8, rax
shr eax, 8
movzx ecx, r8b
xor eax, dword [rdx + rcx*4]
add rsp, 0x20
pop rdi
ret

Function at 0x1800035b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1800035d6
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
dec rcx
call fcn.1800035b0
movzx edx, word [rdi + rbx*2]
xor r8d, r8d
mov rbx, qword [rsp + 0x30]
mov r9d, 0x20
lea ecx, [rdx - 0x41]
cmp cx, 0x19
lea rcx, [0x18002b990]
cmovbe r8d, r9d
or r8, rdx
movzx edx, al
movzx r9d, r8b
xor r9, rdx
shr eax, 8
xor eax, dword [rcx + r9*4]
add rsp, 0x20
pop rdi
ret
Function at 0x180005450
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x470
mov rax, qword [0x180031010]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor esi, esi
mov rbx, rcx
mov ebp, 0x103
test rcx, rcx
jne 0x180005488
mov r8d, esi
jmp 0x180005493
mov rdx, rbp
call fcn.180011318
mov r8, rax
inc r8w
cmp r8w, bp
jae 0x18000557f
cmp si, r8w
jae 0x180005503
mov rcx, rbx
movzx r9d, r8w
lea rdx, [rsp + 0x40]
nop dword [rax]
nop word [rax + rax]
movsx eax, byte [rcx]
lea rcx, [rcx + 1]
mov word [rdx], ax
lea rdx, [rdx + 2]
sub r9, 1
jne 0x1800054c0
cmp r8w, 5
jbe 0x180005503
movzx eax, r8w
cmp word [rsp + rax*2 + 0x36], 0x2e
je 0x180005503
mov r9d, 5
lea r8, str..dll
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.180011a70
lea rax, [rsp + 0x40]
mov r10, 0xffffffffffffffff
nop
inc r10
cmp word [rax + r10*2], si
jne 0x180005510
dec r10
cmp r10, 0xffffffffffffffff
jne 0x18000552a
mov eax, 0xffffffff
jmp 0x18000556d
lea rcx, [r10 - 1]
lea rdx, [rsp + 0x40]
call fcn.1800035b0
movzx edx, word [rsp + r10*2 + 0x40]
mov r9d, 0x20
mov r8, rsi
lea ecx, [rdx - 0x41]
cmp cx, 0x19
lea rcx, [0x18002b990]
cmovbe r8, r9
or r8, rdx
movzx edx, al
movzx r9d, r8b
xor r9, rdx
shr eax, 8
xor eax, dword [rcx + r9*4]
not eax
mov ecx, eax
call fcn.1800056a0
test rax, rax
jne 0x18000566f
mov qword [rsp + 0x488], rdi
test rbx, rbx
jne 0x180005591
mov rdi, rsi
jmp 0x18000559f
mov rdx, rbp
mov rcx, rbx
call fcn.180011318
mov rdi, rax
inc di
cmp di, bp
jae 0x180005664
cmp si, di
jae 0x180005605
lea rcx, [rsp + 0x250]
movzx r10d, di
nop dword [rax]
movsx eax, byte [rbx]
lea rbx, [rbx + 1]
mov word [rcx], ax
lea rcx, [rcx + 2]
sub r10, 1
jne 0x1800055c0
cmp di, 5
jbe 0x180005605
movzx eax, di
cmp word [rsp + rax*2 + 0x246], 0x2e
je 0x180005605
lea r9d, [r10 + 5]
mov edx, 0x104
lea r8, str..dll
lea rcx, [rsp + 0x250]
call fcn.180011a70
add di, di
lea rax, [rsp + 0x250]
mov word [rsp + 0x2a], di
sub di, 2
mov qword [rsp + 0x30], rax
mov rax, qword [0x1800a4660]
mov word [rsp + 0x28], di
test rax, rax
jne 0x18000564a
mov edx, 0xa09b055e
mov ecx, 0x84c05e40
call fcn.180005c40
mov qword [0x1800a4660], rax
test rax, rax
je 0x180005664
lea r9, [rsp + 0x20]
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x28]
xor edx, edx
xor ecx, ecx
call rax
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x488]
mov rax, rsi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180007380
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x180005c40
Capabilities:
Hash data with crc32
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call fcn.1800056a0
mov edx, ebx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.180005880

Function at 0x180005c60
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x180031010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov edi, edx
mov rbx, rcx
mov r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], 0
jne 0x180005c85
dec r8
cmp r8, 0xffffffffffffffff
jne 0x180005ca0
mov eax, 0xffffffff
jmp 0x180005cc6
lea rcx, [r8 - 1]
mov rdx, rbx
call fcn.1800034e0
movzx edx, word [rbx + r8*2]
mov ecx, eax
xor rdx, rcx
shr eax, 8
movzx ecx, dl
lea rdx, [0x18002b990]
xor eax, dword [rdx + rcx*4]
not eax
mov ecx, eax
call fcn.1800056a0
test rax, rax
jne 0x180005d5c
mov rax, qword [0x1800a4658]
test rax, rax
jne 0x180005d07
mov ecx, 0x84c05e40
call fcn.1800056a0
mov edx, 0xfa2a9aa9
mov rcx, rax
call fcn.180005880
mov qword [0x1800a4658], rax
test rax, rax
je 0x180005d3b
mov rdx, rbx
lea rcx, [rsp + 0x28]
call rax
mov r10, qword [0x1800a4660]
test r10, r10
jne 0x180005d3f
mov edx, 0xa09b055e
mov ecx, 0x84c05e40
call fcn.180005c40
mov qword [0x1800a4660], rax
mov r10, rax
test rax, rax
jne 0x180005d3f
xor eax, eax
jmp 0x180005d5c
xor eax, eax
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call r10
mov rax, qword [rsp + 0x20]
mov edx, edi
mov rcx, rax
call fcn.180005880
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180007380
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1800070a0
Capabilities:
Check os version
Execute syscall

Disassembly:
xor al, 0x5a
mov r10, qword gs:[0x60]
cmp word [r10 + 0x118], 0xa
je 0x1800070f0
cmp word [r10 + 0x118], 6
jne 0x180007117
cmp word [r10 + 0x11c], 3
je 0x1800070f2
cmp word [r10 + 0x11c], 2
je 0x1800070f4
cmp word [r10 + 0x11c], 1
jne 0x180007117
cmp word [r10 + 0x120], 0x1db1
je 0x1800070f6
jmp 0x180007117
inc eax
inc eax
inc eax
cmp qword [0x1800a4500], 0
jne 0x18000710c
cmp eax, 0xc390050f
pop r10
mov r10, rcx
jne 0x180007101
syscall
nop
ret
pop r10
mov r10, rcx
jmp qword [0x1800a4500]
ret
Function at 0x180017844
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180017874
xor eax, eax
jmp 0x180017937
mov rbp, rbx
cmp word [rax], si
je 0x180017899
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180017880
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001787c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180017794
movsxd r14, eax
test eax, eax
jne 0x1800178d7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001786d
mov rcx, r14
call fcn.180015538
mov rdi, rax
test rax, rax
jne 0x1800178f0
xor ecx, ecx
call fcn.1800154fc
jmp 0x1800178cc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180017794
test eax, eax
jne 0x180017921
mov rcx, rdi
call fcn.1800154fc
jmp 0x18001792b
xor ecx, ecx
call fcn.1800154fc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140001c20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140022040]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rbx, [rcx + 0x10]
mov byte [rcx], 0
xor r15d, r15d
mov r14, rcx
mov qword [rcx + 8], r15
xor edx, edx
add rcx, 0x18
mov qword [rbx], r15
mov r8d, 0x7f0
call sub.VCRUNTIME140.dll_memset
lea ecx, [r15 + 0xc]
mov qword [r14 + 0x808], r15
mov qword [r14 + 0x810], r15
mov qword [r14 + 0x818], r15
call fcn.14001a5e4
mov qword [rsp + 0x60], rax
lea rdi, [0x140022cd0]
mov rdx, rax
mov esi, 0xff
mov ecx, esi
mov qword [0x140022cb8], rdx
mov qword [rax], r15
mov dword [rax + 8], r15d
movzx eax, r15w
rep stosw word [rdi], ax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea ecx, [r15 + 1]
mov edi, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
movd xmm0, edi
lea r8, [0x140001830]
cvtdq2ps xmm0, xmm0
xor r9d, r9d
mov qword [r14 + 0x808], r15
xor edx, edx
xor ecx, ecx
movd xmm1, eax
lea rax, [0x140022cb0]
cvtdq2ps xmm1, xmm1
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
movss dword [r14 + 0x810], xmm0
movss dword [r14 + 0x814], xmm1
movss xmm1, dword [r14 + 0x814]
movss dword [r14 + 0x81c], xmm1
movss dword [r14 + 0x818], xmm0
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x140022c80], 0xf
mov qword [0x1400220c8], rax
je 0x140001d54
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x140022c80], 0xf
jne 0x140001d40
lea rax, [0x140022c4c]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x1400017a0]
xor edx, edx
mov dword [rsp + 0x20], r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rdi, [0x140022cd0]
mov dword [rsp + 0x60], r15d
mov qword [0x1400220d0], rax
mov rcx, rsi
mov rax, qword [0x140022cb8]
mov qword [rax], r15
mov dword [rax + 8], r15d
movzx eax, r15w
rep stosw word [rdi], ax
lea rcx, [0x14001c700]
mov rdi, r15
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x14001c6e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x140001df6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x30
lea r8, [rsp + 0x30]
mov rcx, rax
xor edx, edx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call rbp
test eax, eax
cmovns rdi, qword [rsp + 0x38]
mov ecx, 0x10
mov byte [rdi + 2], 1
call fcn.14001a5e4
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax], r15
mov dword [rax + 8], r15d
mov word [rax + 0xc], r15w
mov qword [r14 + 8], rax
nop
mov ecx, 3
call fcn.14001a5e4
lea rbx, [rbx + 8]
mov word [rax], r15w
mov byte [rax + 2], r15b
mov qword [rbx - 8], rax
sub rsi, 1
jne 0x140001e20
mov rax, r14
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001a320
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140014e00
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140022040]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140014e8a
nop word [rax + rax]
lea rcx, [rsp + 0x4c]
mov r8, rdi
sub r8, rcx
nop dword [rax + rax]
movzx edx, word [rcx]
movzx eax, word [rcx + r8]
sub edx, eax
jne 0x140014e74
add rcx, 2
test eax, eax
jne 0x140014e60
mov rcx, rbx
test edx, edx
je 0x140014eb6
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140014e50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14001a320
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140014e95
Function at 0x140015900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140015a91
mov r15, qword [rsp + 0x60]
lea r8d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r9d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x140015a91
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r8w, dx
jae 0x14001599b
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x140015ab8
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x1400159b2
mov eax, ecx
add cx, r11w
cmp cx, r9w
ja 0x1400159b2
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x1400159c5
movzx r9d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x140015a12
mov r9d, eax
cmp eax, 0x800
jae 0x1400159df
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov r11d, r8d
jmp 0x140015a12
cmp eax, 0x10000
jae 0x1400159f9
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov r11d, r10d
jmp 0x140015a12
shr r9d, 0x12
mov r10d, 3
movzx r11d, sil
or r9b, 0xf0
xor r11d, 1
add r11d, r11d
lea r8d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r8d
cmp rdx, rcx
jl 0x140015a91
add qword [r14], 2
test sil, sil
jne 0x140015a33
cmp r10d, 3
jae 0x140015a3f
mov rcx, qword [rbx]
mov r8d, r11d
mov byte [rcx], r9b
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jle 0x140015a6e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jg 0x140015a50
shr eax, 0xa
mov r8d, 1
test sil, sil
mov ecx, r8d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x14001594f
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x140015a9f

Function at 0x14001af94
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0xc], edi
jbe 0x140001417
xor esi, esi
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rsi + rax]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x14000140c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
add rsi, 4
cmp edi, dword [rbx + 0xc]
jb 0x1400013e0
mov r8, qword [rbx]
mov rcx, qword [0x14024ced0]
xor edx, edx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]

Function at 0x140001440
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, ecx
mov esi, 5
imul rdi, rdi, 0x38
add rdi, qword [0x14024e140]
test byte [rdi + 0x20], 1
mov rbx, qword [rdi]
je 0x140001472
sub rbx, rsi
mov esi, 7
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001494
mov eax, 0xa
jmp 0x1400014e1
mov byte [rbx], 0xe9
mov eax, dword [rdi + 8]
sub eax, ebx
sub eax, 5
mov dword [rbx + 1], eax
test byte [rdi + 0x20], 1
je 0x1400014b0
mov rax, qword [rdi]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rdi + 0x20], 6
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001d2c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r13
push r14
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rsi, qword [rbp - 0x58]
mov r13, qword [rbp - 0x50]
cmp rdi, 0x40000000
jbe 0x140001d7a
lea rax, [rdi - 0x40000000]
cmp rsi, rax
cmovb rsi, rax
mov rbx, qword [0x14024e130]
lea rax, [rdi + 0x40000000]
cmp r13, rax
cmova r13, rax
sub r13, 0xfff
test rbx, rbx
je 0x140001db5
cmp rbx, rsi
jb 0x140001db0
cmp rbx, r13
jae 0x140001db0
cmp qword [rbx + 8], 0
jne 0x140001f0d
mov rbx, qword [rbx]
jmp 0x140001d96
mov r12, rdi
cmp rdi, rsi
jb 0x140001e33
mov r14d, dword [rbp - 0x38]
xor edx, edx
mov rax, r12
div r14
sub r12, rdx
jmp 0x140001df8
lea rdx, [rbp - 0x30]
mov r8d, Ordinal_50
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001e00
cmp dword [rbp - 0x10], 0x10000
je 0x140001e03
mov r12, qword [rbp - 0x28]
cmp r12, r14
jb 0x140001e00
sub r12, r14
cmp r12, rsi
jae 0x140001dce
xor r12d, r12d
test r12, r12
je 0x140001e33
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x140001ecd
cmp r12, rsi
jae 0x140001dbd
test rbx, rbx
jmp 0x140001ec0
mov r12d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
div r12
mov eax, r12d
mov esi, r12d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r13
ja 0x140001e99
lea rdx, [rbp - 0x30]
mov r8d, Ordinal_50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001e99
cmp dword [rbp - 0x10], 0x10000
je 0x140001e9b
xor edx, edx
lea edi, [r12 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div rsi
sub rdi, rdx
cmp rdi, r13
jbe 0x140001e5b
xor edi, edi
test rdi, rdi
je 0x140001f0d
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x140001ecd
cmp rdi, r13
jbe 0x140001e3b
jmp 0x140001f0d
and qword [rbx + 8], 0
and dword [rbx + 0x10], 0
lea rcx, [rbx + 0x40]
mov rdx, rcx
sub rdx, rbx
mov rax, qword [rbx + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rbx + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x140001ee0
mov rax, qword [0x14024e130]
mov qword [0x14024e130], rbx
mov qword [rbx], rax
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret
Function at 0x140002dd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140002e03
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140002e46
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140002e41
cmp rbx, r11
jae 0x140002e46
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140002e30
cmp rbx, r11
jb 0x140002e4a
xor eax, eax
jmp 0x140002e56
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140002ed0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rsi, rdx
xor edx, edx
mov r12, r8
mov rbx, rcx
xor ebp, ebp
call fcn.14019a34c
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasb al, byte [rdi]
lea rdx, [0x1401ac9b4]
not rcx
lea r13, [rcx - 1]
mov rcx, rbx
call fcn.14014428c
lea rdx, [0x1401ac9b0]
mov rcx, rsi
mov rdi, rax
call fcn.14014428c
mov rcx, rdi
mov rbx, rax
call fcn.140144164
test eax, eax
jne 0x140002f96
nop dword [rax]
mov edx, 1
lea rcx, [rsp + 0x58]
mov r9, rdi
mov r8d, edx
call fcn.140144144
mov rcx, rdi
call fcn.140144164
test eax, eax
jne 0x140002f8a
mov eax, ebp
mov r9, rbx
cdq
idiv r13d
movsxd rax, edx
mov edx, 1
movzx ecx, byte [rax + r12]
mov r8d, edx
xor byte [rsp + 0x58], cl
lea rcx, [rsp + 0x58]
call fcn.140143dd4
inc ebp
mov rcx, rdi
call fcn.140144164
test eax, eax
je 0x140002f40
mov rcx, rdi
call fcn.140143be0
mov rcx, rbx
call fcn.140143be0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x140002fc0
Capabilities:
Delete file

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x160
mov rax, qword [0x14023fa70]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, rdx
mov rdi, rcx
lea rdx, [0x1401ac320]
mov rcx, rbp
call fcn.140008d30
mov rbx, rax
test rax, rax
je 0x140003025
mov rdx, rdi
mov rcx, rax
call fcn.140006ec0
mov rcx, rbx
test eax, eax
jne 0x140003020
lea r8, [rsp + 0x20]
or edx, 0xffffffff
call fcn.140006e60
test eax, eax
je 0x140003029
mov rcx, rbx
call fcn.140009060
xor eax, eax
jmp 0x140003082
mov qword [rsp + 0x190], rsi
mov esi, dword [rsp + 0x20]
xor edi, edi
test esi, esi
jle 0x140003064
nop dword [rax + rax]
lea r8, [rsp + 0x20]
mov edx, edi
mov rcx, rbx
call fcn.140006e60
lea r8, [rsp + 0x24]
mov edx, edi
mov rcx, rbx
call fcn.140008d40
inc edi
cmp edi, esi
jl 0x140003040
mov rcx, rbx
call fcn.140009060
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rsi, qword [rsp + 0x190]
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401435e0
add rsp, 0x160
pop rdi
pop rbp
pop rbx
ret

Function at 0x1400030a0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14023fa70]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov esi, edx
xor edx, edx
mov ebp, ecx
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000315c
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], Ordinal_30
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x140003153
mov qword [rsp + 0x60], rbx
cmp dword [rsp + 0x20], 0x10
jb 0x140003135
mov r8d, dword [rsp + 0x28]
cmp r8d, esi
je 0x140003135
cmp dword [rsp + 0x2c], ebp
jne 0x140003135
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x140003135
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x20], Ordinal_30
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1400030f7
mov rbx, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401435e0
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret