joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140054570
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.WS2_32.dll_bind
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x1400545ae
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140054590
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140054795
mov ecx, 3
call fcn.140062d00
cmp eax, 1
je 0x14005474c
mov ecx, 3
call fcn.140062d00
test eax, eax
jne 0x1400545e5
cmp dword [reloc.WS2_32.dll_accept], 1
je 0x14005474c
cmp edi, 0xfc
je 0x140054795
mov qword [rsp + 0x50], rbp
lea rbp, [0x14023eb30]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1400433f0
test eax, eax
je 0x140054629
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140041a40
lea rdx, [0x14023eb49]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14023ec4d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140054679
lea r8, str._program_name_unknown_
lea rcx, [0x14023eb49]
mov edx, 0x2fb
call fcn.1400433f0
test eax, eax
je 0x140054679
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140041a40
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14023eb49]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x1400546c8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14023ee44]
lea r9d, [rax + 3]
lea r8, [0x140192774]
sub rdx, rcx
call fcn.140044c40
test eax, eax
je 0x1400546c8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140041a40
lea r8, [0x140192770]
mov edx, 0x314
mov rcx, rbp
call fcn.1400434a0
test eax, eax
je 0x1400546f4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140041a40
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1400434a0
test eax, eax
je 0x140054724
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140041a40
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140062aa0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140054795
cmp rax, 0xffffffffffffffff
je 0x140054795
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400547b0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140062d00
cmp eax, 1
je 0x1400547e2
mov ecx, 3
call fcn.140062d00
test eax, eax
jne 0x140054896
cmp dword [reloc.WS2_32.dll_accept], 1
jne 0x140054896
mov qword [rsp + 0x48], rbx
lea rbx, reloc.WS2_32.dll_bind
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14005480e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1400547f8
jmp 0x140054882
cmp edi, 0x17
jae 0x140054882
mov ecx, 3
call fcn.140062d00
cmp eax, 1
je 0x140054839
mov ecx, 3
call fcn.140062d00
test eax, eax
jne 0x140054882
cmp dword [reloc.WS2_32.dll_accept], 1
jne 0x140054882
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140054882
cmp rax, 0xffffffffffffffff
je 0x140054882
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.140054570
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x140054d40
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x14023ef58]
test eax, eax
jne 0x140054d93
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140054d73
mov dword [0x14023ef58], 1
jmp 0x140054dae
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140054d8d
mov dword [0x14023ef58], 2
jmp 0x140054e89
mov eax, dword [0x14023ef58]
cmp eax, 1
jne 0x140054e80
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140054ed3
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x140054dd5
add rbx, 2
cmp word [rbx], 0
jne 0x140054dc1
add rbx, 2
cmp word [rbx], 0
jne 0x140054dc1
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x140054e73
mov rcx, rbp
call fcn.14004c990
test rax, rax
mov rsi, rax
je 0x140054e73
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140054e4d
mov rcx, rsi
call fcn.140046f30
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x140054e59
cmp eax, 2
je 0x140054e89
test eax, eax
jne 0x140054ed3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x140054ed3
cmp byte [rax], 0
je 0x140054eb2
nop
add rax, 1
cmp byte [rax], 0
jne 0x140054ea0
add rax, 1
cmp byte [rax], 0
jne 0x140054ea0
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.14004c990
test rax, rax
mov rdi, rax
jne 0x140054ee5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140042d30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x140058d10
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov qword [r11 + 8], rbp
lea rdx, [rsp + 0x20]
xor ebx, ebx
mov ecx, 0x105
mov qword [r11 + 0x10], rsi
lea rdi, [rsp + 0x20]
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp eax, 0x104
mov esi, eax
jle 0x140058da8
mov qword [rsp + 0x160], r12
lea r12d, [rax + 1]
lea edx, [rbx + 1]
movsxd rcx, r12d
call fcn.14004ca00
test rax, rax
mov rdi, rax
jne 0x140058d89
call fcn.1400441f0
mov esi, ebx
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x140058da0
test esi, esi
mov ebp, 1
je 0x140058da0
mov rdx, rax
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov r12, qword [rsp + 0x160]
test esi, esi
mov rsi, qword [rsp + 0x158]
je 0x140058dc7
cmp byte [rdi + 1], 0x3a
jne 0x140058dd2
movzx ecx, byte [rdi]
call fcn.140046f10
lea ebx, [rax - 0x40]
jmp 0x140058dd2
call fcn.1400441f0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
test ebp, ebp
mov rbp, qword [rsp + 0x150]
je 0x140058de6
mov rcx, rdi
call fcn.140046f30
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140041910
mov rbx, qword [rsp + 0x168]
add rsp, 0x140
pop rdi
ret
Function at 0x14005dfb0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14005dff7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140041910
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140047e30
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140041910
add rsp, 0x38
ret

Function at 0x14005fb50
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0xb0
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov esi, ecx
mov r9d, 0x78
and ecx, 0x3ff
mov rbp, r8
mov ebx, edx
lea edx, [r9 - 0x77]
lea r8, [rsp + 0x20]
bts ecx, 0xa
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x14005fc39
movzx ecx, byte [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0xc8], rdi
test cl, cl
lea r8, [rsp + 0x20]
mov edi, edx
je 0x14005fbea
nop
lea eax, [rcx - 0x61]
add r8, 1
cmp al, 5
ja 0x14005fbd0
add cl, 0xd9
jmp 0x14005fbda
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x14005fbda
add cl, 0xf9
movsx eax, cl
mov cl, byte [r8]
add edi, edi
test cl, cl
lea edi, [rax + rdi*8 - 0x30]
jne 0x14005fbc0
cmp esi, edi
je 0x14005fc2c
test ebx, ebx
je 0x14005fc2c
mov rdi, qword [rbp]
movzx eax, byte [rdi]
lea rcx, [rdi + 1]
nop
cmp al, 0x41
jl 0x14005fc08
cmp al, 0x5a
jle 0x14005fc0e
sub al, 0x61
cmp al, 0x19
ja 0x14005fc19
mov al, byte [rcx]
add edx, 1
add rcx, 1
jmp 0x14005fc00
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp edx, ecx
je 0x14005fc31
mov eax, 1
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140041910
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x140062aa0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400501d0
xor ebx, ebx
cmp qword [0x14023f2a8], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x140062bcc
lea rcx, [0x140193e90]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x140062cdf
lea rdx, [0x140193e80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140062cdf
mov rcx, rax
call fcn.140050100
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14023f2a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140050100
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14023f2b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140050100
lea rcx, [rsp + 0x98]
mov qword [0x14023f2b8], rax
call fcn.140050f60
test eax, eax
je 0x140062b7f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140041a40
cmp dword [rsp + 0x98], 2
jne 0x140062bcc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140050100
test rax, rax
mov qword [0x14023f2c8], rax
je 0x140062bcc
lea rdx, [0x140193e20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140050100
mov qword [0x14023f2c0], rax
mov rcx, qword [0x14023f2c0]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140062c78
cmp qword [0x14023f2c8], rbp
je 0x140062c78
call fcn.1400502c0
mov rcx, qword [0x14023f2c8]
mov rsi, rax
call fcn.1400502c0
test rsi, rsi
mov r12, rax
je 0x140062c78
test rax, rax
je 0x140062c78
call rsi
test rax, rax
je 0x140062c43
lea rcx, [rsp + 0x34]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140062c43
test byte [rsp + 0x40], 1
jne 0x140062c78
lea rcx, [rsp + 0x30]
call fcn.140050fb0
test eax, eax
je 0x140062c65
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140041a40
cmp dword [rsp + 0x30], 4
jb 0x140062c72
bts edi, 0x15
jmp 0x140062cb6
bts edi, 0x12
jmp 0x140062cb6
mov rcx, qword [0x14023f2b0]
cmp rcx, rbp
je 0x140062cb6
call fcn.1400502c0
test rax, rax
je 0x140062cb6
call rax
test rax, rax
mov rbx, rax
je 0x140062cb6
mov rcx, qword [0x14023f2b8]
cmp rcx, rbp
je 0x140062cb6
call fcn.1400502c0
test rax, rax
je 0x140062cb6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14023f2a8]
call fcn.1400502c0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x140062cdf
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140062ce1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x140062d60
Capabilities:
Get geographical location

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x1401f3660]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x14023f2d0]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x140062de1
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140062dc4
mov dword [0x14023f2d0], 1
jmp 0x140062de6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140062ddb
mov dword [0x14023f2d0], 2
jmp 0x140062e0b
mov eax, dword [0x14023f2d0]
cmp eax, 1
jne 0x140062dfe
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x140062f12
cmp eax, 2
je 0x140062e0b
test eax, eax
jne 0x140062f10
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x140062e1a
mov rax, qword [rbx]
mov esi, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
movsxd r12, eax
je 0x140062f10
jle 0x140062f10
xor edx, edx
mov rax, 0xffffffffffffffe0
mov rcx, r12
div r12
cmp rax, 1
jb 0x140062f10
add rcx, 0x10
cmp rcx, 0x400
ja 0x140062e98
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x140062e76
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140189b00
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x140062f10
mov dword [rbx], 0xcccc
jmp 0x140062eab
call fcn.140048900
test rax, rax
mov rbx, rax
je 0x140062eaf
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x140062f10
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x140062efa
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
mov r8, rbx
test eax, eax
lea edx, [r9 + 2]
mov ecx, esi
jne 0x140062ee9
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x140062ef2
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp dword [rbx - 0x10], 0xdddd
lea rcx, [rbx - 0x10]
jne 0x140062f0c
call fcn.140046f30
mov eax, edi
jmp 0x140062f12
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.140041910
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140063070
Capabilities:
Get geographical location

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x1401f3660]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x14023f2d4]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x140063128
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400630d4
mov dword [0x14023f2d4], 1
jmp 0x140063136
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140063122
mov dword [0x14023f2d4], 2
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.140041910
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, dword [0x14023f2d4]
cmp eax, 2
je 0x1400630e9
test eax, eax
je 0x1400630e9
cmp eax, 1
jne 0x14006315e
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x140063145
mov rax, qword [rbx]
mov esi, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
movsxd r12, eax
jne 0x140063162
xor eax, eax
jmp 0x1400630fc
jle 0x14006315e
xor edx, edx
mov rax, 0xffffffffffffffe0
div r12
cmp rax, 2
jb 0x14006315e
lea rcx, [r12 + r12 + 0x10]
cmp rcx, 0x400
ja 0x1400631b5
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x140063197
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140189b00
sub rsp, rax
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x14006315e
mov dword [rbx], 0xcccc
jmp 0x1400631c8
call fcn.140048900
test rax, rax
mov rbx, rax
je 0x1400631cc
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x14006315e
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14006321f
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
xor edx, edx
test eax, eax
mov qword [rsp + 0x38], rdi
mov r8, rbx
mov ecx, esi
mov qword [rsp + 0x30], rdi
jne 0x14006320e
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x140063217
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
cmp dword [rbx - 0x10], 0xdddd
lea rcx, [rbx - 0x10]
jne 0x140063231
call fcn.140046f30
mov eax, edi
jmp 0x1400630fc
Function at 0x140064120
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
test ecx, ecx
mov ebp, r8d
mov rdi, rdx
mov ebx, ecx
je 0x14006419d
lea eax, [rcx + 0x40]
lea rcx, [rsp + 0x78]
mov byte [rsp + 0x79], Ordinal_60
mov byte [rsp + 0x7a], 0x5c
mov byte [rsp + 0x7b], 0
mov byte [rsp + 0x78], al
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x140064162
cmp eax, 1
jne 0x1400641a4
call fcn.140044220
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400441f0
xor esi, esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], reloc.WS2_32.dll_listen
mov qword [rsp + 0x20], rsi
call fcn.140041b20
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
call fcn.140058d10
mov ebx, eax
test rdi, rdi
je 0x1400641e4
test ebp, ebp
jg 0x1400641dd
call fcn.1400441f0
xor esi, esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], reloc.WS2_32.dll_shutdown
mov qword [rsp + 0x20], rsi
call fcn.140041b20
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov esi, ebp
mov byte [rdi], 0
jmp 0x1400641e6
xor esi, esi
test ebx, ebx
je 0x140064202
add bl, 0x40
mov byte [rsp + 0x61], Ordinal_60
mov byte [rsp + 0x62], reloc.WLDAP32.dll_Ordinal_46
mov byte [rsp + 0x60], bl
mov byte [rsp + 0x63], 0
jmp 0x14006420c
mov byte [rsp + 0x60], reloc.WLDAP32.dll_Ordinal_46
mov byte [rsp + 0x61], 0
lea r9, [rsp + 0x30]
lea rcx, [rsp + 0x60]
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x1400642cb
test rdi, rdi
je 0x14006425f
cmp eax, esi
jge 0x140064242
mov rax, rdi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
call fcn.1400441f0
mov dword [rax], Ordinal_35
mov byte [rdi], 0
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
cmp eax, ebp
mov edx, 1
cmovg ebp, eax
movsxd rcx, ebp
call fcn.14005e730
test rax, rax
mov rbx, rax
jne 0x14006429e
call fcn.1400441f0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
call fcn.140044220
mov dword [rax], 8
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
lea r9, [rsp + 0x30]
lea rcx, [rsp + 0x60]
mov r8, rax
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x1400642cb
cmp eax, ebp
jge 0x1400642cb
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140044250
mov rbx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140064920
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.140060d40
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x140064ac4
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.140060d40
cmp rax, 0xffffffffffffffff
je 0x140064ac4
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x140064a43
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x1400649c9
call fcn.1400441f0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
call fcn.1400441f0
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.140064ae0
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.14005a5a0
cmp eax, 0xffffffff
je 0x140064a05
cdqe
sub rbx, rax
test rbx, rbx
jg 0x1400649e0
jmp 0x140064a1e
call fcn.140044220
cmp dword [rax], 5
jne 0x140064a1a
call fcn.1400441f0
mov dword [rax], reloc.WS2_32.dll_listen
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.140064ae0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x140064a9c
test rbx, rbx
jns 0x140064aa6
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.140060d40
cmp rax, 0xffffffffffffffff
je 0x1400649aa
mov ecx, esi
call fcn.1400614b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x140064aa6
call fcn.1400441f0
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140044220
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x1400649aa
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.140060d40
cmp rax, 0xffffffffffffffff
je 0x1400649aa
xor eax, eax
jmp 0x1400649b1
call fcn.1400441f0
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret