joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002d10
Capabilities:
Get geographical location

Disassembly:
jmp 0x14008cab0
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
call fcn.140002eaf
mov dword [rsp + 0x28], eax
call fcn.140004034
mov ecx, 8
imul rcx, rcx, 5
mov rax, qword [rax + rcx]
mov qword [rsp + 0x30], rax
mov r9d, dword [rsp + 0x28]
lea r8, [rsp + 0x20]
mov edx, 0x22
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x20]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x30
je 0x14008cb2f
cmp dword [rsp + 0x24], 0x31
je 0x14008cb36
cmp dword [rsp + 0x24], 0x32
je 0x14008cb3d
jmp 0x14008cb44
mov eax, 2
jmp 0x14008cb46
mov eax, 1
jmp 0x14008cb46
mov eax, 3
jmp 0x14008cb46
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x140002e64
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x140019560
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov dword [rsp], 0
jmp 0x140019580
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jae 0x14001961e
mov dword [rsp + 4], 0
jmp 0x14001959e
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 4
jae 0x140019619
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax*4]
mov ecx, dword [rsp + 4]
movzx eax, byte [rax + rcx]
mov byte [rsp + 8], al
movzx eax, byte [rsp + 8]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cdqe
imul rax, rax, 0x10
lea rcx, [0x140196dd0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
movzx ecx, byte [rsp + 8]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
cdqe
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x38]
lea rcx, [rdx + rcx*4]
mov edx, dword [rsp + 4]
mov r8, qword [rsp + 0x10]
movzx eax, byte [r8 + rax]
mov byte [rcx + rdx], al
jmp 0x140019594
jmp 0x140019578
add rsp, 0x20
pop rdi
ret

Function at 0x140002fef
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x140018dc0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov dword [rsp], 0
jmp 0x140018de0
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jae 0x140018e7e
mov dword [rsp + 4], 0
jmp 0x140018dfe
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 4
jae 0x140018e79
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax*4]
mov ecx, dword [rsp + 4]
movzx eax, byte [rax + rcx]
mov byte [rsp + 8], al
movzx eax, byte [rsp + 8]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cdqe
imul rax, rax, 0x10
lea rcx, str.cw
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
movzx ecx, byte [rsp + 8]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
cdqe
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x38]
lea rcx, [rdx + rcx*4]
mov edx, dword [rsp + 4]
mov r8, qword [rsp + 0x10]
movzx eax, byte [r8 + rax]
mov byte [rcx + rdx], al
jmp 0x140018df4
jmp 0x140018dd8
add rsp, 0x20
pop rdi
ret
Function at 0x140003495
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140010f60
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rcx, qword [rsp + 0x80]
call fcn.140001131
mov rcx, rax
call fcn.140004e53
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x54]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x80]
call fcn.140001131
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call fcn.140003832
xor eax, eax
mov word [rsp + 0x40], ax
jmp 0x140011010
movzx eax, word [rsp + 0x40]
inc ax
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x1400110b4
movzx eax, word [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x10], 0
jbe 0x1400110af
movzx eax, word [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax + 0x10]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x80]
call fcn.140001131
movzx ecx, word [rsp + 0x40]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rdx + rcx + 0x14]
add rax, rcx
mov qword [rsp + 0x60], rax
movzx eax, word [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call fcn.140003832
jmp 0x140011003
mov rax, qword [rsp + 0x38]
add rsp, 0x70
pop rdi
ret

Function at 0x14000351c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14011ed70
mov rax, rcx
neg rcx
test rax, 7
je 0x14011ed8d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14011ede8
test al, 7
jne 0x14011ed80
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 0x14011eda1
mov rdx, qword [rax - 8]
test dl, dl
je 0x14011ee12
test dh, dh
je 0x14011ee0c
shr rdx, 0x10
test dl, dl
je 0x14011ee06
test dh, dh
je 0x14011ee00
shr rdx, 0x10
test dl, dl
je 0x14011edfa
test dh, dh
je 0x14011edf4
shr edx, 0x10
test dl, dl
je 0x14011edee
test dh, dh
jne 0x14011eda1
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 0x14000355d
Capabilities:
Query environment variable

Disassembly:
jmp 0x140165390
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140164f10
lea rcx, [rsp + 0x20]
call fcn.140164f60
movzx eax, al
test eax, eax
jne 0x1401653d5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140164f40
mov rax, qword [rsp + 0x40]
jmp 0x1401654cf
lea rcx, [rsp + 0x20]
call fcn.140165060
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140165000
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400038f0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140002ebe
lea rcx, [rsp + 0x28]
call fcn.140003daa
movzx eax, al
test eax, eax
jne 0x14016546f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.140005254
lea rcx, [rsp + 0x20]
call fcn.140164f40
mov rax, qword [rsp + 0x50]
jmp 0x1401654cf
lea rcx, [rsp + 0x20]
call fcn.140165060
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.140006226
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.140003832
lea rcx, [rsp + 0x28]
call fcn.140006ba4
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.140005254
lea rcx, [rsp + 0x20]
call fcn.140164f40
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x140003a76
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400b33b0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400b2d30
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400b33ef
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 [0x140201020]
jmp 0x1400b33f9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x140003cd8
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401650e0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140164f10
lea rcx, [rsp + 0x40]
call fcn.140165090
movzx eax, al
test eax, eax
jne 0x140165128
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140164f40
mov rax, qword [rsp + 0x70]
jmp 0x1401652f9
lea rcx, [rsp + 0x40]
call fcn.140165060
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140165000
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140165060
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.140004e8a
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1401651ce
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140164f40
mov rax, qword [rsp + 0x80]
jmp 0x1401652f9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400038f0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400036ca
lea rcx, [rsp + 0x48]
call fcn.1400030d5
movzx eax, al
test eax, eax
jne 0x140165235
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140001d02
lea rcx, [rsp + 0x40]
call fcn.140164f40
mov rax, qword [rsp + 0x88]
jmp 0x1401652f9
lea rcx, [rsp + 0x48]
call fcn.1400041c4
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140165060
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.140004e8a
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1401652cb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140001d02
lea rcx, [rsp + 0x40]
call fcn.140164f40
mov rax, qword [rsp + 0xa0]
jmp 0x1401652f9
lea rcx, [rsp + 0x48]
call fcn.140003684
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140001d02
lea rcx, [rsp + 0x40]
call fcn.140164f40
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x140003cf1
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400b32e0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400b2cb0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400b3321
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 [0x140201020]
jmp 0x1400b3327
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x140003db4
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401450f0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140144020
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140145157
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x140201030]
jmp 0x140145179
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14000304e
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140003dcd
Capabilities:
Terminate process

Disassembly:
jmp 0x14008f1a0
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 0x140004160
Capabilities:
Print debug messages

Disassembly:
jmp 0x140172a40
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401e6440]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140172a66
jmp 0x140172ae3
mov rcx, qword [rbp + 0x30]
call fcn.14000351c
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140172a7f
jmp 0x140172ae3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140172a9c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140001f32
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.140002531
test eax, eax
jne 0x140172ae3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14000380f
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x14000432c
Capabilities:
Parse pe header

Disassembly:
jmp 0x1401822d0
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 0x1401822f4
xor eax, eax
jmp 0x140182342
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 0x14018231c
xor eax, eax
jmp 0x140182342
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 0x14018233d
xor eax, eax
jmp 0x140182342
mov eax, 1
add rsp, 0x28
ret

Function at 0x1400045a2
Capabilities:
Set environment variable

Disassembly:
jmp 0x140167240
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x140004827
Capabilities:
Enumerate pe sections
Terminate process

Disassembly:
jmp 0x140010d00
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x100
lea rdi, [rsp + 0x20]
mov ecx, 0x38
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x110]
mov dword [rsp + 0xe8], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.140001055
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
xor eax, eax
mov word [rsp + 0x40], ax
jmp 0x140010d84
movzx eax, word [rsp + 0x40]
inc ax
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x140010de0
movzx eax, word [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov r8d, 5
lea rdx, str..pck
mov rcx, rax
call fcn.140002ef0
test eax, eax
jne 0x140010dde
movzx eax, word [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x140010de0
jmp 0x140010d77
cmp qword [rsp + 0x38], 0
jne 0x140010df3
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
sub rax, 8
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xe4]
call fcn.14000371a
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x110]
call fcn.14000400c
mov qword [rsp + 0xf0], rax
mov eax, dword [rsp + 0xe8]
or eax, 1
mov dword [rsp + 0xe8], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0xb4], eax
mov edx, 2
lea rcx, [rsp + 0xd8]
call fcn.140005c77
lea r9, [0x1401955c0]
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0xd8]
call fcn.1400059cf
mov rcx, qword [rsp + 0x110]
call fcn.140006a82
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
lea rdx, [rsp + 0xb4]
mov rcx, rax
call fcn.14000685c
test eax, eax
je 0x140010f2a
lea rdx, str.Error:_couldnt_decompress_image_data.
lea rcx, [0x1401e8ed0]
call fcn.140001910
mov qword [rsp + 0xf8], rax
lea rdx, [0x140001339]
mov rcx, qword [rsp + 0xf8]
call fcn.140003a44
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rax, qword [rsp + 0x110]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140195730]
call fcn.1400054a2
mov rax, rdi
add rsp, 0x100
pop rdi
ret
Function at 0x1400048cc
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400918b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400918d0
xor al, al
jmp 0x140091951
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400918e3
xor al, al
jmp 0x140091951
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 0x14009190d
xor al, al
jmp 0x140091951
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140091921
xor al, al
jmp 0x140091951
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140091933
xor al, al
jmp 0x140091951
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14009194f
xor al, al
jmp 0x140091951
mov al, 1
add rsp, 0x38
ret
Function at 0x140004d81
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140182140
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 0x14018219e
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 0x1401821dd
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
cmp qword [rsp + 0x38], rax
jb 0x1401821db
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 0x1401821db
mov rax, qword [rsp + 8]
jmp 0x1401821df
jmp 0x140182188
xor eax, eax
add rsp, 0x28
ret

Function at 0x140005146
Capabilities:
Terminate process

Disassembly:
jmp 0x1400b46a0
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 0x1400b46ce
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140005d0d
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 0x140005d8f
Capabilities:
Print debug messages

Disassembly:
jmp 0x140142740
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 0x140005ee8
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400b3420
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400b2d70
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400b3469
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 [0x140201020]
jmp 0x1400b3478
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x140005ffb
Capabilities:
Set environment variable

Disassembly:
jmp 0x14017d7d0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.140002e69
lea rcx, [rsp + 0x48]
call fcn.140002e69
call fcn.140003c60
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140002b44
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14017d83f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400033b4
lea rcx, [rsp + 0x78]
call fcn.1400033b4
mov eax, dword [rsp + 0x24]
jmp 0x14017d8d0
call fcn.140003c60
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140002b44
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14017d886
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400033b4
lea rcx, [rsp + 0x78]
call fcn.1400033b4
mov eax, dword [rsp + 0x2c]
jmp 0x14017d8d0
lea rcx, [rsp + 0x48]
call fcn.140002d83
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.140002d83
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400033b4
lea rcx, [rsp + 0x78]
call fcn.1400033b4
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140006a6e
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x1400192e0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov dword [rsp], 0
jmp 0x140019300
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jge 0x140019368
movsxd rax, dword [rsp]
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cdqe
imul rax, rax, 0x10
lea rcx, str.cw
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x28]
movzx ecx, byte [rdx + rcx]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
cdqe
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 8]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
jmp 0x1400192f8
add rsp, 0x10
pop rdi
ret