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

Disassembly:
push rbx
sub rsp, 0x1e0
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov al, byte [rcx]
mov rbx, rcx
mov dword [rsp + 0x20], SerializeElements<class ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > >
test al, al
je 0x1403ba000
cmp al, 0x30
jne 0x1403ba013
lea rcx, [rsp + 0x140]
mov edx, 0x90
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, byte [rbx]
cmp al, 0x5c
jne 0x1403ba023
cmp byte [rbx + 1], al
jne 0x1403ba023
mov rcx, rbx
jmp 0x1403ba094
lea rcx, str.mpr.dll
mov byte [rsp + 0x24], al
mov byte [rsp + 0x25], 0x3a
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbx, rax
jne 0x1403ba04a
xor eax, eax
jmp 0x1403ba099
lea rdx, str.WNetGetConnectionA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1403ba06a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1403ba046
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x24]
call rax
test eax, eax
je 0x1403ba086
cmp eax, 0x4b1
jne 0x1403ba05f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rsp + 0x30]
call fcn.1403b9f3c
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1403c2380
add rsp, 0x1e0
pop rbx
ret

Function at 0x1403ba0b4
Capabilities:
Get common file path
Get disk information

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor eax, eax
xor ebx, ebx
mov dword [rsp + 0x4c], eax
mov byte [rsp + 0x50], al
mov al, byte [rcx]
cmp al, bl
je 0x1403ba10c
cmp al, 0x30
je 0x1403ba10c
cmp al, 1
je 0x1403ba0ed
cmp al, 0x31
jne 0x1403ba126
lea rdx, [rsp + 0x170]
mov r8d, SerializeElements<class ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > >
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov al, byte [rsp + 0x170]
jmp 0x1403ba126
lea rcx, [rsp + 0xe0]
mov edx, 0x90
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, byte [rsp + 0xe0]
mov byte [rsp + 0x4c], al
lea rax, [rsp + 0x60]
mov r8d, 0x80
mov dword [rsp + 0x38], r8d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x4c]
mov byte [rsp + 0x4d], 0x3a
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x4e], 0x5c
mov byte [rsp + 0x4f], bl
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp eax, ebx
jne 0x1403ba182
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1403ba186
mov ebx, dword [rsp + 0x40]
btr ebx, 0x1f
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1403c2380
add rsp, 0x290
pop rbx
ret
Function at 0x1403ba600
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r13
sub rsp, 0x60
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + 0x50], rax
and qword [r11 - 0x40], 0
and dword [rsp + 0x34], 0
xor eax, eax
lea r13d, [rax + 0xf]
mov edi, ecx
lea rdx, [r11 - 0x48]
lea rcx, [r11 - 0x38]
mov rbp, r9
mov rsi, r8
mov dword [r11 - 0x48], r13d
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x1403ba684
test dil, 1
lea rdx, [rsp + 0x40]
je 0x1403ba670
mov r8, r13
mov rcx, rbp
call sub.MSVCR90.dll_strncpy
jmp 0x1403ba67a
mov r8, rsi
mov ecx, edi
call fcn.1403ba5c8
mov eax, 1
jmp 0x1403ba71a
lea rax, [rsp + 0x38]
lea rdx, str.SYSTEMCurrentControlSetControlComputerNameComputerName
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 0x1403ba6b6
mov eax, 0x2a
jmp 0x1403ba71a
mov rcx, qword [rsp + 0x38]
xor eax, eax
lea r9, [rsp + 0x34]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.ComputerName
xor r8d, r8d
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1403ba70d
mov eax, 0x2b
jmp 0x1403ba71a
cmp byte [rsp + 0x40], 0
jne 0x1403ba658
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1403c2380
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r13
pop rdi
pop rsi
ret
Function at 0x1403ba7e0
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x170
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r12, r8
mov edi, edx
lea rcx, [rsp + 0x61]
xor ebx, ebx
xor edx, edx
mov r8d, HashKey<wchar_t const *>
mov rsi, r9
mov byte [rsp + 0x60], bl
call sub.MSVCR90.dll_memset
cmp edi, 0x14
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x40], ebx
jge 0x1403ba83b
xor eax, eax
jmp 0x1403ba999
xor r8d, r8d
lea r9, [rsp + 0x50]
mov edx, edi
lea ecx, [r8 + 1]
call fcn.1403ba600
cmp eax, 1
jne 0x1403ba999
xor eax, eax
or rdx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
mov rcx, rdx
repne scasb al, byte [rdi]
movzx eax, word [0x14048bb24]
mov rcx, rdx
mov word [rdi - 1], ax
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
je 0x1403ba8a0
lea r9, [rsp + 0x50]
lea rdx, str._s_s
lea rcx, [rsp + 0x60]
mov r8, rsi
call sub.MSVCR90.dll_sprintf
jmp 0x1403ba8b3
mov rcx, rbx
mov al, byte [rsp + rcx + 0x50]
add rcx, 1
cmp al, bl
mov byte [rsp + rcx + 0x5f], al
jne 0x1403ba8a3
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
cmp eax, ebx
jne 0x1403ba8f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsp + 0x44]
call sub.MSVCR90.dll_malloc
cmp rax, rbx
mov rsi, rax
je 0x1403ba834
mov ecx, dword [rsp + 0x40]
call sub.MSVCR90.dll_malloc
cmp rax, rbx
mov rbp, rax
jne 0x1403ba926
mov rcx, rsi
call sub.MSVCR90.dll_free
jmp 0x1403ba834
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov r8, rsi
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
cmp eax, ebx
jne 0x1403ba96b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call sub.MSVCR90.dll_free
mov rcx, rbp
jmp 0x1403ba91c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rsi
mov r8, r12
xor edx, edx
xor ecx, ecx
call fcn.1403ba73c
mov rcx, rsi
mov edi, eax
call sub.MSVCR90.dll_free
mov rcx, rbp
call sub.MSVCR90.dll_free
cmp edi, ebx
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1403c2380
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1403bc29c
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x60
lea rcx, [rsp + 0x20]
mov rbx, r8
mov dword [rsp + 0x20], 0x38
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov r11, qword [rsp + 0x28]
test r11, r11
je 0x1403bc2d1
shr r11, 0x14
mov eax, 1
mov word [rbx], r11w
jmp 0x1403bc2d3
xor eax, eax
add rsp, 0x60
pop rbx
ret

Function at 0x1403bc2dc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
cmp edx, 0x1e
mov rbp, r8
mov dword [rsp + 0x20], reloc.mfc90u.dll_CGopherLocator::CGopherLocator
jge 0x1403bc31f
mov eax, 0x50
jmp 0x1403bc3c2
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
cmp rax, rbx
mov rsi, rax
jne 0x1403bc33e
lea eax, [rbx + 0x51]
jmp 0x1403bc3c2
lea rdx, str.EnumDisplayDevicesA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
jne 0x1403bc35a
mov ebx, 0x52
jmp 0x1403bc36c
lea r8, [rsp + 0x20]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call rax
cmp eax, ebx
jne 0x1403bc377
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1403bc3c0
cmp byte [rsp + 0x44], bl
je 0x1403bc3b0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x44]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp ecx, ebx
jle 0x1403bc3b0
lea rdx, [rsp + 0x44]
mov edi, ecx
movsx ecx, byte [rdx]
add rdx, 1
add word [rbp], cx
xor byte [rbp + 1], cl
sub rdi, 1
jne 0x1403bc39c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp word [rbp], bx
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1403c2380
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1403bc3ec
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x850
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + 0x840], rax
and dword [rsp + 0x3c], 0
lea rax, [rsp + 0x30]
mov rbx, r8
lea rdx, str.HARDWAREDEVICEMAPVIDEO
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], reloc.mfc90u.dll_CDHtmlControlSink::AddRef
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1403bc450
mov eax, 0x2a
jmp 0x1403bc4d7
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.DeviceVideo0
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1403bc496
mov eax, 0x2b
jmp 0x1403bc4d7
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
xor r8d, r8d
xor edx, edx
not rcx
sub rcx, 1
test ecx, ecx
jle 0x1403bc4d2
lea rax, [rsp + 0x40]
cmp byte [rax], 0x5c
jne 0x1403bc4c1
add r8d, 1
add edx, 1
cmp r8d, 3
je 0x1403bc4f8
add rax, 1
cmp edx, ecx
jl 0x1403bc4b8
mov eax, 0x27
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1403c2380
mov rbx, qword [rsp + 0x860]
add rsp, 0x850
pop rdi
ret
sub ecx, edx
movsxd rax, edx
xor r8d, r8d
xor edx, edx
test ecx, ecx
movsxd rdi, ecx
jle 0x1403bc524
lea rcx, [rsp + rax + 0x40]
mov r8d, edi
mov al, byte [rcx]
add rdx, 1
add rcx, 1
cmp rdx, rdi
mov byte [rsp + rdx + 0x3f], al
jl 0x1403bc511
movsxd rax, r8d
lea rdx, [rsp + 0x40]
mov r9d, 0x20019
mov byte [rsp + rax + 0x40], 0
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1403bc446
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x440]
lea rdx, str.Device_Description
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1403bc48f
cmp byte [rsp + 0x440], dil
je 0x1403bc5e1
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x440]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
test ecx, ecx
jle 0x1403bc5e1
lea rax, [rsp + 0x440]
mov edi, ecx
movsx edx, byte [rax]
add rax, 1
add word [rbx], dx
xor byte [rbx + 1], dl
sub rdi, 1
jne 0x1403bc5ce
mov eax, 1
jmp 0x1403bc4d7
Function at 0x1403bc6bc
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rax, [rsp + 0x38]
mov rsi, r8
xor ebx, ebx
lea rdx, str.HARDWAREDESCRIPTIONSystem
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x1403bc720
lea eax, [rbx + 0x2a]
jmp 0x1403bc7ab
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.SystemBiosDate
xor r8d, r8d
mov dword [rsp + 0x30], reloc.mfc90u.dll_COleStreamFile::COleStreamFile
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
cmp eax, ebx
je 0x1403bc76c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x2b
jmp 0x1403bc7ab
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp ecx, ebx
je 0x1403bc7ab
movsxd rax, ecx
cmp rax, rbx
jle 0x1403bc7a6
movsx edx, byte [rsp + rbx + 0x40]
add rbx, 1
add word [rsi], dx
xor byte [rsi + 1], dl
cmp rbx, rax
jl 0x1403bc792
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1403c2380
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1403bcc60
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
xor edx, edx
mov rbx, r8
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x30]
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx r11d, word [rsp + 0x4e]
movzx eax, r11w
mov byte [rbx + 1], r11b
shr ax, 8
mov byte [rbx], al
mov eax, 1
add rsp, 0x50
pop rbx
ret

Function at 0x1403bcca4
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
lea rax, [rsp + 0x38]
mov rbx, r8
lea rdx, str.HardwareDescriptionSystemCentralProcessor0
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x68], reloc.mfc90u.dll_COleStreamFile::COleStreamFile
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1403bcce7
mov eax, 0x2a
jmp 0x1403bcd45
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea rdx, str.MHz
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x1403bcd29
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x2b
jmp 0x1403bcd45
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11d, dword [rsp + 0x30]
mov eax, r11d
mov byte [rbx + 1], r11b
shr eax, 8
mov byte [rbx], al
mov eax, 1
add rsp, 0x40
pop rbx
ret
Function at 0x1403bce5c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x9a0
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + CDataExchange::Fail], rax
xor ebx, ebx
xor r13d, r13d
mov rsi, r9
xor r12d, r12d
mov qword [rsp + 0x40], r9
mov rdi, r8
mov qword [rsp + 0x50], r8
lea rdx, str..Scsi_d:
lea rcx, [rsp + 0x890]
mov r8d, r13d
call sub.MSVCR90.dll_sprintf
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r9d, r9d
lea rcx, [rsp + 0x890]
mov edx, 0xc0000000
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov r15, rax
je 0x1403bd0e3
lea rcx, [r12 + r12*4]
xor r14d, r14d
lea rsi, [rsi + r12*2]
lea rbp, [rdi + rcx*4]
lea rcx, [rsp + 0x460]
xor edx, edx
mov r8d, CRecordset::CRecordset
call sub.MSVCR90.dll_memset
lea rdx, str.SCSIDISK
lea rcx, [rsp + 0x464]
mov r8d, 8
mov dword [rsp + 0x460], 0x1c
mov dword [rsp + AfxGetRoot], 0x2710
mov dword [rsp + AfxHookWindowCreate], 0x211
mov dword [rsp + AfxGetRoot], 0x1b0501
call sub.MSVCR90.dll_strncpy
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
lea r8, [rsp + 0x460]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x460]
mov r9d, 0x3c
mov edx, 0x4d008
mov rcx, r15
mov dword [rsp + 0x28], CRecordset::CRecordset
mov byte [rsp + 0x486], 0xec
mov byte [rsp + 0x488], r14b
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1403bd0c2
cmp byte [rsp + 0x4c2], 0
je 0x1403bd0c2
xor ecx, ecx
movzx eax, word [rsp + rcx*2 + 0x48c]
add rcx, 1
cmp rcx, 0x100
mov dword [rsp + rcx*4 + 0x5c], eax
jl 0x1403bcfc1
mov edx, 0xa
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 9]
call fcn.1403bcdf4
lea rdx, [rsp + 0x790]
mov cl, byte [rax]
add rax, 1
mov byte [rdx], cl
add rdx, 1
test cl, cl
jne 0x1403bcff5
mov edx, 0x1b
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 0x13]
call fcn.1403bcdf4
lea rdx, [rsp + 0x690]
mov cl, byte [rax]
add rax, 1
mov byte [rdx], cl
add rdx, 1
test cl, cl
jne 0x1403bd020
or r8, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x690]
mov rcx, r8
xor edx, edx
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
test ecx, ecx
movsxd rdi, ecx
jle 0x1403bd06a
movsx ecx, byte [rsp + rdx + 0x690]
add rdx, 1
add word [rsi], cx
xor byte [rsi + 1], cl
cmp rdx, rdi
jl 0x1403bd053
lea rdi, [rsp + 0x790]
mov rcx, r8
xor edx, edx
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
test ecx, ecx
movsxd rdi, ecx
jle 0x1403bd0ad
mov cl, byte [rsp + rax + 0x790]
test cl, cl
je 0x1403bd0a4
cmp cl, 0x20
je 0x1403bd0a4
mov byte [rdx + rbp], cl
add rdx, 1
cmp rdx, 0x14
jge 0x1403bd0ad
add rax, 1
cmp rax, rdi
jl 0x1403bd087
cmp byte [rbp], 0
je 0x1403bd0c2
add ebx, 1
add r12, 1
add rsi, 2
add rbp, 0x14
add r14d, 1
cmp r14d, 2
jl 0x1403bcefd
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
add r13d, 1
cmp r13d, 4
jl 0x1403bce9d
neg ebx
sbb eax, eax
and eax, 0xffffffae
add eax, 0x53
mov rcx, qword [rsp + 0x990]
xor rcx, rsp
call fcn.1403c2380
mov rbx, qword [rsp + 0x9e0]
add rsp, 0x9a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1403bd594
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
mov rbx, rax
jne 0x1403bd5bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [rbx + 0x12]
jmp 0x1403bd640
cmp byte [rax + 0x508], 0
je 0x1403bd632
mov ecx, dword [rax + 0x104]
mov byte [rax + 0x508], 0
cmp ecx, 1
je 0x1403bd5eb
mov eax, recv
add ecx, 0xfffffffd
lea edx, [rax + 0x19]
cmp ecx, 1
cmovbe eax, edx
jmp 0x1403bd640
mov rcx, qword [rax + 0x509]
call fcn.1403b77e8
test rax, rax
je 0x1403bd603
mov eax, 6
jmp 0x1403bd640
mov edx, dword [rbx + 0x511]
mov rcx, rbx
call sub.KERNEL32.dll_SetFileAttributesA
test eax, eax
jne 0x1403bd61c
mov eax, 3
jmp 0x1403bd640
lea r8, [rbx + reloc.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Append]
lea rdx, [rbx + 0x515]
mov rcx, rbx
call fcn.1403b82f8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1403bd64c
Capabilities:
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
call sub.KERNEL32.dll_SetFileAttributesA
test eax, eax
jne 0x1403bd667
mov eax, send
jmp 0x1403bd679
mov rcx, rbx
call fcn.1403b7d34
neg eax
sbb eax, eax
and eax, 9
add eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x1403be1b8
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x1403be1f9
movsxd rdx, eax
sub ebx, eax
add rdi, rdx
test ebx, ebx
jg 0x1403be1d0
mov eax, 1
jmp 0x1403be1fb
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1403be20c
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
and dword [r9], 0
mov rbx, r9
mov rsi, rdx
mov r12, rcx
mov rbp, rdx
lea edi, [r8 - 1]
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, r12
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x1403be26e
add dword [rbx], eax
movsxd rcx, eax
sub edi, eax
add rsi, rcx
test eax, eax
jg 0x1403be239
movsxd rcx, dword [rbx]
mov eax, 1
mov byte [rcx + rbp], 0
add dword [rbx], 1
jmp 0x1403be270
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x1403be28c
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x30
and word [rax + 0x12], 0
lea r9, [rax + 0x10]
mov edx, 0xffff
mov r8d, 0x80
mov rbx, rcx
mov word [rax + 0x10], 1
mov dword [rax - 0x18], 4
call sub.WS2_32.dll_setsockopt
mov edx, 2
mov rcx, rbx
call sub.WS2_32.dll_shutdown
mov rcx, rbx
call sub.WS2_32.dll_closesocket
add rsp, 0x30
pop rbx
ret
Function at 0x1403be35c
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x3f0
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
xor eax, eax
xor ebx, ebx
mov r13, r8
mov rdi, rdx
mov r12w, 0x50
mov esi, ebx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
call fcn.1403bdef8
cmp byte [rdi], bl
mov rbp, rax
je 0x1403be3da
lea rcx, [rsp + 0x1e0]
sub rcx, rdi
mov al, byte [rdi]
mov byte [rcx + rdi], al
add rdi, 1
cmp al, bl
jne 0x1403be3b3
lea rcx, [rsp + 0x1e0]
mov dx, 0x50
call fcn.1403be2d8
mov esi, 1
movzx r12d, ax
lea rcx, [rsp + 0x2e0]
sub rcx, rbp
mov al, byte [rbp]
mov byte [rcx + rbp], al
add rbp, 1
cmp al, bl
jne 0x1403be3e5
lea rcx, [rsp + 0x2e0]
mov dx, 0x50
call fcn.1403be2d8
lea rdx, [rsp + 0x40]
mov ebp, 2
mov cx, HashKey<wchar_t const *>
mov word [rsp + 0x28], bp
movzx edi, ax
call sub.WS2_32.dll_WSAStartup
cmp eax, 0xffffffff
jne 0x1403be42c
lea eax, [rbp - 1]
jmp 0x1403be561
cmp esi, ebx
je 0x1403be443
lea rcx, [rsp + 0x1e0]
call sub.WS2_32.dll_inet_addr
movzx ecx, r12w
jmp 0x1403be453
lea rcx, [rsp + 0x2e0]
call sub.WS2_32.dll_inet_addr
movzx ecx, di
mov dword [rsp + 0x2c], eax
call sub.WS2_32.dll_htons
cmp dword [rsp + 0x2c], 0xffffffff
mov word [rsp + 0x2a], ax
jne 0x1403be4af
cmp esi, ebx
lea rcx, [rsp + 0x1e0]
jne 0x1403be47c
lea rcx, [rsp + 0x2e0]
call sub.WS2_32.dll_gethostbyname
cmp rax, rbx
jne 0x1403be499
call sub.WS2_32.dll_WSACleanup
neg esi
sbb eax, eax
and eax, 8
add eax, ebp
jmp 0x1403be561
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x2c]
mov rdx, qword [rdx]
call sub.MSVCR90.dll_memcpy
xor r8d, r8d
mov ecx, ebp
lea edx, [r8 + 1]
call sub.WS2_32.dll_socket
cmp rax, 0xffffffffffffffff
mov rsi, rax
jne 0x1403be4ce
lea ebx, [rax + 4]
jmp 0x1403be55a
lea rdx, [rsp + 0x28]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x1403be4f5
mov rcx, rsi
call fcn.1403be28c
mov ebx, 4
jmp 0x1403be55a
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdx, r13
not rcx
lea r8, [rcx - 1]
mov rcx, rsi
call fcn.1403be1b8
mov rcx, rsi
cmp eax, ebx
jne 0x1403be525
call fcn.1403be28c
mov ebx, 5
jmp 0x1403be55a
lea r9, [rsp + 0x20]
mov r8d, 0x2000
mov rdx, r13
call fcn.1403be20c
mov rcx, rsi
cmp eax, ebx
jne 0x1403be54b
call fcn.1403be28c
mov ebx, 6
jmp 0x1403be55a
mov edx, ebp
call sub.WS2_32.dll_shutdown
mov rcx, rsi
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
mov eax, ebx
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.1403c2380
mov rbx, qword [rsp + 0x428]
add rsp, 0x3f0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret