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

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006f32a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006f32a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006f32a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006f32a
cmp dword [rcx + 0x84], 0xe
jbe 0x14006f32a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14006f32c
xor al, al
add rsp, 0x28
ret
Function at 0x140087710
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
movsxd r11, dword [rdx]
movsxd rax, ecx
mov rbx, rdx
lea r8, [r11 + r11*2]
mov r9, r11
add r8, rax
mov eax, dword [rdx + 4]
imul rcx, r8, 0x2c
add rcx, qword [rdx + 0x20]
test eax, eax
jns 0x140087751
mov eax, dword [rcx]
cmp eax, 0xfffe0000
jb 0x140087746
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
mov dword [rcx], eax
xor eax, eax
pop rbx
ret
cmp r11d, eax
jg 0x1400878f5
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
lea rsi, [0x140000000]
mov ebp, 0x43
mov eax, dword [rcx]
cmp eax, 0xfffe0000
jb 0x140087787
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10001
mov dword [rcx], eax
mov rax, qword [rbx + 8]
movsx edx, word [rax + r9*2]
test edx, edx
jne 0x1400877e2
nop dword [rax + rax]
mov eax, dword [rcx + 4]
inc r11d
inc r9
cmp eax, 0xfffe0000
jb 0x1400877b9
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
mov dword [rcx + 4], eax
movzx eax, byte [r9 + rsi + 0xb5410]
imul rcx, rax, 0x84
mov rax, qword [rbx + 8]
add rcx, qword [rbx + 0x20]
movsx edx, word [rax + r9*2]
test edx, edx
je 0x1400877a0
mov eax, dword [rcx + 4]
inc r11d
inc r9
cmp eax, 0xfffe0000
jb 0x1400877fb
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10001
xor r8d, r8d
mov dword [rcx + 4], eax
lea eax, [rdx + 1]
cmp eax, 2
mov eax, dword [rcx + 8]
seta r8b
cmp eax, 0xfffe0000
jb 0x140087823
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
add eax, r8d
mov dword [rcx + 8], eax
test r8d, r8d
jne 0x140087850
movzx eax, byte [r9 + rsi + 0xb5410]
imul rcx, rax, 0x84
mov rax, qword [rbx + 0x20]
add rax, 0x2c
jmp 0x1400878d9
mov eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, ebp
cmovg eax, ebp
xor r10d, r10d
cdqe
movzx r8d, word [rsi + rax*4 + 0xb6c7c]
movzx edi, word [rsi + rax*4 + 0xb6c7e]
shr r8d, 1
je 0x1400878c1
lea rdx, [rcx + 0xc]
nop dword [rax + rax]
test r8b, 1
je 0x1400878b5
mov ecx, r10d
mov eax, 2
shl eax, cl
mov ecx, 0
test edi, eax
mov eax, dword [rdx]
setne cl
cmp eax, 0xfffe0000
jb 0x1400878ac
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
add eax, ecx
mov dword [rdx], eax
inc r10d
add rdx, 4
sar r8d, 1
jne 0x140087880
movzx eax, byte [r9 + rsi + 0xb5410]
imul rcx, rax, 0x84
mov rax, qword [rbx + 0x20]
add rax, 0x58
add rcx, rax
cmp r11d, dword [rbx + 4]
jle 0x140087775
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x10]
cmp r11d, 0x10
jge 0x140087914
mov eax, dword [rcx]
cmp eax, 0xfffe0000
jb 0x14008790d
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
mov dword [rcx], eax
mov eax, 1
pop rbx
ret
Function at 0x14009e3a0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rbp, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
call fcn.14009e120
mov rdi, qword [rsp + 0x70]
mov qword [rax + 0x138], rbx
mov rbx, qword [rdi + 8]
call fcn.14009e120
mov qword [rax + 0x128], rbx
mov rax, qword [rsi]
mov rbx, qword [rax + 0x38]
call fcn.14009e120
mov ecx, dword [0x1400dce24]
mov r9, rdi
mov byte [rsp + 0x38], 1
mov r8, rbp
mov edx, 0x5f0
mov qword [rax + 0x130], rbx
xor ebx, ebx
mov rax, qword gs:[0x58]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov rcx, qword [rax + rcx*8]
mov eax, dword [rsp + 0x80]
mov dword [rdx + rcx], eax
mov rdx, r14
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
call fcn.1400a76f0
call fcn.14009e120
mov rcx, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov qword [rax + 0x138], rbx
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x50]
mov dword [rcx], 1
add rsp, 0x40
pop r14
ret

Function at 0x1400a1e50
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a1eac
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a1eac
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a1eac
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a1eac
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a1eac
cmp dword [rcx + 0xf8], 0
je 0x1400a1eac
mov ecx, ebx
call fcn.1400a20c0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x1400dfea0]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.1400a2230
cmp dword [rsp + 0x60], 0
jne 0x1400a1eef
mov ecx, ebx
call fcn.1400a2130
int3
add rsp, 0x40
pop rbx
ret

Function at 0x1400a1f00
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x60], 0
xor ecx, ecx
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a1f62
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a1f62
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x1400a1f62
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x1400a1f62
cmp dword [rdx + 0x84], 0xe
jbe 0x1400a1f62
cmp dword [rdx + 0xf8], 0
je 0x1400a1f62
mov ecx, ebx
call fcn.1400a20c0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x1400dfea0]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.1400a2230
cmp dword [rsp + 0x60], 0
jne 0x1400a1fa5
mov ecx, ebx
call fcn.1400a2130
int3
add rsp, 0x40
pop rbx
ret
Function at 0x1400a2340
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x530
mov rax, qword [0x1400d95b8]
xor rax, rsp
mov qword [rsp + 0x520], rax
xor ebx, ebx
mov rdi, rdx
mov esi, ecx
test rdx, rdx
je 0x1400a23ac
lea edx, [rbx + 0x2d]
mov rcx, rdi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x1400a23ac
mov ecx, ebx
lea r8, [rsp + 0x120]
mov rdx, rdi
nop dword [rax]
movsx eax, byte [rdx]
test al, al
je 0x1400a23ff
mov word [r8], ax
inc ecx
add r8, 2
inc rdx
cmp ecx, 0x100
jne 0x1400a2390
mov rcx, qword [0x1400dfea8]
test rcx, rcx
jne 0x1400a23e2
call fcn.1400a8ac0
mov rcx, rax
lea rdx, str.setlocale
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rcx, 0xffffffffffffffff
cmovne rcx, rax
mov qword [0x1400dfea8], rcx
cmp rcx, 0xffffffffffffffff
cmovne rbx, rcx
test rbx, rbx
je 0x1400a24e3
mov rdx, rdi
mov ecx, esi
call rbx
jmp 0x1400a24e5
movsxd rax, ecx
add rax, rax
cmp rax, 0x200
jae 0x1400a250a
mov edx, 0x2d
mov word [rsp + rax + 0x120], bx
lea rcx, [rsp + 0x120]
call sub.msvcrt.dll_wcsrchr
test rax, rax
je 0x1400a23ac
mov r9d, 0xff
lea r8, [rsp + 0x320]
mov edx, 0x1001
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x1400a23ac
lea ecx, [rax - 1]
mov r9d, 0x100
movsxd rdx, ecx
lea r8, [rsp + 0x320]
sub r9d, eax
mov ecx, 0x5f
cdqe
mov word [rsp + rdx*2 + 0x320], cx
mov edx, 0x1002
lea rcx, [rsp + 0x120]
lea r8, [r8 + rax*2]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x1400a23ac
lea rcx, [rsp + 0x320]
mov eax, ebx
lea rdx, [rsp + 0x20]
movzx r8d, word [rcx]
test r8w, r8w
je 0x1400a24d3
mov byte [rdx], r8b
inc eax
inc rdx
add rcx, 2
cmp eax, 0x100
jne 0x1400a24b1
jmp 0x1400a23ac
cdqe
lea rdi, [rsp + 0x20]
mov byte [rsp + rax + 0x20], bl
jmp 0x1400a23ac
xor eax, eax
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.140031630
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14003c848
int3
Function at 0x1400a2b20
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x1400d95b8]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400a2b5c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.14006f29c
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1400a2c18
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1400a2c7e
test ebx, ebx
jne 0x1400a2c7e
lea ecx, [rax + 2]
call fcn.14006f29c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.140031630
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x14003da00
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003da0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003da1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14003da05
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14003da35
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14003da22
sub eax, 3
jb 0x14003da4f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14003da86
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14003da76
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14003da74
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14003da63
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14003d9c2
jmp 0x14003da0d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x23e00
mov dl, reloc.COMCTL32.dll_InitCommonControls
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14003dad2
cmp rsi, rcx
jae 0x14003dada
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14003dab9
cmp al, 0x8f
ja 0x14003dab9
cmp byte [rsi - 2], 0xf
je 0x14003dabf
sub al, 0xe8
cmp al, 1
ja 0x14003daa3
cmp rsi, rcx
jae 0x14003dada
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14003daa9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14003dada
lodsb al, byte [rsi]
jmp 0x14003dab9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x3a000]
mov eax, dword [rdi]
or eax, eax
je 0x14003db43
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x420e8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14003dae7
jns 0x14003db1c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14003db26
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14003db3d
mov qword [rbx], rax
add rbx, 8
jmp 0x14003db07
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14003db9b
sub rsp, 0xffffffffffffff80
jmp 0x1400242ac
Function at 0x140011316
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140019e30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019e50
xor al, al
jmp 0x140019ed1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140019e63
xor al, al
jmp 0x140019ed1
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 0x140019e8d
xor al, al
jmp 0x140019ed1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140019ea1
xor al, al
jmp 0x140019ed1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140019eb3
xor al, al
jmp 0x140019ed1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140019ecf
xor al, al
jmp 0x140019ed1
mov al, 1
add rsp, 0x38
ret
Function at 0x140001950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r8, [0x140010320]
movsxd rdx, edx
xor ecx, ecx
mov dword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
xor ecx, ecx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0x98
jb 0x140001a9e
movzx eax, word [rsi + 0x96]
mov qword [rdi + 0x20], send
lea rbx, [rdi + 8]
mov word [rsp + 0x38], ax
mov qword [rdi + 0x18], 0
mov byte [rbx], 0
mov rdx, qword [rdi + 0x20]
cmp rdx, 0x10
jb 0x1400019de
mov rax, qword [rbx]
jmp 0x1400019e1
mov rax, rbx
lea rcx, [rsp + 0x38]
cmp rcx, rax
jb 0x140001a3c
cmp rdx, 0x10
jb 0x1400019f6
mov rcx, qword [rbx]
jmp 0x1400019f9
mov rcx, rbx
add rcx, qword [rdi + 0x18]
lea rax, [rsp + 0x38]
cmp rcx, rax
jbe 0x140001a3c
cmp rdx, 0x10
jb 0x140001a10
mov rbx, qword [rbx]
lea r8, [rsp + 0x38]
mov r9d, 2
mov rdx, rdi
sub r8, rbx
mov rcx, rdi
call fcn.1400022e0
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp rdx, 2
jae 0x140001a53
mov r8, qword [rdi + 0x18]
mov edx, 2
mov rcx, rdi
call fcn.1400024e0
mov rdx, qword [rdi + 0x20]
cmp rdx, 0x10
jb 0x140001a62
mov rcx, qword [rbx]
jmp 0x140001a65
mov rcx, rbx
lea r8, [rsp + 0x38]
mov r9d, 2
call fcn.140002b18
cmp qword [rdi + 0x20], 0x10
mov qword [rdi + 0x18], 2
jb 0x140001a87
mov rbx, qword [rbx]
mov byte [rbx + 2], 0
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 0x20], send
mov qword [rdi + 0x18], 0
mov rax, rdi
mov byte [rdi + 8], 0
add rsp, 0x20
pop rdi
ret
Function at 0x140003f4b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400130c0]
jne 0x140002b0a
rol rcx, 0x10
test cx, 0xffff
jne 0x140002b06
repz ret
ror rcx, 0x10
jmp 0x140003ea4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140014260]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140014358]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140003f29
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140014260]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140003f4b
mov rax, qword [rsp + 0x88]
mov qword [0x140014358], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400142f8], rax
mov rax, qword [0x140014358]
mov qword [0x1400141d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400142e0], rax
mov dword [0x1400141c0], 0xc0000409
mov dword [0x1400141c4], 1
mov rax, qword [0x1400130c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400130c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140014258], eax
mov ecx, 1
call fcn.1400085dc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000e588]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140014258], 0
jne 0x140003fd2
mov ecx, 1
call fcn.1400085dc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140005d04
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140008a3c
nop
cmp dword [0x140014860], 1
je 0x140005cb0
mov dword [0x14001485c], 1
mov byte [0x140014858], r12b
test ebx, ebx
jne 0x140005c9c
mov rcx, qword [0x140015350]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140005c89
mov rcx, qword [0x140015348]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140005c28
call fcn.140006ba0
cmp qword [rdi], rax
jne 0x140005c28
jmp 0x140005c0e
cmp rdi, rsi
jb 0x140005c89
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140006ba0
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140015350]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140015348]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140005c67
cmp r13, rax
je 0x140005c87
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140005c0e
lea rdx, [0x14000e2e0]
lea rcx, [0x14000e2d8]
call fcn.140005a58
lea rdx, [0x14000e2f0]
lea rcx, [0x14000e2e8]
call fcn.140005a58
nop
test r12d, r12d
je 0x140005cbf
mov ecx, 8
call fcn.14000893c
test r12d, r12d
jne 0x140005cea
mov dword [0x140014860], 1
lea ecx, [r12 + 8]
call fcn.14000893c
mov ecx, r15d
call fcn.1400059ec
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140005b78

Function at 0x140005d10
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140005b78
Function at 0x1400090a4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140006ba0
xor ebx, ebx
mov rdi, rax
cmp qword [0x1400150a8], rbx
jne 0x1400091aa
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14000927f
lea rdx, [0x14000f640]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000927f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400150a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400150b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1400150b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1400150c8], rax
test rax, rax
je 0x1400091a1
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1400150c0], rax
jmp 0x1400091b1
mov rax, qword [0x1400150c0]
jmp 0x1400091b8
mov rax, qword [0x1400150c0]
mov r11, qword [0x1400150c8]
cmp rax, rdi
je 0x140009220
cmp r11, rdi
je 0x140009220
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1400150c8]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140009220
test rax, rax
je 0x140009220
call rsi
test rax, rax
je 0x14000921a
lea rcx, [rsp + 0x88]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000921a
test byte [rsp + 0x38], 1
jne 0x140009220
bts ebp, 0x15
jmp 0x14000925e
mov rcx, qword [0x1400150b0]
cmp rcx, rdi
je 0x14000925e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000925e
call rax
mov rbx, rax
test rax, rax
je 0x14000925e
mov rcx, qword [0x1400150b8]
cmp rcx, rdi
je 0x14000925e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000925e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400150a8]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000927f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140009281
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140017490
Capabilities:
Initialize winsock library

Disassembly:
mov byte [rsp + 0x18], r8b
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x1e8
mov rax, qword [0x14055f260]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x1f0]
mov ecx, 1
lock xadd dword [rax], ecx
inc ecx
mov eax, ecx
cmp eax, 1
jne 0x14001751d
movzx eax, byte [rsp + 0x1f8]
and rax, 0xff
movzx eax, al
movzx ecx, byte [rsp + 0x200]
and rcx, 0xff
movzx ecx, cl
shl ecx, 8
or eax, ecx
lea rdx, [rsp + 0x30]
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x1f0]
add rax, 4
mov ecx, dword [rsp + 0x20]
xchg dword [rax], ecx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14036c0d0
add rsp, 0x1e8
ret