joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008470
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400084a4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140008490
ret

Function at 0x1400093f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov rax, qword [0x14005f010]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebx, ebx
lea r8, [0x140023120]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
jne 0x140009434
lea eax, [rbx - 3]
jmp 0x1400094e6
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x140009451
mov ebx, 0xfffffffd
jmp 0x1400094d9
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
test eax, eax
js 0x140009447
je 0x1400094d9
movsxd rbx, eax
lea rdx, [0x140022860]
mov qword [rsp + 0x40], rdi
lea rcx, [rbx + 1]
call fcn.14001d414
mov rdi, rax
test rax, rax
jne 0x140009485
lea ebx, [rax - 2]
jmp 0x1400094d4
xor r8d, r8d
mov byte [rbx + rax], 0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rsi
mov r8, rbx
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
je 0x1400094bf
mov rcx, rdi
call fcn.14001d170
mov ebx, 0xfffffffd
jmp 0x1400094d4
mov r8, rax
mov rdx, rdi
call fcn.14000d450
mov rcx, rdi
mov ebx, eax
call fcn.14001d170
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001d150
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x140017270
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140017292
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400172a1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400172c4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400172c6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140017302
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001739e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001733d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14001737e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14001739e
cmp rbx, rax
ja 0x140017350
test rbx, rbx
je 0x14001739e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add al, ch
add byte [rax], al
add bh, bh
Function at 0x140001384
Capabilities:
Parse pe header

Disassembly:
jmp 0x140020e6c
xor r8d, r8d
xor edx, edx
jmp 0x140020b5c

Function at 0x140002117
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140075ee0
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140095030]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x140097ad0]
xor r11d, r11d
lea rdi, [0x140080924]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x140075f50
mov rax, 0xfffffffffffffffe
jmp 0x14007609d
cmp word [r10 + 6], r11w
jne 0x140075fbf
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x140075f7a
test r14, r14
je 0x140075f6b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x14007609d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x140075f88
mov r8b, 2
jmp 0x140075fa6
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x140075f96
mov r8b, 3
jmp 0x140075fa6
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x140076092
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x140075fe8
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x140076092
cmp bl, bpl
jb 0x140076092
cmp bl, r8b
jae 0x140076092
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x140076015
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x140076092
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x140075ff7
cmp r9, rbp
jae 0x140076041
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x140075f44
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x140076092
cmp edx, 0x110000
jae 0x140076092
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x140076092
test r14, r14
je 0x140076080
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.140003918
jmp 0x14007609d
mov rdx, rsi
mov rcx, r10
call fcn.140003f49
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140002568
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000215d
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14000a1e4
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000a271
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14000a271
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a271
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14000a258
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000a252
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000a25a
add rdx, 0x28
jmp 0x14000a237
xor edx, edx
test rdx, rdx
jne 0x14000a263
xor al, al
jmp 0x14000a277
cmp dword [rdx + 0x24], 0
jge 0x14000a26d
xor al, al
jmp 0x14000a277
mov al, 1
jmp 0x14000a277
xor al, al
jmp 0x14000a277
add rsp, 0x18
ret

Function at 0x14000269e
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140017e10
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400818e8]
mov ecx, 2
lea r8, [0x1400818e0]
lea rdx, str.FlsGetValue
call fcn.1400178e0
mov ecx, ebx
test rax, rax
je 0x140017e4a
add rsp, 0x20
pop rbx
jmp qword [0x1400a0020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1400027e3
Capabilities:
Query environment variable

Disassembly:
jmp 0x140059c50
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140059c80
xor eax, eax
jmp 0x140059d43
mov rbp, rbx
cmp word [rax], si
je 0x140059ca5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140059c8c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140059c88
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140003134
movsxd r14, eax
test eax, eax
jne 0x140059ce3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140059c79
mov rcx, r14
call fcn.140001037
mov rdi, rax
test rax, rax
jne 0x140059cfc
xor ecx, ecx
call fcn.140001168
jmp 0x140059cd8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140003134
test eax, eax
jne 0x140059d2d
mov rcx, rdi
call fcn.140001168
jmp 0x140059d37
xor ecx, ecx
call fcn.140001168
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400027ed
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140017d60
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1400818a8]
xor ecx, ecx
lea r8, [0x1400818a0]
lea rdx, str.FlsAlloc
call fcn.1400178e0
test rax, rax
je 0x140017d99
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400a0020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x14000286a
Capabilities:
Get geographical location

Disassembly:
jmp 0x140062604
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x140085408]
mov rbp, rcx
lea r8, [0x140085400]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.140061b24
test rax, rax
je 0x140062664
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1400a0030]
jmp 0x14006267e
xor edx, edx
mov rcx, rbp
call fcn.1400021ad
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140002874
Capabilities:
Terminate process

Disassembly:
jmp 0x14007906c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400029aa
Capabilities:
Parse pe header

Disassembly:
jmp 0x140020e00
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x140020b5c

Function at 0x140002b3a
Capabilities:
Parse pe header

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

Function at 0x140002e3c
Capabilities:
Parse pe header

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

Function at 0x1400030ad
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140078da0
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x140078de1
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x140078dd5
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x140078de3
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x140078dc3
xor eax, eax
ret
Function at 0x140003297
Capabilities:
Terminate process

Disassembly:
jmp 0x140054ec4
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140054ede
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140003927
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140003a08
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140017e68
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140081908]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x140081900]
call fcn.1400178e0
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140017ea8
call qword [0x1400a0020]
jmp 0x140017eae
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003a99
Capabilities:
Set environment variable

Disassembly:
jmp 0x140068fd4
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400020ef
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14006905e
cmp byte [rbp - 0x21], r15b
je 0x140069059
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140069094
call fcn.140003e36
test eax, eax
jne 0x140069080
cmp byte [rbp - 0x21], r15b
je 0x140069078
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140069094
cmp byte [rbp - 0x21], r15b
je 0x140069091
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140004002
test eax, eax
jne 0x140069134
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400020ef
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400690d3
cmp byte [rbp - 0x21], r15b
je 0x140069108
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140069108
call fcn.140003e36
test eax, eax
jne 0x1400690f4
cmp byte [rbp - 0x21], r15b
je 0x1400690ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140069108
cmp byte [rbp - 0x21], r15b
je 0x140069105
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140004002
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140069134
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140069137
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140069145
mov rcx, rdi
call fcn.140001168
cmp byte [rbp + 0x3f], r15b
je 0x140069154
mov rcx, qword [rbp + 0x27]
call fcn.140001168
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140003b89
Capabilities:
Parse pe header

Disassembly:
jmp 0x140020df0
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 0x140020bcb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140020bcb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140020bcb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140020bcb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140020bcb
cmp dword [rcx + 0x84], 0xe
jbe 0x140020bcb
cmp dword [rcx + 0xf8], 0
je 0x140020bcb
mov ecx, ebx
call fcn.140020d34
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.1400208ac
nop
cmp dword [rbp + 0x20], 0
je 0x140020c19
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140020c54
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140020b5c

Function at 0x14000a7a4
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000a7a4
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a7ee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a7ee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a7ee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a7ee
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a7ee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000a7f0
xor al, al
add rsp, 0x28
ret
Function at 0x140002f80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 fcn.140004910
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.140004910
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 0x140002ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140003120
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000303b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400030c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003020
mov rcx, rbx
call fcn.140003a40
mov rdi, rax
test rax, rax
je 0x140003142
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003b80
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003127
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400030be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400030d0
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400030be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002f80
nop dword [rax]
xor esi, esi
jmp 0x140003048
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002f80
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002f80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400036b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000370c
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 0x140003703
test rsi, rsi
je 0x140003703
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400036e8
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 0x140003a40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006a30]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003a60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003a68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003a60
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003abd
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]
mov rdx, r8
cmp rcx, r8
jb 0x140003ab4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003a60
add rax, 0x28
cmp rax, r9
jne 0x140003aa0
xor eax, eax
ret

Function at 0x140003ac0
Capabilities:
Parse pe header

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

Function at 0x140003b80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a30]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003b9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003ba8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x141de7058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x141de71df
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 0x141de7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141de706f
add dl, dl
jne 0x141de7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141de70f6
xor eax, eax
add dl, dl
jne 0x141de70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141de71ad
add dl, dl
jne 0x141de70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141de70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141de70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141de70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141de70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141de707e
mov eax, 1
add dl, dl
jne 0x141de7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141de7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141de70fb
sub eax, ebx
mov ebx, 1
jne 0x141de714c
mov ecx, 1
add dl, dl
jne 0x141de712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141de713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141de7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141de707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141de7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141de7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141de715d
cmp eax, 0x7d00
jae 0x141de719b
cmp eax, 0x500
jb 0x141de7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141de707e
cmp eax, 0x7f
ja 0x141de719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141de707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141de71d2
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 0x141de707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20