joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007d6c
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 0x140007df3
mov rsi, rbx
cmp word [rax], bp
je 0x140007db2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140007d9c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140007d98
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140006cd4
mov rdi, rax
test rax, rax
je 0x140007de0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400085d0
mov rbp, rdi
xor ecx, ecx
call fcn.1400053b4
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 0x180002440
Capabilities:
Create process on windows
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x510
mov rax, qword [0x180078040]
xor rax, rsp
mov qword [rsp + 0x500], rax
xor r14d, r14d
mov rbx, rcx
lea rcx, [rsp + 0x2f2]
mov word [rsp + 0x2f0], r14w
xor edx, edx
mov r8d, 0x206
mov ebp, r14d
call fcn.18005fe20
lea r15, str.open
lea r12, str.cmd.exe
xor edx, edx
mov ecx, 2
mov esi, r14d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180002604
lea rdx, [rsp + 0xb0]
mov dword [rsp + 0xb0], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1800025fb
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x1800024ee
mov rdx, qword [rbx]
lea rcx, [rsp + 0xdc]
call fcn.18003a670
test eax, eax
je 0x180002516
lea rdx, [rsp + 0xb0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800024e1
jmp 0x18000251d
mov esi, dword [rsp + 0xb8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x180002604
mov ebp, 1
mov r8d, esi
mov ecx, ebp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x18000255c
mov edx, ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx + 0x18], 7
mov r8, rbx
jbe 0x180002569
mov r8, qword [rbx]
lea rdx, str._C_taskkill__IM__s__F
lea rcx, [rsp + 0x2f0]
call fcn.180001150
lea rax, [rsp + 0x2f0]
mov dword [rsp + 0x30], 0x70
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x34], 0x40
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x60], r14d
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1800025eb
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x98]
lea rdx, [rsp + 0xa0]
mov dword [rsp + 0xa0], r14d
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1800024a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.180030840
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1800036f0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x180003714
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x1800037a2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180003770
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x180003770
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.18005f780
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18000378d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180003795
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x180003731
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x180003880
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x1800037b9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800037bb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800037ed
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.18005f780
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18000387d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180003828
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x18000385e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.180042500
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x18000387d
cmp rsi, rax
ja 0x180003831
test rsi, rsi
je 0x18000387d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.180042500
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x1800042b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov rsi, qword [rsp + 0x48]
xor r14d, r14d
mov rbx, qword [rsp + 0x60]
mov r12, r9
mov rcx, qword [rsp + 0x50]
mov r13, r8
mov rbp, qword [rsp + 0x58]
mov r15, rdx
mov qword [rsi], r8
mov qword [rbx], rcx
mov rax, qword [rsi]
cmp rax, r9
je 0x180004445
cmp rcx, rbp
je 0x180004445
mov r9d, 1
movzx edx, word [r15]
xor dil, dil
movzx ecx, word [rax]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp r9w, dx
jae 0x18000434c
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x18000446c
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x180004363
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x180004363
shl eax, 0xa
mov dil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x180004376
movzx r8d, al
mov r10d, r14d
mov r11d, r14d
jmp 0x1800043c3
mov r8d, eax
cmp eax, 0x800
jae 0x180004390
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x1800043c3
cmp eax, 0x10000
jae 0x1800043aa
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x1800043c3
shr r8d, 0x12
mov r10d, 3
movzx r11d, dil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, rbp
sub rdx, qword [rbx]
mov ecx, r9d
cmp rdx, rcx
jl 0x180004445
add qword [rsi], 2
test dil, dil
jne 0x1800043e4
cmp r10d, 3
jae 0x1800043f0
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jle 0x18000441e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop
sub ecx, 6
mov edx, eax
shr edx, cl
dec r9d
and dl, 0x3f
or dl, 0x80
mov byte [r8], dl
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jg 0x180004400
shr eax, 0xa
mov r9d, 1
test dil, dil
mov ecx, r9d
cmovne ecx, eax
mov word [r15], cx
mov rax, qword [rsi]
cmp rax, r12
je 0x180004445
cmp qword [rbx], rbp
jne 0x18000430d
cmp r13, qword [rsi]
sete r14b
mov eax, r14d
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
mov eax, 2
jmp 0x18000444f
Function at 0x18000afa0
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x6b0
mov rax, qword [0x180078040]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov r14, rdx
mov rbp, rcx
xor edx, edx
lea rcx, [rsp + 0x490]
mov r8d, 0x208
xor esi, esi
call fcn.18005fe20
mov r8d, 0x104
lea rdx, [rsp + 0x490]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rsp + 0x490]
call fcn.180036618
xor edx, edx
lea rcx, [rsp + 0x280]
mov r8d, 0x208
mov word [rax], si
call fcn.18005fe20
lea r9, [rsp + 0x490]
mov qword [rsp + 0x20], rbp
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.180009e10
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18000b073
lea r8, [rsp + 0x280]
mov edx, 0x104
mov rcx, r14
call fcn.180042cd8
mov eax, 1
jmp 0x18000b16b
xor edx, edx
mov qword [rsp + 0x6e8], rdi
mov r8d, 0x208
lea rcx, [rsp + 0x280]
call fcn.18005fe20
lea r9, [rsp + 0x490]
mov edx, 0x104
lea r8, str._s
lea rcx, [rsp + 0x280]
call fcn.180009e10
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000b161
mov qword [rsp + 0x6e0], rbx
nop dword [rax]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [rsp + 0x30], 0x10
mov ebx, eax
je 0x18000b130
lea r9, [rsp + 0x5c]
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x490]
lea rdx, str._s_s_s
lea rcx, [rsp + 0x280]
call fcn.18000b9f0
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18000b136
test ebx, ebx
jne 0x18000b0e0
jmp 0x18000b150
lea r8, [rsp + 0x280]
mov edx, 0x104
mov rcx, r14
call fcn.180042cd8
mov esi, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x6e0]
mov rdi, qword [rsp + 0x6e8]
mov eax, esi
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.180030840
add rsp, 0x6b0
pop r14
pop rsi
pop rbp
ret
Function at 0x180025c2c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x180012386
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x180012369
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x180012354

Function at 0x18002fed8
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.180046ce4
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x18002ff2a
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x18002ff2a
sub ecx, 1
je 0x18002ff23
cmp ecx, 1
je 0x18002ff1c
xor eax, eax
jmp 0x18002ff2f
mov eax, 3
jmp 0x18002ff2f
mov eax, 1
jmp 0x18002ff2f
mov eax, 2
add rsp, 0x28
ret

Function at 0x180031a90
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180031ce0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180031baa
mov rax, qword [0x1800780b0]
cmp qword [rsp + 0x20], rax
jb 0x180031af4
mov rax, qword [0x1800780b8]
cmp qword [rsp + 0x20], rax
ja 0x180031af4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180031ab6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18005fe20
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180031b25
jmp 0x180031baa
cmp dword [rsp + 0x50], 0x10000
jne 0x180031b8d
cmp qword [rsp + 0x48], 0x10000
jb 0x180031b8d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180031b6b
mov rax, qword [rsp + 0x28]
jmp 0x180031bac
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180031b7b
xor eax, eax
jmp 0x180031bac
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180031ba5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180031ce0
mov qword [rsp + 0x20], rax
jmp 0x180031ab6
xor eax, eax
add rsp, 0x68
ret
Function at 0x180031bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180031d20
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180031cd6
mov rax, qword [0x1800780b0]
cmp qword [rsp + 0x20], rax
jb 0x180031c1b
mov rax, qword [0x1800780b8]
cmp qword [rsp + 0x20], rax
ja 0x180031c1b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180031bdd
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18005fe20
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180031c4c
jmp 0x180031cd6
cmp dword [rsp + 0x50], 0x10000
jne 0x180031cb4
cmp qword [rsp + 0x48], 0x10000
jb 0x180031cb4
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180031c92
mov rax, qword [rsp + 0x28]
jmp 0x180031cd8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180031ca2
xor eax, eax
jmp 0x180031cd8
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180031cd1
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180031d20
mov qword [rsp + 0x20], rax
jmp 0x180031bdd
xor eax, eax
add rsp, 0x68
ret
Function at 0x180031d70
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180032300
mov qword [rsp + 0x28], 0
cmp qword [0x18007aa18], 0
jne 0x180031db8
cmp qword [0x18007aa10], 0
je 0x180031db8
mov rax, qword [0x18007aa10]
mov qword [0x18007aa18], rax
cmp qword [0x18007aa18], 0
je 0x180031e5e
mov rax, qword [0x18007aa18]
cmp qword [rax + 0x10], 0
je 0x180031e5e
mov rax, qword [0x18007aa18]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180031e5e
mov rax, qword [0x18007aa18]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180031e5e
mov rax, qword [0x18007aa18]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180031e24
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180031e2b
xor eax, eax
jmp 0x180031fd5
mov rax, qword [0x18007aa18]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.18005fe20
mov rax, qword [rsp + 0x28]
jmp 0x180031fd5
mov rax, qword [0x18007aa10]
mov qword [0x18007aa18], rax
jmp 0x180031e80
mov rax, qword [0x18007aa18]
mov rax, qword [rax + 8]
mov qword [0x18007aa18], rax
cmp qword [0x18007aa18], 0
je 0x180031ecd
cmp qword [0x18007aa18], 0
je 0x180031ecb
mov rax, qword [0x18007aa18]
cmp qword [rax + 0x10], 0
je 0x180031ecb
mov rax, qword [0x18007aa18]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180031ecb
mov rax, qword [0x18007aa18]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180031ecb
jmp 0x180031dfc
jmp 0x180031e6e
mov rax, qword [rsp + 0x60]
and rax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180031fe0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180031fd3
mov rax, qword [rsp + 0x48]
mov qword [0x18007aa18], rax
mov rax, qword [0x18007aa18]
mov dword [rax], 0x52727464
mov rax, qword [0x18007aa18]
mov qword [rax + 0x10], 0
mov rax, qword [0x18007aa18]
mov rcx, qword [0x18007aa10]
mov qword [rax + 8], rcx
mov rax, qword [0x18007aa18]
mov qword [0x18007aa10], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18007aa18]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180031f84
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180031fbe
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x180031f7a
mov rax, qword [0x18007aa18]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180031dfc
xor eax, eax
add rsp, 0x58
ret
Function at 0x180032cf0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180032d37
xor al, al
jmp 0x180032dd9
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180032d61
xor al, al
jmp 0x180032dd9
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x180032dd1
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x180032dd1
mov al, 1
jmp 0x180032dd9
jmp 0x180032dd7
xor al, al
add rsp, 0x78
ret

Function at 0x1800330e0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18007aa10]
mov qword [rsp + 0x28], rax
jmp 0x180033100
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18003312f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18003312d
call sub.KERNEL32.dll_GetLastError
jmp 0x180033131
jmp 0x1800330f2
xor eax, eax
add rsp, 0x38
ret
Function at 0x1800337f0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18007aa28], eax
je 0x18003380b
mov eax, 0x10dd
jmp 0x180033930
mov rax, qword [0x18007aa40]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800338b5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180033880
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180033880
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180032440
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180030860
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180033817
mov qword [0x18007aa40], 0
call fcn.180032ea0
mov rax, qword [0x18007aa38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180033919
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.180030860
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x1800338d1
mov qword [0x18007aa38], 0
mov dword [0x18007aa28], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180033e60
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18007aa2c], 0
je 0x180033e7d
mov eax, dword [0x18007aa2c]
jmp 0x180033f43
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180033e90
xor eax, eax
jmp 0x180033f43
mov ecx, 0x10
call fcn.180030b08
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180033efe
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180033ee3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180030860
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18007aa2c], eax
mov qword [0x18007aa30], 0
mov eax, dword [rsp + 0x20]
jmp 0x180033f43
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180033f18
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180033eb9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x18007aa38]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x18007aa38], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x180049ef4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180049f63
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180049f63
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180049f63
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180049f63
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180049f63
cmp dword [rcx + 0x84], 0xe
jbe 0x180049f63
cmp dword [rcx + 0xf8], 0
je 0x180049f63
mov ecx, ebx
call fcn.18004a020
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180049df0
nop
cmp dword [rbp + 0x20], 0
je 0x180049fb1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180049fbc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180049ef4
Function at 0x180050484
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1800504b6
call fcn.180040ea8
mov dword [rax], 0x16
call fcn.180042c38
jmp 0x1800505d5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800505d5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1800505d5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1800504e5
lock or dword [rcx + 0x14], 0x10
jmp 0x1800505d5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800504f9
call fcn.180052930
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.18004b148
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.180053924
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1800505c3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x18005058e
mov rcx, rsi
call fcn.18004b148
cmp eax, edi
je 0x180050579
mov rcx, rsi
call fcn.18004b148
cmp eax, 0xfffffffe
je 0x180050579
mov rcx, rsi
call fcn.18004b148
movsxd rbx, eax
lea r14, [0x18007afc0]
mov rcx, rsi
sar rbx, 6
call fcn.18004b148
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x180050580
lea rdx, [0x180078430]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18005058e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1800505b2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1800505b2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1800505b2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1800505d8
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret