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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [str.kernel32LoadLibrGetProcALocalAll_not_found_]
lea rdi, [rsp + 0x20]
mov byte [rsp + 0x2c], 0
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x6c6c642e
call fcn.3985d19a0
mov byte [rsp + 0x2c], 0
mov rbx, rax
mov rax, qword [0x398691028]
mov dword [rsp + 0x28], 0x41797261
mov qword [rsp + 0x20], rax
movsxd rax, dword [rbx + 0x3c]
mov r12d, dword [rbx + rax + 0x88]
test r12d, r12d
je 0x3985d2090
lea r13, [rbx + r12]
mov esi, dword [r13 + 0x20]
mov ebp, dword [r13 + 0x18]
add rsi, rbx
test ebp, ebp
je 0x3985d20aa
mov r14, rsi
xor r15d, r15d
jmp 0x3985d1f41
add r15, 1
add r14, 4
cmp rbp, r15
je 0x3985d20c0
mov ecx, dword [r14]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x3985d1f30
mov edx, dword [r13 + 0x24]
lea rcx, [rbx + r15*2]
mov eax, dword [r13 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov qword [0x3986b6030], rax
mov rax, qword [0x398691030]
mov edx, 0x7373
mov byte [rsp + 0x2e], 0
xor r14d, r14d
mov dword [rsp + 0x28], 0x65726464
mov word [rsp + 0x2c], dx
mov qword [rsp + 0x20], rax
jmp 0x3985d1fb1
add r14, 1
add rsi, 4
cmp rbp, r14
je 0x3985d20b8
mov ecx, dword [rsi]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x3985d1fa0
mov edx, dword [r13 + 0x24]
lea rcx, [rbx + r14*2]
mov eax, dword [r13 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov qword [0x3986b6038], rax
mov rax, qword [0x398691038]
add r12, rbx
xor ebp, ebp
mov byte [rsp + 0x2a], 0
mov qword [rsp + 0x20], rax
mov eax, 0x636f
mov word [rsp + 0x28], ax
mov esi, dword [r12 + 0x20]
mov r13d, dword [r12 + 0x18]
add rsi, rbx
test r13d, r13d
jne 0x3985d202d
jmp 0x3985d20a6
add rbp, 1
add rsi, 4
cmp r13, rbp
je 0x3985d20a6
mov ecx, dword [rsi]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x3985d2020
mov edx, dword [r12 + 0x24]
lea rcx, [rbx + rbp*2]
mov eax, dword [r12 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov ecx, 0x4098
mov qword [0x3986b6028], rax
call fcn.3985d1e10
test rax, rax
mov qword [0x3986b6020], rax
setne al
movzx eax, al
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [0x3986b6030], 0
mov qword [0x3986b6038], 0
xor eax, eax
jmp 0x3985d205a
mov qword [0x3986b6030], 0
nop dword [rax]
xor eax, eax
jmp 0x3985d1fdc
mov qword [0x3986b6030], 0
jmp 0x3985d1f74
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
jmp 0x3985d1ea0
Function at 0x3985d5180
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rdi
push rsi
push rbx
mov rax, rcx
lea rcx, [rcx + 0xf]
sub rcx, rdx
cmp rcx, 0x1e
jbe 0x3985d5264
movdqu xmm1, xmmword [rdx]
movups xmmword [rax], xmm1
movdqu xmm0, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm0
movzx edi, byte [rax + 0x1f]
mov r10d, 8
movzx r9d, byte [rax + 0x1e]
lea r11, [0x398691300]
movzx r8d, byte [rax + 0x1d]
lea rbx, [0x3986911e0]
movzx edx, byte [rax + 0x1c]
jmp 0x3985d5229
movzx r8d, r8b
movzx edx, dl
movzx ecx, byte [r11 + r8]
movzx r8d, r9b
movzx r9d, dil
movzx edi, byte [r11 + rdx]
mov edx, r10d
shr edx, 3
movzx r8d, byte [r11 + r8]
xor cl, byte [rbx + rdx]
movzx r9d, byte [r11 + r9]
mov edx, ecx
xor dl, byte [rax]
add r10d, 1
add rax, 4
xor r8b, byte [rax - 3]
xor r9b, byte [rax - 2]
xor dil, byte [rax - 1]
mov byte [rax + 0x1c], dl
mov byte [rax + 0x1d], r8b
mov byte [rax + 0x1e], r9b
mov byte [rax + 0x1f], dil
cmp r10d, 0x3c
je 0x3985d5260
mov ecx, r10d
and ecx, 7
je 0x3985d51d0
cmp ecx, 4
jne 0x3985d51fe
movzx edx, dl
movzx r8d, r8b
movzx esi, r9b
movzx ecx, dil
movzx edx, byte [r11 + rdx]
movzx r8d, byte [r11 + r8]
movzx r9d, byte [r11 + rsi]
movzx edi, byte [r11 + rcx]
jmp 0x3985d51fe
pop rbx
pop rsi
pop rdi
ret
movzx ecx, byte [rdx]
mov byte [rax], cl
movzx ecx, byte [rdx + 1]
mov byte [rax + 1], cl
movzx ecx, byte [rdx + 2]
mov byte [rax + 2], cl
movzx ecx, byte [rdx + 3]
mov byte [rax + 3], cl
movzx ecx, byte [rdx + 4]
mov byte [rax + 4], cl
movzx ecx, byte [rdx + 5]
mov byte [rax + 5], cl
movzx ecx, byte [rdx + 6]
mov byte [rax + 6], cl
movzx ecx, byte [rdx + 7]
mov byte [rax + 7], cl
movzx ecx, byte [rdx + 8]
mov byte [rax + 8], cl
movzx ecx, byte [rdx + 9]
mov byte [rax + 9], cl
movzx ecx, byte [rdx + 0xa]
mov byte [rax + 0xa], cl
movzx ecx, byte [rdx + 0xb]
mov byte [rax + 0xb], cl
movzx ecx, byte [rdx + 0xc]
mov byte [rax + 0xc], cl
movzx ecx, byte [rdx + 0xd]
mov byte [rax + 0xd], cl
movzx ecx, byte [rdx + 0xe]
mov byte [rax + 0xe], cl
movzx ecx, byte [rdx + 0xf]
mov byte [rax + 0xf], cl
movzx ecx, byte [rdx + 0x10]
mov byte [rax + 0x10], cl
movzx ecx, byte [rdx + 0x11]
mov byte [rax + 0x11], cl
movzx ecx, byte [rdx + 0x12]
mov byte [rax + 0x12], cl
movzx ecx, byte [rdx + 0x13]
mov byte [rax + 0x13], cl
movzx ecx, byte [rdx + 0x14]
mov byte [rax + 0x14], cl
movzx ecx, byte [rdx + 0x15]
mov byte [rax + 0x15], cl
movzx ecx, byte [rdx + 0x16]
mov byte [rax + 0x16], cl
movzx ecx, byte [rdx + 0x17]
mov byte [rax + 0x17], cl
movzx ecx, byte [rdx + 0x18]
mov byte [rax + 0x18], cl
movzx ecx, byte [rdx + 0x19]
mov byte [rax + 0x19], cl
movzx ecx, byte [rdx + 0x1a]
mov byte [rax + 0x1a], cl
movzx ecx, byte [rdx + 0x1b]
mov byte [rax + 0x1b], cl
movzx ecx, byte [rdx + 0x1c]
mov byte [rax + 0x1c], cl
movzx ecx, byte [rdx + 0x1d]
mov byte [rax + 0x1d], cl
movzx ecx, byte [rdx + 0x1e]
mov byte [rax + 0x1e], cl
movzx edx, byte [rdx + 0x1f]
mov byte [rax + 0x1f], dl
jmp 0x3985d51a7
Function at 0x3985e00f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
cmp r8, 3
mov r9, rdx
not eax
jbe 0x3985e01c0
lea rdx, [r8 - 4]
lea r10, [0x398691c20]
shr rdx, 2
lea rcx, [r9 + rdx*4 + 4]
nop dword [rax]
mov edx, eax
xor al, byte [r9]
add r9, 4
shr edx, 8
movzx eax, al
xor edx, dword [r10 + rax*4]
mov eax, edx
xor dl, byte [r9 - 3]
shr eax, 8
movzx edx, dl
xor eax, dword [r10 + rdx*4]
mov edx, eax
xor al, byte [r9 - 2]
shr edx, 8
movzx eax, al
xor edx, dword [r10 + rax*4]
mov eax, edx
xor dl, byte [r9 - 1]
shr eax, 8
movzx edx, dl
xor eax, dword [r10 + rdx*4]
cmp r9, rcx
jne 0x3985e0118
and r8d, 3
test r8, r8
je 0x3985e01b4
lea rdx, [0x398691c20]
mov r9d, eax
xor al, byte [rcx]
shr r9d, 8
movzx eax, al
xor r9d, dword [rdx + rax*4]
cmp r8, 1
mov eax, r9d
je 0x3985e01b4
xor al, byte [rcx + 1]
shr r9d, 8
movzx eax, al
xor r9d, dword [rdx + rax*4]
cmp r8, 2
mov eax, r9d
je 0x3985e01b4
xor al, byte [rcx + 2]
mov r8d, r9d
shr r8d, 8
movzx eax, al
xor r8d, dword [rdx + rax*4]
mov eax, r8d
not eax
ret
mov rcx, rdx
jmp 0x3985e0164
Function at 0x3985f6f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
movzx esi, byte [rcx + 0x40]
test sil, sil
mov rbx, rcx
je 0x3985f6f70
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x48]
mov r8d, 0xa
movzx edx, word [rcx + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
mov rdi, rax
je 0x3985f7018
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbp, rax
je 0x3985f7018
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov r13, rax
je 0x3985f7018
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
movsxd r12, eax
mov qword [rbx + 0x38], rdx
lea rcx, [r12 + 1]
call sub.msvcrt.dll_malloc
test rax, rax
mov rdi, rax
je 0x3985f6ffb
mov r8, r12
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov esi, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov qword [rbx + 0x30], rdi
mov byte [rbx + 0x40], sil
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor edi, edi
jmp 0x3985f6ffb

Function at 0x398603fb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.39860e330
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.39860e330
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x398604020
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x3986b60c4]
test esi, esi
mov rbx, rcx
jle 0x398604150
mov rax, qword [0x3986b60c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x39860406b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x3986040f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x398604050
mov rcx, rbx
call fcn.398604880
test rax, rax
mov rdi, rax
je 0x398604172
mov rax, qword [0x3986b60c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.3986049c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x3986b60c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x398604157
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3986040ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x398604100
add dword [0x3986b60c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x3986b60c8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3986040ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.398603fb0
nop dword [rax]
xor esi, esi
jmp 0x398604078
mov rax, qword [0x3986b60c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.398603fb0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.398603fb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x3986044f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x3986b6100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3986b60e0]
test rbx, rbx
je 0x39860454c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x398604543
test rsi, rsi
je 0x398604543
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x398604528
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x398604880
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x398698130]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3986048a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3986048a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3986048a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x3986048fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x3986048f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3986048a0
add rax, 0x28
cmp rax, r9
jne 0x3986048e0
xor eax, eax
ret

Function at 0x398604900
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x398698130]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x39860491f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x398604928
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x39860491f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x3986049c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x398698130]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x3986049df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x3986049e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x39868c000
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x398690120]
jmp 0x3986056f0
Function at 0x140001058
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
movzx eax, word [section..data]
movzx ecx, ax
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x20]
mov r8d, ecx
mov rcx, rax
call fcn.1400013c6
mov dword [rbp - 0x34], 0
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400017e0
mov rbx, rax
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400016f0
lea rdx, [rbp - 0x34]
mov r9, rdx
mov r8d, 0x40
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
sete al
test al, al
jne 0x140001127
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400016f0
add rax, 0x124
mov qword [rbp - 8], rax
mov rbx, qword [rbp - 8]
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.1400017e0
mov rsi, rax
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.1400016f0
mov rdx, rsi
mov rcx, rax
call rbx
jmp 0x140001128
nop
add rsp, 0x60
pop rbx
pop rsi
pop rbp
ret

Function at 0x140001186
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rax, str.user32
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.CreateWindow
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x1400011cc
mov eax, 0
jmp 0x140001276
cmp qword [rbp - 0x10], 0
setne al
movzx edx, al
movzx eax, word [section..data]
add eax, edx
mov word [section..data], ax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x140001030]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x14000122a
mov eax, 0
jmp 0x140001276
mov dword [rbp - 4], 0
jmp 0x140001247
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
add dword [rbp - 4], 1
cmp dword [rbp - 4], 1
jle 0x140001233
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
setne al
test al, al
je 0x140001271
movzx eax, word [section..data]
xor ax, 0x1337
mov word [section..data], ax
mov eax, 1
add rsp, 0x50
pop rbp
ret
Function at 0x140001440
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
sub rsp, 0x110
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa0], rcx
mov qword [rbp + 0xa8], rdx
mov dword [rbp + 0xb0], r8d
mov qword [rbp + 0xb8], r9
cmp qword [rbp + 0xa0], 0
je 0x14000169f
cmp qword [rbp + 0xa8], 0
je 0x14000169f
cmp dword [rbp + 0xb0], 0
je 0x14000169f
cmp qword [rbp + 0xb8], 0
je 0x14000169f
cmp dword [rbp + 0xc0], 0
je 0x14000169f
mov byte [rbp + 0x8f], 0
mov byte [rbp + 0x8e], 0
mov byte [rbp + 0x8d], 0
mov byte [rbp + 0x8c], 0
mov word [rbp + 0x8a], 0
jmp 0x1400014fc
movzx eax, word [rbp + 0x8a]
movzx edx, word [rbp + 0x8a]
cdqe
mov byte [rbp + rax - 0x80], dl
movzx eax, word [rbp + 0x8a]
add eax, 1
mov word [rbp + 0x8a], ax
cmp word [rbp + 0x8a], 0xff
jbe 0x1400014d7
mov word [rbp + 0x88], 0
jmp 0x1400015b6
movzx edx, byte [rbp + 0x8f]
mov rax, qword [rbp + 0xb8]
add rax, rdx
movzx edx, byte [rax]
movzx eax, word [rbp + 0x88]
cdqe
movzx eax, byte [rbp + rax - 0x80]
add eax, edx
add byte [rbp + 0x8e], al
movzx eax, word [rbp + 0x88]
cdqe
movzx eax, byte [rbp + rax - 0x80]
mov byte [rbp + 0x82], al
movzx eax, byte [rbp + 0x8e]
movzx ecx, word [rbp + 0x88]
cdqe
movzx edx, byte [rbp + rax - 0x80]
movsxd rax, ecx
mov byte [rbp + rax - 0x80], dl
movzx eax, byte [rbp + 0x8e]
cdqe
movzx edx, byte [rbp + 0x82]
mov byte [rbp + rax - 0x80], dl
add byte [rbp + 0x8f], 1
movzx eax, byte [rbp + 0x8f]
cmp dword [rbp + 0xc0], eax
sete al
test al, al
je 0x1400015a5
mov byte [rbp + 0x8f], 0
movzx eax, word [rbp + 0x88]
add eax, 1
mov word [rbp + 0x88], ax
cmp word [rbp + 0x88], 0xff
jbe 0x140001515
mov dword [rbp + 0x84], 0
jmp 0x14000168d
add byte [rbp + 0x8d], 1
movzx eax, byte [rbp + 0x8d]
cdqe
movzx eax, byte [rbp + rax - 0x80]
add byte [rbp + 0x8c], al
movzx eax, byte [rbp + 0x8d]
cdqe
movzx eax, byte [rbp + rax - 0x80]
mov byte [rbp + 0x83], al
movzx eax, byte [rbp + 0x8c]
movzx ecx, byte [rbp + 0x8d]
cdqe
movzx edx, byte [rbp + rax - 0x80]
movsxd rax, ecx
mov byte [rbp + rax - 0x80], dl
movzx eax, byte [rbp + 0x8c]
cdqe
movzx edx, byte [rbp + 0x83]
mov byte [rbp + rax - 0x80], dl
mov edx, dword [rbp + 0x84]
mov rax, qword [rbp + 0xa0]
add rax, rdx
movzx r8d, byte [rax]
movzx eax, byte [rbp + 0x8d]
cdqe
movzx edx, byte [rbp + rax - 0x80]
movzx eax, byte [rbp + 0x8c]
cdqe
movzx eax, byte [rbp + rax - 0x80]
add eax, edx
movzx eax, al
cdqe
movzx ecx, byte [rbp + rax - 0x80]
mov edx, dword [rbp + 0x84]
mov rax, qword [rbp + 0xa8]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
add dword [rbp + 0x84], 1
mov eax, dword [rbp + 0x84]
cmp eax, dword [rbp + 0xb0]
jb 0x1400015d4
nop
add rsp, 0x110
pop rbp
ret
Function at 0x140002ac0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
call fcn.1400042b4
lea rcx, str.temp
mov qword [rsp + 0x50], rcx
mov ebx, 4
mov qword [rsp + 0x58], rbx
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.140002100
nop
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
mov r9d, 0xffffffff
lea r8d, [rdi + 3]
lea rdx, [rsp + 0x60]
call fcn.1400043f0
mov r8d, eax
test eax, eax
jne 0x140002b7d
mov edx, dword [rsp + 0x70]
test dl, 1
mov ecx, 0x1ff
mov eax, 0x16d
cmovne ecx, eax
mov dword [rsp + 0x54], ecx
bt edx, 0xa
jae 0x140002b6f
mov eax, dword [rsp + 0x74]
cmp eax, 0xa000000c
je 0x140002ba0
cmp eax, 0xa0000003
jne 0x140002b6f
lea ebx, [rdi + 0xa]
jmp 0x140002ba0
movzx ebx, dl
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
jmp 0x140002ba0
mov dword [rsp + 0x54], 0xffff
sub eax, 2
je 0x140002b99
sub eax, 1
je 0x140002b99
sub eax, 0x32
je 0x140002b99
cmp eax, 0x46
jne 0x140002b9e
mov edi, 1
mov ebx, edi
mov dword [rsp + 0x50], r8d
lea rax, [0x140037c50]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
test ebx, ebx
je 0x140002c1c
cmp ebx, 1
sete bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140002c04
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002bff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002c70
call fcn.140006bf0
test bl, bl
je 0x140002c30
call fcn.140003170
mov rcx, rax
call fcn.140003450
mov eax, 1
jmp 0x140002c4f
mov bl, 1
test r8d, r8d
jne 0x140002c76
jmp 0x140002bc6
lea rcx, str.WamEngine.exe
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140002c30
lea rcx, str..internal_update.bat
call fcn.14000cda8
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140006bd0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
call fcn.14000d12c
nop
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x50]
call fcn.140002a60
int3
Function at 0x140005b78
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140005ba6
xor eax, eax
jmp 0x140005c8c
cmp qword [rcx + 0x68], 0
je 0x140005bb7
call fcn.140005ca8
jmp 0x140005c8c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005bce
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005bd0
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005c02
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140008a80
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140005c86
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140005c39
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140005c62
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000e4c0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140005c86
cmp rsi, rbx
ja 0x140005c40
test rsi, rsi
je 0x140005c86
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000e4c0
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140005d6c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140005d9b
call fcn.140005e2c
jmp 0x140005e12
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140005db2
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140005db4
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140005e0c
test ecx, ecx
jle 0x140005ded
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.140008a80
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140005e0c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140005e0c
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.14000ea20
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400077ac
Capabilities:
Parse pe header

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

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