joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400dc5a0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14011d789], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x1400dc628
lea rdx, [0x140107bfa]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400dc740
mov rsi, qword [0x14011d640]
jmp 0x1400dc5e5
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x1400dc5e0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, r12
mov rdx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.1400c9f70
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14011d640], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x14011d640], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x14011d640], rcx
test eax, eax
je 0x1400dc728
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop word [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x1400dc690
not eax
cmp r9d, eax
jne 0x1400dc7a8
mov byte [0x14011d789], 1
jmp 0x1400dc5bd
cmp byte [0x14011d788], 0
jne 0x1400dc5d4
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x14011e0e8], rax
call rbx
mov qword [0x14011e0e0], rax
call rbx
mov qword [0x14011e0d8], rax
call rbx
mov qword [0x14011e0d0], rax
call rbx
mov qword [0x14011e0c8], rax
call rbx
mov qword [0x14011e0c0], rax
call rbx
mov qword [0x14011e0b8], rax
call rbx
mov byte [0x14011d788], 1
mov qword [0x14011e0b0], rax
jmp 0x1400dc5d4
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400e6280
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400f75e0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400f75e0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1400e6f32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14011e5a8]
test eax, eax
je 0x1400e6fca
lea rax, [0x14011e580]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14011e5b0]
mov qword [rbp - 8], rax
jmp 0x1400e6fae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400e6fa2
cmp qword [rbp - 0x10], 0
je 0x1400e6fa2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400e6f68
lea rax, [0x14011e580]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400e6fcb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400e70d0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400e70f8
mov eax, 0
jmp 0x1400e7146
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400e7121
mov eax, 0
jmp 0x1400e7146
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400e7141
mov eax, 0
jmp 0x1400e7146
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400e714c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400e71ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400e71c1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400e71c1
mov rax, qword [rbp - 8]
jmp 0x1400e71df
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400e7194
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001970
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
jmp 0x1400d4da0
movabs rcx, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400d4dd3
movzx eax, byte [r9 + rdx]
movabs r10, 0x100000001b3
xor rcx, rax
inc r9
imul rcx, r10
cmp r9, r8
jb 0x1400d4db5
mov eax, ecx
ret

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

Disassembly:
jmp 0x1400c7430
sub r8, rdx
movabs rcx, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x1400c7469
movzx eax, byte [r9 + rdx]
movabs r10, 0x100000001b3
xor rcx, rax
inc r9
imul rcx, r10
cmp r9, r8
jb 0x1400c744b
mov eax, ecx
ret

Function at 0x140002500
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400de0b8
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x14017a7f8]
mov ecx, 6
lea r8, [0x14017a7f0]
lea rdx, str.FlsGetValue
call fcn.1400dd898
mov rdi, rax
test rax, rax
je 0x1400de0f9
mov rcx, rax
call fcn.140009160
mov ecx, ebx
call rdi
jmp 0x1400de101
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400049b0
Capabilities:
Query environment variable

Disassembly:
jmp 0x14013417c
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 esi, esi
mov rbx, rax
test rax, rax
je 0x1401341fb
jmp 0x1401341b7
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x1401341a6
lea rax, [rax + rcx*2]
add rax, 2
cmp word [rax], si
jne 0x1401341a2
sub rax, rbx
add rax, 2
sar rax, 1
lea rbp, [rax + rax]
mov rcx, rbp
call fcn.140006240
mov rdi, rax
test rax, rax
je 0x1401341eb
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.14000bbd0
mov rsi, rdi
xor ecx, ecx
call fcn.140012190
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
jmp 0x1400c73e0
sub r8, rdx
movabs rcx, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x1400c7419
movzx eax, byte [r9 + rdx]
movabs r10, 0x100000001b3
xor rcx, rax
inc r9
imul rcx, r10
cmp r9, r8
jb 0x1400c73fb
mov eax, ecx
ret
Function at 0x1400060a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14010aeb0
sub rsp, 0x58
mov rax, qword [0x1401b80a0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov r8, rdx
mov eax, r9d
mov r10, rcx
cmp rax, 0x20
lea r11d, [r9 + 1]
jae 0x14010af4a
mov byte [rsp + rax + 0x20], r9b
add rax, r11
cmp rax, 0x20
jl 0x14010aed7
mov al, byte [rdx]
jmp 0x14010af0a
movzx edx, al
shr rdx, 3
movzx eax, al
and eax, 7
movzx ecx, byte [rsp + rdx + 0x20]
bts ecx, eax
add r8, r11
mov byte [rsp + rdx + 0x20], cl
mov al, byte [r8]
test al, al
jne 0x14010aeeb
or byte [rsp + 0x20], r11b
jmp 0x14010af1b
add r9d, r11d
add r10, r11
movzx r8d, byte [r10]
mov edx, r11d
mov ecx, r8d
shr r8, 3
and ecx, 7
shl edx, cl
test byte [rsp + r8 + 0x20], dl
je 0x14010af15
movsxd rax, r9d
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140010cc0
add rsp, 0x58
ret
call fcn.140005d70
int3

Function at 0x140006100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140141688
sub rsp, 0x58
mov rax, qword [0x1401b80a0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov r9, rdx
cmp rax, 0x20
mov r8, rcx
jae 0x140141720
mov byte [rsp + rax + 0x20], 0
inc rax
cmp rax, 0x20
jl 0x1401416a7
mov al, byte [rdx]
jmp 0x1401416da
movzx edx, al
shr rdx, 3
movzx eax, al
and eax, 7
movzx ecx, byte [rsp + rdx + 0x20]
bts ecx, eax
inc r9
mov byte [rsp + rdx + 0x20], cl
mov al, byte [r9]
test al, al
jne 0x1401416bb
jmp 0x1401416ff
movzx eax, r9b
mov edx, 1
movzx ecx, r9b
and ecx, 7
shr rax, 3
shl edx, cl
test byte [rsp + rax + 0x20], dl
jne 0x14014171b
inc r8
mov r9b, byte [r8]
test r9b, r9b
jne 0x1401416e0
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140010cc0
add rsp, 0x58
ret
mov rax, r8
jmp 0x140141709
call fcn.140005d70
int3
Function at 0x14000876b
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
jmp 0x14000b657
xor eax, eax
jmp 0x14000a24d
add byte [rax], al
mov rcx, qword [rsp + 0x20]
call fcn.14000c150
jmp 0x14000bc92
mov ecx, 0xc1
call qword [0x140082dc7]
xor eax, eax
shr cl, 0x67
sub al, byte [rax]
invalid
mov qword [rsp + 0x68], rax
jmp 0x140007df5
test eax, eax
jne 0x140008f4e
jmp 0x1400072cb
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x58]
call fcn.14000c902
jmp 0x14000de12
cmp qword [rsp + 0x68], 0
jne 0x14000df0b
jmp 0x14000d66e
mov rax, qword [rsp + 0x30]
call qword [rax + 0x68]
mov r8d, 0x50
mov edx, 8
mov rcx, rax
mov rax, qword [rsp + 0x30]
call qword [rax + 0x70]
mov qword [rsp + 0x20], rax
jmp fcn.140009570
jmp 0x14000b70c
test eax, eax
jne 0x14000cd35
jmp 0x14000840e
jmp 0x14000b70c
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x54]
push rsp
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
call qword [rax]
mov qword [rsp + 0x90], rax
jmp 0x14000d661
cmp qword [rsp + 0x30], 0
jne 0x14000bf9a
add byte [rax], al
jmp 0x140009fbf
cmp qword [rsp + 0x28], 0
jne 0x14000c053
jmp 0x14000d51b
mov qword [rsp + 0x18], r8
cmp qword [rsp + 0x30], 0
je 0x14000c7c7
add byte [rax], al
jmp 0x140008216
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0xa8]
test al, 0
add byte [rax], al
jmp 0x14000d31c
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
mov rax, qword [rsp + 0x30]
call qword [rax]
invalid
invalid
invalid
invalid

Function at 0x140008770
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xe8
add byte [rax], al
add byte [rax - 0x39], cl
and al, 0x20
add byte [rax], al
add byte [rax], al
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x58], 0
jmp 0x14000a961

Function at 0x14000a5de
Capabilities:
Enumerate pe sections

Disassembly:
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
add byte [rdi], cl
mov bh, 0x40
invalid
cmp dword [rsp + 0x24], eax
jge 0x140009278
jmp 0x140009dc1
mov rax, qword [rax]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx]
movzx ecx, word [rcx + 0x14]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x88]
mov byte [rax], al
add byte [rax], al
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x24], 0
jmp 0x14000999d
jmp 0x140008716
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
and al, 8
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x88]
add cl, ch
invalid
invalid
invalid
invalid
Function at 0x14000accd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
jmp 0x14000d537

Function at 0x14000cc41
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, 1
jmp 0x14000bc8a
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
add byte [rax], al
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x98]
cmp qword [rax + 0x10], 0
jne fcn.14000de40
jmp 0x140009c65

Function at 0x14000cfe0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x100]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x140009e63
invalid
scasb al, byte [rdi]
invalid
invalid
invalid
jmp 0x14000ad5f
xor eax, eax
jmp 0x14000a24d
mov rcx, qword [rsp + 0x108]
call fcn.140009d89
jmp 0x14000abad

Function at 0x14000d5c0
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x14000c440
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x14000cace

Function at 0x14000dd00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add byte [rax], al
pop rdi
pop rsi
ret
Function at 0x14000de50
Capabilities:
Inspect section memory permissions

Disassembly:
mov r8d, 0x4000
mov rax, qword [rsp + 0x98]
mov rdx, qword [rax + 0x10]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax]
call qword [0x140083476]
jmp 0x140008321
std
adc dword [rax], eax
invalid
mov dword [rsp + 0x24], 1
jmp 0x14000cb68
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
mov ecx, dword [rcx + 0x40]
cmp dword [rax + 0x38], ecx
jne 0x140009581
jmp 0x140009169
mov eax, 1
jmp 0x14000bc8a
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x18]
and eax, 0x20000000
add byte [rax], al
add byte [rax], ah
test eax, eax
je 0x140009815
jmp 0x1400073f3
mov r8d, 0x4000
mov rax, qword [rsp + 0x98]
cwde
add byte [rax], al
add byte [rax - 0x75], cl
push rax
adc byte [rax - 0x75], cl
test byte [rax + rbx*4], ah
add byte [rax], al
add byte [rax - 0x75], cl
or byte [rax - 0x75], cl
and al, 0x38
call qword [rax + 8]
jmp 0x140008321
mov rax, qword [rsp + 0x98]
cmp dword [rax + 0x1c], 0
jne 0x140009169
jmp 0x140007843
mov dword [rsp + 0x28], 0
jmp 0x14000da9d
mov dword [rsp + 0x2c], 0
jmp 0x140008dfe
add byte [rax], al
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x54], 8
and al, 0x54
or byte [rax], al
add byte [rax], al
mov dword [rsp + 0x58], 2
mov dword [rsp + 0x5c], 4
mov dword [rsp + 0x60], 0x10
jmp 0x14000b4f9
cmp qword [rsp + 0x38], 0
je 0x1400070fc
jmp 0x1400088b6
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x40]
mov qword [rsp + 0x70], rax
xor edx, edx
mov rcx, qword [rsp + 0x98]
mov rax, qword [rcx + 0x10]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x70]
div rcx
mov rax, rdx
test rax, rax
je 0x140009169
sti
invalid
invalid
jmp 0x140008321
mov dword [rsp + 0x24], 0
jmp 0x14000cb68
add byte [rax], al
mov eax, 1
jmp 0x14000bc8a
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx + 8]
cmp qword [rax], rcx
je 0x140008ac7
jmp 0x140009c8e
mov dword [rsp + 0x2c], 1
jmp 0x140008dfe
mov dword [rsp + 0x64], 0x80
mov dword [rsp + 0x68], 0x20
mov dword [rsp + 0x6c], 0x40
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x10
lea rax, [rsp + rax + 0x50]
movsxd rcx, dword [rsp + 0x44]
invalid
and al, 0x44
lea rax, [rax + rcx*8]
movsxd rcx, dword [rsp + 0x48]
jmp fcn.14000d350
add rsp, 0x88
ret
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x18]
and eax, 0x40000000
test eax, eax
je 0x140008c85
jmp 0x14000ccaa
mov dword [rsp + 0x28], 1
jmp 0x14000da9d
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x18]
and eax, 0x80000000
test eax, eax
jne 0x14000b2e4
jmp 0x140008ce5
test eax, eax
jne 0x14000a842
jmp 0x1400085b4
Function at 0x14000e830
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401274ec
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140180d90]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x140180d88]
call fcn.140126a8c
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x14012752c
call qword [0x1401d0010]
jmp 0x140127532
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000e940
Capabilities:
Read file on windows

Disassembly:
jmp 0x14013ab74
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15d, r8d
mov r13, rdx
movsxd rsi, ecx
cmp esi, 0xfffffffe
jne 0x14013abb0
call fcn.140011200
and dword [rax], 0
call fcn.14000a4f0
mov dword [rax], 9
jmp 0x14013ac75
test ecx, ecx
js 0x14013ac5d
cmp esi, dword [0x1401bd48c]
jae 0x14013ac5d
mov r14, rsi
mov r12, rsi
sar r12, 6
lea rax, [0x1401bcfc0]
and r14d, 0x3f
shl r14, 6
mov rax, qword [rax + r12*8]
movzx ecx, byte [rax + r14 + 0x38]
and ecx, 1
je 0x14013ac5d
xor eax, eax
cmp r8d, 0x7fffffff
setbe al
test eax, eax
jne 0x14013ac11
call fcn.140011200
and dword [rax], 0
call fcn.14000a4f0
mov dword [rax], 0x16
jmp 0x14013ac70
mov ecx, esi
call fcn.14000d190
or ebx, 0xffffffff
lea rax, [0x1401bcfc0]
mov rax, qword [rax + r12*8]
test byte [rax + r14 + 0x38], 1
jne 0x14013ac43
call fcn.14000a4f0
mov dword [rax], 9
call fcn.140011200
and dword [rax], 0
jmp 0x14013ac52
mov r8d, r15d
mov rdx, r13
mov ecx, esi
call fcn.1400066f0
mov ebx, eax
mov ecx, esi
call fcn.1400030a0
mov eax, ebx
jmp 0x14013ac78
call fcn.140011200
and dword [rax], 0
call fcn.14000a4f0
mov dword [rax], 9
call fcn.14000fb40
or eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret

Function at 0x14000eeb0
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401273e0
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140180d60]
mov ecx, 3
lea r8, [0x140180d58]
lea rdx, str.FlsAlloc
call fcn.140126a8c
test rax, rax
je 0x14012741c
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1401d0010]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x140010410
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400e874c
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400e8507
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400e8507
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400e8507
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400e8507
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400e8507
cmp dword [rcx + 0x84], 0xe
jbe 0x1400e8507
cmp dword [rcx + 0xf8], 0
je 0x1400e8507
mov ecx, ebx
call fcn.1400e8698
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140006510
cmp dword [rbp + 0x20], 0
je 0x1400e8554
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400e858c
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400e84a0
Function at 0x1401357dc
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401357dc
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
call fcn.14000b150
cmp eax, 2
sete dil
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140135829
test rbx, rbx
je 0x14013581d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test dil, dil
je 0x140135860
mov eax, 4
jmp 0x14013586f
test dil, dil
je 0x140135860
call fcn.140002c30
test al, al
je 0x140135860
call fcn.140010ce0
test al, al
jne 0x140135856
bts esi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, esi
call fcn.14000d3d0
jmp 0x14013586f
call fcn.1400066b0
mov rcx, rax
jmp 0x140135846
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb eax, eax
neg eax
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14230c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14230c1df
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 0x14230c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14230c06f
add dl, dl
jne 0x14230c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14230c0f6
xor eax, eax
add dl, dl
jne 0x14230c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14230c1ad
add dl, dl
jne 0x14230c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14230c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14230c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14230c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14230c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14230c07e
mov eax, 1
add dl, dl
jne 0x14230c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14230c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14230c0fb
sub eax, ebx
mov ebx, 1
jne 0x14230c14c
mov ecx, 1
add dl, dl
jne 0x14230c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14230c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14230c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14230c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14230c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14230c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14230c15d
cmp eax, 0x7d00
jae 0x14230c19b
cmp eax, 0x500
jb 0x14230c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14230c07e
cmp eax, 0x7f
ja 0x14230c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14230c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14230c1d2
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 0x14230c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20