joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d6240
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400d6256
mov al, 1
jmp 0x1400d62b6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400d6267
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400d62b4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400d6c54
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400d62b4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400d62b4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400d62b4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400d62b6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400d6d64
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400ce920
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400ce920
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400d6eb4
cmp rax, 0xffffffffffffffff
je 0x1400d6eb4
xor edi, edi
test rbp, rbp
jle 0x1400d6e5f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400d2d20
mov rbx, rax
test rax, rax
jne 0x1400d6dec
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400d6e55
mov edx, 0x8000
mov ecx, r14d
call fcn.1400cffe0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400d1760
cmp eax, 0xffffffff
je 0x1400d6e35
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400d6dfc
mov edx, r15d
mov ecx, r14d
call fcn.1400cffe0
jmp 0x1400d6e55
cmp byte [rsi + 0x38], dil
je 0x1400d6e4c
cmp dword [rsi + 0x34], 5
jne 0x1400d6e4c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400d6e55
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400d2d98
jmp 0x1400d6ec8
jns 0x1400d6ec8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400ce920
cmp rax, 0xffffffffffffffff
jne 0x1400d6e80
cmp byte [rsi + 0x30], dil
je 0x1400d6ec8
mov edi, dword [rsi + 0x2c]
jmp 0x1400d6ec8
mov ecx, r14d
call fcn.1400d6c54
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400d6ec8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400d6ec8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400d6ec1
mov eax, dword [rsi + 0x2c]
jmp 0x1400d6ec6
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400ce920
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400da744
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 0x1400da774
xor eax, eax
jmp 0x1400da837
mov rbp, rbx
cmp word [rax], si
je 0x1400da799
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400da780
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400da77c
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.1400d7700
movsxd r14, eax
test eax, eax
jne 0x1400da7d7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400da76d
mov rcx, r14
call fcn.1400d397c
mov rdi, rax
test rax, rax
jne 0x1400da7f0
xor ecx, ecx
call fcn.1400d2d98
jmp 0x1400da7cc
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.1400d7700
test eax, eax
jne 0x1400da821
mov rcx, rdi
call fcn.1400d2d98
jmp 0x1400da82b
xor ecx, ecx
call fcn.1400d2d98
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 0x1400da854
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400da8db
mov rsi, rbx
cmp word [rax], bp
je 0x1400da89a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400da884
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400da880
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d397c
mov rdi, rax
test rax, rax
je 0x1400da8c8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400e1fa0
mov rbp, rdi
xor ecx, ecx
call fcn.1400d2d98
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400dbfdc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400dbffc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400c3acc
or eax, 0xffffffff
jmp 0x1400dbffe
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400de948
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14010f700]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400de992
call fcn.1400c3b38
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400c3b58
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400c0cc0
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b8570
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400de99d
lea eax, [rbx + 1]
jmp 0x1400de97f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400de97d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400de97f
Function at 0x1400dfde4
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.1400c3b78
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400dfe6e
cmp byte [rbp - 0x21], r15b
je 0x1400dfe69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400dfea4
call fcn.1400d3040
test eax, eax
jne 0x1400dfe90
cmp byte [rbp - 0x21], r15b
je 0x1400dfe88
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400dfea4
cmp byte [rbp - 0x21], r15b
je 0x1400dfea1
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.1400cc3c8
test eax, eax
jne 0x1400dff44
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400c3b78
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400dfee3
cmp byte [rbp - 0x21], r15b
je 0x1400dff18
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400dff18
call fcn.1400d3040
test eax, eax
jne 0x1400dff04
cmp byte [rbp - 0x21], r15b
je 0x1400dfefd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400dff18
cmp byte [rbp - 0x21], r15b
je 0x1400dff15
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.1400cc3c8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400dff44
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400dff47
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400dff55
mov rcx, rdi
call fcn.1400d2d98
cmp byte [rbp + 0x3f], r15b
je 0x1400dff64
mov rcx, qword [rbp + 0x27]
call fcn.1400d2d98
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 0x140029b84
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d124
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d124
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029cd4
cmp rax, 0xffffffffffffffff
je 0x140029cd4
xor edi, edi
test rbp, rbp
jle 0x140029c7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fda4
mov rbx, rax
test rax, rax
jne 0x140029c0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029c75
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aac0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001de00
cmp eax, 0xffffffff
je 0x140029c55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c1c
mov edx, r15d
mov ecx, r14d
call fcn.14001aac0
jmp 0x140029c75
cmp byte [rsi + 0x38], dil
je 0x140029c6c
cmp dword [rsi + 0x34], 5
jne 0x140029c6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029c75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b404
jmp 0x140029ce8
jns 0x140029ce8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d124
cmp rax, 0xffffffffffffffff
jne 0x140029ca0
cmp byte [rsi + 0x30], dil
je 0x140029ce8
mov edi, dword [rsi + 0x2c]
jmp 0x140029ce8
mov ecx, r14d
call fcn.1400195f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029ce8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029ce8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029ce1
mov eax, dword [rsi + 0x2c]
jmp 0x140029ce6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d124
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ade0
Capabilities:
Parse pe header

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

Function at 0x140f6685c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f66866
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f6688f
pop rbp
sub rbp, 0x33
sub rbp, 0xf6685c
sub rsp, 0x20
jmp 0x140f668ae
mov rax, 0xf6685c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffd1f603b7
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f668cd
jmp 0x140f668e4
invalid
Function at 0x10001530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1000156b
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x28
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x100015af
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x100015aa
cmp rbx, r11
jae 0x100015af
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x10001598
cmp rbx, r11
jb 0x100015b3
xor eax, eax
jmp 0x100015bf
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x28
ret
Function at 0x10002050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov eax, r8d
mov qword [rsp + 0x70], rsi
mov rsi, rdx
shr eax, 4
add ax, 1
mov ebx, r8d
mov rbp, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rsi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x50], r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
mov r12, rax
je 0x100021c5
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x100021c5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x100021c5
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x100020f6
nop
cmp rdi, r11
jae 0x100021c5
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x100020e0
cmp rdi, r11
jae 0x100021c5
movzx eax, word [rdi]
test ax, ax
je 0x100021c5
mov qword [rsp + 0x48], r13
movzx ebx, ax
call qword [0x10042a10]
xor r13d, r13d
lea r12, [rdi + 2]
mov r9d, ebx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rbp]
mov edx, 1
movsxd rsi, eax
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, esi
or edx, ecx
jge 0x10002166
mov edx, esi
mov rcx, rbp
call fcn.10001f60
mov rbx, qword [rbp]
movzx edi, word [rdi]
call qword [0x10042a10]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r9d, edi
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test esi, esi
mov r13, qword [rsp + 0x48]
js 0x100021ba
mov rcx, qword [rbp]
cmp esi, dword [rcx - 0xc]
jg 0x100021ba
mov dword [rcx - 0x10], esi
mov rcx, qword [rbp]
mov eax, 1
mov byte [rsi + rcx], 0
jmp 0x100021c7
mov ecx, 0x80070057
call fcn.10001000
int3
xor eax, eax
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x100030c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
sub rsp, 0x48
movsxd r9, dword [0x100402c0]
movsxd r8, dword [0x100402c4]
mov qword [rax + 8], rbx
movsxd rbx, dword [0x100402bc]
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov qword [rax - 0x18], r14
mov qword [rax - 0x20], r15
mov rdi, rcx
mov r12d, r8d
mov r10, rbx
mov r15d, edx
imul r8, r9
imul r12d, r9d
movsxd rax, r12d
sub r10, rax
mov rax, rbx
sub rax, r8
lea r9, [r10 + r10*4]
lea rdx, [r10*4]
shl rax, 6
movsxd rcx, dword [rax + rcx + 0x3c]
mov rax, rbx
imul rax, rax, 0x108
sub rcx, rax
mov eax, dword [rcx + rdi + 0x88]
sub eax, r12d
add eax, ebx
lea r8, [rdi + rax]
mov eax, dword [r8 + r9*8 + 0x24]
mov r14d, dword [r8 + r9*8 + 0x20]
mov r13d, dword [r8 + r9*8 + 0x1c]
mov ebp, dword [r8 + r9*8 + 0x18]
add r14, rdx
add r13, rdx
lea rcx, [rdi + rax]
add r14, rdi
add r13, rdi
lea r11, [rcx + r10*2]
xor r10d, r10d
test ebp, ebp
je 0x100031d2
mov eax, r12d
neg eax
movsxd rcx, eax
add rcx, rbx
mov rsi, rcx
shl rsi, 4
sub ebx, r12d
lea eax, [r15 + rbx*2]
lea r12d, [rbx + rax]
lea rax, [rcx + rcx*4]
lea r9, [r14 + rax*4]
movzx eax, word [r11]
mov ecx, dword [r9]
add rax, rsi
add rcx, rdi
mov ebx, dword [r13 + rax*4]
add rbx, rdi
call fcn.10003080
cmp eax, r12d
je 0x10003201
add r10d, 1
add r9, 4
add r11, 2
cmp r10d, ebp
jb 0x100031a2
xor eax, eax
mov r15, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
mov rax, rbx
jmp 0x100031d4
Function at 0x10003350
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov r10d, dword [0x100402c0]
mov r11d, dword [0x100402bc]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x18], r13
xor esi, esi
mov ebp, r8d
mov r8d, dword [0x100402c4]
mov qword [rsp + 0x10], r14
mov eax, r8d
mov r9d, r11d
mov qword [rsp + 8], r15
mov r12, rcx
mov r13d, esi
imul eax, r10d
sub r9d, eax
mov r14, rdx
mov r15d, esi
imul r9d, r9d, 0x1f
lea eax, [r9 + rbp]
test eax, eax
je 0x100034ff
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x48], rdi
nop
mov ecx, dword [0x100402b8]
lea eax, [r9 + rsi + 1]
xor edx, edx
div ecx
movsxd r9, r8d
movsxd r8, r10d
movsxd rsi, edx
xor edx, edx
movsxd r10, r11d
movzx eax, byte [rsi + r12]
add eax, r15d
div ecx
mov rcx, r9
mov rax, r10
imul rax, rax, 0x159
imul rcx, rcx, 0x154
movsxd r15, edx
add rcx, 5
imul rcx, r8
sub rax, rcx
mov rcx, r10
imul r10, r10, 0x8a
add rax, rsi
imul rcx, rcx, 0xcf
movzx edx, byte [rax + r12]
mov rax, r9
imul rax, rax, 0xcc
imul r9, r9, 0x88
add rax, 3
add r9, 2
imul rax, r8
imul r9, r8
mov r8d, r13d
add r13d, 1
sub rcx, rax
sub r10, r9
add r10, rsi
add rcx, r15
movzx eax, byte [rcx + r12]
mov byte [r10 + r12], al
mov byte [r15 + r12], dl
mov r11d, dword [0x100402c4]
mov r9d, dword [0x100402c0]
movsxd r10, dword [0x100402bc]
movzx ecx, byte [rsi + r12]
mov eax, r11d
imul eax, r9d
neg eax
movsxd rdx, eax
add rdx, r10
imul rdx, rdx, 0x1f
add rdx, r15
movzx eax, byte [rdx + r12]
xor edx, edx
add eax, ecx
div dword [0x100402b8]
movzx eax, r11b
imul r9b
sub r10b, al
mov al, 0x1f
movsxd rcx, edx
imul r10b
add al, byte [rcx + r12]
sub al, byte [0x100402c8]
xor byte [r8 + r14], al
mov r8d, dword [0x100402c4]
mov r10d, dword [0x100402c0]
mov r11d, dword [0x100402bc]
mov eax, r8d
mov r9d, r11d
imul eax, r10d
sub r9d, eax
imul r9d, r9d, 0x1f
lea eax, [r9 + rbp]
cmp r13d, eax
jb 0x100033c0
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 8]
mov r14, qword [rsp + 0x10]
mov r13, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x28
ret

Function at 0x1000c774
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x1000c7ce
call fcn.10011cd8
mov r8d, pe_nt_image_headers64
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x1000c7ce
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x1000c7f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.1000c1f4
test rdi, rdi
mov esi, eax
je 0x1000c7ee
test rbx, rbx
je 0x1000c7ee
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1001c217
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100410f8]
jne 0x1001715a
rol rcx, 0x10
test cx, 0xffff
jne 0x10017156
repz ret
ror rcx, 0x10
jmp 0x1001c170
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10046950]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x10046a48]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1001c1f5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x10046950]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1001c217
mov rax, qword [rsp + 0x88]
mov qword [0x10046a48], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100469e8], rax
mov rax, qword [0x10046a48]
mov qword [0x100468c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100469d0], rax
mov dword [0x100468b0], 0xc0000409
mov dword [0x100468b4], 1
mov rax, qword [0x100410f8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10041100]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x10046948], eax
mov ecx, 1
call fcn.10024990
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100342f8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x10046948], 0
jne 0x1001c29e
mov ecx, 1
call fcn.10024990
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret