joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002560
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400054f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000257f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002588
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400025a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400054f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400025c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400025c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025c0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400025c0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002614
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002620
add rdx, 0x28
cmp rdx, r9
jne 0x140002600
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002630
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400054f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002652
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002660
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002652
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002652
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002652
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400026b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400026c8
add rdx, 0x28
cmp r10, rdx
jne 0x1400026a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400026d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400026e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400026be
test ecx, ecx
jg 0x1400026d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001131
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400a4320
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1400a3330
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a4355
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140131010]
jmp 0x1400a435f
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret
Function at 0x140001375
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400832c0
mov rax, rcx
neg rcx
test rax, 7
je 0x1400832dd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140083338
test al, 7
jne 0x1400832d0
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 0x1400832f1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140083362
test dh, dh
je 0x14008335c
shr rdx, 0x10
test dl, dl
je 0x140083356
test dh, dh
je 0x140083350
shr rdx, 0x10
test dl, dl
je 0x14008334a
test dh, dh
je 0x140083344
shr edx, 0x10
test dl, dl
je 0x14008333e
test dh, dh
jne 0x1400832f1
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 0x140001753
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x1400123f0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
lea rcx, [0x140130029]
call fcn.140001929
mov dword [rbp + 4], 0
jmp 0x14001243c
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 4
jae 0x1400124d9
mov dword [rbp + 0x24], 0
jmp 0x140012457
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 4
jae 0x1400124d4
mov eax, dword [rbp + 4]
mov rcx, qword [rbp + 0x148]
lea rax, [rcx + rax*4]
mov ecx, dword [rbp + 0x24]
movzx eax, byte [rax + rcx]
mov byte [rbp + 0x44], al
movzx eax, byte [rbp + 0x44]
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 [rbp + 0x118], rax
movzx ecx, byte [rbp + 0x44]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
cdqe
mov ecx, dword [rbp + 4]
mov rdx, qword [rbp + 0x148]
lea rcx, [rdx + rcx*4]
mov edx, dword [rbp + 0x24]
mov r8, qword [rbp + 0x118]
movzx eax, byte [r8 + rax]
mov byte [rcx + rdx], al
jmp 0x14001244f
jmp 0x140012434
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x140001a3c
Capabilities:
Terminate process

Disassembly:
jmp 0x14001cc30
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 0x140001a9b
Capabilities:
Link many functions at runtime

Disassembly:
jmp 0x1400221e0
sub rsp, 0x38
cmp dword [0x140120eb4], 0
je 0x1400221f4
xor eax, eax
jmp 0x140022453
cmp qword [0x140120ea8], 0
je 0x14002220a
mov rax, qword [0x140120ea8]
jmp 0x140022453
mov r8d, 0x48
xor edx, edx
lea rcx, [0x140120e50]
call fcn.140002e96
call sub.KERNEL32.dll_GetCurrentProcess
mov qword [0x140120e50], rax
xor r8d, r8d
xor edx, edx
lea rcx, str.dbghelp.dll
call sub.KERNEL32.dll_LoadLibraryExW
mov qword [0x140120e58], rax
cmp qword [0x140120e58], 0
jne 0x1400222c0
mov dword [0x140120eb4], 1
cmp qword [0x140120e58], 0
je 0x14002226c
mov rcx, qword [0x140120e58]
call sub.KERNEL32.dll_FreeLibrary
mov qword [0x140120e60], 0
mov qword [0x140120e68], 0
mov qword [0x140120e70], 0
mov qword [0x140120e78], 0
mov qword [0x140120e80], 0
mov qword [0x140120e88], 0
mov qword [0x140120e90], 0
xor eax, eax
jmp 0x140022453
lea rdx, str.ImagehlpApiVersionEx
mov rcx, qword [0x140120e58]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140120e60], rax
lea rdx, str.SymInitialize
mov rcx, qword [0x140120e58]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140120e68], rax
lea rdx, str.SymSetOptions
mov rcx, qword [0x140120e58]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140120e70], rax
lea rdx, str.SymGetOptions
mov rcx, qword [0x140120e58]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140120e78], rax
lea rdx, str.SymLoadModule64
mov rcx, qword [0x140120e58]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140120e80], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, qword [0x140120e58]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140120e88], rax
lea rdx, str.SymFromName
mov rcx, qword [0x140120e58]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140120e90], rax
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140002e96
mov eax, 0xc
mov word [rsp + 0x28], ax
cmp qword [0x140120e60], 0
je 0x1400223c4
cmp qword [0x140120e68], 0
je 0x1400223c4
cmp qword [0x140120e80], 0
je 0x1400223c4
cmp qword [0x140120e88], 0
je 0x1400223c4
cmp qword [0x140120e90], 0
jne 0x1400223c9
jmp 0x14002224c
lea rcx, [rsp + 0x28]
call qword [0x140120e60]
movzx eax, word [rsp + 0x28]
cmp eax, 0xc
jge 0x1400223e3
jmp 0x14002224c
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x140120e50]
call qword [0x140120e68]
test eax, eax
jne 0x1400223fe
jmp 0x14002224c
cmp qword [0x140120e78], 0
je 0x14002243e
cmp qword [0x140120e70], 0
je 0x14002243e
call qword [0x140120e78]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 0xfffffff8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
or eax, 0x2704
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
call qword [0x140120e70]
lea rax, [0x140120e50]
mov qword [0x140120ea8], rax
mov rax, qword [0x140120ea8]
add rsp, 0x38
ret
Function at 0x140001d8e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140023340
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140002e96
jmp 0x140023388
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x1400233a7
jmp 0x14002344b
cmp dword [rsp + 0x68], 0x1000
jne 0x1400233cc
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x1400233cc
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x1400233ce
jmp 0x140023373
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x140023404
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x140023404
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x140023409
jmp 0x140023373
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x140023373
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x20]
jmp 0x14002344d
xor eax, eax
add rsp, 0x88
ret

Function at 0x140001df2
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400a4380
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1400a3370
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a43bf
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 [0x140131010]
jmp 0x1400a43ce
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret
Function at 0x140001feb
Capabilities:
Parse pe header

Disassembly:
jmp 0x140023a00
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140002e96
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x140023a4a
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023b12
cmp dword [rsp + 0x60], 0x1000
jne 0x140023a6f
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x140023a6f
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x140023a80
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023b12
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140023aa7
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023b12
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x140023adb
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023b12
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x140023af6
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023b12
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x140023b12
add rsp, 0x78
ret

Function at 0x14000240a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140023dc0
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x50], 0
jne 0x140023de7
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140023e04
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023e72
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x140023e38
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023e72
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x140023e53
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023e72
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x50]
jmp 0x140023e72
add rsp, 0x48
ret
Function at 0x140002414
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400c3d90
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14011f018]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1400c3db6
jmp 0x1400c3e33
mov rcx, qword [rbp + 0x30]
call fcn.140001375
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1400c3dcf
jmp 0x1400c3e33
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1400c3dec
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140001050
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.1400033f5
test eax, eax
jne 0x1400c3e33
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140001e65
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x14000268a
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400b3a74
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 0x1400b3b5c
mov rsi, rax
cmp word [rax], r14w
je 0x1400b3ac7
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x1400b3aaf
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x1400b3aab
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.140003e4f
movsxd rbp, eax
test eax, eax
je 0x1400b3b5c
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.140002865
mov rdi, rax
test rax, rax
je 0x1400b3b4a
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.140003e4f
test eax, eax
je 0x1400b3b4a
mov rsi, rdi
mov rdi, r14
jmp 0x1400b3b4d
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.140004016
jmp 0x1400b3b5f
mov rsi, r14
test rbx, rbx
je 0x1400b3b6d
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 0x140002806
Capabilities:
Check for time delay via gettickcount

Disassembly:
jmp 0x140016fa0
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [0x140130072]
call fcn.140001929
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x64], 0x7530
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbp + 4], eax
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.Sleep
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x88], rax
mov ecx, dword [rbp + 0x64]
call qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 4]
mov ecx, dword [rbp + 0x24]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x64]
sub eax, 0x3e8
cmp dword [rbp + 0x44], eax
jbe 0x140017045
xor eax, eax
jmp 0x14001704a
mov eax, 1
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x140002ea0
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140032370
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.140031ce0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400323a7
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140131010]
jmp 0x1400323ad
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x38
ret
Function at 0x1400035b7
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400a1bf0
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 0x14000367f
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x140011760
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
lea rcx, [0x140130029]
call fcn.140001929
mov dword [rbp + 4], 0
jmp 0x1400117ac
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 4
jae 0x140011849
mov dword [rbp + 0x24], 0
jmp 0x1400117c7
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 4
jae 0x140011844
mov eax, dword [rbp + 4]
mov rcx, qword [rbp + 0x148]
lea rax, [rcx + rax*4]
mov ecx, dword [rbp + 0x24]
movzx eax, byte [rax + rcx]
mov byte [rbp + 0x44], al
movzx eax, byte [rbp + 0x44]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cdqe
imul rax, rax, 0x10
lea rcx, [0x1400e8250]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x118], rax
movzx ecx, byte [rbp + 0x44]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
cdqe
mov ecx, dword [rbp + 4]
mov rdx, qword [rbp + 0x148]
lea rcx, [rdx + rcx*4]
mov edx, dword [rbp + 0x24]
mov r8, qword [rbp + 0x118]
movzx eax, byte [r8 + rax]
mov byte [rcx + rdx], al
jmp 0x1400117bf
jmp 0x1400117a4
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x140003800
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400d0d80
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [rsp + 0x70]
call fcn.1400047eb
lea rcx, [rsp + 0x40]
call fcn.1400047eb
call fcn.140004390
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call fcn.140001735
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400d0def
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x40]
call fcn.140004561
lea rcx, [rsp + 0x70]
call fcn.140004561
mov eax, dword [rsp + 0x24]
jmp 0x1400d0e7c
call fcn.140004390
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
call fcn.140001735
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400d0e36
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x40]
call fcn.140004561
lea rcx, [rsp + 0x70]
call fcn.140004561
mov eax, dword [rsp + 0x2c]
jmp 0x1400d0e7c
lea rcx, [rsp + 0x40]
call fcn.140001023
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
call fcn.140001023
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.140004561
lea rcx, [rsp + 0x70]
call fcn.140004561
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
ret
Function at 0x1400038d7
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140032490
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.140031da0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400324cf
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 [0x140131010]
jmp 0x1400324de
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret

Function at 0x140003cc4
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001d760
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001d780
xor al, al
jmp 0x14001d801
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001d793
xor al, al
jmp 0x14001d801
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 0x14001d7bd
xor al, al
jmp 0x14001d801
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001d7d1
xor al, al
jmp 0x14001d801
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001d7e3
xor al, al
jmp 0x14001d801
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001d7ff
xor al, al
jmp 0x14001d801
mov al, 1
add rsp, 0x38
ret

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

Disassembly:
jmp 0x140012520
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x128]
lea rcx, [0x140130029]
call fcn.140001929
mov dword [rbp + 4], 0
jmp 0x14001256c
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 4
jge 0x1400125de
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x108]
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 [rbp + 0xd8], rax
movsxd rcx, dword [rbp + 4]
mov rdx, qword [rbp + 0x108]
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 [rbp + 4]
mov rdx, qword [rbp + 0x108]
mov r8, qword [rbp + 0xd8]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
jmp 0x140012564
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140003fe9
Capabilities:
Terminate process

Disassembly:
jmp 0x140043960
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 0x14004398e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140004160
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret