joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e850
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1400363c0]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r15, r9
mov r14, r8
mov rsi, rdx
mov rbx, qword [rbp + 0x3f8]
xor r12d, r12d
mov byte [rsp + 0x30], r12b
movdqa xmm0, xmmword [0x14002b0f0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r12w
mov dword [rbx], r12d
mov edi, 0x208
mov r8d, edi
xor edx, edx
lea rcx, [rsp + 0x60]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x170]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rdx, [rsp + 0x60]
mov edi, 0x104
mov ecx, edi
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetTempPathW]
cmp eax, edi
jb 0x14001e908
lea edx, [rdi + 0x6c]
lea r8, str.onecoreenduserupgradeenablers_shellhelpersdownloadhelper.cpp
mov rcx, qword [rbp + 0x3c8]
call fcn.140006fb0
mov edi, eax
jmp 0x14001e954
lea r9, [rbp + 0x170]
xor r8d, r8d
lea rdx, str.sedpack_
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetTempFileNameW]
test eax, eax
jne 0x14001e92f
mov edx, 0x171
jmp 0x14001e8f1
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x40]
call fcn.14000e7e4
lea rdx, str..cab
lea rcx, [rsp + 0x40]
call fcn.14000e7e4
mov edi, r12d
test edi, edi
jns 0x14001e960
or dword [rbx], 1
jmp 0x14001ea7a
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov r9, rsi
call fcn.14001eaa8
mov edi, eax
test eax, eax
jns 0x14001e987
or dword [rbx], 2
jmp 0x14001ea7a
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, r14
call fcn.14001ed0c
mov edi, eax
test eax, eax
jns 0x14001e9b3
or dword [rbx], 4
jmp 0x14001ea7a
cmp byte [rsp + 0x30], r12b
jne 0x14001e9c7
mov edi, 0x80070143
or dword [rbx], 8
jmp 0x14001ea7a
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call fcn.14001eec8
mov edi, eax
test eax, eax
jns 0x14001e9eb
or dword [rbx], 0x10
jmp 0x14001ea7a
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov r9, r15
lea r8, [0x14001f030]
xor edx, edx
call qword [sym.imp.ext_ms_win_setupapi_classinstallers_l1_1_2.dll_SetupIterateCabinetW]
test eax, eax
jne 0x14001ea2c
mov rcx, qword [rbp + 0x3c8]
lea r8, str.onecoreenduserupgradeenablers_shellhelpersdownloadhelper.cpp
mov edx, 0x14f
call fcn.140006fb0
jmp 0x14001ea2f
mov eax, r12d
test eax, eax
jns 0x14001ea36
or dword [rbx], 0x20
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x14001ea6d
mov rcx, qword [rbp + 0x3c8]
lea r8, str.onecoreenduserupgradeenablers_shellhelpersdownloadhelper.cpp
mov edx, 0x155
call fcn.140006fb0
mov edi, eax
jmp 0x14001ea70
mov edi, r12d
test edi, edi
jns 0x14001ea7a
or dword [rbx], 0x40
mov edi, r12d
lea rcx, [rsp + 0x40]
call fcn.140009aa4
mov eax, edi
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14001f340
add rsp, 0x490
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14001f310
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
Function at 0x140110010
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x14022a578]
mov ecx, dword [0x14021ef3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14011004d
lea rcx, [0x14022a570]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140100810
lea rcx, [0x14022a578]
call fcn.140110b10
cmp dword [0x14022a578], 0xffffffff
jne 0x140110039
mov qword [0x14022a570], 0
lea rcx, [0x14022a570]
xor edx, edx
call fcn.14009cb70
lea rcx, [0x14022a578]
call fcn.140110ba8
jmp 0x140110039

Function at 0x1401128b0
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]
add r14, 0x18
mov r15, qword [r14]
mov r12, r15
add r12, 0x10
mov r14, qword [r12]
push rax
mov r12, qword [r14 + 0x30]
cmp r12, 0
je 0x14011290a
mov r15, qword [r14 + 0x60]
mov rax, qword [r15]
and eax, 0xdf00df
mov r15, qword [r15 + 0xb]
add r15d, eax
shr r15d, 2
sub r15d, 0xc914cd2
cmp r15, 0
je 0x140112912
mov r14, qword [r14]
jmp 0x1401128db
mov r14d, dword [r12 + 0x3c]
add r14, r12
add r14, 0x10
mov r15d, dword [r14 + 0x78]
add r15, r12
push r10
mov eax, dword [r15 + 0x20]
add rax, r12
mov r10d, dword [rax]
add r10, r12
mov r14d, dword [r10 + 0xb]
sub r14d, 0x746365
cmp r14d, 0
jne 0x140112947
jmp 0x140112955
inc rax
inc rax
inc rax
inc rax
jmp 0x14011292e
mov r14d, dword [r15 + 0x20]
sub rax, r14
sub rax, r12
shr eax, 1
mov r14d, dword [r15 + 0x24]
add r14, rax
add r14, r12
mov eax, dword [r14]
mov r14d, dword [r15 + 0x1c]
mov esi, dword [rdi + 0x1c]
shl eax, 0x10
shr eax, 0xe
add r14, r12
add r14, rax
mov eax, dword [r14]
add rax, r12
mov r14d, 0x312000
add r14, r11
push r12

Function at 0x14011ec34
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14011ed64
Function at 0x140002fd4
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140002da8
xor ecx, ecx
call qword [0x14000b078]
test rax, rax
je 0x140002da8
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002da8
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002da8
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002da8
cmp dword [rcx + 0x84], 0xe
jbe 0x140002da8
cmp dword [rcx + 0xf8], esi
je 0x140002da8
mov ecx, r14d
call fcn.140002ef0
mov ecx, 2
call fcn.140005548
nop
cmp byte [0x140014d60], 0
jne 0x140002e72
mov r15d, 1
mov eax, r15d
xchg dword [0x140014d54], eax
test ebx, ebx
jne 0x140002e1b
mov rdi, qword [0x140014018]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140014d58]
cmp rcx, rax
je 0x140002e12
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400015e8]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140014d70]
jmp 0x140002e27
cmp ebx, r15d
jne 0x140002e2d
lea rcx, [0x140014d88]
call fcn.14000353c
nop
test ebx, ebx
jne 0x140002e44
lea rdx, [0x14000b2a0]
lea rcx, [0x14000b280]
call fcn.140002c68
lea rdx, [0x14000b2b0]
lea rcx, [0x14000b2a8]
call fcn.140002c68
movzx eax, byte [0x140014d60]
test esi, esi
cmove eax, r15d
mov byte [0x140014d60], al
jmp 0x140002e72
mov ecx, 2
call fcn.14000559c
test esi, esi
jne 0x140002e89
mov ecx, r14d
call fcn.140002ea4
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140002d38
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140514450]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140514460]
mov dword [rax], 1
mov rax, qword [0x140514470]
mov dword [rax], 1
mov rax, qword [0x1405143f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140514440]
mov dword [0x140518020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140514510]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1405144f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1405143a0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001620
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
call dbg.__main
mov dword [rbp - 0x1c], 0
mov eax, dword [0x1400139f8]
mov eax, eax
mov r9d, 4
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
mov eax, dword [0x1400139f8]
mov edx, eax
mov rax, qword [rbp - 8]
mov r8, rdx
lea rdx, [0x140003020]
mov rcx, rax
call sym.memmove
mov eax, dword [0x1400139f8]
mov ecx, eax
lea rdx, [rbp - 0x1c]
mov rax, qword [rbp - 8]
mov r9, rdx
mov r8d, 0x20
mov rdx, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
je 0x1400016f6
mov rax, qword [rbp - 8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x1400019d0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001a40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140518104]
mov r12, rcx
test ebx, ebx
jle 0x140001b70
mov rax, qword [0x140518108]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140001a8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140001b15
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140001a70
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001b92
mov rax, qword [0x140518108]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140518108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001b20
add dword [0x140518104], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x140518108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140001a98
mov rax, qword [0x140518108]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002110
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x140518160]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140518140]
test rbx, rbx
je 0x14000216c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002163
test r12, r12
je 0x140002163
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002148
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400023a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400023b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400023c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400023d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002415
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000240c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002417
add rax, 0x28
cmp rax, r9
jne 0x1400023f8
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400024b0
mov rdx, qword [0x1405143f0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000249e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000249e
cmp word [rax + 0x18], 0x20b
jne 0x14000249e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400024b0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002489
add r12, 0x28
cmp r12, rsi
je 0x1400024b0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002480
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x1400024c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1405143f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400024e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400024e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002535
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000252c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400024e0
add rax, 0x28
cmp rax, r9
jne 0x140002518
xor eax, eax
ret

Function at 0x140002540
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1405143f0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002560
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002568
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002560
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002580
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1405143f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400025a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400025a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400025a0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400025e8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400025df
test rcx, rcx
je 0x1400025a0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400025d0
xor eax, eax
ret
Function at 0x1400025f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1405143f0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002610
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002618
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140002630
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1405143f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002650
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002658
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002650
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002650
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000269c
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400026b0
add rdx, 0x28
cmp rdx, r9
jne 0x140002688
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400026c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1405143f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400026e2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400026f0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026e2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400026e2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400026e2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000273d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002750
add rdx, 0x28
cmp r10, rdx
jne 0x140002728
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000275f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000276f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002746
test ecx, ecx
jg 0x140002758
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140003fc0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
mov r15, r8
mov ecx, 0x100
mov rsi, rdx
xor edi, edi
call fcn.140050bb0
xor edx, edx
mov r8d, 0xff
mov rbx, rax
lea rcx, [rax + 1]
call fcn.140053880
mov eax, edi
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
mov byte [rcx], al
lea rcx, [rcx + 1]
inc eax
cmp eax, 0x100
jl 0x140004010
mov r12, qword [r13 + 8]
mov r8d, edi
sub r12, qword [r13]
mov r10d, edi
mov r9, rbx
mov r11, rdi
mov ebp, 0x100
nop dword [rax + rax]
movzx r14d, byte [r9]
xor edx, edx
mov rax, r11
div r12
mov rax, qword [r13]
movzx edx, byte [rdx + rax]
add edx, edi
add edx, r14d
and edx, 0x800000ff
jge 0x14000406b
dec edx
or edx, 0xffffff00
inc edx
movsxd rdi, edx
inc r11
movzx eax, byte [rdi + rbx]
mov byte [r9], al
inc r9
mov byte [rdi + rbx], r14b
sub rbp, 1
jne 0x140004040
test r15, r15
je 0x1400040f3
nop word [rax + rax]
inc r8d
and r8d, 0x800000ff
jge 0x1400040a9
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd rdx, r8d
movzx r9d, byte [rdx + rbx]
add r10d, r9d
and r10d, 0x800000ff
jge 0x1400040ca
dec r10d
or r10d, 0xffffff00
inc r10d
movsxd rcx, r10d
movzx eax, byte [rcx + rbx]
mov byte [rdx + rbx], al
mov byte [rcx + rbx], r9b
movzx ecx, byte [rdx + rbx]
add rcx, r9
movzx eax, cl
movzx r9d, byte [rax + rbx]
xor byte [rsi], r9b
inc rsi
sub r15, 1
jne 0x140004090
test rbx, rbx
je 0x140004105
mov edx, 0x100
mov rcx, rbx
call fcn.140050bec
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001ce34
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 0x14001ce62
xor eax, eax
jmp 0x14001cf48
cmp qword [rcx + 0x68], 0
je 0x14001ce73
call fcn.14001cf64
jmp 0x14001cf48
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001ce8a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001ce8c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001cebe
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400531e0
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 0x14001cf42
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14001cef5
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 0x14001cf1e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14008a56c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14001cf42
cmp rsi, rbx
ja 0x14001cefc
test rsi, rsi
je 0x14001cf42
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14008a56c
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 0x140042e18
Capabilities:
Encode data using xor
Hash data using fnv

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

Function at 0x140042e2c
Capabilities:
Encode data using xor
Hash data using fnv

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

Function at 0x1400519e4
Capabilities:
Parse pe header

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

Function at 0x140097cf4
Capabilities:
Parse pe header

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