joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b90
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x0040d0c4]
mov r12, rcx
test ebx, ebx
jle 0x401cc0
mov rax, qword [0x0040d0c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x401bdc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401c63
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x401bc0
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x401ce2
mov rax, qword [0x0040d0c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040d0c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401cc7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401c5c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x401c70
add dword [0x0040d0c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x0040d0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401c5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x401be7
mov rax, qword [0x0040d0c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x4021b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040d120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040d100]
test rbx, rbx
je 0x402204
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x4021fb
test r12, r12
je 0x4021fb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4021e0
lea rcx, [0x0040d120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402420
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x402438
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x402440
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x402450
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x40249c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x402493
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x40249e
add rax, 0x28
cmp rax, r9
jne 0x402480
xor eax, eax
ret

Function at 0x4024a0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x402530
mov rdx, qword [0x00409760]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x40251e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x40251e
cmp word [rax + 0x18], 0x20b
jne 0x40251e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402530
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x402509
add r12, 0x28
cmp r12, rsi
je 0x402530
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x402500
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x00409760]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x402560
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x402568
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402560
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x4025b5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x4025ac
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402560
add rax, 0x28
cmp rax, r9
jne 0x402598
xor eax, eax
ret

Function at 0x4025c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00409760]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4025e0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4025e8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x4025e0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x402600
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x00409760]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x402620
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x402628
ret
cmp word [rdx + 0x18], 0x20b
jne 0x402620
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x402668
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x40265f
test rcx, rcx
je 0x402620
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x402650
xor eax, eax
ret

Function at 0x402670
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00409760]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402690
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x402698
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x4026b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x00409760]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4026d0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x4026d8
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x4026d0
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x4026d0
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x402714
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402728
add rax, 0x28
cmp r9, rax
jne 0x402700
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x00409760]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x402762
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x402770
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402762
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x402762
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x402762
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x4027bd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x4027d0
add rdx, 0x28
cmp r10, rdx
jne 0x4027a8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x4027df
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x4027ef
mov edx, dword [rax + 0xc]
test edx, edx
je 0x4027c6
test ecx, ecx
jg 0x4027d8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140002734
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
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]

Function at 0x140002dc4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002e0e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002e0e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002e0e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002e0e
cmp dword [rcx + 0x84], 0xe
jbe 0x140002e0e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002e10
xor al, al
add rsp, 0x28
ret

Function at 0x140011de0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x140011e0d
xor al, al
jmp 0x140011f6f
mov rax, qword [0x140032700]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x140032708]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x140032710]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x140032718]
mov qword [rcx + 0x18], rax
mov rax, qword [0x140032720]
mov qword [rcx + 0x20], rax
mov rax, qword [0x140032728]
mov qword [rcx + 0x28], rax
mov rax, qword [0x140032730]
mov qword [rcx + 0x30], rax
mov rax, qword [0x140032738]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140032740]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x140011f61
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140011eb9
mov r11d, 2
jmp 0x140011edd
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140011ed3
mov r11d, 1
jmp 0x140011edd
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x140011f85
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x140011f22
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x140011f3a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x140011f4a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x140011f58
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140011ea0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x140011f6a
Function at 0x140003f34
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003f7e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003f7e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003f7e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003f7e
cmp dword [rcx + 0x84], 0xe
jbe 0x140003f7e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003f80
xor al, al
add rsp, 0x28
ret
Function at 0x1400081e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r8d, edx
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x88], edi
cmp qword [rcx + 0x18], 0x10
jb 0x140008218
mov rcx, qword [rcx]
mov rdx, qword [rbx + 0x58]
add rdx, rcx
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x88]
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140008245
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000828c
mov ecx, dword [rsp + 0x88]
add qword [rbx + 0x58], rcx
test ecx, ecx
jne 0x14000826b
mov rcx, qword [rbx + 0x40]
mov qword [rbx + 0x40], rdi
test rcx, rcx
je 0x140008267
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x48], rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14000ad20
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
ret
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.1400096c0
nop
mov r8, rax
lea rdx, str.ReadFile_error
lea rcx, [rsp + 0x68]
call fcn.140008ac0
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140009840
lea rdx, [0x140031940]
lea rcx, [rsp + 0x30]
call fcn.14000c84c
int3
Function at 0x14000b68c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b6d6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b6d6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b6d6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b6d6
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b6d6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000b6d8
xor al, al
add rsp, 0x28
ret

Function at 0x140017504
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140017300
Function at 0x14001bd08
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001bd8f
mov rsi, rbx
cmp word [rax], bp
je 0x14001bd4e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001bd38
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001bd34
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140019520
mov rdi, rax
test rax, rax
je 0x14001bd7c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140010620
mov rbp, rdi
xor ecx, ecx
call fcn.140018b60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001e000
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001e016
mov al, 1
jmp 0x14001e076
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001e027
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001e074
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001c510
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001e074
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001e074
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001e074
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001e076
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140022be0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140022c08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140022c08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400111f9
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140014160
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014180
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014193
xor al, al
jmp 0x140014201
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 0x1400141bd
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400141d1
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400141e3
xor al, al
jmp 0x140014201
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400141ff
xor al, al
jmp 0x140014201
mov al, 1
add rsp, 0x38
ret
Function at 0x1402581e0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call fcn.140281170
sub rsp, rax
mov rax, qword [0x1404a7648]
xor rax, rsp
mov qword [rsp + 0x1090], rax
lea r14, [rsp + 0x30]
mov qword [rsp + 0x20], r14
lea rcx, [0x1404aadec]
lea rdx, [0x1404bb4f8]
lea r8, [0x1404bb509]
lea r9, [rsp + 0x38]
call fcn.140258aa0
test eax, eax

Function at 0x1402586e0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
mov rsi, r8
mov r8, rcx
mov r9d, dword [rdx]
mov eax, dword [rdx + 4]
bswap r9d
bswap eax
mov r11d, dword [rdx + 8]
bswap r11d
mov edx, dword [rdx + 0xc]
bswap edx
xor r10d, r10d
nop word cs:[rax + rax]
mov ebx, eax
xor r9d, eax
mov ecx, ebx
rol r9d, cl
mov eax, r11d
mov ecx, edx
xor eax, edx
mov r11d, edx
rol eax, cl
mov edx, r9d
add edx, dword [r8 + r10*8]
add eax, dword [r8 + r10*8 + 4]
inc r10
mov r9d, ebx
cmp r10, 0x14
jne 0x140258710
add ebx, dword [r8 + 0xa0]
add r11d, dword [r8 + 0xa4]
Function at 0x140259720
Capabilities:
Set current directory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1404a7648]
xor rax, rsp
mov qword [rsp + 0x138], rax
xor ecx, ecx
call fcn.1403d3620
mov ecx, eax
call fcn.1403d70c4
call fcn.140259670
mov edx, 0x104
mov rcx, rsi
mov r8, rdi
call fcn.140259be0
lea r13, [rsi + 0x104]
call fcn.1403d70dc
movsxd rcx, eax
mov rax, rcx
shr rax, 1
movabs rdi, 0x8421084210842109
mul rdi
shr rdx, 4
mov rax, rdx
shl rax, 6
add rdx, rdx
sub rdx, rax
add rdx, rcx
lea rbx, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
movzx eax, byte [rbx + rdx]
mov byte [rsi + 0x104], al
call fcn.1403d70dc
movsxd rcx, eax
mov rax, rcx
shr rax, 1
mul rdi
shr rdx, 4
mov rax, rdx
shl rax, 6
add rdx, rdx
sub rdx, rax
add rdx, rcx
movzx eax, byte [rbx + rdx]
mov byte [rsi + 0x105], al
call fcn.1403d70dc
movsxd rcx, eax
mov rax, rcx
shr rax, 1
mul rdi
shr rdx, 4
mov rax, rdx
shl rax, 6
add rdx, rdx
sub rdx, rax
add rdx, rcx
movzx eax, byte [rbx + rdx]
mov byte [rsi + 0x106], al
call fcn.1403d70dc
movsxd rcx, eax
mov rax, rcx
shr rax, 1
mul rdi
shr rdx, 4
mov rax, rdx
shl rax, 6
add rdx, rdx
sub rdx, rax
add rdx, rcx
movzx eax, byte [rbx + rdx]
mov byte [rsi + 0x107], al
call fcn.1403d70dc
movsxd rcx, eax
mov rax, rcx
shr rax, 1
mul rdi
shr rdx, 4
mov rax, rdx
shl rax, 6
add rdx, rdx
sub rdx, rax
add rdx, rcx
movzx eax, byte [rbx + rdx]
mov byte [rsi + 0x108], al
call fcn.1403d70dc
movsxd rcx, eax
mov rax, rcx
shr rax, 1
mul rdi
shr rdx, 4
mov rax, rdx
shl rax, 6
add rdx, rdx
sub rdx, rax
add rdx, rcx
movzx eax, byte [rbx + rdx]
mov byte [rsi + 0x109], al
call fcn.1403d70dc
movsxd rcx, eax
mov rax, rcx
shr rax, 1
mul rdi
shr rdx, 4
mov rax, rdx
shl rax, 6
add rdx, rdx
sub rdx, rax
add rdx, rcx
movzx eax, byte [rbx + rdx]
mov byte [rsi + 0x10a], al
call fcn.1403d70dc
movsxd rcx, eax
mov rax, rcx
shr rax, 1
mul rdi
shr rdx, 4
mov rax, rdx
shl rax, 6
add rdx, rdx
sub rdx, rax
add rdx, rcx
movzx eax, byte [rbx + rdx]
mov byte [rsi + 0x10b], al
mov byte [rsi + 0x10c], 0
lea r15, [rsi + 0x10d]
call fcn.1403d70dc
movsxd rcx, eax
mov rax, rcx
shr rax, 1
mul rdi
shr rdx, 4
mov rax, rdx
shl rax, 6
add rdx, rdx
sub rdx, rax
add rdx, rcx
movzx eax, byte [rbx + rdx]

Function at 0x140259c70
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x160
mov rdi, rcx
mov rax, qword [0x1404a7648]

Function at 0x140259f60
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1404a7648]
xor rax, rsp
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov edx, 8
mov r8, rsi

Function at 0x14025a0f0
Capabilities:
Check mutex on windows
Get hostname

Disassembly:
push rsi
sub rsp, 0x240
mov rax, qword [0x1404a7648]
xor rax, rsp
mov qword [rsp + 0x238], rax
mov dword [rsp + 0x2c], 0x104
Function at 0x14025a170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
xor r15d, r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x14025a219
mov rsi, rax
call fcn.140259670
xor r15d, r15d
xor ecx, ecx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
xor ecx, ecx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
call fcn.140259530
test rbx, rbx
je 0x14025a219
call fcn.140259530
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14025a1fc
mov r15, rax
call fcn.140259670
add r14d, 0xfffffc00
mov rcx, rdi
mov rdx, r15
mov r8, r14
call fcn.140259f60
test eax, eax
je 0x14025a1fc
call fcn.140259530
call fcn.140259670
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, 1
mov eax, r15d
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1402660c0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140281170
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x140266730
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov eax, 0x278
call fcn.140281170
sub rsp, rax
lea rbp, [rsp + 0x50]
mov rax, qword [0x1404a7648]
xor rax, rbp
mov qword [rbp + 0x210], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
test rax, rax
je 0x1402667f3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x1402667f3
lea rdi, [rbp + 0x268]
call fcn.140258a10
mov r9, qword [rbp + 0x260]
lea rdx, [rbp + 0x10]
mov qword [rsp + 0x28], rdi
xor esi, esi
mov edi, 0x200
mov qword [rsp + 0x20], rsi
mov rcx, qword [rax]
mov r8d, edi
or rcx, 1
call fcn.1403c4258
test eax, eax
mov qword [rsp + 0x20], rsi
mov ecx, 0xffffffff
lea r9, [rbp]
cmovs eax, ecx
lea rdx, [rbp + 0x10]
test eax, eax
mov rcx, rbx
cmovs eax, edi
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140266aa1
mov r8, qword [rbp + 0x260]
mov rcx, r8
call fcn.140266710
lea r9d, [rax + 1]
lea rax, [r9 + r9]
mov ebx, r9d
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140266820
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140281170
sub rsp, rcx
xor esi, esi
lea rdi, [rsp + 0x50]
test rdi, rdi
jne 0x140266847
lea rdi, str.no_stack_
jmp 0x1402669ef
mov dword [rsp + 0x28], r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14026697d
mov rcx, rsi
test rbx, rbx
je 0x14026695c
cmp rbx, 4
jb 0x140266961
mov rdx, qword [rbp + 0x260]
lea r8, [rbx - 1]
lea r8, [rdi + r8*2]
lea rax, [rdx - 1]
add rax, rbx
cmp rdi, rax
ja 0x14026689d
cmp r8, rdx
jae 0x140266970
cmp rbx, 0x20
jb 0x140266929
mov rdx, rbx
mov r9, rbx
and edx, 0x1f
sub r9, rdx
mov rax, qword [rbp + 0x260]
lea r8, [rdi + 0x20]
add rax, 0x10

Function at 0x14026f6e0
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x14026f707
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x14026f6f0
movzx eax, r9b
ret