joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002990
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov r9, rdx
mov r8, rcx
lea rdx, str.aria_chk
lea rcx, [0x1400fa9f0]
call fcn.140059cd0
test eax, eax
je 0x1400029e8
xor ecx, ecx
cmp eax, 4
je 0x1400029da
call fcn.140058570
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140058570
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, qword [rsi]
mov ebx, 1
mov ecx, ebx
mov qword [0x140419c88], rax
mov qword [0x140c2a108], 0x8000000
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]
test eax, eax
je 0x140002a2b
mov eax, 0x80000000
or qword [0x140c2a108], rax
lea r9, [0x140001f80]
mov rdx, rsi
lea r8, str.analyze
mov rcx, rdi
call fcn.14005bd70
test eax, eax
jne 0x140002b51
mov rax, qword [0x140c2a108]
bt rax, 0x1b
jae 0x140002a6d
test rax, 0xe0000
je 0x140002a6d
or rax, 8
mov qword [0x140c2a108], rax
cmp dword [rdi], 0
je 0x140002b59
bt rax, 0x1a
jae 0x140002a89
test rax, 0x1008000
jne 0x140002b69
bt rax, 0x10
jae 0x140002a9c
test rax, 0x38e0801
jne 0x140002b92
mov rdx, qword [0x140419c70]
lea rdi, [0x140419cb0]
mov rcx, rdi
call fcn.140058bb0
test al, al
jne 0x140002b49
mov rcx, qword [0x140419c68]
mov qword [0x140c29608], rdi
test rcx, rcx
je 0x140002ae3
mov edx, 0x10
call fcn.140053d10
mov qword [0x140419c98], rax
test rax, rax
je 0x140002b49
mov rcx, qword [0x140c43640]
mov rdx, qword [0x140419c90]
cmp rcx, rdx
je 0x140002b0b
mov rax, qword [0x140419c78]
cmp rax, rdx
cmove rax, rcx
mov qword [0x140419c78], rax
mov rax, qword [0x140c2a108]
movabs rcx, 0x300000000
test rcx, rax
je 0x140002b39
mov ecx, 0xfc71fbcf
test rcx, rax
movzx eax, byte [0x140419c65]
cmove eax, ebx
mov byte [0x140419c65], al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, ebx
call fcn.140004990
int3
mov ecx, eax
call fcn.140004990
int3
call fcn.140004eb0
mov ecx, 0xffffffff
call fcn.140004990
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140c23320]
lea rdx, str._s:___unpack_cant_be_used_with___quick_or___sort_records_n
mov rcx, rax
call fcn.140001f20
mov ecx, ebx
call fcn.140004990
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140c23320]
lea rdx, str._s:_Cant_use___readonly_when_repairing_or_sorting_n
mov rcx, rax
call fcn.140001f20
mov ecx, ebx
call fcn.140004990
int3

Function at 0x140004990
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
lea rcx, [0x140419cb0]
call fcn.140058b30
mov rcx, qword [0x140419c88]
call fcn.1400598e0
mov edx, 0xc6
lea ecx, [rdx - 0x4e]
call fcn.140058360
mov rcx, qword [0x140c2a108]
shr rcx, 0xc
and ecx, 2
or ecx, 1
call fcn.140058570
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140015f90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rdx
mov r9, r8
mov rdx, r8
mov rcx, rbx
cmp dword [rax + 0x704], 3
je 0x140015fb8
add rsp, 0x20
pop rbx
jmp fcn.14006c990
shr rcx, 8
mov r8d, 0xa
call fcn.14006cbf0
movzx ecx, bl
mov r8d, 0xa
lea rdx, [rax + 1]
mov byte [rax], 0x3a
add rsp, 0x20
pop rbx
jmp fcn.14006cbf0

Function at 0x14003eee0
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [rcx]
xor ecx, ecx
mov r8d, dword [rax + 0x374]
jmp fcn.140061de0

Function at 0x140043c10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r8, rdx
mov rdx, qword [rdx + 8]
mov r9d, dword [r8 + 0x10]
mov r8, qword [r8]
mov rdx, qword [rdx + 0x70]
jmp fcn.140043c30
Function at 0x140053b50
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140419c00]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [0x140c1edf8]
test rax, rax
jne 0x140053c07
movzx eax, word [0x140100cfc]
lea r8, [rsp + 0x22]
mov word [rsp + 0x20], ax
mov edx, 0x1004
movzx eax, byte [0x140100cfe]
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 0x140053be7
cmp rax, 6
jne 0x140053bd0
jmp 0x140053bec
sbb edx, edx
or edx, 1
test edx, edx
lea rcx, [0x14026c230]
lea rax, [0x140266050]
cmove rax, rcx
mov qword [0x140c1edf8], rax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400f4390
add rsp, 0x48
ret

Function at 0x140055100
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
cmp byte [0x140c22e08], 0
je 0x140055114
xor al, al
add rsp, 0x28
ret
cmp byte [0x140c22e00], 0
mov qword [rsp + 0x20], rbx
mov byte [0x140c22e08], 1
jne 0x140055168
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ebx, ebx
mov dword [0x140cafd70], eax
cmp eax, 0xffffffff
sete bl
jne 0x140055168
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.140001f20
mov rbx, qword [rsp + 0x20]
mov al, 1
add rsp, 0x28
ret
mov byte [0x140c22e00], 1
call fcn.140055440
call fcn.1400551a0
test al, al
jne 0x14005515c
call fcn.140054b40
mov dword [0x140c23948], eax
call fcn.140055300
mov rbx, qword [rsp + 0x20]
xor al, al
add rsp, 0x28
ret

Function at 0x140055530
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov rdx, rcx
mov ecx, dword [0x140cafd70]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x140057a80
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 [0x140419c00]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140057bb6
test al, 0x10
je 0x140057ad5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
mov eax, 0xffffffff
jmp 0x140057c0a
mov rcx, rdi
bt eax, 0xa
jae 0x140057af1
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140057c08
jmp 0x140057bb6
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 0x140057b4f
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 0x140057c08
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 0x140057b83
mov rcx, rax
jmp 0x140057c02
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 0x140057bca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140069440
mov eax, 0xffffffff
jmp 0x140057c0a
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.14006ba40
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.1400f4390
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 0x1400586c0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x140c22e2c], 0
jne 0x1400587f3
inc dword [0x140c22e28]
lea rcx, str.UMASK
mov byte [0x140c22e2c], 1
mov dword [0x14026580c], 0x1b0
mov dword [0x140265818], 0x1c0
mov dword [0x140c2353c], 0
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140058721
mov rcx, rax
call fcn.140058500
or eax, 0x180
mov dword [0x14026580c], eax
lea rcx, str.UMASK_DIR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140058746
mov rcx, rax
call fcn.140058500
or eax, 0x1c0
mov dword [0x140265818], eax
call fcn.1400012d0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, qword [0x140c23318]
mov qword [0x140c22e38], rax
lea rax, [0x140c22e38]
mov qword [0x140c22e30], rax
lea rax, str.unknown
mov qword [0x140c23320], rax
mov qword [0x140c22e40], 0
test rcx, rcx
je 0x1400587a0
call fcn.1400620a0
add rax, qword [0x140c23318]
mov qword [0x140c23320], rax
call fcn.1400012d0
call fcn.140055100
test al, al
je 0x1400587b5
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 [0x140c23310], rax
test rax, rax
je 0x1400587e4
mov rdx, rax
lea rcx, [0x140c23550]
call fcn.140061650
mov qword [0x140c23310], rax
call fcn.140061d80
call fcn.140058800
call fcn.1400588e0
xor al, al
add rsp, 0x28
ret
Function at 0x140058800
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
lea rcx, [0x140054b80]
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 0x140058990
push rbp
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x140419c00]
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 0x140058b0e
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 0x140058af3
nop dword [rax]
inc ebx
cmp eax, 0xea
je 0x140058a9f
test eax, eax
jne 0x140058af3
cmp dword [rsp + 0x48], 1
jne 0x140058a9f
lea r9, [rbp + 0x60]
mov qword [rsp + 0x20], rdi
lea r8, [0x140101068]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x460]
call fcn.14006d4e0
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 0x140058a50
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.1400f4390
add rsp, 0xa80
pop rbp
ret
Function at 0x140058820
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 0x1400588c7
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 0x1400588c7
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 0x1400588c7
lea rcx, str.HAVE_TCPIP
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400588c0
cmp byte [0x140c22e2d], 0
je 0x1400588c7
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 0x1400588e0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140419c00]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
call fcn.140058820
test al, al
je 0x140058967
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 0x140058927
cmp word [rsp + 0x20], bx
je 0x14005893e
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 0x140058945
mov byte [0x140c22e2d], 1
mov rbx, qword [rsp + 0x1d0]
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400f4390
add rsp, 0x1d8
ret
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400f4390
add rsp, 0x1d8
ret
Function at 0x140058990
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
lea rcx, [0x140054b80]
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 0x140058990
push rbp
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x140419c00]
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 0x140058b0e
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 0x140058af3
nop dword [rax]
inc ebx
cmp eax, 0xea
je 0x140058a9f
test eax, eax
jne 0x140058af3
cmp dword [rsp + 0x48], 1
jne 0x140058a9f
lea r9, [rbp + 0x60]
mov qword [rsp + 0x20], rdi
lea r8, [0x140101068]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x460]
call fcn.14006d4e0
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 0x140058a50
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.1400f4390
add rsp, 0xa80
pop rbp
ret
Function at 0x140058bb0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140419c00]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rax, qword [0x1402657c8]
mov rbx, rdx
mov rsi, rcx
lea rdx, [rcx + 0x30]
mov ecx, dword [0x140cafc14]
call qword [rax + 0x40]
lea rcx, [rsi + 0x30]
mov qword [rsi + 0x58], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov r9d, 1
mov dword [rsp + 0x28], 0
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, rsi
lea edx, [r9 + 7]
call fcn.14005efa0
test al, al
je 0x140058c79
mov rcx, rsi
call fcn.14005eee0
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x140058c48
mov rax, qword [0x1402657c8]
call qword [rax + 0x48]
mov qword [rsi + 0x58], 0
lea rcx, [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400f4390
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rbx, rbx
je 0x140058c83
cmp byte [rbx], 0
jne 0x140058cd0
lea rcx, str.TMPDIR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
jne 0x140058cc2
lea rcx, str.TEMP
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
jne 0x140058cc2
lea rcx, [0x140101134]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
je 0x140058cc7
cmp byte [rbx], 0
jne 0x140058cd0
lea rbx, str.C:TEMP
nop
mov edx, 0x3b
mov rcx, rbx
call fcn.14008c2a0
mov r8d, eax
lea rcx, [rsp + 0x40]
sub r8d, ebx
mov rdx, rbx
mov rdi, rax
call fcn.14006d570
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140061330
mov r8d, 0x10
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.140055c10
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140058c52
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14005f040
test al, al
jne 0x140058c52
lea rbx, [rdi + 1]
cmp byte [rdi], al
jne 0x140058cd0
mov rcx, rsi
call fcn.14005ef40
mov rax, qword [rsi]
mov qword [rsi + 0x20], rax
mov eax, dword [rsi + 8]
dec eax
mov dword [rsi + 0x28], 0
mov dword [rsi + 0x2c], eax
xor al, al
jmp 0x140058c54
Function at 0x140059b60
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x140419c00]
xor rax, rsp
mov qword [rsp + 0x220], rax
xor ebp, ebp
mov rsi, rcx
mov edi, ebp
lea edx, [rbp + 0x40]
call fcn.14005ff20
mov rbx, rax
test rax, rax
je 0x140059ca4
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rax], xmm0
mov edx, 0x200
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
test eax, eax
je 0x140059bdc
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400597c0
mov edi, eax
mov edx, 0x200
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x140059c02
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400597c0
add edi, eax
mov r8, rbx
lea rdx, [0x1401017e8]
mov rcx, rsi
call fcn.1400597c0
mov edx, 0x200
lea rcx, [rsp + 0x20]
add edi, eax
call fcn.140059cf0
test rax, rax
je 0x140059c65
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400597c0
lea r8, str._data
mov edx, 0x200
lea rcx, [rsp + 0x20]
add edi, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400597c0
add edi, eax
lea rcx, str.MYSQL_HOME
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140059c87
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call fcn.1400597c0
add edi, eax
mov r8, rbx
lea rdx, [0x1400f8bf6]
mov rcx, rsi
call fcn.1400597c0
add eax, edi
test eax, eax
cmovg rbx, rbp
mov rax, rbx
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1400f4390
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14005db60
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.14005dc20
test eax, eax
jne 0x14005dc0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140069440
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 2
jne 0x14005dbb9
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
jne 0x14005dbb9
call fcn.140054b30
mov dword [rax], 0x14
jmp 0x14005dbd5
mov qword [rsp + 0x40], rbx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rbx, rax
call fcn.140054b30
mov ecx, dword [rbx]
mov rbx, qword [rsp + 0x40]
mov dword [rax], ecx
test sil, 0x18
je 0x14005dbf9
call fcn.140054b30
mov edx, 4
mov r9, rbp
mov r8, rdi
mov ecx, dword [rax]
mov dword [rsp + 0x20], ecx
lea ecx, [rdx + 3]
call fcn.140058200
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 0x14005dc20
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 0x14005dc79
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x14005dc68
cmp eax, 5
jne 0x14005dc77
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
jne 0x14005dc40
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14005dd70
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsx ebx, cl
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, ebx
mov edi, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
lea ecx, [rax - 0x41]
cmp cl, 0x19
ja 0x14005ddb0
movsx ecx, al
sub ecx, 0x41
movzx edx, cl
bt edi, edx
jae 0x14005ddb0
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14005de74
test al, 1
je 0x14005de6c
test bl, 2
jne 0x14005de74
xor eax, eax
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0xd
call fcn.140054b30
mov dword [rax], 0xd
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14005f56f
bt eax, 0xa
jae 0x14005f56f
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret