joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020fc0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140072048]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0xe0]
test rcx, rcx
je 0x140020fff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbx + 0xa0]
xor edx, edx
mov ecx, 0xc3a
call qword [0x140075330]
mov qword [rbx + 0xe0], rax
lea rcx, [rbx + 0x60]
call fcn.1400287c0
xor edi, edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x30], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1400210a6
lea rdx, [rsp + 0x30]
mov rcx, qword [rbx + 0xe0]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1400210a6
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x40], eax
je 0x1400210a6
lea r8, [0x140075540]
cmp qword [0x140075558], 8
cmovae r8, qword [0x140075540]
lea rdx, [0x140075780]
cmp qword [0x140075798], 8
cmovae rdx, qword [0x140075780]
xor ecx, ecx
lea r9d, [rdi + 0x10]
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x140021182
cmp qword [rbx + 0xe0], rdi
jne 0x140021180
lea rdx, [0x140075720]
lea rcx, [rsp + 0x60]
call fcn.140010070
nop
lea rdx, [0x140075540]
lea rcx, [rsp + 0x80]
call fcn.140010070
mov dword [rsp + 0xa0], reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, 0x48
call fcn.14002bc84
mov rbx, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140010070
nop
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x80]
call fcn.140010070
mov ecx, dword [rsp + 0xa0]
mov dword [rbx + 0x40], ecx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x140016670]
xor edx, edx
xor ecx, ecx
call fcn.140036818
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400211a3
lea rcx, [rsp + 0x60]
call fcn.140011e80
cmp dword [rsp + 0x58], 0
je 0x1400211b2
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.14002aefc
test eax, eax
jne 0x1400211bd
jmp 0x140021182
mov al, 1
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14002bc30
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
mov dword [rsp + 0x58], edi
mov ecx, 6
call fcn.14002ae6c
nop
mov ecx, 1
call fcn.14002ae6c
int3
mov ecx, eax
call fcn.14002ae30
int3
Function at 0x140028c50
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140072048]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [0x140075348]
mov rbx, rax
test rax, rax
jne 0x140028dd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140021790
nop
lea r8, [0x140075760]
cmp qword [0x140075778], 8
cmovae r8, qword [0x140075760]
mov r9, qword [0x140075770]
mov rcx, rax
call fcn.140006220
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x140075540]
cmp qword [0x140075558], 8
cmovae r8, qword [0x140075540]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140028d82
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028d7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140028e20
call fcn.14002bc50
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], di
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140028dd3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028dce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140028e1a
call fcn.14002bc50
xor al, al
jmp 0x140028df9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002bc30
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.1400321dc
nop
call fcn.1400321dc
nop
int3
Function at 0x14003638c
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 0x14003621f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003621f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003621f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003621f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003621f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003621f
cmp dword [rcx + 0xf8], 0
je 0x14003621f
mov ecx, ebx
call fcn.1400362c0
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.1400360b0
cmp dword [rbp + 0x20], 0
je 0x14003626c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140036274
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400361b8
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp sil, byte [r11]
and al, 0xbc
test dword [rax], edi
stc
mov byte [rax], bl
xchg edi, eax
pop rbx
adc edi, dword [rbx + rdi*4 - 0x7071713b]
invalid
Function at 0x140001884
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14009f7e0
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.14009e830
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14009f817
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140112020]
jmp 0x14009f81d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x38
ret

Function at 0x1400024c3
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400820b0
mov rax, rcx
neg rcx
test rax, 7
je 0x1400820cd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140082128
test al, 7
jne 0x1400820c0
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 0x1400820e1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140082152
test dh, dh
je 0x14008214c
shr rdx, 0x10
test dl, dl
je 0x140082146
test dh, dh
je 0x140082140
shr rdx, 0x10
test dl, dl
je 0x14008213a
test dh, dh
je 0x140082134
shr edx, 0x10
test dl, dl
je 0x14008212e
test dh, dh
jne 0x1400820e1
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 0x1400027ac
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140021770
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400210f0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400217af
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140112020]
jmp 0x1400217b9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400028e7
Capabilities:
Query environment variable

Disassembly:
jmp 0x140093180
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x140093268
mov rsi, rax
cmp word [rax], r14w
je 0x1400931d3
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x1400931bb
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x1400931b7
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.140003233
movsxd rbp, eax
test eax, eax
je 0x140093268
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.1400026c1
mov rdi, rax
test rax, rax
je 0x140093256
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.140003233
test eax, eax
je 0x140093256
mov rsi, rdi
mov rdi, r14
jmp 0x140093259
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.140001802
jmp 0x14009326b
mov rsi, r14
test rbx, rbx
je 0x140093279
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400028f1
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400216a0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140021070
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400216e1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140112020]
jmp 0x1400216e7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x140002964
Capabilities:
Get geographical location

Disassembly:
jmp 0x14009fab0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14009ea30
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14009fb03
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
call qword [0x140112020]
jmp 0x14009fb25
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.14000226b
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x48
ret
Function at 0x14000296e
Capabilities:
Terminate process

Disassembly:
jmp 0x14000aad0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140002b35
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400ac410
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140104040]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1400ac436
jmp 0x1400ac4b3
mov rcx, qword [rbp + 0x30]
call fcn.1400024c3
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1400ac44f
jmp 0x1400ac4b3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1400ac46c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14000182a
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140001be0
test eax, eax
jne 0x1400ac4b3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14000264e
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x140002c2a
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400c8290
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400c82b4
xor eax, eax
jmp 0x1400c8302
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x1400c82dc
xor eax, eax
jmp 0x1400c8302
mov rax, qword [rsp + 8]
add rax, 0x18
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax]
cmp eax, 0x20b
je 0x1400c82fd
xor eax, eax
jmp 0x1400c8302
mov eax, 1
add rsp, 0x28
ret

Function at 0x140002f40
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400087e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140008800
xor al, al
jmp 0x140008881
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140008813
xor al, al
jmp 0x140008881
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14000883d
xor al, al
jmp 0x140008881
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140008851
xor al, al
jmp 0x140008881
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140008863
xor al, al
jmp 0x140008881
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14000887f
xor al, al
jmp 0x140008881
mov al, 1
add rsp, 0x38
ret
Function at 0x1400031b1
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x1400c8100
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov dword [rsp], 0
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x10]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
jmp 0x1400c815e
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 0x28
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jae 0x1400c819d
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
cmp qword [rsp + 0x38], rax
jb 0x1400c819b
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 8]
mov eax, eax
cmp qword [rsp + 0x38], rax
jae 0x1400c819b
mov rax, qword [rsp + 8]
jmp 0x1400c819f
jmp 0x1400c8148
xor eax, eax
add rsp, 0x28
ret

Function at 0x140003382
Capabilities:
Terminate process

Disassembly:
jmp 0x140082890
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400828be
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140003a0d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140003427
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14009f8a0
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.14009e8b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14009f8d5
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140112020]
jmp 0x14009f8df
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret

Function at 0x14000380a
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14009f900
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.14009e8f0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14009f93f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140112020]
jmp 0x14009f94e
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret

Function at 0x140003a6c
Capabilities:
Print debug messages

Disassembly:
jmp 0x14008a2e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140003af8
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400217e0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140021130
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140021829
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140112020]
jmp 0x140021838
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x140003b8e
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400af3c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [rsp + 0x70]
call fcn.14000215d
lea rcx, [rsp + 0x40]
call fcn.14000215d
call fcn.140002897
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call fcn.140001faf
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400af42f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x40]
call fcn.1400023fb
lea rcx, [rsp + 0x70]
call fcn.1400023fb
mov eax, dword [rsp + 0x24]
jmp 0x1400af4bc
call fcn.140002897
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
call fcn.140001faf
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400af476
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x40]
call fcn.1400023fb
lea rcx, [rsp + 0x70]
call fcn.1400023fb
mov eax, dword [rsp + 0x2c]
jmp 0x1400af4bc
lea rcx, [rsp + 0x40]
call fcn.1400020ea
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
call fcn.1400020ea
mov rcx, qword [rsp + 0x38]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.1400023fb
lea rcx, [rsp + 0x70]
call fcn.1400023fb
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
ret

Function at 0x140021770
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140021770
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400210f0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400217af
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140112020]
jmp 0x1400217b9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x18059a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18059a1df
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 0x18059a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18059a06f
add dl, dl
jne 0x18059a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18059a0f6
xor eax, eax
add dl, dl
jne 0x18059a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18059a1ad
add dl, dl
jne 0x18059a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18059a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18059a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18059a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18059a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18059a07e
mov eax, 1
add dl, dl
jne 0x18059a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18059a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18059a0fb
sub eax, ebx
mov ebx, 1
jne 0x18059a14c
mov ecx, 1
add dl, dl
jne 0x18059a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18059a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18059a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18059a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18059a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18059a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18059a15d
cmp eax, 0x7d00
jae 0x18059a19b
cmp eax, 0x500
jb 0x18059a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18059a07e
cmp eax, 0x7f
ja 0x18059a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18059a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18059a1d2
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 0x18059a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20