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

Disassembly:
sub rsp, 0x38
cmp dword [0x14004ea80], 0
jne 0x14000bddd
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.1400039e0
mov edx, 1
mov rcx, qword [rax + 0x30]
call fcn.140008dd0
xor edi, edi
lea r15, [0x14004ea80]
mov rsi, rax
mov r14d, edi
mov ebp, edi
cmp dword [rax + 0x50], edi
jbe 0x14000bd65
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], r12
mov r12d, 0x775a
nop word [rax + rax]
mov rax, qword [rsi + 0x48]
mov rbx, qword [rsi + 0x18]
mov ecx, ebp
mov r9d, dword [rax + rcx*4]
cmp dword [rsi], edi
je 0x14000bcb8
lea rdx, [rbx + r9]
jmp 0x14000bcf3
mov rax, qword [rsi + 0x20]
mov r8d, edi
mov r11, qword [rsi + 0x38]
movzx r10d, word [rax + 6]
test r10d, r10d
je 0x14000bcf0
lea rax, [r11 + 8]
mov edx, dword [rax + 4]
cmp edx, r9d
ja 0x14000bce4
add edx, dword [rax]
cmp r9d, edx
jb 0x14000bde7
inc r8d
add rax, 0x28
cmp r8d, r10d
jb 0x14000bcd1
mov rdx, rdi
cmp word [rdx], r12w
jne 0x14000bd50
mov r9d, edi
mov r8d, 0xe14b0d06
mov rax, rdx
nop word [rax + rax]
movzx eax, word [rax]
mov ecx, r8d
ror ecx, 8
inc r9d
add ecx, eax
mov eax, r9d
add rax, rdx
xor r8d, ecx
cmp byte [rax], dil
jne 0x14000bd10
mov eax, r14d
lea rcx, [rax + rax*2]
lea rbx, [rcx*4]
mov rcx, rsi
mov dword [rbx + r15 + 4], r8d
call fcn.140008f10
mov dword [rbx + r15 + 8], eax
inc r14d
inc ebp
cmp ebp, dword [rsi + 0x50]
jb 0x14000bca0
mov r12, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov edx, r14d
lea r9, [0x14000bbf0]
mov r8d, 0xc
mov dword [0x14004ea80], r14d
lea rcx, [0x14004ea84]
call fcn.140015040
mov eax, dword [0x14004ea80]
mov r14, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
test eax, eax
je 0x14000bdb8
mov eax, edi
lea rdx, [rax + rax*2]
mov dword [r15 + rdx*4 + 0xc], edi
inc edi
mov eax, dword [0x14004ea80]
cmp edi, eax
jb 0x14000bda1
mov edx, eax
lea r9, [0x14000bc10]
mov r8d, 0xc
lea rcx, [0x14004ea84]
call fcn.140015040
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x38
ret
mov eax, r8d
lea rcx, [rax + rax*4]
lea rdx, [r11 + rcx*8]
test rdx, rdx
je 0x14000bcf0
sub r9d, dword [rdx + 0xc]
mov edx, dword [rdx + 0x14]
mov eax, r9d
add rax, rbx
add rdx, rax
jmp 0x14000bcf3
Function at 0x14000ca70
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, dword [section..data]
call fcn.14000be10
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14000ef44
Capabilities:
Parse pe header

Disassembly:
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 0x14000edd7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000edd7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000edd7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000edd7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000edd7
cmp dword [rcx + 0x84], 0xe
jbe 0x14000edd7
cmp dword [rcx + 0xf8], 0
je 0x14000edd7
mov ecx, ebx
call fcn.14000ee78
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.14000ec68
cmp dword [rbp + 0x20], 0
je 0x14000ee24
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000ee2c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000ed70
Function at 0x14001a848
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14001a825
call fcn.140014814
mov dword [rax], 0x16
call fcn.1400146f4
or eax, 0xffffffff
jmp 0x14001a842
sub dword [rcx + 0x10], 1
jns 0x14001a834
add rsp, 0x28
jmp 0x1400212e4
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14001a804
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x140021316
call fcn.140014814
mov dword [rax], 0x16
call fcn.1400146f4
jmp 0x140021433
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140021433
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140021433
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140021345
lock or dword [rcx + 0x14], 0x10
jmp 0x140021433
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140021359
call fcn.14002319c
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.14001908c
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.140021b98
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140021421
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x1400213ec
mov rcx, rdi
call fcn.14001908c
cmp eax, esi
je 0x1400213d7
mov rcx, rdi
call fcn.14001908c
cmp eax, 0xfffffffe
je 0x1400213d7
mov rcx, rdi
call fcn.14001908c
movsxd rbx, eax
lea r14, [0x14004d920]
mov rcx, rdi
sar rbx, 6
call fcn.14001908c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400213de
lea rdx, [0x14004c180]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400213ec
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x140021410
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x140021410
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x140021410
mov dword [rdi + 0x20], 0x1000
mov rax, qword [rdi]
add dword [rdi + 0x10], esi
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x140021436
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140021450
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 rbx, rcx
test rcx, rcx
jne 0x140021176
call fcn.140014814
mov dword [rax], 0x16
call fcn.1400146f4
jmp 0x1400212c1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400212c1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400212c1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400211a5
lock or dword [rcx + 0x14], 0x10
jmp 0x1400212c1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400211b9
call fcn.14002319c
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1400211c9
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1400211cc
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.14001908c
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.140021b98
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1400212af
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14002125d
mov rcx, rbx
call fcn.14001908c
cmp eax, 0xffffffff
je 0x140021248
mov rcx, rbx
call fcn.14001908c
cmp eax, 0xfffffffe
je 0x140021248
mov rcx, rbx
call fcn.14001908c
movsxd rdi, eax
lea r14, [0x14004d920]
mov rcx, rbx
sar rdi, 6
call fcn.14001908c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14002124f
lea rdx, [0x14004c180]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002125d
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140021281
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140021281
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140021281
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14002129f
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1400212aa
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1400212c6
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x140021140
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
add rax, rdx
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400b0380]
mov dword [rax], 1
mov rax, qword [0x1400b0390]
mov dword [rax], 1
mov rax, qword [0x1400b03a0]
mov dword [rax], 1
mov rax, qword [0x1400b0320]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
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 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140005a20
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10078
push r12
call fcn.1400909a0
sub rsp, rax
xor eax, eax
mov r8d, 0x28
mov rdx, rcx
lea r12, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea r13, [rsp + 0x70]
mov rcx, r12
call fcn.14002b370
mov rdx, r13
mov r8d, 0x10000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140005a81
mov rcx, r13
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop r12
pop r13
ret

Function at 0x140005a90
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x78
xor eax, eax
mov r8d, 0x28
lea r13, [rsp + 0x20]
mov r12, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, r13
call fcn.14002b370
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop r12
pop r13
ret
Function at 0x140005cf0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x70
mov rbx, rdx
mov r14, r8
mov r15, rcx
call fcn.140023350
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, rbx
mov r12, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov r13, rax
test r14, r14
je 0x140005daa
mov rdx, r14
mov rcx, rbx
call fcn.140005a90
mov rcx, r14
mov rdx, 0xffffffffffffffff
call sub.python310.dll_PyUnicode_FromWideChar
mov rdx, r13
mov rcx, r12
mov r14, rax
mov r8, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
jne 0x140005dec
sub qword [r14], 1
jne 0x140005d71
mov rcx, r14
call fcn.140005c60
sub qword [r13], 1
jne 0x140005d80
mov rcx, r13
call fcn.140005c60
sub qword [r12], 1
jne 0x140005d9c
mov rcx, r12
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.140005c60
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x20]
mov r8d, 0x28
mov rdx, rbx
mov word [rsp + 0x20], 0
mov rcx, r14
call fcn.14002b370
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x140005d71
mov rcx, r15
call fcn.140005c70
jmp 0x140005d71
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
nop
nop word cs:[rax + rax]
nop
Function at 0x1400862e0
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 [0x1400c10f1], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x140086368
lea rdx, [0x1400ae762]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140086480
mov rsi, qword [0x1400c0fa8]
jmp 0x140086325
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 0x140086320
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.140073d00
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 [0x1400c0fa8], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1400c0fa8], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1400c0fa8], rcx
test eax, eax
je 0x140086468
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 0x1400863d0
not eax
cmp r9d, eax
jne 0x140086507
mov byte [0x1400c10f1], 1
jmp 0x1400862fd
cmp byte [0x1400c10f0], 0
jne 0x140086314
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400c1a28], rax
call rbx
mov qword [0x1400c1a20], rax
call rbx
mov qword [0x1400c1a18], rax
call rbx
mov qword [0x1400c1a10], rax
call rbx
mov qword [0x1400c1a08], rax
call rbx
mov qword [0x1400c1a00], rax
call rbx
mov qword [0x1400c19f8], rax
call rbx
mov byte [0x1400c10f0], 1
mov qword [0x1400c19f0], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1400c0fa0], rax
jmp 0x140086314
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14008f6a0
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.1400a0a00
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.1400a0a00
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140090352
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400c1ee8]
test eax, eax
je 0x1400903ea
lea rax, [0x1400c1ec0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400c1ef0]
mov qword [rbp - 8], rax
jmp 0x1400903ce
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 0x1400903c2
cmp qword [rbp - 0x10], 0
je 0x1400903c2
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 0x140090388
lea rax, [0x1400c1ec0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400903eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400904f0
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 0x140090518
mov eax, 0
jmp 0x140090566
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 0x140090541
mov eax, 0
jmp 0x140090566
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 0x140090561
mov eax, 0
jmp 0x140090566
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14009056c
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 0x1400905ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400905e1
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 0x1400905e1
mov rax, qword [rbp - 8]
jmp 0x1400905ff
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 0x1400905b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
xor rcx, rcx
sub rcx, 0xffffffffffffffc6
lea rax, [entry0]
movabs rbx, 0x4d54571b4e77c0fb
xor qword [rax + 0x27], rbx
sub rax, 0xfffffffffffffff8
loop 0x14000401b
invalid
Function at 0x1410870b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x141087237
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 0x1410870e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410870c7
add dl, dl
jne 0x1410870ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14108714e
xor eax, eax
add dl, dl
jne 0x1410870fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141087205
add dl, dl
jne 0x14108710e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14108711b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141087128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141087135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141087142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1410870d6
mov eax, 1
add dl, dl
jne 0x14108715e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14108716b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141087153
sub eax, ebx
mov ebx, 1
jne 0x1410871a4
mov ecx, 1
add dl, dl
jne 0x141087186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141087193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14108717b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410870d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1410871c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410871cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410871b5
cmp eax, 0x7d00
jae 0x1410871f3
cmp eax, 0x500
jb 0x1410871ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410870d6
cmp eax, 0x7f
ja 0x1410871f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410870d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14108722a
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 0x1410870d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20