joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140033060
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14003309d
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400330a4
mov al, 1
jmp 0x1400331fc
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.140033e40
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.140033e40
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.140033ea0
movzx eax, al
test eax, eax
je 0x1400330f9
xor al, al
jmp 0x1400331fc
mov qword [rsp + 0x60], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140033169
cmp dword [rsp + 0x30], 1
je 0x140033175
cmp dword [rsp + 0x30], 3
je 0x1400331ea
jmp 0x1400331fa
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x1400331c1
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x1400331c1
xor al, al
jmp 0x1400331fc
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400331db
mov dword [rsp + 0x34], 1
jmp 0x1400331e3
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x1400331fc
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400331fc
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140038c60
add rsp, 0xa8
ret

Function at 0x140038794
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400387ce
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400387d3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14003881c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14003b740]
cmp byte [rcx + rax], 0
je 0x14003881c
dec r8
sub rdx, 1
jne 0x140038802
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140038b14
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140038834
mov ebx, eax
test eax, eax
jne 0x140038b44
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140038ba7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140038b9e
test al, 0x10
je 0x140038b9e
bt eax, 0xa
jae 0x140038b97
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140038bb8
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140038b93
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140038b93
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x140038b9e
and dword [rsp + 0x3c], 0
jmp 0x140038ba3
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14003984c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140039896
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140039896
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140039896
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140039896
cmp dword [rcx + 0x84], 0xe
jbe 0x140039896
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140039898
xor al, al
add rsp, 0x28
ret
Function at 0x14001baf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, r8
mov qword [rsp + 0x30], 0
mov rsi, rdx
mov dword [rsp + 0x38], 0
mov rbp, rcx
mov byte [rsp + 0x3c], 0
mov r8d, 0xa
lea rdx, [0x1400e4ed8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14001bb5b
lea r8d, [rax + 0xa]
xor ecx, ecx
lea rdx, [0x1400e4f00]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14001bbc5
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x38], eax
test eax, eax
je 0x14001bbc5
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001bbc5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001bbc5
mov r9d, 0xfde9
lea rdx, [rsp + 0x30]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, rsi
call fcn.140089340
mov rax, qword [rbp + 0xb80]
inc dword [0x140107140]
mov qword [0x140107148], rax
mov eax, 3
jmp 0x14001bbe4
xorps xmm3, xmm3
mov qword [rsp + 0x20], 0
mov r8, rdi
lea rcx, [0x1400e4f20]
xor edx, edx
call fcn.140091370
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140004300
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x150
mov rax, qword [0x14005f020]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, r9
mov rsi, rcx
test dl, dl
jne 0x1400043a6
lea r8, str._failed:_LateBindingNotFound
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140005800
cmp qword [rsp + 0x38], 0x10
lea r8, [rsp + 0x20]
lea rcx, [rsi + 0x18]
mov edx, 0xc8
cmovae r8, qword [rsp + 0x20]
call fcn.140007b90
mov rdx, qword [rsp + 0x38]
mov ebx, 5
cmp rdx, 0x10
jb 0x14000449a
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000448e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400044f5
jmp 0x14000448e
test r8d, r8d
jne 0x140004495
mov qword [rsp + 0x168], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str._failed__lu
mov edx, 0x100
mov r9d, eax
lea rcx, [rsp + 0x40]
mov edi, eax
call fcn.140001cb0
lea r8, [rsp + 0x40]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140005800
cmp qword [rsp + 0x38], 0x10
lea r8, [rsp + 0x20]
lea rcx, [rsi + 0x18]
mov edx, 0xc8
cmovae r8, qword [rsp + 0x20]
call fcn.140007b90
cmp edi, 2
je 0x14000444d
cmp edi, 5
je 0x140004446
cmp edi, 0xbb9
je 0x14000443f
cmp edi, 0x800b0110
je 0x140004438
cmp edi, 0xe000020b
mov ebx, 3
mov eax, 7
cmovne ebx, eax
jmp 0x140004452
mov ebx, 6
jmp 0x140004452
mov ebx, 8
jmp 0x140004452
mov ebx, 2
jmp 0x140004452
mov ebx, 4
mov rdx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x168]
cmp rdx, 0x10
jb 0x14000449a
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000448e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400044ef
call fcn.14001f130
jmp 0x14000449a
mov ebx, 1
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400044cc
cmp ebx, 1
jne 0x1400044b9
mov rax, qword [rax]
mov rax, qword [rax + 0x48]
call qword [case.0x1400132ae.0]
test eax, eax
jne 0x1400044cc
mov rcx, qword [rsi + 8]
mov rdx, qword [rcx]
mov ecx, ebx
mov rax, qword [rdx + 0x40]
call qword [case.0x1400132ae.0]
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001f110
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rsi
ret
call fcn.14002ad18
int3
call fcn.14002ad18
int3
Function at 0x140007930
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x58
mov rax, qword [0x14005f020]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14d, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rdx
test rdx, rdx
je 0x140007971
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400079a3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, r14d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
test rbx, rbx
je 0x1400079b1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001f110
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14003a4c8
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 0x14003a4f8
xor eax, eax
jmp 0x14003a5bb
mov rbp, rbx
cmp word [rax], si
je 0x14003a51d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003a504
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003a500
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.140035118
movsxd r14, eax
test eax, eax
jne 0x14003a55b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003a4f1
mov rcx, r14
call fcn.140033478
mov rdi, rax
test rax, rax
jne 0x14003a574
xor ecx, ecx
call fcn.14003343c
jmp 0x14003a550
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.140035118
test eax, eax
jne 0x14003a5a5
mov rcx, rdi
call fcn.14003343c
jmp 0x14003a5af
xor ecx, ecx
call fcn.14003343c
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 0x1406d951e
Capabilities:
Encode data using xor

Disassembly:
add rdi, 2
xor r8w, r11w
not r8w
xor r8w, 0x8693
sub byte [rsp + 5], 0x1c
jno 0x1406e29d1
mov ebx, 0xe09eba4
and bx, 0xdd13
mov ebx, dword [rbx + rsi - 0xe09c900]
push 0xffffffffd4a47502
mov r8d, 0xf500a088
adc rsi, 4
sal r8, 0xb1
jne 0x1406ed34b
not r10d
call fcn.1406e9f26
jmp 0x1406d0b27
push 0xffffffffffa6781a
lea rsp, [rsp + 8]
jmp fcn.1406cf4ea
ror r8w, 1
sub r8w, 0x7abf
not r8w
xor r11w, r8w
lea r8, [rsp + r8 + 8]
push 0xfffffffffab9643c
mov dword [r8], ebx
lea rsp, [rsp + 0x10]
jmp fcn.1406dbf17
movzx r8d, word [rdi]
je 0x1406dc090
jne 0x1406cf0a9
add rbp, 6
push 0xfffffffff20ada9c
mov word [rbp + riz], dx
lea rsp, [rsp + 8]
jmp fcn.1406cf4ae

Function at 0x1406e55c2
Capabilities:
Encode data using xor

Disassembly:
add r10, 6
call fcn.1406ee535
mov rbx, qword [r10]
call fcn.1406c96ad
jnp 0x1406ece46
jmp 0x1406cf69f
shl r9d, cl
mov dword [rsi], r9d
lea rsp, [rsp + 8]
jmp fcn.1406dbf17
lea r8, [0x1406ca368]
lea rsp, [rsp + 8]
mov edi, 0xf3a87db1
movzx edi, byte [r9]
push 0x4415a200
xor edi, eax
neg dword [rsp]
and edi, 0xff
ror dword [rsp], 0xe8
mov edi, dword [r8 + rdi*4]
rol dword [rsp + 2], 0xd1
shr eax, 8
xor qword [rsp], 0x2698f883
rol qword [rsp], 1
xor eax, edi
inc r9
xor eax, 0xe8b43307
dec rcx
lea rsp, [rsp + 8]
jne 0x1406e55ce
mov edi, 0xeb8bdcba
pop rdi
call fcn.1406df1a0
mov r9d, dword [rsi]
mov ecx, 0xfabc6b85
or rcx, rcx
mov cl, byte [rsi + 4]
jne 0x1406d4dcf
mov rax, qword [r10]
movzx cx, byte [rax]
jmp 0x1406c60d5
push 0xffffffffd7b7820e
adc rsi, 2
jmp 0x1406ddbae

Function at 0x1406fc8ce
Capabilities:
Encode data using xor

Disassembly:
call fcn.1406d9de5
mov qword [rsp], 0xffffffffdea37300
xor esi, esi
test rbx, rbx
lea rsp, [rsp + 8]
je 0x1406f8546
mov edi, 0xec0d4206
push r9
mov r9d, edi
lea rdi, [0x1406e66e8]
movzx r9d, byte [rdx]
xor r9d, esi
push 0x2d985f85
and r9d, 0xff
mov r9d, dword [rdi + r9*4]
shr esi, 8
xor esi, r9d
inc rdx
xor esi, 0x4c17572c
not byte [rsp + 7]
dec rbx
lea rsp, [rsp + 8]
jne 0x1406fc8f7
call fcn.1406f853c
Function at 0x14078e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14078e1df
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 0x14078e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14078e06f
add dl, dl
jne 0x14078e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14078e0f6
xor eax, eax
add dl, dl
jne 0x14078e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14078e1ad
add dl, dl
jne 0x14078e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14078e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14078e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14078e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14078e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14078e07e
mov eax, 1
add dl, dl
jne 0x14078e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14078e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14078e0fb
sub eax, ebx
mov ebx, 1
jne 0x14078e14c
mov ecx, 1
add dl, dl
jne 0x14078e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14078e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14078e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14078e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14078e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14078e15d
cmp eax, 0x7d00
jae 0x14078e19b
cmp eax, 0x500
jb 0x14078e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078e07e
cmp eax, 0x7f
ja 0x14078e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14078e1d2
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 0x14078e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x48
mov rcx, qword [str.malware_experiment]
call fcn.140001efc
inc rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
shl rax, 1
mov rcx, rax
call fcn.1400011a4
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14000105d
lea rdx, [rsp + 0x28]
lea rcx, [0x140001064]
call qword [sym.imp.USER32.dll_EnumWindows]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x28]
call fcn.1400011c8
mov eax, dword [rsp + 0x20]
jmp 0x14000105f
xor eax, eax
add rsp, 0x48
ret

Function at 0x140001b6c
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 2
mov r8d, 4
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
add rsp, 0x28
ret
Function at 0x140002e48
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140002eb6
mov eax, dword [rsp + 0x20]
shl rax, 1
mov rcx, rax
call fcn.1400011a4
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140002eb0
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140002eaa
mov rax, qword [rsp + 0x28]
jmp 0x140002eb8
xor eax, eax
jmp 0x140002eb8
xor eax, eax
jmp 0x140002eb8
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400112c6
Capabilities:
Terminate process

Disassembly:
jmp 0x1400149e0
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 0x140011389
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015d30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015d50
xor al, al
jmp 0x140015dd1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015d63
xor al, al
jmp 0x140015dd1
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 0x140015d8d
xor al, al
jmp 0x140015dd1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015da1
xor al, al
jmp 0x140015dd1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015db3
xor al, al
jmp 0x140015dd1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015dcf
xor al, al
jmp 0x140015dd1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400043c0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1400ae0c0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
xor ebx, ebx
mov eax, dword [rcx + rax]
cmp dword [0x1400af7a8], eax
jle 0x1400044d1
lea rcx, [0x1400af7a8]
call fcn.140083760
cmp dword [0x1400af7a8], 0xffffffff
jne 0x1400044d1
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rbx
mov qword [rbp + 0x1f], reloc.WS2_32.dll_ntohs
lea ecx, [rbx + 0x20]
call fcn.1400837d8
mov qword [rbp + 7], rax
mov qword [rbp + 0x17], reloc.WS2_32.dll_select
mov qword [rbp + Ordinal_35], 0x1f
movups xmm0, xmmword [0x1400974f8]
movups xmmword [rax], xmm0
movzx ecx, word [0x140097508]
mov word [rax + 0x10], cx
mov byte [rax + 0x12], bl
lea r8, [rbp + 7]
mov rdx, qword [0x1400af3d8]
mov rcx, rdi
call fcn.1400049f0
mov qword [0x1400af870], rax
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x1400044c5
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400044bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400044bf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400836b0
nop
lea rcx, [0x1400af7a8]
call fcn.1400836f4
mov r8, qword [0x1400af870]
test r8, r8
jne 0x1400045a9
mov dword [rbp - 0x49], 0xa4d0a30
mov dword [rbp - 0x45], 0xa4e0a30
mov dword [rbp - 0x41], 0xa110a29
mov dword [rbp - 0x3d], 0xa1e0a18
mov dword [rbp - 0x39], 0xa100a16
mov dword [rbp - 0x35], 0xa020a55
mov dword [rbp - 0x31], 0xa580a18
mov dword [rbp - 0x2d], 0xa130a1f
mov dword [rbp - 0x29], 0xa180a15
mov dword [rbp - 0x25], 0xa330a5d
mov dword [rbp - 0x21], 0xad50a12
mov dword [rbp - 0x1d], 0xaef0aef
mov dword [rbp - 0x19], 0xaf40ae2
mov dword [rbp - 0x15], 0xae90ac9
mov dword [rbp - 0x11], 0xae30ae4
mov dword [rbp - 0xd], 0xaee0aec
mov dword [rbp - 9], 0xaed0adb
mov dword [rbp - 5], 0xaeb0aea
mov dword [rbp - 1], 0xafc
mov byte [rbp + 3], 1
mov ecx, 0xa6b
nop
lea eax, [rcx + rbx]
xor word [rbp + rbx*2 - 0x49], ax
inc rbx
cmp rbx, 0x25
jb 0x140004570
mov byte [rbp + 3], 0
lea rdx, [rbp - 0x49]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000b2d0
lea rdx, [0x14000b4b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
jmp 0x1400045bd
mov qword [rsp + 0x20], r14
mov r9, rsi
lea rdx, [rbp + 0x27]
mov rcx, rdi
call fcn.14000c8a0
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140083690
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400045e0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x1400ae0c0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rdx
mov rdi, rcx
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
xor ebx, ebx
mov eax, dword [rcx + rax]
cmp dword [0x1400af780], eax
jle 0x1400046ef
lea rcx, [0x1400af780]
call fcn.140083760
cmp dword [0x1400af780], 0xffffffff
jne 0x1400046ef
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x2f], reloc.WS2_32.dll_ntohs
lea ecx, [rbx + 0x20]
call fcn.1400837d8
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x27], reloc.WS2_32.dll_select
mov qword [rbp + 0x2f], Ordinal_35
movups xmm0, xmmword [str.MmFreePagesFromMdl]
movups xmmword [rax], xmm0
movzx ecx, word [0x140097520]
mov word [rax + 0x10], cx
mov byte [rax + 0x12], bl
lea r8, [rbp + 0x17]
mov rdx, qword [0x1400af3d8]
mov rcx, rdi
call fcn.1400049f0
mov qword [0x1400af848], rax
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x1400046e3
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400046dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400046dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400836b0
nop
lea rcx, [0x1400af780]
call fcn.1400836f4
mov r8, qword [0x1400af848]
test r8, r8
jne 0x1400047c9
mov dword [rbp - 0x39], 0xa4d0a30
mov dword [rbp - 0x35], 0xa4e0a30
mov dword [rbp - 0x31], 0xa110a29
mov dword [rbp - 0x2d], 0xa1e0a18
mov dword [rbp - 0x29], 0xa100a16
mov dword [rbp - 0x25], 0xa020a55
mov dword [rbp - 0x21], 0xa580a18
mov dword [rbp - 0x1d], 0xa130a1f
mov dword [rbp - 0x19], 0xa180a15
mov dword [rbp - 0x15], 0xa330a5d
mov dword [rbp - 0x11], 0xac60a12
mov dword [rbp - 0xd], 0xae70af3
mov dword [rbp - 9], 0xad40ae6
mov dword [rbp - 5], 0xae10ae4
mov dword [rbp - 1], 0xafb0ae2
mov dword [rbp + 3], 0xaf80acf
mov dword [rbp + 7], 0xae10ae4
mov dword [rbp + 0xb], 0xaea0ac0
mov dword [rbp + 0xf], 0xae3
mov byte [rbp + 0x13], 1
mov ecx, 0xa6b
nop dword [rax]
lea eax, [rcx + rbx]
xor word [rbp + rbx*2 - 0x39], ax
inc rbx
cmp rbx, 0x25
jb 0x140004790
mov byte [rbp + 0x13], 0
lea rdx, [rbp - 0x39]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000b2d0
lea rdx, [0x14000b4b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
jmp 0x1400047d8
mov r9, rsi
lea rdx, [rbp + 0x37]
mov rcx, rdi
call fcn.14000cf30
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140083690
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret