joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40585c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x50
mov edi, r9d
lea rax, [r11 - 0x10]
mov rsi, r8
xor ebx, ebx
xor r8d, r8d
mov qword [r11 - 0x38], rax
lea r9d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x405942
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r9d, [rbx + 0x10]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov r8, rsi
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
cmp eax, ebx
jne 0x4058db
mov ecx, dword [rsp + 0x44]
cmp edi, ebx
je 0x40592b
cmp ecx, ebx
je 0x40592b
cmp ecx, 1
je 0x40592b
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r8, [0x0040f470]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov r9d, 0x10
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
cmp eax, ebx
jne 0x405937
mov ecx, dword [rsp + 0x44]
cmp edi, ebx
je 0x40592b
cmp ecx, ebx
je 0x40592b
cmp ecx, 1
jne 0x405937
mov rax, qword [rsp + 0x80]
mov bl, 1
mov dword [rax], ecx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x68]
mov al, bl
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x405c0c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x004115d0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov ecx, 4
call qword [sym.imp.iertutil.dll_Ordinal_74]
mov rbx, rax
test rax, rax
je 0x405d51
lea rax, [rsp + 0x48]
mov edi, 0x20019
lea rdx, [0x00409c30]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov r9d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405ca0
lea rax, [rsp + 0x48]
lea rdx, [0x00409c30]
mov r9d, edi
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405d51
xor edi, edi
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov edx, edi
mov dword [rsp + 0x40], 0x27
call sub.SHLWAPI.dll_SHEnumValueW
mov esi, eax
test eax, eax
jne 0x405d3c
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_SHCLSIDFromString]
test eax, eax
js 0x405d3c
lea rax, [rsp + 0x50]
lea r8d, [rsi + 1]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [0x00409de8]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
call sub.urlmon.dll_Ordinal_104
test eax, eax
js 0x405d3c
mov r8, qword [rsp + 0x50]
mov edx, 0x7fffffff
mov rcx, rbx
call qword [sym.imp.iertutil.dll_Ordinal_85]
cmp eax, 0xffffffff
jne 0x405d3c
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
inc edi
test esi, esi
je 0x405ca2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x00411920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x00411ad8], 0
jne 0x405d71
mov qword [0x00411ad8], rbx
xor ebx, ebx
lea rcx, [0x00411920]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x405d96
lea rdx, [0x00405990]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.iertutil.dll_Ordinal_79]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.00403050
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x4062bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x004115d0]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rax, [rsp + 0x34]
movsxd rdi, edx
mov rbx, rcx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor esi, esi
mov word [rcx], si
lea r9, [rsp + 0x30]
lea r8, [0x00409e78]
lea rdx, [0x00409e10]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 0x208
call sub.SHLWAPI.dll_SHGetValueW
cmp eax, esi
jne 0x40637d
cmp dword [rsp + 0x30], 1
jne 0x40637d
lea rax, [rsp + 0x40]
cmp word [rsp + 0x40], si
je 0x406357
cmp word [rax], 0x2c
je 0x406357
cmp word [rax], 0x3b
je 0x406357
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
cmp word [rax], si
jne 0x40633d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
mov word [rax], si
call sub.MLANG.dll_Ordinal_123
cmp eax, esi
jl 0x40637d
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
call fcn.00402838
cmp si, word [rbx]
jne 0x406395
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov r8d, edi
mov rdx, rbx
mov ecx, eax
call sub.MLANG.dll_Ordinal_121
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.00403050
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x4068fc
Capabilities:
Query environment variable

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 r12
sub rsp, 0x20
xor r12d, r12d
mov edi, r9d
mov rsi, r8
mov rbp, rdx
cmp rcx, r12
je 0x40692b
mov ebx, r12d
jmp 0x406957
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
cmp eax, edi
jbe 0x406952
cmp edi, r12d
je 0x40694d
lea eax, [rdi - 1]
mov word [rsi + rax*2], r12w
mov ebx, r12d
jmp 0x406965
cmp eax, r12d
jne 0x406965
mov rdx, rdi
mov r8, rbp
mov rcx, rsi
call fcn.00402838
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r12
ret
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
xor ecx, ecx
jmp 0x4068fc

Function at 0x406ae8
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r11d, eax
xor eax, eax
cmp r11d, eax
jbe 0x406b0a
cmp r11d, ebx
jb 0x406b0f
mov eax, 0x7a
add rsp, 0x20
pop rbx
ret

Function at 0x100001798
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x1000017e5
cmp rcx, 0xffffffffffffffff
je 0x1000017e5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1000017dd
cmp dword [rcx + 0x3c], edx
jl 0x1000017dd
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1000017dd
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 0x1000017e5
mov rax, rdx
add rsp, 0x18
ret
Function at 0x409a80
Capabilities:
Terminate process

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov rsi, qword [0x00442350]
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x409ad9
cmp rdi, rax
je 0x409ad9
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov ecx, 0x3e8
call r14
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x409ad9
cmp rdi, rax
jne 0x409ac0
mov rdi, qword [0x00442358]
mov eax, dword [rdi]
cmp eax, 1
jne 0x409af3
mov ecx, 0x1f
call fcn.0041b980
jmp 0x409b1a
cmp dword [rdi], 0
je 0x409b01
mov byte [0x00454c18], 1
jmp 0x409b1a
mov dword [rdi], 1
mov rcx, qword [0x00442370]
mov rdx, qword [0x00442378]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov eax, dword [rdi]
cmp eax, 1
jne 0x409b3a
mov rcx, qword [0x00442360]
mov rdx, qword [0x00442368]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rdi], 2
test bl, bl
je 0x409b43
xor eax, eax
xchg qword [rsi], rax
mov rax, qword [0x00442318]
mov rax, qword [rax]
test rax, rax
je 0x409b5e
xor ecx, ecx
mov edx, 2
xor r8d, r8d
call rax
call fcn.0041b1b0
lea rcx, [0x0041b6d0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [0x00442348]
mov qword [rcx], rax
lea rcx, [0x00409cc0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.0041b1a0
movsxd rdi, dword [0x00454c04]
lea rcx, [rdi*8 + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rdi, rdi
jle 0x409bf5
mov r14d, edi
mov r15, qword [0x00454c08]
xor r12d, r12d
nop word cs:[rax + rax]
nop
mov rdi, qword [r15 + r12*8]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rbx, [rax + 1]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsi + r12*8], rax
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call fcn.0041bba0
add r12, 1
cmp r14, r12
jne 0x409bc0
jmp 0x409bf8
xor r14d, r14d
mov qword [rsi + r14*8], 0
mov qword [0x00454c08], rsi
call fcn.0041af80
mov r8, qword [0x00454c10]
mov rax, qword [0x00442320]
mov rax, qword [rax]
mov qword [rax], r8
mov ecx, dword [0x00454c04]
mov rdx, qword [0x00454c08]
call fcn.00401160
mov dword [0x00454c1c], eax
cmp dword [0x00454bfc], 0
je 0x409c64
cmp byte [0x00454c18], 0
jne 0x409c55
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x00454c1c]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x40c2e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x180
lea rbp, [rsp + 0x80]
mov rax, qword [0x00442300]
mov rax, qword [rax]
xor rax, rbp
mov qword [rbp + 0xf8], rax
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x38], rdx
mov qword [rbp - 0x40], r8
mov qword [rbp - 0x48], r9
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x38]
xor r8d, r8d
mov r9d, 0x20019
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 0
jne 0x40c3de
mov dword [rbp - 0x20], 0x104
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x40]
lea r10, [rbp - 0x10]
xor eax, eax
mov r8d, eax
lea r9, [rbp - 0x1c]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0
jne 0x40c3d9
cmp dword [rbp - 0x1c], 1
jne 0x40c39e
mov rcx, qword [rbp - 0x48]
lea r9, [rbp - 0x10]
lea r8, [0x00443f4f]
mov edx, 0x104
call fcn.0043fd80
jmp 0x40c3c6
cmp dword [rbp - 0x1c], 4
jne 0x40c3c1
mov rcx, qword [rbp - 0x48]
mov r9d, dword [rbp - 0x10]
lea r8, [0x00443f52]
mov edx, 0x104
call fcn.0043fd80
jmp 0x40c3c6
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rbp - 0x21], 1
jmp 0x40c3e2
jmp 0x40c3de
mov byte [rbp - 0x21], 0
mov al, byte [rbp - 0x21]
and al, 1
movzx eax, al
mov dword [rbp - 0x4c], eax
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
mov rax, qword [0x00442300]
mov rax, qword [rax]
sub rax, rcx
jne 0x40c40f
jmp 0x40c414
call fcn.0041bf30
mov eax, dword [rbp - 0x4c]
add rsp, 0x180
pop rbp
ret

Function at 0x40ce60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 0x10], rcx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0xffffffff
je 0x40ce9d
mov eax, dword [rbp - 0x14]
and eax, 0x10
cmp eax, 0
je 0x40ce9d
mov byte [rbp - 1], 1
jmp 0x40cea1
mov byte [rbp - 1], 0
mov al, byte [rbp - 1]
and al, 1
movzx eax, al
add rsp, 0x40
pop rbp
ret
Function at 0x40ceb0
Capabilities:
Query environment variable

Disassembly:
push rbp
mov eax, 0x21e0
call fcn.0041bb70
sub rsp, rax
lea rbp, [rsp + 0x80]
mov rax, qword [0x00442300]
mov rax, qword [rax]
xor rax, rbp
mov qword [rbp + 0x2158], rax
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x48], rdx
mov rcx, qword [rbp - 0x40]
lea rdx, [rbp + 0x2050]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rdx, [rbp + 0x2050]
lea rcx, [rbp - 0x38]
lea r8, [0x0044266b]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
cmp qword [rbp - 0x38], 0
jne 0x40cf21
jmp 0x40d06c
lea rcx, [rbp + 0x1050]
xor edx, edx
mov r8d, 0x1000
call fcn.0041ba90
lea rcx, [rbp + 0x50]
xor edx, edx
mov r8d, 0x1000
call fcn.0041ba90
lea rcx, [rbp - 0x30]
xor edx, edx
mov r8d, 0x80
call fcn.0041ba90
lea rcx, [rbp - 0x30]
mov r9, qword [rbp - 0x48]
lea r8, str.Name_s
mov edx, 0x80
call fcn.0043fd80
mov byte [rbp - 0x49], 0
lea rcx, [rbp + 0x1050]
mov r8, qword [rbp - 0x38]
mov edx, 0x1000
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgets
cmp rax, 0
je 0x40d025
lea rcx, [rbp + 0x1050]
lea rdx, str._Profile
mov r8d, 8
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
cmp eax, 0
jne 0x40cfc8
test byte [rbp - 0x49], 1
je 0x40cfc3
mov byte [rbp - 0x49], 0
jmp 0x40cfc8
test byte [rbp - 0x49], 1
jne 0x40d020
lea rcx, [rbp + 0x1050]
lea rdx, [rbp - 0x30]
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
cmp rax, 0
je 0x40cff5
mov byte [rbp - 0x49], 1
jmp 0x40cf74
lea rax, [rbp + 0x50]
mov qword [rbp - 0x58], rax
mov ecx, 0x1000
call fcn.0040b100
mov rcx, qword [rbp - 0x58]
mov rdx, rax
lea r8, [rbp + 0x1050]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
jmp 0x40d020
jmp 0x40cf74
mov rcx, qword [rbp - 0x38]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
lea rdx, [rbp + 0x2050]
lea rcx, [rbp - 0x38]
lea r8, [0x0044267e]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
cmp qword [rbp - 0x38], 0
jne 0x40d056
jmp 0x40d06c
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp - 0x38]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
mov rcx, qword [rbp - 0x38]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, qword [rbp + 0x2158]
xor rcx, rbp
mov rax, qword [0x00442300]
mov rax, qword [rax]
sub rax, rcx
jne 0x40d08e
jmp 0x40d093
call fcn.0041bf30
nop
add rsp, 0x21e0
pop rbp
ret

Function at 0x40f440
Capabilities:
Create process on windows

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], rcx
mov r8, qword [rbp - 8]
xor eax, eax
mov r9d, eax
lea rdx, str.open
mov rcx, r9
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
cmp rax, 0x20
setg al
and al, 1
movzx eax, al
add rsp, 0x40
pop rbp
ret
Function at 0x411880
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push rbp
sub rsp, 0x230
lea rbp, [rsp + 0x80]
mov rax, qword [0x00442300]
mov rax, qword [rax]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x58], 0xffffffffffffffff
mov qword [rbp - 8], 0
mov ecx, 0x202
lea rdx, [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_WSAStartup]
cdqe
mov qword [rbp - 0x50], rax
cmp qword [rbp - 0x50], 0
je 0x4118e1
mov byte [rbp - 0x39], 0
jmp 0x411a27
lea rcx, [rbp - 0x38]
xor edx, edx
mov r8d, 0x30
call fcn.0041ba90
mov dword [rbp - 0x34], 2
mov dword [rbp - 0x30], 1
mov dword [rbp - 0x2c], 6
mov dword [rbp - 0x38], 1
mov rcx, rbp
xor edx, edx
mov r8d, 0x10
call fcn.0041ba90
mov rcx, rbp
mov r9, qword [rbp - 0x48]
lea r8, [0x004426be]
mov edx, 0x10
call fcn.0043fd80
mov rdx, rbp
lea rcx, str.127.0.0.1
lea r8, [rbp - 0x38]
lea r9, [rbp - 8]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
cdqe
mov qword [rbp - 0x50], rax
cmp qword [rbp - 0x50], 0
je 0x411968
mov byte [rbp - 0x39], 0
jmp 0x411a27
mov rax, qword [rbp - 8]
mov ecx, dword [rax + 4]
mov rax, qword [rbp - 8]
mov edx, dword [rax + 8]
mov rax, qword [rbp - 8]
mov r8d, dword [rax + 0xc]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp - 0x58], rax
cmp qword [rbp - 0x58], 0xffffffffffffffff
jne 0x4119a6
mov rcx, qword [rbp - 8]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov byte [rbp - 0x39], 0
jmp 0x411a27
mov rcx, qword [rbp - 0x58]
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x20]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov r8d, eax
call qword [sym.imp.WS2_32.dll_bind]
cdqe
mov qword [rbp - 0x50], rax
cmp qword [rbp - 0x50], 0xffffffffffffffff
jne 0x411a00
mov rcx, qword [rbp - 8]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbp - 0x58]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov byte [rbp - 0x39], 0
jmp 0x411a27
mov rcx, qword [rbp - 8]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbp - 0x58]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov byte [rbp - 0x39], 1
mov al, byte [rbp - 0x39]
and al, 1
movzx eax, al
mov dword [rbp - 0x5c], eax
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
mov rax, qword [0x00442300]
mov rax, qword [rax]
sub rax, rcx
jne 0x411a54
jmp 0x411a59
call fcn.0041bf30
mov eax, dword [rbp - 0x5c]
add rsp, 0x230
pop rbp
ret
Function at 0x411a70
Capabilities:
Create process on windows

Disassembly:
push rbp
sub rsp, 0x110
lea rbp, [rsp + 0x80]
mov rax, qword [0x00442300]
mov rax, qword [rax]
xor rax, rbp
mov qword [rbp + 0x88], rax
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x20], rdx
and r8b, 1
mov byte [rbp - 0x21], r8b
mov rcx, qword [rbp - 0x20]
lea rdx, [rbp + 0x80]
call fcn.0040cb40
test al, 1
jne 0x411ac8
mov dword [rbp - 0xc], 0xffffffff
jmp 0x411bff
mov dword [rbp + 0x7c], 0
mov dword [rbp - 0x28], 0x8000000
test byte [rbp - 0x21], 1
je 0x411ae7
mov dword [rbp - 0x28], 5
lea rcx, [rbp + 0x10]
xor edx, edx
mov r8d, 0x68
call fcn.0041ba90
mov dword [rbp + 0x10], 0x68
lea rcx, [rbp - 8]
xor edx, edx
mov r8d, 0x18
call fcn.0041ba90
mov rdx, qword [rbp + 0x80]
mov r11d, dword [rbp - 0x28]
xor eax, eax
mov r9d, eax
xor eax, eax
lea r10, [rbp + 0x10]
lea rax, [rbp - 8]
mov rcx, r9
mov r8, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 0
jne 0x411b80
mov rcx, qword [rbp + 0x80]
call fcn.0040c650
mov dword [rbp - 0xc], 0xffffffff
jmp 0x411bff
cmp qword [rbp - 0x18], 0
je 0x411b9b
mov eax, dword [rbp + 8]
mov ecx, eax
mov rax, qword [rbp - 0x18]
mov qword [rax + 0x18c8], rcx
mov rcx, qword [rbp - 8]
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, qword [rbp - 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 8]
lea rdx, [rbp + 0x7c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x80]
call fcn.0040c650
cmp dword [rbp + 0x7c], 0
jne 0x411bf8
mov dword [rbp - 0xc], 0
jmp 0x411bff
mov dword [rbp - 0xc], 0xffffffff
mov eax, dword [rbp - 0xc]
mov dword [rbp - 0x2c], eax
mov rcx, qword [rbp + 0x88]
xor rcx, rbp
mov rax, qword [0x00442300]
mov rax, qword [rax]
sub rax, rcx
jne 0x411c27
jmp 0x411c2c
call fcn.0041bf30
mov eax, dword [rbp - 0x2c]
add rsp, 0x110
pop rbp
ret
Function at 0x411f10
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov rax, qword [0x00442300]
mov rax, qword [rax]
xor rax, rbp
mov qword [rbp + 0xd8], rax
mov qword [rbp - 0x48], rcx
mov rcx, qword [rbp - 0x48]
call fcn.0040b0b0
test al, 1
jne 0x411f4e
jmp 0x411f57
mov byte [rbp - 0x39], 0
jmp 0x411fc7
mov rcx, qword [rbp - 0x48]
lea rdx, [rbp - 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x38]
call fcn.0040cb40
test al, 1
jne 0x411f89
mov byte [rbp - 0x39], 0
jmp 0x411fc7
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp - 0x4c], eax
mov rcx, qword [rbp - 0x38]
call fcn.0040c650
xor eax, eax
cmp dword [rbp - 0x4c], 0xffffffff
mov byte [rbp - 0x4d], al
je 0x411fbf
mov eax, dword [rbp - 0x4c]
and eax, 0x10
cmp eax, 0
setne al
xor al, 0xff
mov byte [rbp - 0x4d], al
mov al, byte [rbp - 0x4d]
and al, 1
mov byte [rbp - 0x39], al
mov al, byte [rbp - 0x39]
and al, 1
movzx eax, al
mov dword [rbp - 0x54], eax
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
mov rax, qword [0x00442300]
mov rax, qword [rax]
sub rax, rcx
jne 0x411ff4
jmp 0x411ff9
call fcn.0041bf30
mov eax, dword [rbp - 0x54]
add rsp, 0x160
pop rbp
ret

Function at 0x4120d0
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x180
lea rbp, [rsp + 0x80]
mov rax, qword [0x00442300]
mov rax, qword [rax]
xor rax, rbp
mov qword [rbp + 0xf8], rax
mov qword [rbp - 0x48], rcx
mov byte [rbp - 0x49], 0
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp - 0x58], rax
mov rax, 0xffffffffffffffff
cmp qword [rbp - 0x58], rax
jne 0x412126
mov byte [rbp - 0x39], 0
jmp 0x4121ab
mov dword [rbp - 0x38], 0x130
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp - 0x38]
call sub.KERNEL32.dll_Process32First
cmp eax, 0
jne 0x412156
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rbp - 0x39], 0
jmp 0x4121ab
jmp 0x41215b
lea rcx, [rbp - 0x38]
add rcx, 0x2c
mov rdx, qword [rbp - 0x48]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
cmp eax, 0
jne 0x41217e
mov byte [rbp - 0x49], 1
jmp 0x412199
jmp 0x412183
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp - 0x38]
call sub.KERNEL32.dll_Process32Next
cmp eax, 0
jne 0x41215b
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [rbp - 0x49]
and al, 1
mov byte [rbp - 0x39], al
mov al, byte [rbp - 0x39]
and al, 1
movzx eax, al
mov dword [rbp - 0x5c], eax
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
mov rax, qword [0x00442300]
mov rax, qword [rax]
sub rax, rcx
jne 0x4121d8
jmp 0x4121dd
call fcn.0041bf30
mov eax, dword [rbp - 0x5c]
add rsp, 0x180
pop rbp
ret