joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409d80
Capabilities:
Encode data using xor
Get session user name
Hash data using fnv
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x100
lea rcx, str.ALLUSERSPROFILE
call fcn.00419b10
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
mov r12, rax
mov dword [rsp + 0x130], 0x64
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rcx, [rsp + 0x20]
call fcn.00415600
xor esi, esi
xor edi, edi
test eax, eax
mov ebx, 0x811c9dc5
movsxd rbp, eax
jle 0x409e03
movzx ecx, byte [rsp + rdi + 0x20]
mov edx, esi
xor ebx, ecx
movsx r8d, cl
lea rcx, str.__d___d__d_n
imul ebx, ebx, 0x1000193
mov r9d, ebx
call fcn.0040a274
add rdi, 1
add esi, 1
cmp rdi, rbp
jl 0x409dd5
test ebx, ebx
jns 0x409e09
neg ebx
xor edx, edx
lea rcx, [rsp + 0x90]
lea r8d, [rdx + 0x64]
call fcn.00417400
lea rdx, [0x0043dab4]
lea rcx, [rsp + 0x90]
mov r8d, ebx
call fcn.00416480
lea rcx, [rsp + 0x20]
xor ebx, ebx
call fcn.00415600
test rax, rax
je 0x409e63
cmp byte [rsp + rbx + 0x20], 0x80
jb 0x409e50
mov byte [rsp + rbx + 0x20], 0x5f
lea rcx, [rsp + 0x20]
add rbx, 1
call fcn.00415600
cmp rbx, rax
jb 0x409e44
mov ecx, 0x1388
call fcn.004153f0
mov rdx, r12
mov rcx, rax
mov rbx, rax
mov byte [rax], 0
call fcn.004156c0
lea rdx, str.JWUser_
mov rcx, rbx
call fcn.0040a1c8
lea rdx, [rsp + 0x90]
mov rcx, rbx
call fcn.004156c0
lea rdx, [0x0043c584]
mov rcx, rbx
call fcn.004156c0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.004156c0
mov rcx, rbx
call fcn.0040a184
mov rax, rbx
add rsp, 0x100
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x409ed4
Capabilities:
Check os version
Query environment variable

Disassembly:
push rbx
push rdi
sub rsp, 0xc8
lea rcx, str.APPDATA
mov dword [rsp + 0x20], 0x94
call fcn.00419b10
test rax, rax
mov rdi, rax
je 0x409faf
mov rcx, rax
call fcn.00415600
cmp rax, 2
jbe 0x409faf
cmp byte [rdi], 0x5c
jne 0x409faf
cmp byte [rdi + 1], 0x5c
jne 0x409faf
lea rcx, str._Extractor__Roaming_AppData_directory_detected_n
call fcn.0040a274
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x409fbb
cmp dword [rsp + 0x24], 5
jbe 0x409f65
lea rcx, str.LOCALAPPDATA
call fcn.00419b10
lea rcx, str._Extractor__Local_AppData_directory_resolved_to__s_n
mov rdx, rax
mov rdi, rax
call fcn.0040a274
jmp 0x409fbb
lea rcx, str.USERPROFILE
call fcn.00419b10
mov ecx, 0x1388
mov rbx, rax
call fcn.004153f0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
mov byte [rax], 0
call fcn.004156c0
lea rdx, str.Local_Settings
mov rcx, rdi
call fcn.0040a1c8
lea rdx, str.Application_Data
mov rcx, rdi
call fcn.0040a1c8
jmp 0x409fbb
lea rcx, str._Extractor__Local_AppData_directory_detected_n
call fcn.0040a274
lea rcx, str.Validating_directory..._n
call fcn.0040a274
lea rcx, str.Shared_dir_detected_is__s_n
mov rdx, rdi
call fcn.0040a274
lea rcx, str.Checking_if__s_exists_n
mov rdx, rdi
call fcn.0040a274
mov edx, 6
mov rcx, rdi
call fcn.0041b5d0
test eax, eax
jne 0x40a071
lea rcx, str.Checking_if_string_is_cAscii__s_n
mov rdx, rdi
call fcn.0040a274
mov rcx, rdi
xor ebx, ebx
call fcn.00415600
test rax, rax
je 0x40a02b
cmp byte [rbx + rdi], 0x80
jae 0x40a071
mov rcx, rdi
add rbx, 1
call fcn.00415600
cmp rbx, rax
jb 0x40a014
lea rcx, str.Checking_if__s_contains_a___n
mov rdx, rdi
call fcn.0040a274
mov rcx, rdi
xor ebx, ebx
call fcn.00415600
test rax, rax
je 0x40a060
cmp byte [rbx + rdi], 0x21
je 0x40a071
mov rcx, rdi
add rbx, 1
call fcn.00415600
cmp rbx, rax
jb 0x40a049
lea rcx, str.Shared_directory_appears_valid._n
call fcn.0040a274
jmp 0x40a0f6
lea rcx, str.The_directory__s_appears_invalid._n
mov rdx, rdi
call fcn.0040a274
lea rcx, str.Trying_the_short_path_instead._n
mov rdx, rdi
call fcn.0040a274
mov ecx, 0x1388
call fcn.004153f0
mov r8d, 0x400
mov rcx, rdi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x40a0e6
lea rcx, str.Got_short_path_of__s_n
mov rdx, rbx
call fcn.0040a274
lea rcx, str.Checking_if__s_exists_n
mov rdx, rdi
call fcn.0040a274
mov edx, 6
mov rcx, rdi
call fcn.0041b5d0
test eax, eax
jne 0x40a0e6
mov rax, rbx
jmp 0x40a0f9
mov rcx, rbx
call fcn.004153b0
call fcn.00409d80
mov rdi, rax
mov rax, rdi
add rsp, 0xc8
pop rdi
pop rbx
ret
Function at 0x40a648
Capabilities:
Check os version
Query environment variable

Disassembly:
push rbx
push rdi
sub rsp, 0xc8
lea rdx, str.perm_all
mov rbx, rcx
call fcn.00417900
test eax, eax
jne 0x40a6e0
lea rcx, str.Permanent_install_for_all_users_n
call fcn.0040a274
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40a69d
cmp dword [rsp + 0x24], 5
jbe 0x40a69d
lea rcx, str.PROGRAMDATA
call fcn.00419b10
jmp 0x40a70b
lea rcx, str.ALLUSERSPROFILE
call fcn.00419b10
mov ecx, 0x1388
mov rbx, rax
call fcn.004153f0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
mov byte [rax], 0
call fcn.004156c0
lea rdx, str.Application_Data
mov rcx, rdi
call fcn.0040a1c8
mov rcx, rdi
call fcn.0040a184
jmp 0x40a70e
lea rdx, str.perm_user
mov rcx, rbx
call fcn.00417900
lea rcx, str.Permanent_install_for_current_user_n
test eax, eax
je 0x40a701
lea rcx, str.Temporary_install_n
call fcn.0040a274
call fcn.00409ed4
mov rdi, rax
test rdi, rdi
jne 0x40a728
lea rcx, str.ERROR:_Unable_to_get_shared_dir_
call fcn.0040a274
lea ecx, [rdi + 1]
call fcn.004169d0
int3
mov rax, rdi
add rsp, 0xc8
pop rdi
pop rbx
ret
Function at 0x40c4f0
Capabilities:
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rcx
jne 0x40c517
lea rdx, str.._srchashes_sha2_sha256.c
lea rcx, str.md___NULL
mov r8d, 0xd0
call fcn.0040ecf0
xor eax, eax
mov dword [rbx + 0x280], 0x6a09e667
mov dword [rbx + 0x284], 0xbb67ae85
mov dword [rbx + 0x288], 0x3c6ef372
mov dword [rbx + 0x28c], 0xa54ff53a
mov dword [rbx + 0x290], 0x510e527f
mov dword [rbx + 0x2a0], eax
mov qword [rbx + 0x278], rax
mov dword [rbx + 0x294], 0x9b05688c
mov dword [rbx + 0x298], 0x1f83d9ab
mov dword [rbx + 0x29c], 0x5be0cd19
add rsp, 0x20
pop rbx
ret

Function at 0x40cab0
Capabilities:
Hash data using sha224

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rcx
jne 0x40cad5
lea r8d, [rcx + 0x2a]
lea rdx, str.c:users_simplehelpworkspace_runner_nativelibtomlibtomcrypt_srchashes_sha2_sha224.c
lea rcx, str.md___NULL
call fcn.0040ecf0
xor eax, eax
mov dword [rbx + 0x280], 0xc1059ed8
mov dword [rbx + 0x284], 0x367cd507
mov dword [rbx + 0x288], 0x3070dd17
mov dword [rbx + 0x28c], 0xf70e5939
mov dword [rbx + 0x290], 0xffc00b31
mov dword [rbx + 0x2a0], eax
mov qword [rbx + 0x278], rax
mov dword [rbx + 0x294], 0x68581511
mov dword [rbx + 0x298], 0x64f98fa7
mov dword [rbx + 0x29c], 0xbefa4fa4
add rsp, 0x20
pop rbx
ret
Function at 0x410170
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx + 0xc8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rsi
test eax, eax
mov qword [rsp + 0x48], rdi
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
js 0x4102ee
cdq
and edx, 7
add eax, edx
and eax, 7
cmp eax, edx
jne 0x4102ee
cmp r8, 8
mov qword [rsp + 0x38], rbp
jb 0x410211
xor ebp, ebp
nop
nop
mov eax, dword [rbx + 0xc8]
test eax, eax
je 0x410211
cdq
add rsi, 1
and edx, 7
add eax, edx
sar eax, 3
movsxd rcx, eax
movzx eax, byte [rsi - 1]
xor byte [rcx + rbx], al
add dword [rbx + 0xc8], 8
cmp dword [rbx + 0xc8], 0x440
jne 0x410207
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.0040fdd0
mov dword [rbx + 0xc8], ebp
sub rdi, 8
cmp rdi, 8
jae 0x4101c0
cmp rdi, 0x440
jb 0x41025e
movabs rax, 0xf0f0f0f0f0f0f0f1
mul rdi
mov rbp, rdx
shr rbp, 0xa
mov rax, rbp
imul rax, rax, 0xfffffffffffffbc0
add rdi, rax
nop
nop
mov r8d, 0x11
mov rdx, rsi
mov rcx, rbx
call fcn.0040fdd0
add rsi, 0x88
sub rbp, 1
jne 0x410240
cmp rdi, 8
mov rbp, qword [rsp + 0x38]
jb 0x4102aa
mov r8, rdi
shr r8, 3
mov rax, r8
imul rax, rax, 0xfffffffffffffff8
add rdi, rax
nop
nop
mov eax, dword [rbx + 0xc8]
add rsi, 1
cdq
and edx, 7
add eax, edx
sar eax, 3
movsxd rcx, eax
movzx eax, byte [rsi - 1]
xor byte [rcx + rbx], al
add dword [rbx + 0xc8], 8
sub r8, 1
jne 0x410280
test rdi, rdi
je 0x4102d8
mov eax, dword [rbx + 0xc8]
mov ecx, 8
cdq
sub cl, dil
and edx, 7
add eax, edx
movzx edx, byte [rsi]
sar eax, 3
shr dl, cl
movsxd r8, eax
xor byte [r8 + rbx], dl
add dword [rbx + 0xc8], edi
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x28
ret

Function at 0x416450
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x416479
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x416479
mov ecx, eax
call fcn.00415900
mov eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x417060
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x417089
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x417089
mov ecx, eax
call fcn.00415900
mov eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x41b5d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
test rcx, rcx
mov ebx, edx
jne 0x41b616
call fcn.004158d0
mov dword [rax], 0
call fcn.004158a0
mov ebx, 0x16
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
mov qword [rsp + 0x20], 0
call fcn.0041d7f0
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
test edx, 0xfffffff9
jne 0x41b5dd
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41b647
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00415900
call fcn.004158a0
mov ebx, dword [rax]
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
test al, 0x10
jne 0x41b67b
test al, 1
je 0x41b67b
test bl, 2
je 0x41b67b
call fcn.004158d0
mov dword [rax], 5
call fcn.004158a0
mov dword [rax], 0xd
call fcn.004158a0
mov ebx, dword [rax]
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x41b690
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41b6bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41b6bb
mov ecx, eax
call fcn.00415900
mov eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x41b6d0
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x41b6f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41b6f9
mov ecx, eax
call fcn.00415900
mov eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x427bd7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x004476e8]
jne 0x41bcaa
rol rcx, 0x10
test cx, 0xffff
jne 0x41bca6
repz ret
ror rcx, 0x10
jmp 0x427b30
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0044b740]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x0044b838]
mov qword [rsp + 0x58], rax
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 0x427bb5
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, [0x0044b740]
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 0x427bd7
mov rax, qword [rsp + 0x88]
mov qword [0x0044b838], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0044b7d8], rax
mov rax, qword [0x0044b838]
mov qword [0x0044b6b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0044b7c0], rax
mov dword [0x0044b6a0], 0xc0000409
mov dword [0x0044b6a4], 1
mov rax, qword [0x004476e8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x004476f0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x0044b738], eax
mov ecx, 1
call fcn.004283b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0043a6d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x0044b738], 0
jne 0x427c5e
mov ecx, 1
call fcn.004283b0
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 0x427c80
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.0041d980
xor ebx, ebx
cmp qword [0x0044bc10], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x427db1
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x427ce3
xor eax, eax
jmp 0x427e91
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x427cdc
mov rcx, rax
call fcn.0041d910
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x0044bc10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0041d910
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x0044bc18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0041d910
lea rcx, [rsp + 0x30]
mov qword [0x0044bc20], rax
call fcn.00416720
test eax, eax
je 0x427d67
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.0041d750
cmp dword [rsp + 0x30], 2
jne 0x427db1
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0041d910
test rax, rax
mov qword [0x0044bc30], rax
je 0x427db1
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0041d910
mov qword [0x0044bc28], rax
mov rcx, qword [0x0044bc28]
cmp rcx, rsi
je 0x427e43
cmp qword [0x0044bc30], rsi
je 0x427e43
call fcn.0041d9e0
call rax
test rax, rax
mov rbp, rax
je 0x427e0e
mov rcx, qword [0x0044bc30]
call fcn.0041d9e0
lea rcx, [rsp + 0x38]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x427e0e
test byte [rsp + 0x48], 1
jne 0x427e43
lea rcx, [rsp + 0x34]
call fcn.00416770
test eax, eax
je 0x427e30
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.0041d750
cmp dword [rsp + 0x34], 4
jb 0x427e3d
bts edi, 0x15
jmp 0x427e77
bts edi, 0x12
jmp 0x427e77
mov rcx, qword [0x0044bc18]
cmp rcx, rsi
je 0x427e77
call fcn.0041d9e0
call rax
test rax, rax
mov rbx, rax
je 0x427e77
mov rcx, qword [0x0044bc20]
cmp rcx, rsi
je 0x427e77
call fcn.0041d9e0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x0044bc10]
call fcn.0041d9e0
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1400358fb
Capabilities:
Hide graphical window

Disassembly:
push rbp
sub rsp, 0x110
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa0], rcx
mov qword [rbp + 0x88], 0
call fcn.1400c0910
mov rax, qword [rbp + 0xa0]
mov rcx, rax
call fcn.14009ee94
mov qword [rbp + 0x80], rax
cmp qword [rbp + 0x80], 0
je 0x140035b29
mov rax, qword [0x1407913d8]
cmp qword [rbp + 0xa0], rax
jne 0x140035a37
mov rax, qword [0x1407913e0]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov rcx, rax
call fcn.14009ee94
mov qword [rbp + 0x70], rax
cmp qword [rbp + 0x70], 0
je 0x14003599e
mov rax, qword [0x1407913e0]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov edx, 1
mov rcx, rax
call fcn.14009f49c
mov qword [rbp + 0x60], rax
jmp 0x14003599f
nop
mov rax, qword [0x1407913d8]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x58]
mov edx, 0
mov rcx, rax
call fcn.14009f49c
mov qword [rbp + 0x50], rax
mov rax, qword [0x1407913d8]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov rcx, rax
call fcn.14009ef40
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov edx, 9
mov rcx, rax
call sub.USER32.dll_ShowWindow
mov qword [rbp + 0x38], rax
mov rax, qword [0x1407913d8]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov rcx, rax
call fcn.14009ef40
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov rcx, rax
call sub.USER32.dll_SetForegroundWindow
mov qword [rbp + 0x20], rax
mov rax, qword [0x1407913d8]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.14009f28c
mov qword [rbp + 0x10], rax
jmp 0x140035a38
nop
mov rax, qword [0x1407913e0]
cmp qword [rbp + 0xa0], rax
jne 0x140035b2c
mov rax, qword [0x1407913d8]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rcx, rax
call fcn.14009ee94
mov qword [rbp], rax
cmp qword [rbp], 0
je 0x140035a90
mov rax, qword [0x1407913d8]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 1
mov rcx, rax
call fcn.14009f49c
mov qword [rbp - 0x10], rax
jmp 0x140035a91
nop
mov rax, qword [0x1407913e0]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov edx, 0
mov rcx, rax
call fcn.14009f49c
mov qword [rbp - 0x20], rax
mov rax, qword [0x1407913e0]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
call fcn.14009ef40
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov edx, 9
mov rcx, rax
call sub.USER32.dll_ShowWindow
mov qword [rbp - 0x38], rax
mov rax, qword [0x1407913e0]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
call fcn.14009ef40
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
mov rcx, rax
call sub.USER32.dll_SetForegroundWindow
mov qword [rbp - 0x50], rax
mov rax, qword [0x1407913e0]
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x58]
mov rcx, rax
call fcn.14009f28c
mov qword [rbp - 0x60], rax
jmp 0x140035b2d
nop
jmp 0x140035b2d
nop
mov qword [rbp + 0x88], 0
mov rax, qword [rbp + 0x88]
add rsp, 0x110
pop rbp
ret
Function at 0x140057d22
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp - 8], 0
mov eax, dword [rbp + 0x18]
cdqe
mov rcx, rax
call fcn.1400c0e10
call fcn.1400c0910
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.1400c0cd0
mov qword [rbp - 0x70], 0
mov qword [rbp - 0x78], 0
mov qword [rbp - 0x10], 0
call fcn.1400c0980
call fcn.1400c0980
call fcn.1400c09e0
mov edx, eax
mov ecx, 0x3e8
call fcn.1400bdf10
call fcn.1400c09e0
mov edx, eax
lea rax, [rbp - 0x70]
mov rcx, rax
call fcn.1400c0bc0
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x18], rax
lea rax, str.WINDIR
mov rdx, qword [rbp - 0x18]
mov r8d, 0x3e8
mov rcx, rax
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x78]
lea rdx, [0x140791cf8]
mov rcx, rax
call fcn.1400c0e60
call fcn.1400c0980
call fcn.1400c0980
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.1400c0da0
lea rax, str.System32
mov rcx, rax
call fcn.1400c0da0
call fcn.1400c0fa0
call fcn.1400c0980
lea rax, str.__c
mov rcx, rax
call fcn.1400c0da0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.1400c0da0
call fcn.1400c0fa0
call fcn.1400c0980
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.1400c0da0
lea rax, str.System32cmd.exe
mov rcx, rax
call fcn.1400c0da0
call fcn.1400c0b30
mov qword [rbp - 0x28], rax
call fcn.1400c0b30
mov qword [rbp - 0x30], rax
call fcn.1400c0b30
mov qword [rbp - 0x38], rax
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x28]
mov r9d, reloc.WS2_32.dll_ntohl
mov r8, rcx
mov rcx, rax
call fcn.14008d734
mov qword [rbp - 0x40], rax
call fcn.1400c0a50
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140057f7a
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14008dcb4
mov qword [rbp - 0x48], rax
cmp qword [rbp - 0x48], 0
je 0x140057f67
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14008dd1c
mov qword [rbp - 0x50], rax
cmp qword [rbp - 0x50], 0
je 0x140057f61
call fcn.1400c0980
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.1400c0da0
call fcn.1400c0980
call fcn.1400c0980
call fcn.1400c0980
call fcn.1400c0980
call fcn.1400c09e0
mov edx, eax
mov rax, qword [rbp - 0x10]
mov r8d, edx
mov edx, SafeArrayPutElement
mov rcx, rax
call fcn.14008dd54
call fcn.1400c0b30
mov qword [rbp - 0x58], rax
call fcn.1400c09e0
mov edx, eax
mov rax, qword [rbp - 0x58]
mov rcx, rax
call fcn.140021111
mov qword [rbp - 0x60], rax
call fcn.1400c09e0
lea rax, [0x14078409c]
mov rcx, rax
call fcn.1400c0da0
call fcn.1400c09e0
mov edx, eax
lea rax, [rbp - 0x78]
mov rcx, rax
call fcn.1400c0bc0
jmp 0x140057e9f
nop
jmp 0x140057e9f
nop
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14008dd88
mov qword [rbp - 0x68], rax
jmp 0x140057f7b
nop
call fcn.1400c0980
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.1400c0da0
call fcn.1400c0b30
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.1400c0ca0
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.1400c0ca0
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.1400c0ca0
mov rax, qword [rbp - 8]
add rsp, 0xa0
pop rbp
ret
Function at 0x14005c00e
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp - 8], 0
call fcn.1400c0910
mov qword [rbp - 0x58], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
lea rax, str.Kernel32
mov rcx, rax
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rbp - 0x20], rax
lea rdx, [0x140782520]
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x18], rax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
call sub.KERNEL32.dll_CreateRemoteThread
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14005c0ca
mov qword [rbp - 8], 0
jmp 0x14005c117
nop
mov rax, qword [rbp - 0x10]
mov rdx, 0xffffffffffffffff
mov rcx, rax
call sub.KERNEL32.dll_WaitForSingleObject
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.KERNEL32.dll_GetExitCodeThread
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.KERNEL32.dll_CloseHandle
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp - 8]
add rsp, 0xa0
pop rbp
ret

Function at 0x14005c29d
Capabilities:
Query service status

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp - 8], 0
call fcn.1400c0910
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.1400c0cd0
mov qword [rbp - 0x70], 0
mov qword [rbp - 0x68], 0
mov qword [rbp - 0x60], 0
mov dword [rbp - 0x58], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov r8d, 0xf003f
mov edx, 0
mov ecx, 0
call sub.ADVAPI32.dll_OpenSCManagerW
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14005c396
mov rax, qword [rbp + 0x10]
mov rdx, rax
mov rax, qword [rbp - 0x10]
mov r8d, 0xf01ff
mov rcx, rax
call sub.ADVAPI32.dll_OpenServiceW
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x14005c37a
lea rax, [rbp - 0x70]
mov qword [rbp - 0x30], rax
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.ADVAPI32.dll_QueryServiceStatus
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.ADVAPI32.dll_CloseServiceHandle
mov qword [rbp - 0x40], rax
jmp 0x14005c37b
nop
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.ADVAPI32.dll_CloseServiceHandle
mov qword [rbp - 0x48], rax
mov eax, dword [rbp - 0x6c]
cdqe
mov qword [rbp - 8], rax
jmp 0x14005c39f
nop
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.1400c0ca0
mov rax, qword [rbp - 8]
add rsp, 0x90
pop rbp
ret