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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x180105a92
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x180105ad9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x180105b32
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x180105af0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x180105b73
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1801c7e1b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1801c7e1c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x180105b40
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x141089fc7
Capabilities:
Encode data using xor

Disassembly:
cmp ebx, 2
jmp 0x14107eec0
call fcn.141087bff
call fcn.141050b7b
mov rbx, qword gs:[rcx]
jmp 0x141077da0
mov eax, 0x3015483
xor al, al
not rax
mov rax, qword [rbp + rbx*8]
jbe 0x141078432
push 0xffffffffef269589
mov rcx, qword [r10]
push 0x119d661a
jmp 0x14106bd75
not byte [rsp + 4]
mov qword [r10], rbx
lea rsp, [rsp + 0x10]
jmp fcn.14108f08c
push 0xffffffff81bd3804
cmp ebx, 1
push 0xffffffffca0ae0bf
lea rsp, [rsp + 0x10]
jne 0x1410561f5
mov ecx, 0xe91509b6
call fcn.14106fe12
push 0xfffffffffc891685
add rdi, 2
or dx, cx
not dx
mov word [rdi], dx
lea rsp, [rsp + 8]
jmp fcn.141056faf
call fcn.141056ef0
mov r10d, 0xe209332a
mov rsp, qword [rbp + riz - 0x10]
push r10
mov rbp, qword [rbp + riz - 8]
movsx edi, word [rsp + 4]
push r10
mov byte [rsp + rdi*2 + 3], 0x38
mov qword [rdi + rbp], rax
not word [rsp + rdi + 6]
pop r8
mov r10, rbp
pop r9
pop rdi
lea r8, [r9 + r9*2 - 0x2e5006cf]
pop r9
bswap r8d
jmp 0x14106a464
mov eax, 0x6e978426
and al, al
mov rax, qword [rbp + rax - 0x6e978426]
jno 0x14108c2f5
add byte [rax], al
add byte [rax], al
add byte [rdx + 0x1c0b0b03], cl
xor ecx, dword [rsp + rdi*2]
cmpsb byte [rsi], byte [rdi]
invalid
lea rsp, [rsp + 0x10]
jne 0x141073dab
jmp 0x141082cf6
sbb rsp, 0x20
push 0xffffffffb5aeba21
lea rsp, [rsp + 8]
call rax
jmp 0x141081718

Function at 0x14108aed0
Capabilities:
Encode data using xor

Disassembly:
adc r11, 0xc
xor esi, esi
mov qword [rsp], 0x61b4a7a9
test r10, r10
push 0x712fc1bf
lea rsp, [rsp + 0x10]
je 0x14108f373
push r8
push 0xffffffffc6369386
mov r9d, 0x3b20a291
lea r9, [0x141069048]
lea rsp, [rsp + 8]
movzx r8d, byte [rbx]
xor r8d, esi
push 0x1e3eb2bd
and r8d, 0xff
mov r8d, dword [r9 + r8*4]
shr esi, 8
sal byte [rsp + 4], 0x23
xor esi, r8d
inc rbx
xor esi, 0xb63be395
dec r10
lea rsp, [rsp + 8]
jne 0x141070bc6
jmp 0x14107e0f1
jmp 0x14108f36b
mov r10d, 0xb21cea92
ror r10, 0x43
mov r10, qword [r11 + r10*4 - 0x590e7540]
jae 0x141070b89
mov r8d, 0x3d2d8a82
pop r8
push 0xffffffffdb3a84a5
not esi
mov dword [rsp + 3], 0xa7938086
mov dword [r11], esi
lea rsp, [rsp + 8]
jmp fcn.14108574a

Function at 0x14108fdf0
Capabilities:
Encode data using xor

Disassembly:
lea r9, [0x141064b10]
movzx r10d, byte [rdx]
xor r10d, eax
push 0xffffffffc439fb0e
sub dword [rsp + 2], 0x14004f18
and r10d, 0xff
mov r10d, dword [r9 + r10*4]
rol word [rsp + 3], 0x4e
shr eax, 8
xor eax, r10d
inc rdx
xor eax, 0x661f8f2c
rol dword [rsp + 1], 0xb9
dec r8
lea rsp, [rsp + 8]
jne 0x14108c50f
pop r10
mov r9d, 0x8b3a4c8e
pop r9
not eax
push 0x193ef987
push 0xffffffffe299840c
mov dword [r11], eax
push 0x61ab4f96
lea rsp, [rsp + 0x18]
jmp fcn.141075005
xor eax, eax
push 0xffffffffb2a02e28
test r8, r8
push 0xf1eb01d
lea rsp, [rsp + 0x18]
je 0x14108c55f
push r9
mov r9d, 0xab9d7aa
or r9b, 0x8c
dec r9d
push r10
jge 0x14108c508
mov ebx, 0xeebc243b
mov rbx, qword [r8]
mov cl, byte [r8 + 8]
call fcn.14106aa91
Function at 0x140002a30
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x13e8
call fcn.140009f00
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1360], 0xfffffffffffffffe
mov ebx, edx
mov qword [rbp + 0x1358], rcx
mov qword [rbp + 0x1338], 0
mov ecx, 0x50
call fcn.140009d08
mov qword [rbp + 0x1330], rax
mov qword [rbp + 0x1340], 0x48
mov qword [rbp + 0x1348], 0x4f
movups xmm0, xmmword [str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789______]
movups xmmword [rax], xmm0
movups xmm0, xmmword [0x1400246b7]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [0x1400246c7]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [0x1400246d7]
movups xmmword [rax + 0x30], xmm0
movabs rcx, 0x29282a265e252423
mov qword [rax + 0x40], rcx
mov qword [rbp + 0x1350], rax
mov byte [rax + 0x48], 0
mov dword [rbp + 0x132c], 0xffffffff
mov dword [rbp - 0x54], ebx
mov eax, 3
nop dword [rax]
mov ecx, ebx
shr ecx, 0x1e
xor ecx, ebx
imul ecx, ecx, 0x6c078965
add rcx, rax
add rcx, 0xfffffffffffffffe
mov dword [rbp + rax*4 - 0x5c], ecx
cmp rax, 0x271
je 0x140002b2c
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul ecx, edx, 0x6c078965
lea ebx, [rax + rcx]
dec ebx
mov dword [rbp + rax*4 - 0x58], ebx
add rax, 2
jmp 0x140002af0
mov dword [rbp - 0x58], 0x270
mov r12d, 1
lea rbx, [rbp - 0x58]
mov r13d, 0xffffffff
mov esi, 1
jmp 0x140002b5d
inc r12
cmp r12, 0x48
je 0x140002c14
mov rdi, rsi
inc rsi
xor r14d, r14d
xor r15d, r15d
nop dword [rax]
mov rcx, rbx
call fcn.140008240
mov eax, eax
shl r15, 0x20
or r15, rax
shl r14, 0x20
or r14, r13
cmp r14, rdi
jb 0x140002b70
mov rax, r15
or rax, rsi
shr rax, 0x20
je 0x140002ba9
mov rax, r15
xor edx, edx
div rsi
mov rcx, rdx
mov r8, rax
jmp 0x140002bb5
mov eax, r15d
xor edx, edx
div esi
mov ecx, edx
mov r8d, eax
mov rax, r14
or rax, rsi
shr rax, 0x20
je 0x140002bd0
mov rax, r14
xor edx, edx
div rsi
cmp r8, rax
jae 0x140002bdc
jmp 0x140002bed
mov eax, r14d
xor edx, edx
div esi
cmp r8, rax
jb 0x140002bed
mov r14d, 0
mov r15d, 0
cmp rdx, rdi
jne 0x140002b70
cmp rcx, rdi
je 0x140002b50
mov r8, qword [rbp + 0x1350]
movzx eax, byte [r8 + r12]
movzx edx, byte [r8 + rcx]
mov byte [r8 + r12], dl
mov byte [r8 + rcx], al
jmp 0x140002b50
xorps xmm0, xmm0
mov rax, qword [rbp + 0x1358]
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov ecx, 0x20
call fcn.140009d08
mov rsi, qword [rbp + 0x1358]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0x10
mov qword [rsi + 0x18], 0x1f
mov rcx, qword [rbp + 0x1350]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
mov byte [rax + 0x10], 0
mov edx, 0x50
call fcn.140009d4c
mov rax, rsi
add rsp, 0x13e8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140002eb0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xfffffefb
xor esi, esi
cmp eax, 0xfffffefc
jb 0x140003099
lea rdx, [0x14002480c]
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.14000f440
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov rcx, rsi
call fcn.14000f46c
mov rsi, rax
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
jae 0x1400030a8
cmp rsi, 7
ja 0x140002f51
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 7
lea r8, [rsi + rsi]
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x40]
call fcn.14000c250
lea rax, [rsp + rsi*2]
add rax, 0x20
jmp 0x140002fdf
mov rax, rsi
or rax, 7
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x1400030ad
cmp rax, 0xb
mov ebx, 0xa
cmovae rbx, rax
lea rcx, [rbx + rbx]
cmp rbx, 0x7ff
jb 0x140002faf
movabs rax, 0x7fffffffffffffec
cmp rbx, rax
jae 0x1400030ad
add rcx, 0x29
call fcn.140009d08
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140002fbb
add rcx, 2
call fcn.140009d08
mov rdi, rax
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbx
lea r8, [rsi + rsi]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14000c250
lea rax, [rdi + rsi*2]
mov word [rax], 0
cmp qword [rsp + 0x38], 8
jb 0x140002ff3
mov rcx, qword [rsp + 0x20]
jmp 0x140002ff8
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x248]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140003053
mov rsi, rax
mov ebx, 0xffffffff
lea rdi, [rsp + 0x248]
mov r14, qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop word cs:[rax + rax]
mov rcx, rsi
mov rdx, rdi
call r14
inc ebx
test eax, eax
jne 0x140003030
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
cmp ebx, 0x1d
setae sil
jmp 0x140003055
xor esi, esi
mov rax, qword [rsp + 0x38]
cmp rax, 8
jb 0x140003099
mov rcx, qword [rsp + 0x20]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140003094
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x1400030b2
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140009d4c
mov eax, esi
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140004f90
call fcn.140004fb0
call fcn.14000e234
int3
Function at 0x14000ab80
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000ac04
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14001f240]
cmp byte [rcx + rax], 0
je 0x14000ac04
dec r8
sub rdx, 1
jne 0x14000abea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000affc
Capabilities:
Parse pe header

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

Function at 0x14000cec8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d010
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 0x14000d07f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d07f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d07f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d07f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d07f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d07f
cmp dword [rcx + 0xf8], 0
je 0x14000d07f
mov ecx, ebx
call fcn.14000cf48
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.14000d1a4
nop
cmp dword [rbp + 0x20], 0
je 0x14000d0cd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000cfdc
int3

Function at 0x14000f6f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f718
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000f718
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140015010
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140015040
xor eax, eax
jmp 0x140015103
mov rbp, rbx
cmp word [rax], si
je 0x140015065
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001504c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140015048
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.140014f30
movsxd r14, eax
test eax, eax
jne 0x1400150a3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140015039
mov rcx, r14
call fcn.140013ff0
mov rdi, rax
test rax, rax
jne 0x1400150bc
xor ecx, ecx
call fcn.1400110f0
jmp 0x140015098
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.140014f30
test eax, eax
jne 0x1400150ed
mov rcx, rdi
call fcn.1400110f0
jmp 0x1400150f7
xor ecx, ecx
call fcn.1400110f0
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 0x140015120
Capabilities:
Query environment variable

Disassembly:
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 ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400151a7
mov rsi, rbx
cmp word [rax], bp
je 0x140015166
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140015150
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001514c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140013ff0
mov rdi, rax
test rax, rax
je 0x140015194
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000c250
mov rbp, rdi
xor ecx, ecx
call fcn.1400110f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400177a8
Capabilities:
Set environment variable

Disassembly:
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.14000f3a4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140017832
cmp byte [rbp - 0x21], r15b
je 0x14001782d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140017868
call fcn.140011ed0
test eax, eax
jne 0x140017854
cmp byte [rbp - 0x21], r15b
je 0x14001784c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140017868
cmp byte [rbp - 0x21], r15b
je 0x140017865
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.140014b80
test eax, eax
jne 0x140017908
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f3a4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400178a7
cmp byte [rbp - 0x21], r15b
je 0x1400178dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400178dc
call fcn.140011ed0
test eax, eax
jne 0x1400178c8
cmp byte [rbp - 0x21], r15b
je 0x1400178c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400178dc
cmp byte [rbp - 0x21], r15b
je 0x1400178d9
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.140014b80
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140017908
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001790b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140017919
mov rcx, rdi
call fcn.1400110f0
cmp byte [rbp + 0x3f], r15b
je 0x140017928
mov rcx, qword [rbp + 0x27]
call fcn.1400110f0
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 0x140017f70
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140017f86
mov al, 1
jmp 0x140017fe6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140017f97
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140017fe4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140015604
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140017fe4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140017fe4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140017fe4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140017fe6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

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

Function at 0x1416b9058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1416b91df
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 0x1416b9089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416b906f
add dl, dl
jne 0x1416b9096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416b90f6
xor eax, eax
add dl, dl
jne 0x1416b90a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416b91ad
add dl, dl
jne 0x1416b90b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416b90c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416b90d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416b90dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1416b90ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1416b907e
mov eax, 1
add dl, dl
jne 0x1416b9106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416b9113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416b90fb
sub eax, ebx
mov ebx, 1
jne 0x1416b914c
mov ecx, 1
add dl, dl
jne 0x1416b912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1416b913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416b9123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416b907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1416b9168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1416b9175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416b915d
cmp eax, 0x7d00
jae 0x1416b919b
cmp eax, 0x500
jb 0x1416b9196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416b907e
cmp eax, 0x7f
ja 0x1416b919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416b907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1416b91d2
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 0x1416b907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140092940
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14009294d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14009295d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140092945
lea eax, [rcx + 1]
jmp 0x14009296b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14009297e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140092964
sub eax, 3
jb 0x14009299e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400929ed
sar eax, 1
movsxd rbp, eax
jb 0x1400929d4
jmp 0x1400929ac
add ebx, ebx
jne 0x1400929aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400929d4
inc ecx
add ebx, ebx
jne 0x1400929ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400929d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400929cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400929bc
add ecx, 2
jmp 0x1400929d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140092902
jmp 0x14009294d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x24400
mov dl, 7
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140092a39
cmp rsi, rcx
jae 0x140092a41
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140092a20
cmp al, 0x8f
ja 0x140092a20
cmp byte [rsi - 2], 0xf
je 0x140092a26
sub al, 0xe8
cmp al, 1
ja 0x140092a0a
cmp rsi, rcx
jae 0x140092a41
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140092a10
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140092a41
lodsb al, byte [rsi]
jmp 0x140092a20
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x8f000]
mov eax, dword [rdi]
or eax, eax
je 0x140092a9e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x9a9a4]
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 0x140092a4e
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 0x140092a98
mov qword [rbx], rax
add rbx, 8
jmp 0x140092a6e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 + 0x217]
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 0x140092af6
sub rsp, 0xffffffffffffff80
jmp 0x140019fdc