joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b3440
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400f4140]
xor rax, rsp
mov qword [rbp - 8], rax
mov edx, 1
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
mov esi, 2
mov dword [rbp - 0x3c], 1
mov ecx, esi
mov rdi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400b3492
jmp 0x1400b365b
mov qword [rsp + 0x90], r14
mov ecx, 0x7f000001
xor r14d, r14d
mov word [rbp - 0x38], si
mov qword [rbp - 0x30], r14
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rbp - 0x3c]
mov word [rbp - 0x36], r14w
mov edx, 0xffff
mov dword [rbp - 0x34], eax
lea r8d, [r14 + 4]
mov qword [rdi + 8], 0xffffffffffffffff
mov rcx, rbx
mov qword [rdi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400b3632
lea r8d, [r14 + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400b3632
lea r8, [rbp - 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400b3632
cmp dword [rbp - 0x40], 0x10
jl 0x1400b3632
lea edx, [r14 + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1400b3632
xor r8d, r8d
lea edx, [r14 + 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x1400b3632
lea r8d, [r14 + 0x10]
mov rcx, rax
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400b3632
lea edx, [r14 + 1]
mov rcx, rbx
call fcn.1400b3870
test eax, eax
js 0x1400b3632
lea edx, [r14 + 1]
mov qword [rbp - 0x18], rbx
mov r8d, 0x2710
mov dword [rbp - 0x10], 0x300
lea rcx, [rbp - 0x18]
call fcn.1400ad820
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1400b3632
mov rcx, qword [rdi]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400b3632
cmp dword [rbp - 0x40], 0x10
jl 0x1400b3632
mov rcx, qword [rdi + 8]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x1400b3632
cmp dword [rbp - 0x40], 0x10
jl 0x1400b3632
movzx eax, word [rbp - 0x28]
cmp word [rbp - 0x38], ax
jne 0x1400b3632
mov eax, dword [rbp - 0x24]
cmp dword [rbp - 0x34], eax
jne 0x1400b3632
movzx eax, word [rbp - 0x26]
cmp word [rbp - 0x36], ax
jne 0x1400b3632
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1400b3653
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov r14, qword [rsp + 0x90]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400be150
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b3740
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
je 0x1400b3777
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
Function at 0x1400bd770
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.1400911b0
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400bd916
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x1400bd800
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x1400bd862
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x1400bd820
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1400bd8a3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1400ccce1]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400ccce2]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400bd870
mov rcx, qword [rsp + 0x70]
call fcn.1400911b0
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x1400bd8d2
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [fcn.1400bf3c8]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, 0x1b
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x1400bdb88
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 0x1400bdbc2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400bdbc7
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 0x1400bdc10
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400bdc10
dec r8
sub rdx, 1
jne 0x1400bdbf6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400bf03c
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14000b1c8]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r14d, r8d
mov r12, rcx
mov r15, qword [rbp + 0x1b0]
or rbx, 0xffffffffffffffff
xor r13d, r13d
test r8d, r8d
jne 0x14000133e
test r9d, r9d
je 0x1400013ac
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x28]
call fcn.140002d94
nop
lea rdx, str.TypeLibEE45FDEE_232D_4fae_92E9_9A9ED142C3462.0
mov rax, rbx
inc rax
cmp word [rdx + rax*2], r13w
jne 0x14000135a
mov r8d, eax
lea rcx, [rsp + 0x28]
call fcn.140003110
mov rdx, qword [rsp + 0x28]
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
nop dword [rax + rax]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400013ac
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400075b0]
mov edi, r13d
lea rbx, [r15 + 0x18]
mov esi, 7
test r14d, r14d
jne 0x1400013c6
cmp dword [rbx], r13d
je 0x140001482
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_memset
movsxd rcx, edi
shl rcx, 5
add rcx, r15
mov r8d, 0x104
lea rdx, [rsp + 0x40]
call qword [sym.imp.ole32.dll_StringFromGUID2]
nop dword [rax + rax]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x20]
call fcn.140002d94
nop
mov r8d, 0xa
lea rdx, str.Interface_
lea rcx, [rsp + 0x20]
call fcn.140003110
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x14000142b
mov r8d, eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140003110
mov rdx, qword [rsp + 0x20]
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
nop dword [rax + rax]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140001482
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400075b0]
inc edi
add rbx, 0x20
sub rsi, 1
jne 0x1400013b8
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140005930
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140001a88
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x30
mov r15, r9
mov r14, r8
mov rsi, rdx
xor ebx, ebx
test rcx, rcx
jne 0x140001ae2
lea rdx, str.CommandLine_is_NULL
mov rcx, qword [rsp + 0x80]
call fcn.140002c70
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
ret
mov dword [rsp + 0x50], ebx
lea rdx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x140001b29
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r8d, eax
lea rdx, str.CommandLineToArgvW_failed__error0x_x.
mov rcx, qword [rsp + 0x80]
call fcn.140003370
jmp 0x140001ac5
mov eax, dword [rsp + 0x50]
dec eax
cmp eax, 3
ja 0x140001cb9
mov rdx, rsi
mov rcx, qword [rdi]
call qword [sym.imp.ole32.dll_CLSIDFromString]
nop dword [rax + rax]
test eax, eax
jns 0x140001b6b
movzx r8d, ax
lea rdx, str.CLSIDFromStringfailed__error0x_x.
mov rcx, qword [rsp + 0x80]
call fcn.140003370
jmp 0x140001cce
mov rdx, qword [rdi]
mov rcx, r14
call fcn.140002c70
mov rcx, r15
call fcn.140002e88
mov rcx, qword [rsp + 0x70]
call fcn.140002e88
mov r13, qword [rsp + 0x78]
mov dword [r13], ebx
mov esi, 1
mov dword [rsp + 0x20], esi
cmp esi, dword [rsp + 0x50]
jge 0x140001cb2
movsxd r14, esi
mov rcx, qword [rdi + r14*8]
test rcx, rcx
jne 0x140001bb5
jmp 0x140001c9f
mov r8d, 8
lea rdx, str._LogDir:
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
mov rcx, qword [rdi + r14*8]
test eax, eax
jne 0x140001c1e
lea rdx, [rcx + 0x10]
mov rcx, r15
call fcn.140002c70
mov rcx, r15
call fcn.140002ac8
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140001c9f
mov r8, qword [r15]
lea rdx, str.Directory_LogDir_s_does_not_exist.
mov rcx, qword [rsp + 0x80]
call fcn.140003370
jmp 0x140001cce
mov r8d, 0xb
lea rdx, str._ParentPID:
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
mov rcx, qword [rdi + r14*8]
test eax, eax
jne 0x140001c66
lea r14, [rcx + 0x16]
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wtol]
nop dword [rax + rax]
mov dword [r13], eax
test eax, eax
jne 0x140001c9f
mov r8, r14
lea rdx, str.Parent_process_ID_ParentPID_s_is_invalid.
jmp 0x140001c0c
mov r8d, 0xf
lea rdx, str._InitDoneEvent:
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
mov r8, qword [rdi + r14*8]
test eax, eax
jne 0x140001ca6
lea rdx, [r8 + 0x1e]
mov rcx, qword [rsp + 0x70]
call fcn.140002c70
mov rcx, qword [rsp + 0x70]
call fcn.140002ac8
inc esi
jmp 0x140001b96
lea rdx, str.Switch__s_is_unsupport.
jmp 0x140001c0c
mov ebx, 1
jmp 0x140001cce
lea rdx, str.CommandLine_doesnt_contains_mandatory_CLSID.
mov rcx, qword [rsp + 0x80]
call fcn.140003370
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov eax, ebx
jmp 0x140001ac7
Function at 0x140003430
Capabilities:
Extract resource via kernel32 functions

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, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
xor r14d, r14d
test rax, rax
je 0x1400034be
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400034be
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400034ae
cmp rbx, rcx
jae 0x1400034be
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140003499
cmp rbx, rcx
jae 0x1400034be
cmp word [rbx], r14w
je 0x1400034be
mov rax, rbx
jmp 0x1400034c0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140005adc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140005b28
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140005b20
cmp dword [rcx + 0x3c], edx
jl 0x140005b20
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140005b20
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140005b28
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140041920
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov dword [rsp + 8], 0xffffffff
mov dword [rsp + 0xc], 0
jmp 0x140041952
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0xc], eax
jae 0x1400419fa
mov eax, dword [rsp + 0xc]
mov rcx, qword [rsp]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rsp + 8]
xor eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 8]
shr eax, 8
mov dword [rsp + 8], eax
mov dword [rsp + 0x14], 0
jmp 0x140041996
mov eax, dword [rsp + 0x14]
inc eax
mov dword [rsp + 0x14], eax
cmp dword [rsp + 0x14], 8
jge 0x1400419e5
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x1400419b2
mov dword [rsp + 0x1c], 1
jmp 0x1400419ba
mov dword [rsp + 0x1c], 0
movzx eax, byte [rsp + 0x1c]
mov byte [rsp + 0x18], al
mov eax, dword [rsp + 0x10]
shr eax, 1
mov dword [rsp + 0x10], eax
movzx eax, byte [rsp + 0x18]
test eax, eax
je 0x1400419e3
mov eax, dword [rsp + 0x10]
xor eax, 0xedb88320
mov dword [rsp + 0x10], eax
jmp 0x14004198c
mov eax, dword [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
jmp 0x140041948
mov eax, dword [rsp + 8]
not eax
add rsp, 0x28
ret

Function at 0x140041ff0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process filename

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x40], 0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x50], rax
mov eax, 0x6b
mov word [rsp + 0x20], ax
mov eax, 0x65
mov word [rsp + 0x22], ax
mov eax, 0x72
mov word [rsp + 0x24], ax
mov eax, 0x6e
mov word [rsp + 0x26], ax
mov eax, 0x65
mov word [rsp + 0x28], ax
mov eax, 0x6c
mov word [rsp + 0x2a], ax
mov eax, 0x33
mov word [rsp + 0x2c], ax
mov eax, 0x32
mov word [rsp + 0x2e], ax
mov eax, 0x2e
mov word [rsp + 0x30], ax
mov eax, 0x64
mov word [rsp + 0x32], ax
mov eax, 0x6c
mov word [rsp + 0x34], ax
mov eax, 0x6c
mov word [rsp + 0x36], ax
xor eax, eax
mov word [rsp + 0x38], ax
lea rdx, [rsp + 0x20]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x60]
call fcn.140041a10
test eax, eax
jne 0x1400420c3
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x40], rax
jmp 0x1400420ec
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x30], 0
je 0x1400420ec
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0x50], rax
jne 0x14004209c
mov rax, qword [rsp + 0x40]
add rsp, 0x68
ret
Function at 0x140029010
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rbx
sub rsp, 0x20
rdtsc
shl rdx, 0x20
or rax, rdx
movzx r10d, al
rdtsc
shl rdx, 0x20
or rax, rdx
movzx ecx, al
rdtsc
shl rdx, 0x20
or rax, rdx
mov r8, rax
rdtsc
shl r10d, 8
or r10d, ecx
shl rdx, 0x20
shl r10d, 8
or rax, rdx
movzx ecx, r8b
or r10d, ecx
movzx eax, al
shl r10d, 8
or r10d, eax
rdtsc
shl rdx, 0x20
lea r8, [main]
or rax, rdx
movzx ecx, al
mov eax, 0x8659cccd
mul ecx
shr edx, 2
lea eax, [rdx + rdx*4]
xor edx, edx
sub ecx, eax
mov eax, r10d
shr r8, cl
div r8
cmp edx, 0x1992
ja 0x1400290ba
je 0x140029b06
cmp edx, 0x41
je 0x140029b06
cmp edx, 0x78
je 0x1400295f2
cmp edx, 0x1c2
jne 0x1400290de
jmp 0x140029fe8
cmp edx, 0xaa979
je 0x140029b06
cmp edx, 0x96b0c6
je 0x140029b06
cmp edx, 0x3e6ec79
je 0x14002a01a
int3
fld dword [rax]
add bh, dh
invalid
push 0xfffffffffffffff7
imul dx, bx, 0x64
push rdi
shl qword [r8 + r12*2 + 0x2c], 0xb3
jne 0x140029ff1
je 0x14002a02e
sbb ebx, dword [rdx]
rcr dword [rdi + rbx*2 + 0xfb], cl
sbb dword [rbp + 0xdc], 0xbdeaeb17
nop
and dword [rcx + 0xac], 0x8ebae7e8
cmp dword [rax + 0xc8], 0xaad60304
sbb esi, 0x3f6b9899
jmp fcn.140029c00
sbb dl, bl
pushfq
pop rdi
sti
add byte [rax], al
add byte [rcx + 0xdc9d], al
add byte [rdi], dl
jmp 0x140029fe3
popfq
fadd qword [rax]
add byte [rax], al
invalid
rdtsc
shl rdx, 0x20
or rax, rdx
mov r9, rax
rdtsc
ret 0xb60f
Function at 0x14003112f
Capabilities:
Encode data using xor
Execute anti-debugging instructions
Resolve function by parsing pe exports
Terminate process

Disassembly:
mov r8d, dword [r9]
lea rax, [rbp + 0x380]
add r8, rbx
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140031133
inc rax
test ecx, ecx
jne 0x140031120
test edx, edx
je 0x140031145
inc r10d
add r9, 4
cmp r10d, esi
jb 0x140031110
jmp 0x14003115b
mov ecx, dword [r11 + 0x1c]
mov eax, r10d
add rcx, rbx
movzx edx, word [r14 + rax*2]
mov r15d, dword [rcx + rdx*4]
add r15, rbx
cmp r15, r11
jb 0x140031413
mov eax, dword [r12 + rbx + 0x8c]
add rax, r11
cmp r15, rax
jae 0x140031413
mov rcx, r15
call fcn.14005d7b4
mov r12, rax
test rax, rax
je 0x140033248
mov dl, 0x2e
mov rcx, rax
call fcn.1400433b0
mov r13, rax
mov dword [rbp + 0x3a0], 0x34a7af9e
mov dword [rbp + 0x3a4], 0x251c12f8
mov dl, 3
mov dword [rbp + 0x3a8], 0xbdae81a5
xor r9b, r9b
mov byte [rax], dil
mov dword [rbp + 0x410], 0xdf178297
mov dword [rbp + 0x414], 0x99b5c711
mov dword [rbp + 0x418], 0x8fe44814
mov word [rbp + 0x41c], 0x6c00
mov byte [rbp + 0x41e], 0xb4
mov word [rbp + 0x3ac], 0xb700
nop word [rax + rax]

Function at 0x14003cda0
Capabilities:
Encode data using xor
Execute anti-debugging instructions
Terminate process

Disassembly:
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov rdx, qword [0x14007b218]
in al, 3
add byte [rax - 0x75], cl
or eax, 0x3df2c
mov rax, qword [0x14007b210]
mov qword [rsp + 0x20], rax
mov rax, rdx
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 0x20], al
lea rax, [rdx + 1]
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 0x21], al
lea rax, [rdx + 2]
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 0x22], al
lea rax, [rdx + 3]
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 0x23], al
lea rax, [rdx + 4]
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 0x24], al
lea rax, [rdx + 5]
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 0x25], al
lea rax, [rdx + 6]
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 0x26], al
lea rax, [rdx + 7]
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 0x27], al
and al, 0x27
mov r14, qword [rsp + 0x20]
test r14, r14
jne 0x14003ce78
xor al, al
jmp 0x14003d466
mov qword [rsp + 0x468], rsi
lea r10, [rsp + 0x30]
mov rsi, qword [0x14007b578]
shr rsi, 5
xor r9d, r9d
mov qword [rsp + 0x470], rdi
mov dword [rbp + 0x330], 0xffffffff
nop word [rax + rax]
Function at 0x140042350
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push r12
sub rsp, 0x1c0
mov r12, r8
test rcx, rcx
je 0x14004339b
test rdx, rdx
je 0x14004339b
test r8, r8
je 0x14004339b
xor r10d, r10d
mov dword [rsp + 0x40], r10d
test r9d, r9d
je 0x14004338f
mov qword [rax - 0x10], rbx
mov qword [rax - 0x18], rbp
mov qword [rax - 0x20], rsi
mov qword [rax - 0x28], rdi
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r14
mov qword [rax - 0x40], r15
nop word [rax + rax]
xor al, al
add rsp, 0x1c0
pop r12
ret

Function at 0x140043700
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r13