joyce8/EMBER2024-capa huggingface dataset:
Function at 0x86f2e0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x108
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], rdx
mov byte [rbp + 0x66], r9b
mov qword [rbp + 0x68], 0
mov qword [rbp + 0xf8], 0
mov qword [rbp + 0x130], r8
mov rcx, qword [rbp + 0x130]
call fcn.00412f00
nop
mov al, 1
mov byte [rbp + 0x67], al
lea rcx, [rbp + 0xf8]
mov edx, 3
lea r8, [0x0086f550]
mov r9, qword [rbp + 0x50]
lea rax, [0x0086f550]
mov qword [rsp + 0x20], rax
call fcn.00413e70
mov rax, qword [rbp + 0x58]
test rax, rax
je 0x86f37d
lea rcx, [rbp + 0xf8]
mov edx, 3
mov r8, qword [rbp + 0xf8]
lea r9, [0x0086f560]
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.00413e70
cmp qword [rbp + 0x130], 0
jne 0x86f3a4
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x50]
call fcn.005d6560
lea rcx, [rbp + 0x130]
mov rdx, qword [rbp + 0x68]
call fcn.0086f6a0
lea rcx, [rbp + 0x90]
mov edx, 0x68
xor r8, r8
call fcn.0040cff0
mov dword [rbp + 0x90], 0x68
mov dword [rbp + 0xcc], 1
movzx rax, word [rbp + 0x148]
mov word [rbp + 0xd0], ax
cmp qword [rbp + 0x130], 0
je 0x86f3f6
mov rcx, qword [rbp + 0x130]
call fcn.00413fa0
mov rbx, rax
jmp 0x86f3f8
xor ebx, ebx
mov rcx, qword [rbp + 0xf8]
call fcn.00413fa0
xor ecx, ecx
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x90]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x78]
mov qword [rsp + 0x48], rax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x86f460
xor eax, eax
mov byte [rbp + 0x67], al
call sub.kernel32.dll_GetLastError
mov rcx, qword [rbp + 0x158]
mov dword [rcx], eax
jmp 0x86f4d6
mov rcx, qword [rbp + 0x80]
call sub.kernel32.dll_CloseHandle
cmp byte [rbp + 0x140], 0
je 0x86f481
mov rcx, qword [rbp + 0x78]
or edx, 0xffffffff
call sub.user32.dll_WaitForInputIdle
movzx rax, byte [rbp + 0x66]
test al, al
je 0x86f4bc
cmp qword [rbp + 0x150], 0
je 0x86f49a
call qword [rbp + 0x150]
mov ecx, 1
lea rdx, [rbp + 0x78]
xor r8, r8
or r9d, 0xffffffff
mov dword [rsp + 0x20], 0x1cff
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x86f48a
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x158]
call sub.kernel32.dll_GetExitCodeProcess
mov rcx, qword [rbp + 0x78]
call sub.kernel32.dll_CloseHandle
nop
lea rcx, [rbp + 0x68]
call fcn.00412d60
lea rcx, [rbp + 0xf8]
call fcn.00412d60
lea rcx, [rbp + 0x130]
call fcn.00412d60
movzx rax, byte [rbp + 0x67]
lea rsp, [rbp + 0x108]
pop rbx
pop rbp
ret
Function at 0x86f570
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x40], rdx
mov qword [rbp + 0x48], r8
mov qword [rbp + 0x58], 0
mov qword [rbp + 0xa8], r9
mov rcx, qword [rbp + 0xa8]
call fcn.00412f00
nop
cmp qword [rbp + 0xa8], 0
jne 0x86f5ca
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x38]
call fcn.005d6560
lea rcx, [rbp + 0xa8]
mov rdx, qword [rbp + 0x58]
call fcn.0086f6a0
cmp qword [rbp + 0xa8], 0
je 0x86f5e5
mov rcx, qword [rbp + 0xa8]
call fcn.00413fa0
mov rbx, rax
jmp 0x86f5e7
xor ebx, ebx
mov rcx, qword [rbp + 0x48]
call fcn.00413fa0
mov rsi, rax
mov rcx, qword [rbp + 0x38]
call fcn.00413fa0
mov rdi, rax
mov rcx, qword [rbp + 0x40]
call fcn.00413fa0
xor ecx, ecx
mov rdx, rsi
mov r8, rdi
mov r9, rax
mov qword [rsp + 0x20], rbx
mov eax, dword [rbp + 0xb0]
mov dword [rsp + 0x28], eax
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
setg cl
mov byte [rbp + 0x57], cl
movzx rcx, byte [rbp + 0x57]
test cl, cl
jne 0x86f642
mov rcx, qword [rbp + 0xb8]
mov dword [rcx], eax
nop
lea rcx, [rbp + 0x58]
call fcn.00412d60
lea rcx, [rbp + 0xa8]
call fcn.00412d60
movzx rax, byte [rbp + 0x57]
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x86fc80
Capabilities:
Query environment variable

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
mov rcx, rbx
mov edx, 0xff
xor r8, r8
call fcn.00414040
xor edi, edi
mov rax, qword [rbx]
test rax, rax
je 0x86fcac
mov edi, dword [rax - 4]
mov rcx, rsi
call fcn.00413fa0
mov r13, rax
mov rcx, qword [rbx]
call fcn.00413fa0
mov rcx, r13
mov rdx, rax
mov r8d, edi
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
jne 0x86fcdb
mov rcx, rbx
call fcn.00412d60
jmp 0x86fce9
mov rcx, rbx
mov edx, eax
call fcn.0086fd50
test al, al
je 0x86fc9f
nop
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x8700a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rdx
mov qword [rbp + 0x40], r8
mov dword [rbp + 0x48], r9d
mov qword [rbp + 0x50], 0
nop
xor eax, eax
mov byte [rbp + 0x4f], al
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x38]
xor r8, r8
lea r9, [rbp + 0x5c]
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x87016b
mov eax, dword [rbp + 0x48]
cmp dword [rbp + 0x5c], eax
je 0x870103
mov eax, dword [rbp + 0x5c]
cmp eax, dword [rbp + 0x90]
jne 0x87016b
cmp dword [rbp + 0x58], 2
jae 0x870119
mov rcx, qword [rbp + 0x40]
call fcn.00412d60
mov al, 1
mov byte [rbp + 0x4f], al
jmp 0x87016b
lea rcx, [rbp + 0x50]
mov edx, dword [rbp + 0x58]
sub edx, 1
xor r8, r8
call fcn.00414040
lea rcx, [rbp + 0x50]
call fcn.00413710
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x38]
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x87016b
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x50]
call fcn.004134e0
mov al, 1
mov byte [rbp + 0x4f], al
nop
lea rcx, [rbp + 0x50]
call fcn.00412d60
movzx rax, byte [rbp + 0x4f]
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x140010374
Capabilities:
Parse pe header

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

Function at 0x140013f74
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013da0
Function at 0x1410d23bc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1410d23c6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1410d23ef
pop rbp
sub rbp, 0x33
sub rbp, 0x10d23bc
sub rsp, 0x20
jmp 0x1410d240e
mov rax, 0x10d23bc
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x64743ea2
xor byte [rax], dl
inc rax
dec rcx
jne 0x1410d242d
jmp 0x1410d2444
invalid
Function at 0x140001270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rbx, rcx
lea r8d, [rbp + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14000131a
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000131a
mov rcx, rax
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, 2
shr ebx, 1
lea ecx, [rbx + 1]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140001778
add rbx, rbx
mov rdx, rsi
mov r8, rbx
mov rcx, rax
mov rdi, rax
call fcn.140002710
mov rsi, qword [rsp + 0x30]
mov rax, rdi
mov word [rbx + rdi], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001330
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0xe0
xor edx, edx
mov rdi, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.140002b60
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x58], rax
xor r8d, r8d
mov qword [rsp + 0x60], rax
mov rdx, rdi
lea rax, [rsp + 0x50]
xor ecx, ecx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140001437
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0x100], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
or r8, 0xffffffffffffffff
mov esi, eax
mov rcx, r8
inc rcx
cmp word [rdi + rcx*2], 0
jne 0x1400013c5
add rcx, 0x32
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.140001778
mov r9d, esi
lea rdx, str.Couldnt_start:_n_s_nCreateProcess___returned__x.
mov r8, rdi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rbx
call fcn.1400026c0
mov rsi, qword [rsp + 0x100]
mov eax, 0x232d
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0xf8]
mov dword [rsp + 0xf8], 0x232e
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0xf8]
add rsp, 0xe0
pop rdi
ret
Function at 0x140002b50
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rdx]
mov rdi, rcx
mov esi, 1
mov rbx, rdx
mov ecx, esi
mov r8, qword [rax]
mov qword [0x140c01278], r8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__isatty]
mov r8d, dword [0x1403f7a60]
lea r9, [0x140002990]
test eax, eax
mov rdx, rbx
mov rcx, rdi
cmovne r8d, esi
mov dword [0x1403f7a60], r8d
lea r8, str.backup
call fcn.140041a60
test eax, eax
je 0x140002bca
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [rdi], 0
jne 0x140002bdd
call fcn.140004e40
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp qword [0x1403f7a48], 0
je 0x140002bf5
mov byte [0x1403f7a40], 0
mov byte [0x1403f7a70], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14003add0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1403f79f0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [0x140bfcde8]
test rax, rax
jne 0x14003ae87
movzx eax, word [0x1400e0eb4]
lea r8, [rsp + 0x22]
mov word [rsp + 0x20], ax
mov edx, 0x1004
movzx eax, byte [0x1400e0eb6]
mov ecx, 0x800
mov byte [rsp + 0x22], al
xor eax, eax
mov dword [rsp + 0x23], eax
mov word [rsp + 0x27], ax
mov byte [rsp + 0x29], al
lea r9d, [rax + 7]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
xor edx, edx
lea r8, [rsp + 0x20]
mov eax, edx
lea r9, str.cp932
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
cmp cl, byte [r9 + rax - 1]
jne 0x14003ae67
cmp rax, 6
jne 0x14003ae50
jmp 0x14003ae6c
sbb edx, edx
or edx, 1
test edx, edx
lea rcx, [0x14024a020]
lea rax, [0x140243bc0]
cmove rax, rcx
mov qword [0x140bfcde8], rax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400da560
add rsp, 0x48
ret

Function at 0x14003c4f0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
cmp byte [0x140c00df8], 0
je 0x14003c504
xor al, al
add rsp, 0x28
ret
cmp byte [0x140c00df0], 0
mov qword [rsp + 0x20], rbx
mov byte [0x140c00df8], 1
jne 0x14003c558
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ebx, ebx
mov dword [0x140c74ff0], eax
cmp eax, 0xffffffff
sete bl
jne 0x14003c558
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.Cant_initialize_threads:_error__d_n
mov rcx, rax
call fcn.140002850
mov rbx, qword [rsp + 0x20]
mov al, 1
add rsp, 0x28
ret
mov byte [0x140c00df0], 1
call fcn.14003c830
call fcn.14003c590
test al, al
jne 0x14003c54c
call fcn.14003bf30
mov dword [0x140c01a08], eax
call fcn.14003c6f0
mov rbx, qword [rsp + 0x20]
xor al, al
add rsp, 0x28
ret

Function at 0x14003c920
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov rdx, rcx
mov ecx, dword [0x140c74ff0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x14003cf50
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x1403f79f0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14003d086
test al, 0x10
je 0x14003cfa5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
mov eax, 0xffffffff
jmp 0x14003d0da
mov rcx, rdi
bt eax, 0xa
jae 0x14003cfc1
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14003d0d8
jmp 0x14003d086
xor ebp, ebp
mov dword [rsp + 0x40], 3
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], ebp
mov edx, 0x10000
mov dword [rsp + 0x20], 3
lea r8d, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14003d01f
lea r9d, [rbp + 4]
mov rcx, rax
lea r8, [rsp + 0x40]
lea edx, [rbp + 0x15]
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x14003d0d8
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x4000000
xor r8d, r8d
mov edx, 0x10000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x14003d053
mov rcx, rax
jmp 0x14003d0d2
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x4000000
mov edx, 0x10000
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14003d09a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004ef70
mov eax, 0xffffffff
jmp 0x14003d0da
rdtsc
shl rdx, 0x20
lea r8, str._s._llx.deleted
or rax, rdx
lea rcx, [rsp + 0x50]
mov edx, 0x127
mov qword [rsp + 0x20], rax
mov r9, rdi
call fcn.1400522b0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400da560
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14003d6d0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call fcn.14003d790
test eax, eax
jne 0x14003d77e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004ef70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 2
jne 0x14003d729
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
jne 0x14003d729
call fcn.14003bf20
mov dword [rax], 0x14
jmp 0x14003d745
mov qword [rsp + 0x40], rbx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rbx, rax
call fcn.14003bf20
mov ecx, dword [rbx]
mov rbx, qword [rsp + 0x40]
mov dword [rax], ecx
test sil, 0x18
je 0x14003d769
call fcn.14003bf20
mov edx, 4
mov r9, rbp
mov r8, rdi
mov ecx, dword [rax]
mov dword [rsp + 0x20], ecx
lea ecx, [rdx + 3]
call fcn.14003bc20
mov eax, 0xffffffff
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbp, qword [rsp + 0x48]
xor eax, eax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14003d790
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ebx, 0x32
nop word [rax + rax]
mov r8d, 3
mov rdx, rdi
mov rcx, rsi
dec ebx
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x14003d7e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x14003d7d8
cmp eax, 5
jne 0x14003d7e7
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
jne 0x14003d7b0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14003dd80
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x140c00e0c], 0
jne 0x14003deb3
inc dword [0x140c00e08]
lea rcx, str.UMASK
mov byte [0x140c00e0c], 1
mov dword [0x1402432cc], 0x1b0
mov dword [0x1402432d8], 0x1c0
mov dword [0x140c0149c], 0
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14003dde1
mov rcx, rax
call fcn.14003dbc0
or eax, 0x180
mov dword [0x1402432cc], eax
lea rcx, str.UMASK_DIR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14003de06
mov rcx, rax
call fcn.14003dbc0
or eax, 0x1c0
mov dword [0x1402432d8], eax
call fcn.14000ab50
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, qword [0x140c01278]
mov qword [0x140c00e18], rax
lea rax, [0x140c00e18]
mov qword [0x140c00e10], rax
lea rax, str.unknown
mov qword [0x140c01280], rax
mov qword [0x140c00e20], 0
test rcx, rcx
je 0x14003de60
call fcn.14003e520
add rax, qword [0x140c01278]
mov qword [0x140c01280], rax
call fcn.14000ab50
call fcn.14003c4f0
test al, al
je 0x14003de75
mov al, 1
add rsp, 0x28
ret
lea rcx, str.HOME
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [0x140c01270], rax
test rax, rax
je 0x14003dea4
mov rdx, rax
lea rcx, [0x140c014b0]
call fcn.140048750
mov qword [0x140c01270], rax
call fcn.140048e80
call fcn.14003dec0
call fcn.14003dfa0
xor al, al
add rsp, 0x28
ret
Function at 0x14003dec0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
lea rcx, [0x14003bf70]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__tzset]
add rsp, 0x28
jmp 0x14003e050
push rbp
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x1403f79f0]
xor rax, rsp
mov qword [rbp + 0x970], rax
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMySQL
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14003e1ce
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x60]
mov qword [rsp + 0xa90], rbx
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x48]
mov qword [rsp + 0xa98], rdi
xor edi, edi
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rdi
mov ebx, edi
mov dword [rsp + 0x44], 0xff
mov dword [rsp + 0x40], 0x3ff
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x14003e1b3
nop dword [rax]
inc ebx
cmp eax, 0xea
je 0x14003e15f
test eax, eax
jne 0x14003e1b3
cmp dword [rsp + 0x48], 1
jne 0x14003e15f
lea r9, [rbp + 0x60]
mov qword [rsp + 0x20], rdi
lea r8, [0x1400e11e8]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x460]
call fcn.1400530b0
lea rcx, [rbp + 0x460]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x60]
mov dword [rsp + 0x44], 0xff
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], 0x3ff
mov qword [rsp + 0x28], rax
mov edx, ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x14003e110
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0xa98]
mov rbx, qword [rsp + 0xa90]
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.1400da560
add rsp, 0xa80
pop rbp
ret
Function at 0x14003dee0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14003df87
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesWinsock2Parameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14003df87
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesWinsockParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14003df87
lea rcx, str.HAVE_TCPIP
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14003df80
cmp byte [0x140c00e0d], 0
je 0x14003df87
xor al, al
add rsp, 0x38
ret
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x38
ret

Function at 0x14003dfa0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1403f79f0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
call fcn.14003dee0
test al, al
je 0x14003e027
mov qword [rsp + 0x1d0], rbx
lea rdx, [rsp + 0x20]
mov ebx, 0x202
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14003dfe7
cmp word [rsp + 0x20], bx
je 0x14003dffe
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, ebx
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14003e005
mov byte [0x140c00e0d], 1
mov rbx, qword [rsp + 0x1d0]
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400da560
add rsp, 0x1d8
ret
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400da560
add rsp, 0x1d8
ret