joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446c40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x446da2
sub rsp, 0x68
mov qword [rsp + 0x60], rbp
lea rbp, [rsp + 0x60]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0x14]
mov dword [rsp + 0x10], ecx
mov qword [rsp], rax
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x80]
mov qword [rsp + 0x18], rdx
mov rbx, qword [rsp + 0x88]
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 1
call fcn.004462a0
mov eax, dword [rsp + 0x30]
test eax, 7
jne 0x446cc2
mov dword [rsp + 0x90], eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 8], rcx
call fcn.00446840
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x10]
mov qword [rsp + 0x58], rcx
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rdx]
mov qword [rsp + 0x50], rbx
movsxd rdx, dword [rdx + 0x14]
mov qword [rsp + 0x48], rdx
call fcn.0042d4e0
lea rax, [0x0067cbcc]
mov qword [rsp], rax
mov qword [rsp + 8], 0x10
call fcn.0042de80
mov rax, qword [rsp + 0x58]
mov qword [rsp], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 8], rax
call fcn.0042de80
call fcn.0042d730
mov rax, qword [rsp + 0x50]
mov qword [rsp], rax
call fcn.0042dd20
call fcn.0042d730
mov rax, qword [rsp + 0x80]
mov qword [rsp], rax
call fcn.0042dd20
call fcn.0042d730
mov rax, qword [rsp + 0x48]
mov qword [rsp], rax
call fcn.0042dd20
call fcn.0042d730
mov eax, dword [rsp + 0x3c]
movsxd rcx, eax
mov qword [rsp], rcx
call fcn.0042dcb0
call fcn.0042d780
call fcn.0042d570
mov eax, dword [rsp + 0x3c]
jmp 0x446cb1
call fcn.004548e0
jmp fcn.00446c40

Function at 0x447590
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x20], rbp
lea rbp, [rsp + 0x20]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
inc dword [rax + 0x23c]
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rcx, qword [rax + 0x30]
lea rdx, [rcx + 0x130]
test byte [rdx], al
mov rdx, rax
mov qword [rcx + 0x130], rax
lea rax, [rdx + 0xd8]
test byte [rax], al
mov rax, qword [rdx + 0x30]
mov qword [rdx + 0xd8], rax
mov dword [rsp], 0
lea rax, fcn.00436e70
mov qword [rsp + 8], rax
call fcn.0042b7e0
test eax, eax
jne 0x4476c2
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x18], rax
lea rcx, [rax + 0x2c8]
test byte [rcx], al
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x2c8], rdx
mov rdx, qword [rsp + 0x38]
mov qword [rax + 0x2d0], rdx
lea rdx, [rsp + 0x40]
mov qword [rax + 0x2d8], rdx
mov rdx, qword [0x00845a70]
mov qword [rsp], rdx
mov qword [rsp + 8], rcx
call fcn.00403c50
mov rax, qword [rsp + 0x18]
mov rcx, qword [rax + 0x2e0]
mov rdx, qword [rax + 0x2e8]
mov rax, qword [rax + 0x2f0]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rax
nop
call fcn.0042c0a0
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
nop
call fcn.0042c0a0
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x44de00
Capabilities:
Access peb ldr_data

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x44dee0
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x18], xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [0x00454230]
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00454790
mov rax, qword [rsp + 8]
mov qword [rsp + 0x88], rax
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
call fcn.004548e0
jmp fcn.0044de00
Function at 0x45fed0
Capabilities:
Encode data using base64

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x45ffda
sub rsp, 0x30
mov qword [rsp + 0x28], rbp
lea rbp, [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + 8]
lea rbx, [rdx + 0x2e]
neg rbx
imul rbx, rbx, 0x1c
movabs rax, 0x5816058160581606
mov rsi, rdx
imul rbx
sar rbx, 0x3f
sar rdx, 5
sub rdx, rbx
lea rbx, [rdx + 0x15c]
sar rbx, 0x3f
shr rbx, 0x3d
lea rdx, [rbx + rdx + 0x15c]
sar rdx, 3
jmp 0x45ff47
mov rdx, rax
cmp rdx, 0x57
jae 0x45ffd3
lea rax, [rdx + rdx*2]
lea rbx, [0x00822ea0]
mov rdi, qword [rbx + rax*8 + 8]
lea r8, [rsi + rdi + 0x40]
cmp r8, 0xffffffffffffffc4
jge 0x45ff72
lea rax, [rdx + 1]
jmp 0x45ff44
cmp r8, 0xffffffffffffffe0
jle 0x45ff7e
lea rax, [rdx - 1]
jmp 0x45ff44
mov qword [rsp + 0x20], rdx
mov rdx, rax
shl rax, 3
mov rdx, qword [rbx + rdx*8]
movzx eax, byte [rbx + rax + 0x10]
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rdi
mov byte [rsp + 0x18], al
mov qword [rsp], rcx
call fcn.0045fe50
mov rax, qword [rsp + 0x20]
mov rcx, rax
shl rax, 3
add rax, 0xfffffffffffffea4
neg rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
mov rbp, qword [rsp + 0x28]
add rsp, 0x30
ret
call fcn.0042b370
ud2
call fcn.004548e0
jmp fcn.0045fed0
Function at 0x50c870
Capabilities:
Encrypt data using des

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x50c9ac
sub rsp, 0x48
mov qword [rsp + 0x40], rbp
lea rbp, [rsp + 0x40]
xor eax, eax
jmp 0x50c98c
mov rbx, qword [rsp + 0x28]
mov r8, rbx
shl rbx, 8
lea r9, [0x008645a0]
add rbx, r9
mov dword [rbx + rdx*4], eax
lea rdx, [rdi + 1]
mov rax, r8
mov rcx, rsi
cmp rdx, 0x10
jge 0x50c974
mov qword [rsp + 0x30], rdx
mov rbx, rax
shl rax, 6
shl rcx, 4
lea rdi, [0x008197a0]
add rax, rdi
add rax, rcx
movzx eax, byte [rax + rdx]
lea rcx, [rbx - 7]
neg rcx
shl rcx, 2
shl rax, cl
cmp rcx, 0x40
sbb r8, r8
and rax, r8
mov qword [rsp], rax
lea rax, [0x00812ea0]
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], 0x20
mov qword [rsp + 0x18], 0x20
call fcn.0050c810
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov rbx, rdx
and rdx, 2
shl rdx, 4
mov rsi, rbx
and rbx, 1
or rdx, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, rbx
shl rbx, 1
or edx, ebx
mov rbx, rax
shl rax, 1
shr rbx, 0x1f
or rax, rbx
movzx edx, dl
cmp rdx, 0x40
jb 0x50c89f
jmp 0x50c9a5
inc rcx
cmp rcx, 4
jge 0x50c989
mov qword [rsp + 0x38], rcx
xor edx, edx
jmp 0x50c8c2
inc rax
cmp rax, 8
jge 0x50c99b
mov qword [rsp + 0x28], rax
xor ecx, ecx
jmp 0x50c977
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
call fcn.0042b370
ud2
call fcn.004548e0
jmp fcn.0050c870
Function at 0x538c60
Capabilities:
Parse credit card information

Disassembly:
movzx eax, byte [rsp + 8]
lea ecx, [rax - 0x41]
cmp cl, 0x19
ja 0x538c73
mov byte [rsp + 0x18], 0
ret
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x538c6d
lea ecx, [rax - 0x30]
cmp cl, 9
jbe 0x538c6d
mov rcx, qword [rsp + 0x10]
cmp rcx, 3
jne 0x538dff
cmp al, 0x2c
ja 0x538dde
lea edx, [rax - 0x21]
cmp dl, 1
ja 0x538ca8
mov byte [rsp + 0x18], 0
ret
cmp al, 0x24
je 0x538ca2
lea edx, [rax - 0x26]
cmp dl, 6
jbe 0x538ca2
cmp al, 0x2f
ja 0x538da8
cmp al, 0x26
ja 0x538d81
cmp al, 0x24
jne 0x538d77
cmp rcx, 2
jg 0x538d2e
cmp rcx, 1
je 0x538d26
cmp rcx, 2
jne 0x538d09
cmp al, 0x2f
jne 0x538cec
mov eax, 1
mov byte [rsp + 0x18], al
ret
cmp al, 0x3b
jne 0x538cf7
mov eax, 1
jmp 0x538ce7
cmp al, 0x2c
jne 0x538d02
mov eax, 1
jmp 0x538ce7
cmp al, 0x3f
sete al
jmp 0x538ce7
cmp rcx, 7
jne 0x538d20
cmp al, 0x21
jne 0x538d19
mov byte [rsp + 0x18], 0
ret
add eax, 0xffffffd8
cmp al, 2
jbe 0x538d13
mov byte [rsp + 0x18], 1
ret
cmp al, 0x3f
sete byte [rsp + 0x18]
ret
cmp rcx, 5
jne 0x538d5f
cmp al, 0x40
jne 0x538d42
mov eax, 1
mov byte [rsp + 0x18], al
ret
cmp al, 0x2f
jne 0x538d4d
mov eax, 1
jmp 0x538d3d
cmp al, 0x3f
jne 0x538d58
mov eax, 1
jmp 0x538d3d
cmp al, 0x3a
sete al
jmp 0x538d3d
cmp rcx, 6
je 0x538d71
cmp rcx, 7
jne 0x538d09
mov byte [rsp + 0x18], 0
ret
mov byte [rsp + 0x18], 1
ret
cmp al, 0x26
je 0x538ccc
jmp 0x538d09
lea edx, [rax - 0x2b]
cmp dl, 1
jbe 0x538ccc
lea edx, [rax - 0x2d]
cmp dl, 1
ja 0x538d9b
mov byte [rsp + 0x18], 0
ret
cmp al, 0x2f
je 0x538ccc
jmp 0x538d09
cmp al, 0x3d
ja 0x538dc5
lea edx, [rax - 0x3a]
cmp dl, 1
jbe 0x538ccc
cmp al, 0x3d
je 0x538ccc
jmp 0x538d09
lea edx, [rax - 0x3f]
cmp dl, 1
jbe 0x538ccc
cmp al, 0x5f
je 0x538d95
cmp al, 0x7e
je 0x538d95
jmp 0x538d09
lea edx, [rax - 0x3a]
cmp dl, 4
jbe 0x538ca2
cmp al, 0x5b
je 0x538ca2
cmp al, 0x5d
je 0x538ca2
jmp 0x538cb4
cmp rcx, 4
je 0x538c92
jmp 0x538cb4
Function at 0x140002b40
Capabilities:
Parse pe header

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

Function at 0x140009b7c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140009978

Function at 0x14000e48c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14000e4a2
mov al, 1
jmp 0x14000e502
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14000e4b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14000e500
mov ecx, dword [rcx + 0x18]
nop
call fcn.140010638
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000e500
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14000e500
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000e500
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14000e502
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14000fe00
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 0x14000fe30
xor eax, eax
jmp 0x14000fef3
mov rbp, rbx
cmp word [rax], si
je 0x14000fe55
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000fe3c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000fe38
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.14000fd20
movsxd r14, eax
test eax, eax
jne 0x14000fe93
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000fe29
mov rcx, r14
call fcn.14000b260
mov rdi, rax
test rax, rax
jne 0x14000feac
xor ecx, ecx
call fcn.14000a5e8
jmp 0x14000fe88
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.14000fd20
test eax, eax
jne 0x14000fedd
mov rcx, rdi
call fcn.14000a5e8
jmp 0x14000fee7
xor ecx, ecx
call fcn.14000a5e8
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 0x140015728
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000dec4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400157b2
cmp byte [rbp - 0x21], r15b
je 0x1400157ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400157e8
call fcn.14000a838
test eax, eax
jne 0x1400157d4
cmp byte [rbp - 0x21], r15b
je 0x1400157cc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400157e8
cmp byte [rbp - 0x21], r15b
je 0x1400157e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000dd48
test eax, eax
jne 0x140015888
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000dec4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140015827
cmp byte [rbp - 0x21], r15b
je 0x14001585c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001585c
call fcn.14000a838
test eax, eax
jne 0x140015848
cmp byte [rbp - 0x21], r15b
je 0x140015841
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001585c
cmp byte [rbp - 0x21], r15b
je 0x140015859
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000dd48
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140015888
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001588b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140015899
mov rcx, rdi
call fcn.14000a5e8
cmp byte [rbp + 0x3f], r15b
je 0x1400158a8
mov rcx, qword [rbp + 0x27]
call fcn.14000a5e8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140017b40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140017b68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140017b68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800017a8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [r8 + rcx]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 4
jb 0x1800017b5
mov rax, rdx
ret
Function at 0x18000d5cc
Capabilities:
Read file on windows

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
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x18000d5f3
and qword [r8], 0
call fcn.18000d6d8
mov rbx, rax
test rax, rax
je 0x18000d6bb
mov rcx, rax
call fcn.18000d554
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000d6b2
mov rax, qword [0x1800d0f28]
test rax, rax
je 0x18000d62b
inc dword [rax + 0xf4]
mov rdx, qword [0x1800d0f38]
lea rcx, [rdi + rbp]
call qword [0x1800cf1a0]
mov rsi, rax
test rax, rax
je 0x18000d6b2
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]
cmp rax, rdi
je 0x18000d68a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1800d0f28]
test rax, rax
je 0x18000d678
dec dword [rax + 0xf4]
mov rdx, qword [0x1800d0f38]
mov rcx, rsi
call qword [0x1800cf1a8]
jmp 0x18000d6bb
test ebp, ebp
jle 0x18000d69c
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18000d6ad
mov qword [r14], rdi
mov rax, rsi
jmp 0x18000d6bd
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
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 0x18000e1f8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
not r8d
test rdx, rdx
je 0x18000e226
movzx eax, byte [r9]
inc r9
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x180059dd0]
xor r8d, dword [rax + rcx*4]
sub rdx, 1
jne 0x18000e203
not r8d
mov eax, r8d
ret

Function at 0x18000e230
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x18000e28a
mov r11b, 0x23
lea rdi, [0x180059dd0]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x18000e274
cmp rdx, 2
jb 0x18000e274
cmp byte [r10], r11b
jne 0x18000e274
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x18000e252
jmp 0x18000e2cb
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x18000e2cb
mov r11b, 0x23
lea rdi, [0x180059dd0]
cmp dl, r11b
jne 0x18000e2af
cmp byte [r10], r11b
jne 0x18000e2af
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x18000e29d
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x180010240
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c58], 0
lea rbx, [rcx + 0x5c60]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1800102d9
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x180010291
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18001c994
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.18001c01c
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c58]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x1800d0f30]
movsxd r8, eax
mov rax, qword [rdi + 0x5c68]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1800102e1
mov rcx, rbx
call fcn.18001c01c
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18001735c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1800d0f28]
mov rbx, rcx
and dword [rax + 0x5bbc], 0
test rcx, rcx
je 0x1800173c5
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.1800173d0
lea rdx, [0x18005b69c]
mov rcx, rbx
mov rdi, rax
call fcn.18000d6d8
mov rbx, rax
test rax, rax
je 0x1800173c5
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18004772c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x1800d0758]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x1800d2680]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x180047771
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x20]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800477a7
mov eax, 0xa
jmp 0x180047836
test esi, esi
je 0x1800477c9
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800477ea
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800477ea
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800477e4
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800477ea
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180056ce0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x180047898
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1800d0758]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov r15d, edx
mov rdi, rcx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
xor edx, edx
mov r14d, r8d
mov esi, ebx
lea ecx, [rbx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x180047a34
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800479d6
lea esi, [rbx + 1]
cmp dword [rsp + 0x20], 0x10
jb 0x180047992
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180047992
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180047992
mov rdx, qword [rdi]
test rdx, rdx
jne 0x180047954
mov dword [rdi + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x1800d12e0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x1800479ba
jmp 0x180047985
mov eax, dword [rdi + 8]
cmp dword [rdi + 0xc], eax
jb 0x180047985
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rdi + 8], eax
mov rcx, qword [0x1800d12e0]
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800479ba
mov qword [rdi], rax
mov ecx, dword [rdi + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rdi + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180047902
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800479d6
mov esi, ebx
cmp qword [rdi], rbx
je 0x1800479d6
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1800d12e0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x180047a34
cmp qword [rdi], rbx
je 0x180047a39
mov esi, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x180047a39
mov r8, qword [rdi]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x180047a2b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, r14d
mov edx, r15d
mov rcx, rbp
call fcn.180047c78
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rdi + 0xc]
jb 0x1800479ef
jmp 0x180047a39
mov ebx, 9
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180056ce0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180047e08
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x180047e6c
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x180047e5a
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180047e53
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180047e27
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x1800d12e0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret