joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008580
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, str.kernel32.dll
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.GetSystemWindowsDirectoryA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, ebx
mov rcx, rdi
test rax, rax
je 0x1400085c6
call rax
mov eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, eax
cmp rbx, 8
jbe 0x1400085f0
lea rcx, [rbx + rdi - 8]
lea rdx, str.System32
call fcn.140089bb8
test eax, eax
jne 0x1400085f0
sub rbx, 8
mov byte [rbx + rdi], al
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140008680
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 [0x1403ac4a0]
xor rax, rsp
mov qword [rsp + 0x220], rax
xor ebp, ebp
mov rsi, rcx
lea edx, [rbp + 0x38]
mov edi, ebp
call fcn.1400194a0
mov rbx, rax
test rax, rax
je 0x1400087a5
xor eax, eax
lea rcx, [rsp + 0x20]
mov edx, 0x200
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rax
call fcn.140008580
test rax, rax
je 0x140008707
lea rdx, [rsp + 0x20]
mov r8, rbx
mov rcx, rsi
call fcn.140008500
mov edi, eax
lea rcx, [rsp + 0x20]
mov edx, 0x200
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x14000872d
lea rdx, [rsp + 0x20]
mov r8, rbx
mov rcx, rsi
call fcn.140008500
add edi, eax
lea rdx, [0x1400ba544]
mov r8, rbx
mov rcx, rsi
call fcn.140008500
lea rcx, [rsp + 0x20]
mov edx, 0x200
add edi, eax
call fcn.140008600
test rax, rax
je 0x140008767
lea rdx, [rsp + 0x20]
mov r8, rbx
mov rcx, rsi
call fcn.140008500
add edi, eax
lea rcx, str.MYSQL_HOME
call fcn.1400620f4
test rax, rax
je 0x140008788
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call fcn.140008500
add edi, eax
lea rdx, [0x1400b82ef]
mov r8, rbx
mov rcx, rsi
call fcn.140008500
add eax, edi
test eax, eax
cmovg rbx, rbp
mov rax, rbx
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1400611e0
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 0x1400087d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, str.MYSQL_TEST_LOGIN_FILE
mov rbx, rdx
call fcn.1400620f4
test rax, rax
je 0x140008806
lea rcx, str.MYSQL_TEST_LOGIN_FILE
call fcn.1400620f4
lea r8, [0x1400b82d0]
jmp 0x14000882a
lea rcx, str.APPDATA
call fcn.1400620f4
test rax, rax
je 0x14000884e
lea rcx, str.APPDATA
call fcn.1400620f4
lea r8, str._sMySQL.mylogin.cnf
mov r9, rax
mov rdx, rbx
mov rcx, rdi
call fcn.14000b4b0
mov r11, rax
xor eax, eax
test r11, r11
setne al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.140062880
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x14000a1e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x1403ac4a0]
xor rax, rsp
mov qword [rbp + 0x970], rax
lea rax, [rsp + 0x50]
lea rdx, str.SOFTWAREMySQL
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000a35c
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
mov qword [rsp + 0xa90], rbx
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0xa98], rdi
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor edi, edi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x20], rdi
mov ebx, edi
mov dword [rsp + 0x40], 0xff
mov dword [rsp + 0x44], 0x3ff
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x14000a341
nop dword [rax]
inc ebx
cmp eax, 0xea
je 0x14000a2ed
test eax, eax
jne 0x14000a341
cmp dword [rsp + 0x48], 1
jne 0x14000a2ed
lea r9, [rbp + 0x60]
lea r8, [0x1400bac68]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x460]
mov qword [rsp + 0x20], rdi
call fcn.14001db20
lea rcx, [rbp + 0x460]
call fcn.140089940
mov rcx, rax
call fcn.14008b498
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x60]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov edx, ebx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x40], 0xff
mov dword [rsp + 0x44], 0x3ff
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x14000a2a0
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.1400611e0
add rsp, 0xa80
pop rbp
ret
sub rsp, 0x28
lea rcx, [0x14000a130]
call fcn.140065894
call fcn.1400656ec
call fcn.14000a140
add rsp, 0x28
jmp 0x14000a1e0
Function at 0x14000a380
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x1403ac4a0]
xor rax, rsp
mov qword [rbp + 0x970], rax
lea rax, [rsp + 0x50]
lea rdx, str.SOFTWAREMySQL
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000a35c
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
mov qword [rsp + 0xa90], rbx
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0xa98], rdi
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor edi, edi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x20], rdi
mov ebx, edi
mov dword [rsp + 0x40], 0xff
mov dword [rsp + 0x44], 0x3ff
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x14000a341
nop dword [rax]
inc ebx
cmp eax, 0xea
je 0x14000a2ed
test eax, eax
jne 0x14000a341
cmp dword [rsp + 0x48], 1
jne 0x14000a2ed
lea r9, [rbp + 0x60]
lea r8, [0x1400bac68]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x460]
mov qword [rsp + 0x20], rdi
call fcn.14001db20
lea rcx, [rbp + 0x460]
call fcn.140089940
mov rcx, rax
call fcn.14008b498
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x60]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov edx, ebx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x40], 0xff
mov dword [rsp + 0x44], 0x3ff
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x14000a2a0
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.1400611e0
add rsp, 0xa80
pop rbp
ret
sub rsp, 0x28
lea rcx, [0x14000a130]
call fcn.140065894
call fcn.1400656ec
call fcn.14000a140
add rsp, 0x28
jmp 0x14000a1e0

Function at 0x14000a3b0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x40]
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000a456
lea rax, [rsp + 0x40]
lea rdx, str.SYSTEMCurrentControlSetServicesWinsock2Parameters
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000a456
lea rax, [rsp + 0x40]
lea rdx, str.SYSTEMCurrentControlSetServicesWinsockParameters
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000a456
lea rcx, str.HAVE_TCPIP
call fcn.1400620f4
test rax, rax
je 0x14000a44f
cmp byte [0x14043cde8], 0
je 0x14000a456
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 0x14000a470
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1403ac4a0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
call fcn.14000a3b0
test al, al
je 0x14000a4f7
mov qword [rsp + 0x1d0], rbx
mov ebx, 0x202
lea rdx, [rsp + 0x20]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14000a4b7
cmp word [rsp + 0x20], bx
je 0x14000a4ce
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, [rsp + 0x20]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14000a4d5
mov byte [0x14043cde8], 1
xor al, al
mov rbx, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400611e0
add rsp, 0x1d8
ret
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400611e0
add rsp, 0x1d8
ret

Function at 0x14000a5a0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x14043cde9], 0
jne 0x14000a686
lea rcx, str.UMASK
mov byte [0x14043cde9], 1
mov dword [0x1400e71c0], 0x1b0
mov dword [0x1400e71c4], 0x1c0
call fcn.1400620f4
test rax, rax
je 0x14000a5f0
mov rcx, rax
call fcn.140009fe0
or eax, 0x180
mov dword [0x1400e71c0], eax
lea rcx, str.UMASK_DIR
call fcn.1400620f4
test rax, rax
je 0x14000a614
mov rcx, rax
call fcn.140009fe0
or eax, 0x1c0
mov dword [0x1400e71c4], eax
call fcn.14000a6b0
call fcn.140060780
mov qword [0x14043cde0], 0
mov qword [0x14043cdd8], rax
lea rax, [0x14043cdd8]
mov qword [0x14043cdf0], rax
call fcn.14000ede0
test al, al
je 0x14000a64e
mov al, 1
add rsp, 0x28
ret
lea rcx, str.HOME
call fcn.1400620f4
mov qword [0x14043c2a8], rax
test rax, rax
je 0x14000a67c
lea rcx, [0x14043c4c0]
mov rdx, rax
call fcn.14001d560
mov qword [0x14043c2a8], rax
call fcn.14000a380
call fcn.14000a470
xor al, al
add rsp, 0x28
ret

Function at 0x14000e6c0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x14043cdf8], 0
je 0x14000e6ea
mov rdx, rcx
mov ecx, dword [0x140442390]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000ec80
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x60
call fcn.14000e6a0
mov rcx, qword [0x140114b18]
mov rbx, rax
call qword [rcx + 0x120]
test rbx, rbx
je 0x14000edcb
cmp byte [rbx + 0xb0], 0
je 0x14000edcb
mov rcx, qword [rbx + 0x58]
mov qword [rsp + 0x70], rdi
test rcx, rcx
je 0x14000ecd1
mov rax, qword [0x140114b18]
call qword [rax + 0x68]
mov qword [rbx + 0x58], 0
lea rcx, [rbx + 8]
call fcn.140023210
mov rcx, qword [rbx + 0x88]
test rcx, rcx
je 0x14000ecfb
mov rax, qword [0x140114b18]
call qword [rax + 0x48]
mov qword [rbx + 0x88], 0
lea rcx, [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, rbx
call fcn.14006296c
mov rdx, qword [0x1404420e8]
mov rdi, qword [rsp + 0x70]
test rdx, rdx
je 0x14000ed6b
mov rax, qword [0x140114b18]
lea r9, str.....mysql_5.6.17mysysmy_thr_init.c
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x20], 0x1a1
call qword [rax + 0x178]
lea rcx, [0x1404420c0]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rbx, rbx
je 0x14000ed78
mov rax, qword [0x140114b18]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x180]
jmp 0x14000ed78
lea rcx, [0x1404420c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [0x14043cdfc]
jne 0x14000eda5
mov rcx, qword [0x140442210]
test rcx, rcx
je 0x14000ed99
mov rax, qword [0x140114b18]
call qword [rax + 0x158]
lea rcx, [0x1404421c0]
call fcn.140023260
mov rcx, qword [0x1404420e8]
test rcx, rcx
je 0x14000edbe
mov rax, qword [0x140114b18]
call qword [rax + 0x148]
lea rcx, [0x1404420c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
add rsp, 0x60
pop rbx
jmp fcn.14000e6c0
Function at 0x14000ede0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
cmp byte [0x14043cdf9], 0
je 0x14000edf4
xor al, al
add rsp, 0x28
ret
mov qword [rsp + 0x20], rbx
mov byte [0x14043cdf9], 1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [0x140442390], eax
sete bl
test ebx, ebx
je 0x14000ee3f
call fcn.140060780
lea rdx, str.Cant_initialize_threads:_error__d_n
mov r8d, ebx
add rax, 0x60
mov rcx, rax
call fcn.140060e38
mov al, 1
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
mov rax, qword [0x140114b18]
mov ecx, dword [0x14044245c]
lea rdx, [0x140442220]
mov byte [0x14043cdf8], 1
call qword [rax + 0x40]
lea rcx, [0x140442220]
mov qword [0x140442248], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [0x140114b18]
mov ecx, dword [0x140442430]
lea rdx, [0x1404422e0]
call qword [rax + 0x40]
lea rcx, [0x1404422e0]
mov qword [0x140442308], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [0x140114b18]
mov ecx, dword [0x140442460]
lea rdx, [0x140442320]
call qword [rax + 0x40]
lea rcx, [0x140442320]
mov qword [0x140442348], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [0x140114b18]
mov ecx, dword [0x14044246c]
lea rdx, [0x1404420c0]
call qword [rax + 0x40]
lea rcx, [0x1404420c0]
mov qword [0x1404420e8], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.14000eaf0
test al, al
jne 0x14000ee33
call fcn.14000e730
mov ecx, dword [0x140442434]
lea rdx, [0x140442360]
mov dword [0x140440e70], eax
mov rax, qword [0x140114b18]
call qword [rax + 0x40]
lea rcx, [0x140442360]
mov qword [0x140442388], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [0x140114b18]
mov ecx, dword [0x140442474]
lea rdx, [0x140442260]
call qword [rax + 0x40]
lea rcx, [0x140442260]
mov qword [0x140442288], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [0x140114b18]
mov ecx, dword [0x140442458]
lea rdx, [0x140442180]
call qword [rax + 0x40]
lea rcx, [0x140442180]
mov qword [0x1404421a8], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [0x140114b18]
mov ecx, dword [0x140442410]
lea rdx, [0x1404422a0]
call qword [rax + 0x40]
lea rcx, [0x1404422a0]
mov qword [0x1404422c8], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [0x140114b18]
mov ecx, dword [0x14044247c]
lea rdx, [0x1404423e0]
call qword [rax + 0x40]
lea rcx, [0x1404423e0]
mov qword [0x140442408], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [0x140114b18]
mov ecx, dword [0x14044248c]
lea rdx, [0x1404421c0]
call qword [rax + 0x60]
lea rcx, [0x1404421c0]
xor edx, edx
mov qword [0x140442210], rax
call fcn.1400231d0
mov rax, qword [0x140114b18]
mov ecx, dword [0x140442470]
lea rdx, [0x1404423a0]
call qword [rax + 0x40]
lea rcx, [0x1404423a0]
mov qword [0x1404423c8], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.14000e750
mov rbx, qword [rsp + 0x20]
xor al, al
add rsp, 0x28
ret
Function at 0x14000f080
Capabilities:
Encode data using xor

Disassembly:
movzx eax, r8b
mov r9d, r8d
or al, cl
or al, dl
test al, 7
jne 0x14000f0b3
shr r8d, 3
test r8d, r8d
je 0x14000f0cf
sub rdx, rcx
nop dword [rax + rax]
mov rax, qword [rdx + rcx]
add rcx, 8
xor qword [rcx - 8], rax
dec r8
jne 0x14000f0a0
repz ret
test r8d, r8d
je 0x14000f0cf
sub rdx, rcx
nop dword [rax + rax]
movzx eax, byte [rcx + rdx]
inc rcx
xor byte [rcx - 1], al
dec r9
jne 0x14000f0c0
repz ret
Function at 0x140010b00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [0x1400e7258]
mov rdi, r8
mov esi, edx
movsxd r9, r9d
mov rbx, rcx
add rsi, rcx
mov r10d, dword [rax + r9*4]
xor edx, edx
mov rcx, rdi
shr r10d, 3
mov r8d, r10d
lea rbp, [r10 + rdi]
call fcn.140062880
mov r11, rdi
cmp rbx, rsi
jae 0x140010b68
nop word [rax + rax]
movzx eax, byte [rbx]
cmp r11, rbp
cmove r11, rdi
inc rbx
xor byte [r11], al
inc r11
cmp rbx, rsi
jb 0x140010b50
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140011150
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
test r8, r8
jne 0x140011160
xor eax, eax
add rsp, 0x38
ret
mov eax, 0xffffffff
cmp r8, rax
cmova r8, rax
call fcn.140010db0
lea r9, [rsp + 0x50]
mov rcx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400111ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x140011159
cmp eax, 0x6d
je 0x140011159
mov ecx, eax
call fcn.1400235f0
or rax, 0xffffffffffffffff
add rsp, 0x38
ret
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x140011280
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x58
xor r9d, r9d
mov r10d, ecx
test r8, r8
jne 0x140011296
xor eax, eax
add rsp, 0x58
ret
mov r11d, 0xffffffff
cmp r8, r11
cmova r8, r11
call fcn.140010dd0
test al, 8
je 0x1400112d0
xor eax, eax
lea r9, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rax
mov ecx, r10d
call fcn.140010db0
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140011305
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400235f0
or rax, 0xffffffffffffffff
add rsp, 0x58
ret
mov eax, dword [rsp + 0x70]
add rsp, 0x58
ret

Function at 0x140011310
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
call fcn.140010db0
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140011346
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140011346
xor eax, eax
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400235f0
call fcn.140061058
mov rbx, rax
call fcn.14000e6a0
mov ecx, dword [rbx]
mov dword [rax], ecx
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
Function at 0x14001be00
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1403ac4a0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [0x140440e30]
test rax, rax
jne 0x14001beb1
movzx eax, word [0x1400be664]
lea r8, [rsp + 0x22]
mov edx, 0x1004
mov word [rsp + 0x20], ax
movzx eax, byte [0x1400be666]
mov ecx, 0x800
mov byte [rsp + 0x22], al
xor eax, eax
mov qword [rsp + 0x50], rsi
lea r9d, [rax + 7]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x23], eax
mov word [rsp + 0x27], ax
mov byte [rsp + 0x29], al
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea rsi, [rsp + 0x20]
lea rdi, str.cp932
xor r11d, r11d
mov ecx, 6
repe cmpsb byte [rsi], byte [rdi]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
je 0x14001be95
sbb r11d, r11d
sbb r11d, 0xffffffff
lea rcx, [0x1401b3850]
lea rax, [0x140119410]
test r11d, r11d
cmove rax, rcx
mov qword [0x140440e30], rax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400611e0
add rsp, 0x48
ret

Function at 0x14001c790
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0xc8
mov rax, qword [0x1403ac4a0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, rdx
mov esi, r9d
mov r12, rcx
mov r9, rcx
mov edx, 1
mov rcx, rax
mov rbx, r8
call fcn.140068480
mov rbp, rax
cmp rax, rbx
je 0x14001c8c1
test sil, 0x1a
je 0x14001c88c
mov rcx, r12
mov qword [rsp + 0xc0], rdi
call fcn.1400688c8
test eax, eax
je 0x14001c830
call fcn.140061058
mov rbx, rax
call fcn.140061058
mov r8d, dword [rbx]
lea rcx, [rsp + 0x30]
mov edx, 0x80
mov rdi, rax
call fcn.140003230
mov rcx, r12
mov rbx, rax
call fcn.14001c780
mov ecx, eax
call fcn.140010b80
mov ecx, 2
jmp 0x14001c86f
test sil, 6
je 0x14001c884
call fcn.140061058
mov rbx, rax
call fcn.140061058
mov r8d, dword [rbx]
lea rcx, [rsp + 0x30]
mov edx, 0x80
mov rdi, rax
call fcn.140003230
mov rcx, r12
mov rbx, rax
call fcn.14001c780
mov ecx, eax
call fcn.140010b80
mov ecx, 9
mov r9d, dword [rdi]
mov r8, rax
mov edx, 0x24
mov qword [rsp + 0x20], rbx
call fcn.140003310
mov rdi, qword [rsp + 0xc0]
call fcn.140061058
cmp dword [rax], 0
je 0x14001c89f
call fcn.140061058
mov ebx, dword [rax]
jmp 0x14001c8a2
or ebx, 0xffffffff
call fcn.14000e6a0
mov rcx, r12
mov dword [rax], ebx
call fcn.1400688c8
test eax, eax
jne 0x14001c8bb
test sil, 6
je 0x14001c8c5
or rax, 0xffffffffffffffff
jmp 0x14001c8d1
test sil, 6
mov eax, 0
cmovne rbp, rax
mov rax, rbp
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400611e0
add rsp, 0xc8
pop r12
pop rsi
pop rbp
pop rbx
ret

Function at 0x140023750
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 fcn.140069f48
lea ecx, [rax - 0x41]
cmp cl, 0x19
ja 0x14002378f
movsx ecx, al
sub ecx, 0x41
movzx edx, cl
bt edi, edx
jae 0x14002378f
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140024810
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov rdi, rcx
mov esi, r8d
mov rbp, rdx
call fcn.1400247f0
mov r12d, reloc.WS2_32.dll_recv
mov rdx, rbp
cmp esi, 0x40
ja 0x14002484e
mov rcx, qword [rdi]
mov r8d, esi
call fcn.140061b50
jmp 0x140024878
mov rax, qword [rdi + 0x20]
lea rcx, [rdi + 0x20]
mov r8d, esi
mov qword [rsp + 0x30], rbx
call qword [rax + ioctlsocket]
mov r11, qword [rdi + 0x20]
mov rdx, qword [rdi]
lea rcx, [rdi + 0x20]
call qword [r11 + reloc.WS2_32.dll_recv]
mov rbx, qword [rsp + 0x30]
mov esi, r12d
mov r8d, 0x40
mov ecx, esi
xor edx, edx
add rcx, qword [rdi]
sub r8d, esi
call fcn.140062880
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov edx, 2
nop dword [rax]
mov rax, qword [rdi]
add rdx, 4
movzx ecx, byte [rdx + rax - 6]
mov rax, qword [rdi + 8]
xor cl, 0x5c
mov byte [rdx + rax - 6], cl
mov rax, qword [rdi]
xor byte [rdx + rax - 6], 0x36
mov rax, qword [rdi]
movzx ecx, byte [rdx + rax - 5]
mov rax, qword [rdi + 8]
xor cl, 0x5c
mov byte [rdx + rax - 5], cl
mov rax, qword [rdi]
xor byte [rdx + rax - 5], 0x36
mov rax, qword [rdi]
movzx ecx, byte [rdx + rax - 4]
mov rax, qword [rdi + 8]
xor cl, 0x5c
mov byte [rdx + rax - 4], cl
mov rax, qword [rdi]
xor byte [rdx + rax - 4], 0x36
mov rax, qword [rdi]
movzx ecx, byte [rdx + rax - 3]
mov rax, qword [rdi + 8]
xor cl, 0x5c
mov byte [rdx + rax - 3], cl
mov rax, qword [rdi]
xor byte [rdx + rax - 3], 0x36
dec r12
jne 0x1400248a0
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x140024950
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x20
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov rdi, rcx
mov esi, r8d
mov rbp, rdx
call fcn.140024930
mov rdx, rbp
cmp esi, 0x40
ja 0x140024983
mov rcx, qword [rdi]
mov r8d, esi
call fcn.140061b50
jmp 0x1400249af
mov rax, qword [rdi + 0x20]
lea rcx, [rdi + 0x20]
mov r8d, esi
mov qword [rsp + 0x30], rbx
call qword [rax + ioctlsocket]
mov r11, qword [rdi + 0x20]
mov rdx, qword [rdi]
lea rcx, [rdi + 0x20]
call qword [r11 + reloc.WS2_32.dll_recv]
mov rbx, qword [rsp + 0x30]
mov esi, shutdown
mov r8d, 0x40
mov ecx, esi
xor edx, edx
add rcx, qword [rdi]
sub r8d, esi
call fcn.140062880
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 0xe]
nop word [rax + rax]
mov rax, qword [rdi]
add rdx, 4
movzx ecx, byte [rdx + rax - 6]
mov rax, qword [rdi + 8]
xor cl, 0x5c
mov byte [rdx + rax - 6], cl
mov rax, qword [rdi]
xor byte [rdx + rax - 6], 0x36
mov rax, qword [rdi]
movzx ecx, byte [rdx + rax - 5]
mov rax, qword [rdi + 8]
xor cl, 0x5c
mov byte [rdx + rax - 5], cl
mov rax, qword [rdi]
xor byte [rdx + rax - 5], 0x36
mov rax, qword [rdi]
movzx ecx, byte [rdx + rax - 4]
mov rax, qword [rdi + 8]
xor cl, 0x5c
mov byte [rdx + rax - 4], cl
mov rax, qword [rdi]
xor byte [rdx + rax - 4], 0x36
mov rax, qword [rdi]
movzx ecx, byte [rdx + rax - 3]
mov rax, qword [rdi + 8]
xor cl, 0x5c
mov byte [rdx + rax - 3], cl
mov rax, qword [rdi]
xor byte [rdx + rax - 3], 0x36
dec r8
jne 0x1400249e0
add rsp, 0x20
pop rdi
ret