joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401836ac
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x310
mov rax, qword [0x140270700]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov qword [rsp + 0x38], rdx
mov rax, r8
mov rbx, rdx
test r8, r8
je 0x14018372b
mov rcx, qword [rax + 8]
lea r8, [rsp + 0x40]
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x208
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, rbx
lea rdx, [rsp + 0x50]
test rax, rax
jne 0x14018370a
lea rdx, [0x140247bb0]
call fcn.14000c260
mov rax, rbx
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.14000a140
add rsp, 0x310
pop rbx
ret
call fcn.140015a68
int3

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r9
mov r15, r8
mov rdi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140189e3d
mov ebx, 0x811c9dc5
xor esi, esi
mov rcx, rdx
call fcn.1401c195c
mov r8, rax
mov eax, 0xcccccccd
mul r8d
shr edx, 3
inc edx
test r8d, r8d
je 0x140189de0
movzx ecx, word [rdi + rsi*2]
imul ebx, ebx, 0x1000193
xor ebx, ecx
add esi, edx
cmp esi, r8d
jb 0x140189dcd
mov dword [r14], ebx
xor edx, edx
mov eax, ebx
div dword [rbp + 0x10]
mov dword [r15], edx
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x140189e1d
mov rbx, qword [rbx + rdx*8]
jmp 0x140189e18
mov eax, dword [r14]
cmp dword [rbx + 8], eax
jne 0x140189e15
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call fcn.1401c1758
nop
test eax, eax
je 0x140189e38
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140189dfc
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov rax, rbx
jmp 0x140189e1f
call fcn.140015a68
int3

Function at 0x1401b7514
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401b765c
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 0x1401b76cb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401b76cb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401b76cb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401b76cb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401b76cb
cmp dword [rcx + 0x84], 0xe
jbe 0x1401b76cb
cmp dword [rcx + 0xf8], 0
je 0x1401b76cb
mov ecx, ebx
call fcn.1401b7594
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.1401b77f0
nop
cmp dword [rbp + 0x20], 0
je 0x1401b7719
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401b7628
int3
Function at 0x1401b765c
Capabilities:
Parse pe header

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

Function at 0x1401bf6f8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000a0e0
sub rsp, rax
mov rax, qword [0x140270700]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401b9a24
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401bf747
mov rax, rbp
jmp 0x1401bf84f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x27fb90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401cd91c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x27fb90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401bf84b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401bf84b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401cd91c
test rax, rax
js 0x1401bf84b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401bf84b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401bf83d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401bf83d
cmp byte [rcx], 0xd
jne 0x1401bf823
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401bf832
cmp byte [rcx + 1], 0xa
jne 0x1401bf832
inc rcx
jmp 0x1401bf832
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x272ba0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401bf805
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401bf84f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000a140
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401c0e70
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x1401c0e8d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401c0ee8
test al, 7
jne 0x1401c0e80
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401c0ea1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401c0f12
test dh, dh
je 0x1401c0f0c
shr rdx, 0x10
test dl, dl
je 0x1401c0f06
test dh, dh
je 0x1401c0f00
shr rdx, 0x10
test dl, dl
je 0x1401c0efa
test dh, dh
je 0x1401c0ef4
shr edx, 0x10
test dl, dl
je 0x1401c0eee
test dh, dh
jne 0x1401c0ea1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1401c1e80
Capabilities:
Parse pe header

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

Function at 0x1401cceb0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1401c562c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1401ccf51
cmp ebx, dword [rsp + 0x30]
je 0x1401ccf4a
test esi, esi
je 0x1401ccf4a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401ccf25
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401ccf32
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401ccf0f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401ccf36
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401ccf53
mov eax, 1
jmp 0x1401ccf53
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401cdaf0
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 0x1401cdb77
mov rsi, rbx
cmp word [rax], bp
je 0x1401cdb36
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401cdb20
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401cdb1c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401c53fc
mov rdi, rax
test rax, rax
je 0x1401cdb64
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401d6550
mov rbp, rdi
xor ecx, ecx
call fcn.1401c53c0
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 0x1401d01d4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401d01ea
mov al, 1
jmp 0x1401d024a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401d01fb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401d0248
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401b9d54
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401d0248
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401d0248
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401d0248
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401d024a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401d0b80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14027fb90]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1401d0bd7
cmp word [rdx], r13w
jne 0x1401d0bd7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401d0bdc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401d0d01
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401d0d22
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401d0c15
mov rdx, r9
mov word [rbx], cx
jmp 0x1401d0c3c
cmp r9, r8
jae 0x1401d0c4c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1401d0bf6
jmp 0x1401d0d01
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401d0cf6
cmp dword [rsp + 0x80], esi
je 0x1401d0cf6
lea r8, [0x14027fb90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401d0cce
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401d0c9e
mov word [rbx], r13w
jmp 0x1401d0cfe
mov ecx, recv
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1401d0cab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401d0cfe
cmp word [rsp + 0x70], r13w
jne 0x1401d0cdb
cmp rbx, r14
je 0x1401d0c98
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401cd878
cmp word [rsp + 0x70], r13w
je 0x1401d0d01
mov ecx, recv
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14027fb90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401d0cfb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401d0d01
Function at 0x2fc4d5f20
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d6922
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d69ba
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fb110]
mov qword [rbp - 8], rax
jmp 0x2fc4d699e
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 0x2fc4d6992
cmp qword [rbp - 0x10], 0
je 0x2fc4d6992
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 0x2fc4d6958
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d69bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6ac0
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 0x2fc4d6ae8
mov eax, 0
jmp 0x2fc4d6b36
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 0x2fc4d6b11
mov eax, 0
jmp 0x2fc4d6b36
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 0x2fc4d6b31
mov eax, 0
jmp 0x2fc4d6b36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dd7f0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4de1f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc502108]
test eax, eax
je 0x2fc4de28a
lea rax, [0x2fc5020e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc502110]
mov qword [rbp - 8], rax
jmp 0x2fc4de26e
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 0x2fc4de262
cmp qword [rbp - 0x10], 0
je 0x2fc4de262
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 0x2fc4de228
lea rax, [0x2fc5020e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4de28b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4de390
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 0x2fc4de3b8
mov eax, 0
jmp 0x2fc4de406
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 0x2fc4de3e1
mov eax, 0
jmp 0x2fc4de406
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 0x2fc4de401
mov eax, 0
jmp 0x2fc4de406
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4de40c
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 0x2fc4de48a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4de481
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 0x2fc4de481
mov rax, qword [rbp - 8]
jmp 0x2fc4de49f
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 0x2fc4de454
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400174d0
Capabilities:
Encode data using xor

Disassembly:
hlt
cmc
xor al, 0x6b
test dword [rdi + 0xa], 0x305a7c52
pop rdx
xor byte [rcx], ch
rcl byte [rdi + riz*2 + 0x7b525815], cl
invalid
scasd eax, dword [rdi]
invalid
pop rdx
xor byte [rcx], ch
rcl byte [rdi + riz*2 + 0x7b525815], cl
mov byte [rdi + 0xaf335c6], ch
outsd dx, dword [rsi]
adc al, 0xe6
cmpsb byte [rsi], byte [rdi]
and dword [rax + 0x16], ebx
cli
or dword [0x155453f8f], edx
je 0x1400174c7
push rbp
jl 0x140017476
invalid

Function at 0x140d2b160
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140d2b2e7
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 0x140d2b191
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d2b177
add dl, dl
jne 0x140d2b19e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d2b1fe
xor eax, eax
add dl, dl
jne 0x140d2b1ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d2b2b5
add dl, dl
jne 0x140d2b1be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d2b1cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d2b1d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d2b1e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d2b1f2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d2b186
mov eax, 1
add dl, dl
jne 0x140d2b20e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d2b21b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d2b203
sub eax, ebx
mov ebx, 1
jne 0x140d2b254
mov ecx, 1
add dl, dl
jne 0x140d2b236
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d2b243
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d2b22b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d2b186
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d2b270
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d2b27d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d2b265
cmp eax, 0x7d00
jae 0x140d2b2a3
cmp eax, 0x500
jb 0x140d2b29e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d2b186
cmp eax, 0x7f
ja 0x140d2b2a6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d2b186
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d2b2da
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 0x140d2b186
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001064
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x14014dd80]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edi, edi
lea rcx, [rsp + 0x51]
xor edx, edx
lea r8d, [rdi + 0x77]
mov dword [rsp + 0x40], edi
or rbx, 0xffffffffffffffff
mov byte [rsp + 0x50], dil
call fcn.1400167a0
lea rcx, [rsp + 0x111]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x110], dil
call fcn.1400167a0
xor eax, eax
lea r8d, [rdi + 0x3e]
lea rcx, [rsp + 0x222]
xor edx, edx
mov byte [rsp + 0xf0], dil
mov qword [rsp + 0xf1], rax
mov qword [rsp + 0xf9], rax
mov qword [rsp + 0x101], rax
mov dword [rsp + 0x109], eax
mov word [rsp + 0x10d], ax
mov byte [rsp + 0x10f], al
mov word [rsp + 0xd0], di
mov qword [rsp + 0xd2], rax
mov qword [rsp + 0xda], rax
mov qword [rsp + 0xe2], rax
mov dword [rsp + 0xea], eax
mov word [rsp + 0xee], ax
mov word [rsp + 0x220], di
call fcn.1400167a0
lea r8d, [rdi + 0x78]
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.1400167a0
mov eax, 0x74617453
lea r9, [rsp + 0x50]
mov dword [rsp + 0x144], eax
mov dword [rsp + 0xf0], eax
lea rax, [rsp + 0x40]
lea r8, [rsp + 0xf0]
lea rdx, [rsp + 0x110]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x110], 0x54535953
mov dword [rsp + 0x114], 0x435c4d45
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x118], 0x65727275
mov dword [rsp + 0x11c], 0x6f43746e
mov dword [rsp + 0x120], 0x6f72746e
mov dword [rsp + 0x124], 0x7465536c
mov dword [rsp + 0x128], 0x6e6f435c
mov dword [rsp + 0x12c], 0x6c6f7274
mov dword [rsp + 0x130], 0x7265545c
mov dword [rsp + 0x134], 0x616e696d
mov dword [rsp + 0x138], 0x6553206c
mov dword [rsp + 0x13c], 0x72657672
mov dword [rsp + 0x140], 0x6e69575c
mov dword [rsp + 0x148], 0x736e6f69
mov byte [rsp + 0x14c], dil
mov dword [rsp + 0xf4], 0x536e6f69
mov dword [rsp + 0xf8], 0x72756365
mov dword [rsp + 0xfc], 0x797469
mov dword [rsp + 0x40], 0x78
call fcn.140005d80
cmp eax, edi
jne 0x14000131f
lea edx, [rdi + 0x78]
lea rcx, [rsp + 0x50]
mov r8d, edx
call fcn.140002ab8
cmp word [rsp + 0x88], di
je 0x14000131f
lea ecx, [rdi + 0x5c]
lea eax, [rdi + 0x2e]
lea r8, [rsp + 0x88]
mov word [rsp + 0xd4], ax
lea eax, [rdi + 0x25]
mov word [rsp + 0xd0], cx
mov word [rsp + 0xd8], ax
mov word [rsp + 0xd2], cx
mov word [rsp + 0xd6], cx
lea eax, [rdi + 0x73]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x220]
mov word [rsp + 0xda], ax
mov word [rsp + 0xdc], di
call fcn.140001000
lea r8d, [rdi + 3]
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x220]
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r8d
call fcn.140004e64
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000131f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400168a0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret