joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180038c90
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret

Function at 0x18003bcbc
Capabilities:
Hash data with crc32

Disassembly:
mov eax, edx
lea r8, str.SCROLLX
test eax, eax
lea rdx, str.SCROLLY
cmove rdx, r8
jmp fcn.18001a888

Function at 0x18003cdf8
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x18003ce30
and qword [rsp + 0x28], 0
lea r8, [0x18003d200]
and dword [rsp + 0x20], 0
mov r9, rcx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18003ce3e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18003ce3e
test edx, edx
jne 0x18003ce3e
test r8, r8
jne 0x18003ce3e
call fcn.18003edfc
mov eax, 1
add rsp, 0x38
ret

Function at 0x18003dd14
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
lea rax, str.void___cdecl_CInputHooks::Initialize_void_
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
lea rcx, str._prologue__
call fcn.1800015e4
lea rcx, [0x18007c7f8]
add rsp, 0x28
jmp 0x18003df34
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
lea rax, str.void___cdecl_CWndProcHooks::Initialize_void_
mov qword [rbp + 0x10], rax
lea rdx, [rbp + 0x10]
lea rcx, str._prologue__
call fcn.1800015e4
mov rdx, rbx
lea rcx, [0x18003dec4]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rbx]
test rax, rax
jne 0x18003df88
lea rcx, str._wndproc__EnumWindows___returned_nullptr_
call fcn.180001520
jmp 0x18003e05e
mov qword [rbp + 0x10], rax
mov eax, dword [0x18007c520]
test al, 1
jne 0x18003dfab
or eax, 1
mov dword [0x18007c520], eax
lea rcx, [0x180042c44]
call fcn.180041258
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x30]
call fcn.18003e140
mov qword [rbp - 0x50], 1
mov qword [rbp - 0x48], rax
lea rax, str._wndproc__CWndProcHooks::m_Window____
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 0x27
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
movaps xmm1, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x40], xmm1
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.180001988
nop
mov rdx, rax
call fcn.18003ef14
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x18003e042
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003e03d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003e03d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180041270
lea r8, [0x18003dd90]
mov edx, 0xfffffffc
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov qword [0x18007c4a8], rax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x18003df34
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
lea rax, str.void___cdecl_CInputHooks::Initialize_void_
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
lea rcx, str._prologue__
call fcn.1800015e4
lea rcx, [0x18007c7f8]
add rsp, 0x28
jmp 0x18003df34
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
lea rax, str.void___cdecl_CWndProcHooks::Initialize_void_
mov qword [rbp + 0x10], rax
lea rdx, [rbp + 0x10]
lea rcx, str._prologue__
call fcn.1800015e4
mov rdx, rbx
lea rcx, [0x18003dec4]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rbx]
test rax, rax
jne 0x18003df88
lea rcx, str._wndproc__EnumWindows___returned_nullptr_
call fcn.180001520
jmp 0x18003e05e
mov qword [rbp + 0x10], rax
mov eax, dword [0x18007c520]
test al, 1
jne 0x18003dfab
or eax, 1
mov dword [0x18007c520], eax
lea rcx, [0x180042c44]
call fcn.180041258
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x30]
call fcn.18003e140
mov qword [rbp - 0x50], 1
mov qword [rbp - 0x48], rax
lea rax, str._wndproc__CWndProcHooks::m_Window____
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 0x27
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
movaps xmm1, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x40], xmm1
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.180001988
nop
mov rdx, rax
call fcn.18003ef14
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x18003e042
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003e03d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003e03d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180041270
lea r8, [0x18003dd90]
mov edx, 0xfffffffc
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov qword [0x18007c4a8], rax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x18003ee70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rax, str.void___cdecl_CInstance::FreeLibrary_void_
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
lea rcx, str._prologue__
call fcn.1800015e4
and qword [rsp + 0x28], 0
lea r9, [0x180000000]
and dword [rsp + 0x20], 0
lea r8, [0x18003eedc]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18003eec7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x38
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
mov ecx, 0x209
call fcn.18002276c
test al, al
je 0x18003fa1c
cmp byte [rbx], 0
mov rcx, rbx
sete dl
call fcn.18003fa70
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x18003fb1c
xor edx, edx
mov ecx, 0x208
call fcn.18002276c
test al, al
je 0x18003fa0f
add rsp, 0x20
pop rbx
jmp 0x18003ee70
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.18001b09c
mov dword [rax], 0x20
cmp byte [rcx], 0
je 0x18003fb6a
and dword [rax], 0
call fcn.18003cc14
mov rdi, rax
test rax, rax
je 0x18003fb62
xor ecx, ecx
call fcn.18003ccb0
mov rcx, rdi
call fcn.18003cc84
mov rcx, rax
xor edx, edx
call fcn.18003cd14
mov rcx, rbx
call fcn.18003fb78
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18003f3a8
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov r10d, 0x811c9dc5
jmp 0x18003f3d5
movzx eax, al
xor eax, r10d
imul r10d, eax, 0x1000193
inc rdx
mov al, byte [rdx]
test al, al
jne 0x18003f3c5
mov dword [rbp + 0x20], r10d
lea rcx, [rbp + 0x20]
call fcn.18000fc2c
mov rcx, qword [rdi + 0x30]
and rcx, rax
mov rdx, qword [rdi + 0x18]
mov rax, rcx
add rax, rax
mov rax, qword [rdx + rax*8 + 8]
cmp rax, qword [rdi + 8]
je 0x18003f41e
add rcx, rcx
mov rdx, qword [rdx + rcx*8]
jmp 0x18003f416
cmp rax, rdx
je 0x18003f41e
mov rax, qword [rax + 8]
cmp r10d, dword [rax + 0x10]
jne 0x18003f40d
jmp 0x18003f420
xor eax, eax
test rax, rax
cmove rax, qword [rdi + 8]
cmp rax, qword [rdi + 8]
je 0x18003f437
add rax, 0x18
jmp 0x18003f4ef
mov ecx, 0x38
call fcn.180041280
mov qword [rbp + 0x30], rax
mov rdx, rbx
mov rcx, rax
call fcn.18000d0f0
mov rbx, rax
mov qword [rbp + 0x30], rax
mov rcx, rax
call fcn.18000d16c
lea rdx, [rbp + 0x28]
test al, al
je 0x18003f4a0
mov rax, qword [rbx + 0x20]
mov qword [rbp + 0x38], rax
lea r8, [rbp + 0x38]
lea rcx, str._module______
call fcn.18000e9c0
lea r9, [rbp + 0x30]
lea r8, [rbp + 0x20]
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.18003f61c
mov rdi, qword [rax]
add rdi, 0x18
mov rbx, qword [rbp + 0x30]
jmp 0x18003f4d2
lea rcx, str._module___not_found.
call fcn.1800015e4
mov eax, dword [0x18007c99c]
test al, 1
jne 0x18003f4cb
or eax, 1
mov dword [0x18007c99c], eax
lea rcx, [0x180042d0c]
call fcn.180041258
lea rdi, [0x18007c808]
test rbx, rbx
je 0x18003f4ec
mov rcx, rbx
call fcn.18000d094
mov edx, 0x38
mov rcx, rbx
call fcn.180041270
mov rax, rdi
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret
Function at 0x18003f4f8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x20
and qword [rdx], 0
mov rdi, rdx
mov rdx, r8
mov rbx, r9
call fcn.18003f3a8
mov rcx, qword [rax]
test rcx, rcx
jne 0x18003f53e
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, str._interface__Couldnt_retrieve__because__was_not_loaded
call fcn.1800016c8
jmp 0x18003f586
cmp byte [rbx], 0
mov edx, 0x811c9dc5
je 0x18003f55e
mov al, byte [rbx]
movzx eax, al
inc rbx
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [rbx]
test al, al
jne 0x18003f54a
call fcn.18000d19c
lea r9, [rsp + 0x38]
mov qword [rdi], rax
lea r8, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x40]
lea rcx, str._interface__________
call fcn.18003f820
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

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

Function at 0x140038490
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003849d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400384ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140038495
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1400384c5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400384b2
sub eax, 3
jb 0x1400384df
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140038516
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140038506
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140038504
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400384f3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140038452
jmp 0x14003849d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x20a00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140038566
cmp rsi, rcx
jae 0x14003856e
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14003854d
cmp al, 0x8f
ja 0x14003854d
cmp byte [rsi - 2], 0xf
je 0x140038553
sub al, 0xe8
cmp al, 1
ja 0x140038537
cmp rsi, rcx
jae 0x14003856e
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14003853d
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14003856e
lodsb al, byte [rsi]
jmp 0x14003854d
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x36000]
mov eax, dword [rdi]
or eax, eax
je 0x1400385cb
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x3898c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14003857b
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400385c5
mov qword [rbx], rax
add rbx, 8
jmp 0x14003859b
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140038605
cmp al, 0xef
ja 0x1400385f7
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400385d7
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400385e6
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140038659
sub rsp, 0xffffffffffffff80
jmp 0x140009914
Function at 0x6d7d4b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f55e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d4cd8
mov rax, qword [0x6d7f55e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d4b9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d4c25
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d4b80
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d4d0d
mov rax, qword [0x6d7f55e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f55e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d4cf0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d4c1e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d4c80
add dword [0x6d7f55e4], 1
cmp edi, 8
jae 0x6d7d4c53
test dil, 4
jne 0x6d7d4cc4
test edi, edi
je 0x6d7d4c48
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d4cdf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d4c48
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d4c6c
jmp 0x6d7d4c48
add rsi, qword [0x6d7f55e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d4c1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d4c48
xor esi, esi
jmp 0x6d7d4ba7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d4c48
mov rax, qword [0x6d7f55e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d5460
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f58c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f58a0]
test rbx, rbx
je 0x6d7d54b4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d54ab
test rsi, rsi
je 0x6d7d54ab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d5490
lea rcx, [0x6d7f58c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d56f0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7d5700
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7d5710
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 0x6d7d5751
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d5748
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d5753
add rax, 0x28
cmp rax, r9
jne 0x6d7d5734
xor eax, eax
ret

Function at 0x6d7d57f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f21f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d585d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d585d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d585d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d5854
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d585f
add rax, 0x28
cmp rax, r9
jne 0x6d7d5840
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d5960
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f21f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d5980
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d5978
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d59dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d59d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d59e4
add rax, 0x28
cmp rax, r9
jne 0x6d7d59c0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d5a00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f21f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d5a6e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d5a6e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d5a6e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d5a6e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d5a65
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d5a75
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d5a50
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d5a88
jmp 0x6d7d5a6e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d5a96
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d5a6e
test r9d, r9d
jg 0x6d7d5a80
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d5dd0
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001dac
Capabilities:
Parse pe header

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

Function at 0x140953f48
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409540cf
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140953f79
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140953f5f
add dl, dl
jne 0x140953f86
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140953fe6
xor eax, eax
add dl, dl
jne 0x140953f95
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14095409d
add dl, dl
jne 0x140953fa6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140953fb3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140953fc0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140953fcd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140953fda
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140953f6e
mov eax, 1
add dl, dl
jne 0x140953ff6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140954003
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140953feb
sub eax, ebx
mov ebx, 1
jne 0x14095403c
mov ecx, 1
add dl, dl
jne 0x14095401e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14095402b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140954013
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140953f6e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140954058
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140954065
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14095404d
cmp eax, 0x7d00
jae 0x14095408b
cmp eax, 0x500
jb 0x140954086
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140953f6e
cmp eax, 0x7f
ja 0x14095408e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140953f6e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409540c2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140953f6e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180076694
Capabilities:
Encode data using xor

Disassembly:
jmp 0x18010b590
mov rax, rcx
neg rcx
test rax, 7
je 0x18010b5ad
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x18010b608
test al, 7
jne 0x18010b5a0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x18010b5c1
mov rdx, qword [rax - 8]
test dl, dl
je 0x18010b632
test dh, dh
je 0x18010b62c
shr rdx, 0x10
test dl, dl
je 0x18010b626
test dh, dh
je 0x18010b620
shr rdx, 0x10
test dl, dl
je 0x18010b61a
test dh, dh
je 0x18010b614
shr edx, 0x10
test dl, dl
je 0x18010b60e
test dh, dh
jne 0x18010b5c1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1800769c3
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x180097bc0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.180097540
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180097bff
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1801b2020]
jmp 0x180097c09
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret