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

Disassembly:
push rbx
sub rsp, 0x1e0
mov rax, qword [0x1404e41f8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov al, byte [rcx]
mov rbx, rcx
mov dword [rsp + 0x20], delete[]
test al, al
je 0x1403a5b90
cmp al, 0x30
jne 0x1403a5ba3
lea rcx, [rsp + 0x140]
mov edx, 0x90
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, byte [rbx]
cmp al, 0x5c
jne 0x1403a5bb3
cmp byte [rbx + 1], al
jne 0x1403a5bb3
mov rcx, rbx
jmp 0x1403a5c24
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 0x1403a5bda
xor eax, eax
jmp 0x1403a5c29
lea rdx, str.WNetGetConnectionA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1403a5bfa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1403a5bd6
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x24]
call rax
test eax, eax
je 0x1403a5c16
cmp eax, 0x4b1
jne 0x1403a5bef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rsp + 0x30]
call fcn.1403a5acc
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1403addc0
add rsp, 0x1e0
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x1404e41f8]
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 0x1403a5c9c
cmp al, 0x30
je 0x1403a5c9c
cmp al, 1
je 0x1403a5c7d
cmp al, 0x31
jne 0x1403a5cb6
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 0x1403a5cb6
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 0x1403a5d12
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1403a5d16
mov ebx, dword [rsp + 0x40]
btr ebx, 0x1f
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1403addc0
add rsp, 0x290
pop rbx
ret
Function at 0x1403a6190
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 [0x1404e41f8]
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 0x1403a6214
test dil, 1
lea rdx, [rsp + 0x40]
je 0x1403a6200
mov r8, r13
mov rcx, rbp
call sub.MSVCR90.dll_strncpy
jmp 0x1403a620a
mov r8, rsi
mov ecx, edi
call fcn.1403a6158
mov eax, 1
jmp 0x1403a62aa
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 0x1403a6246
mov eax, 0x2a
jmp 0x1403a62aa
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 0x1403a629d
mov eax, 0x2b
jmp 0x1403a62aa
cmp byte [rsp + 0x40], 0
jne 0x1403a61e8
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1403addc0
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 0x1403a6370
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 [0x1404e41f8]
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 0x1403a63cb
xor eax, eax
jmp 0x1403a6529
xor r8d, r8d
lea r9, [rsp + 0x50]
mov edx, edi
lea ecx, [r8 + 1]
call fcn.1403a6190
cmp eax, 1
jne 0x1403a6529
xor eax, eax
or rdx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
mov rcx, rdx
repne scasb al, byte [rdi]
movzx eax, word [0x1404792e4]
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 0x1403a6430
lea r9, [rsp + 0x50]
lea rdx, str._s_s
lea rcx, [rsp + 0x60]
mov r8, rsi
call sub.MSVCR90.dll_sprintf
jmp 0x1403a6443
mov rcx, rbx
mov al, byte [rsp + rcx + 0x50]
add rcx, 1
cmp al, bl
mov byte [rsp + rcx + 0x5f], al
jne 0x1403a6433
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 0x1403a6483
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsp + 0x44]
call sub.MSVCR90.dll_malloc
cmp rax, rbx
mov rsi, rax
je 0x1403a63c4
mov ecx, dword [rsp + 0x40]
call sub.MSVCR90.dll_malloc
cmp rax, rbx
mov rbp, rax
jne 0x1403a64b6
mov rcx, rsi
call sub.MSVCR90.dll_free
jmp 0x1403a63c4
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 0x1403a64fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call sub.MSVCR90.dll_free
mov rcx, rbp
jmp 0x1403a64ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rsi
mov r8, r12
xor edx, edx
xor ecx, ecx
call fcn.1403a62cc
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.1403addc0
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 0x1403a7e2c
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 0x1403a7e61
shr r11, 0x14
mov eax, 1
mov word [rbx], r11w
jmp 0x1403a7e63
xor eax, eax
add rsp, 0x60
pop rbx
ret

Function at 0x1403a7e6c
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 [0x1404e41f8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
cmp edx, 0x1e
mov rbp, r8
mov dword [rsp + 0x20], reloc.mfc90u.dll_CGopherLocator::CGopherLocator
jge 0x1403a7eaf
mov eax, 0x50
jmp 0x1403a7f52
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
cmp rax, rbx
mov rsi, rax
jne 0x1403a7ece
lea eax, [rbx + 0x51]
jmp 0x1403a7f52
lea rdx, str.EnumDisplayDevicesA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
jne 0x1403a7eea
mov ebx, 0x52
jmp 0x1403a7efc
lea r8, [rsp + 0x20]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call rax
cmp eax, ebx
jne 0x1403a7f07
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1403a7f50
cmp byte [rsp + 0x44], bl
je 0x1403a7f40
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x44]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp ecx, ebx
jle 0x1403a7f40
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 0x1403a7f2c
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.1403addc0
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 0x1403a7f7c
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x850
mov rax, qword [0x1404e41f8]
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 0x1403a7fe0
mov eax, 0x2a
jmp 0x1403a8067
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 0x1403a8026
mov eax, 0x2b
jmp 0x1403a8067
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 0x1403a8062
lea rax, [rsp + 0x40]
cmp byte [rax], 0x5c
jne 0x1403a8051
add r8d, 1
add edx, 1
cmp r8d, 3
je 0x1403a8088
add rax, 1
cmp edx, ecx
jl 0x1403a8048
mov eax, 0x27
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1403addc0
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 0x1403a80b4
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 0x1403a80a1
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 0x1403a7fd6
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 0x1403a801f
cmp byte [rsp + 0x440], dil
je 0x1403a8171
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x440]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
test ecx, ecx
jle 0x1403a8171
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 0x1403a815e
mov eax, 1
jmp 0x1403a8067
Function at 0x1403a824c
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 [0x1404e41f8]
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 0x1403a82b0
lea eax, [rbx + 0x2a]
jmp 0x1403a833b
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 0x1403a82fc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x2b
jmp 0x1403a833b
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 0x1403a833b
movsxd rax, ecx
cmp rax, rbx
jle 0x1403a8336
movsx edx, byte [rsp + rbx + 0x40]
add rbx, 1
add word [rsi], dx
xor byte [rsi + 1], dl
cmp rbx, rax
jl 0x1403a8322
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1403addc0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1403a87f0
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 0x1403a8834
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 0x1403a8877
mov eax, 0x2a
jmp 0x1403a88d5
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 0x1403a88b9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x2b
jmp 0x1403a88d5
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 0x1403a89ec
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 [0x1404e41f8]
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 0x1403a8c73
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], CResetPropExchange::CResetPropExchange
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 0x1403a8c52
cmp byte [rsp + 0x4c2], 0
je 0x1403a8c52
xor ecx, ecx
movzx eax, word [rsp + rcx*2 + 0x48c]
add rcx, 1
cmp rcx, 0x100
mov dword [rsp + rcx*4 + 0x5c], eax
jl 0x1403a8b51
mov edx, 0xa
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 9]
call fcn.1403a8984
lea rdx, [rsp + 0x790]
mov cl, byte [rax]
add rax, 1
mov byte [rdx], cl
add rdx, 1
test cl, cl
jne 0x1403a8b85
mov edx, 0x1b
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 0x13]
call fcn.1403a8984
lea rdx, [rsp + 0x690]
mov cl, byte [rax]
add rax, 1
mov byte [rdx], cl
add rdx, 1
test cl, cl
jne 0x1403a8bb0
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 0x1403a8bfa
movsx ecx, byte [rsp + rdx + 0x690]
add rdx, 1
add word [rsi], cx
xor byte [rsi + 1], cl
cmp rdx, rdi
jl 0x1403a8be3
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 0x1403a8c3d
mov cl, byte [rsp + rax + 0x790]
test cl, cl
je 0x1403a8c34
cmp cl, 0x20
je 0x1403a8c34
mov byte [rdx + rbp], cl
add rdx, 1
cmp rdx, 0x14
jge 0x1403a8c3d
add rax, 1
cmp rax, rdi
jl 0x1403a8c17
cmp byte [rbp], 0
je 0x1403a8c52
add ebx, 1
add r12, 1
add rsi, 2
add rbp, 0x14
add r14d, 1
cmp r14d, 2
jl 0x1403a8a8d
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 0x1403a8a2d
neg ebx
sbb eax, eax
and eax, 0xffffffae
add eax, 0x53
mov rcx, qword [rsp + 0x990]
xor rcx, rsp
call fcn.1403addc0
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 0x1403a9124
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 0x1403a914d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [rbx + 0x12]
jmp 0x1403a91d0
cmp byte [rax + 0x508], 0
je 0x1403a91c2
mov ecx, dword [rax + 0x104]
mov byte [rax + 0x508], 0
cmp ecx, 1
je 0x1403a917b
mov eax, recv
add ecx, 0xfffffffd
lea edx, [rax + 0x19]
cmp ecx, 1
cmovbe eax, edx
jmp 0x1403a91d0
mov rcx, qword [rax + 0x509]
call fcn.1403a3378
test rax, rax
je 0x1403a9193
mov eax, 6
jmp 0x1403a91d0
mov edx, dword [rbx + 0x511]
mov rcx, rbx
call sub.KERNEL32.dll_SetFileAttributesA
test eax, eax
jne 0x1403a91ac
mov eax, 3
jmp 0x1403a91d0
lea r8, [rbx + reloc.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Append]
lea rdx, [rbx + 0x515]
mov rcx, rbx
call fcn.1403a3e88
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 0x1403a91dc
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 0x1403a91f7
mov eax, recv
jmp 0x1403a9209
mov rcx, rbx
call fcn.1403a38c4
neg eax
sbb eax, eax
and eax, 9
add eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x1403a9d48
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 0x1403a9d89
movsxd rdx, eax
sub ebx, eax
add rdi, rdx
test ebx, ebx
jg 0x1403a9d60
mov eax, 1
jmp 0x1403a9d8b
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1403a9d9c
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 0x1403a9dfe
add dword [rbx], eax
movsxd rcx, eax
sub edi, eax
add rsi, rcx
test eax, eax
jg 0x1403a9dc9
movsxd rcx, dword [rbx]
mov eax, 1
mov byte [rcx + rbp], 0
add dword [rbx], 1
jmp 0x1403a9e00
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 0x1403a9e1c
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 0x1403a9eec
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 [0x1404e41f8]
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.1403a9a88
cmp byte [rdi], bl
mov rbp, rax
je 0x1403a9f6a
lea rcx, [rsp + 0x1e0]
sub rcx, rdi
mov al, byte [rdi]
mov byte [rcx + rdi], al
add rdi, 1
cmp al, bl
jne 0x1403a9f43
lea rcx, [rsp + 0x1e0]
mov dx, 0x50
call fcn.1403a9e68
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 0x1403a9f75
lea rcx, [rsp + 0x2e0]
mov dx, 0x50
call fcn.1403a9e68
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 0x1403a9fbc
lea eax, [rbp - 1]
jmp 0x1403aa0f1
cmp esi, ebx
je 0x1403a9fd3
lea rcx, [rsp + 0x1e0]
call sub.WS2_32.dll_inet_addr
movzx ecx, r12w
jmp 0x1403a9fe3
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 0x1403aa03f
cmp esi, ebx
lea rcx, [rsp + 0x1e0]
jne 0x1403aa00c
lea rcx, [rsp + 0x2e0]
call sub.WS2_32.dll_gethostbyname
cmp rax, rbx
jne 0x1403aa029
call sub.WS2_32.dll_WSACleanup
neg esi
sbb eax, eax
and eax, 8
add eax, ebp
jmp 0x1403aa0f1
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 0x1403aa05e
lea ebx, [rax + 4]
jmp 0x1403aa0ea
lea rdx, [rsp + 0x28]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x1403aa085
mov rcx, rsi
call fcn.1403a9e1c
mov ebx, 4
jmp 0x1403aa0ea
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.1403a9d48
mov rcx, rsi
cmp eax, ebx
jne 0x1403aa0b5
call fcn.1403a9e1c
mov ebx, 5
jmp 0x1403aa0ea
lea r9, [rsp + 0x20]
mov r8d, 0x2000
mov rdx, r13
call fcn.1403a9d9c
mov rcx, rsi
cmp eax, ebx
jne 0x1403aa0db
call fcn.1403a9e1c
mov ebx, 6
jmp 0x1403aa0ea
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.1403addc0
mov rbx, qword [rsp + 0x428]
add rsp, 0x3f0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret