joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403502e0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x128
mov qword [rsp + 0x118], 0xfffffffffffffffe
mov edx, 2
mov rcx, qword [rsp + 0x140]
call sub.mfc90u.dll_COleControlSite::XOleIPSite::GetCapture
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14035033f
xor r9d, r9d
xor r8d, r8d
mov edx, reloc.mfc90u.dll_CSharedFile::CSharedFile
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x14035053a
mov rax, qword [rsp + 0x140]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x140]
call qword [rax + reloc.mfc90u.dll_CInternetException::CInternetException]
test eax, eax
jne 0x140350363
xor eax, eax
jmp 0x14035053a
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x140]
call fcn.14034ed70
test eax, eax
jne 0x140350383
xor eax, eax
jmp 0x14035053a
mov dword [rsp + 0x20], 0
call fcn.140001294
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1403503b5
xor eax, eax
jmp 0x14035053a
call fcn.1403482a0
movzx ecx, ax
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14035051b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14035051b
mov r8d, reloc.mfc90u.dll_CDaoTableDef::GetValidationRule
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.1403c15d8
nop
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
call sub.mfc90u.dll_COleControl::AmbientShowHatching
lea rdi, [rsp + 0x108]
mov rsi, qword [rsp + 0x148]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0xb0]
lea rsi, [rsp + 0x108]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
xorpd xmm0, xmm0
movsd qword [rsp + 0xc0], xmm0
mov dword [rsp + 0xc8], 0
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xb0]
call fcn.140225860
movzx eax, al
test eax, eax
je 0x1403504d1
mov rax, qword [rsp + 0x140]
mov rax, qword [rax + reloc.mfc90u.dll_CDocObjectServerItem::CDocObjectServerItem]
mov qword [rsp + 0xf0], rax
lea rdi, [rsp + 0xf8]
mov rsi, qword [rsp + 0xf0]
add rsi, 0x58
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0xb0]
lea rsi, [rsp + 0xf8]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x140]
call fcn.14034f3f0
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [rsp + 0x20], 0
je 0x140350511
xor edx, edx
mov rcx, qword [rsp + 0x140]
call fcn.140353200
nop
lea rcx, [rsp + 0x40]
call sub.mfc90u.dll_CPrintInfo::CPrintInfo
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov rcx, qword [rsp + 0x140]
call fcn.14034ed70
mov eax, dword [rsp + 0x20]
add rsp, 0x128
pop rdi
pop rsi
ret
Function at 0x140373410
Capabilities:
Log keystrokes

Disassembly:
mov byte [rsp + 0x18], r8b
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
call qword [rax + reloc.mfc90u.dll_CInternetException::CInternetException]
mov dword [rsp + 0x20], eax
movzx ecx, word [rsp + 0x48]
mov edx, 2
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov eax, eax
and rax, 0xffff
mov word [rsp + 0x24], ax
movzx eax, byte [rsp + 0x50]
test eax, eax
jne 0x1403734b0
cmp dword [rsp + 0x20], 0
jl 0x1403734b0
movzx eax, word [rsp + 0x24]
cmp eax, 0x20
je 0x14037347b
movzx eax, word [rsp + 0x48]
cmp eax, 0x71
jne 0x1403734b0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
call qword [rax + reloc.mfc90u.dll_CInternetException::CInternetException]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jl 0x1403734b0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [rax + 0x2e0]
add rsp, 0x38
ret
Function at 0x14037bdf0
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [rsp + 0x78]
cmp dword [rax + 8], 0x100
jne 0x14037bf59
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x34], eax
mov ecx, send
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14037bf59
cmp dword [rsp + 0x34], 0x43
je 0x14037be57
cmp dword [rsp + 0x34], 0x2d
jne 0x14037bf59
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14037bf59
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea rcx, [rsp + 0x48]
call qword [0x140409500]
nop
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xf54]
shr eax, 0x10
mov eax, eax
and rax, 0xff
movzx ecx, al
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0xf54]
sar eax, 8
cdqe
and rax, 0xff
movzx r9d, al
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xf54]
and rax, 0xff
movzx r8d, al
mov dword [rsp + 0x20], ecx
lea rdx, str.RGB___d___d___d_
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc90u.dll_COleServerDoc::XOleObject::EnumAdvise]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc90u.dll_CDocObjectServer::XOleObject::GetExtent]
add eax, 1
movsxd rdx, eax
shl rdx, 1
mov ecx, 0x2000
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rsp + 0x40]
mov ecx, recv
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.1400eb2d0
add rsp, 0x68
ret
Function at 0x1403a4610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc8
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call fcn.140345720
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 6
jne 0x1403a47c9
mov rcx, qword [rsp + 0xe0]
call fcn.14021ed80
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], 0
jmp 0x1403a466d
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jge 0x1403a47c9
movsxd rax, dword [rsp + 0x28]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xe0]
add rax, 0x78
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x98], 0
jl 0x1403a46df
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0x98], rax
jge 0x1403a46df
mov rax, qword [rsp + 0x98]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x90]
add rax, qword [rcx + 8]
mov qword [rsp + 0x88], rax
jmp 0x1403a46e4
call sub.mfc90u.dll_AfxOleUnregisterServerClass
lea rdi, [rsp + 0xa0]
mov rsi, qword [rsp + 0x88]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x30]
lea rsi, [rsp + 0xa0]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x38]
add eax, 1
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x3c]
add eax, 1
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1403a47c4
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov rax, qword [rsp + 0xe0]
cmp ecx, dword [rax + 0x18]
jge 0x1403a4773
mov ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x3c]
sub eax, ecx
mov dword [rsp + 0xb0], eax
jmp 0x1403a4785
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0xb0], eax
mov ecx, dword [rsp + 0xb0]
mov eax, dword [rsp + 0x34]
add eax, ecx
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1403a47c2
mov dword [rsp + 0x20], 7
jmp 0x1403a47c9
jmp 0x1403a4662
mov eax, dword [rsp + 0x20]
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x1403b1680
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
cmp dword [rax + reloc.mfc90u.dll_CMapStringToOb::CreateObject], 0
je 0x1403b183d
mov rax, qword [rsp + 0x68]
cmp dword [rax + 8], 0x100
jne 0x1403b183d
cmp dword [0x1404f1a28], 0
jne 0x1403b183d
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call sub.mfc90u.dll_CDaoDatabase::Execute
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 9
je 0x1403b1784
cmp qword [rsp + 0x28], 0x1b
je 0x1403b171a
cmp qword [rsp + 0x28], 0x26
je 0x1403b17db
cmp qword [rsp + 0x28], 0x28
je 0x1403b17db
jmp 0x1403b183d
cmp qword [0x1404f9888], 0
jne 0x1403b1735
mov rcx, qword [rsp + 0x60]
call sub.mfc90u.dll_CDialog::GetThisClass
mov qword [rsp + 0x30], rax
jmp 0x1403b1741
mov rax, qword [0x1404f9888]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1403b177a
cmp qword [0x1404f9888], 0
jne 0x1403b1764
mov rcx, qword [rsp + 0x60]
call sub.mfc90u.dll_CDialog::GetThisClass
mov qword [rsp + 0x38], rax
jmp 0x1403b1770
mov rax, qword [0x1404f9888]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call sub.mfc90u.dll_CDHtmlDialog::ResizeBorder
mov eax, 1
jmp 0x1403b184c
cmp qword [rsp + 0x20], 0
je 0x1403b17d4
cmp qword [rsp + 0x60], 0
jne 0x1403b179f
mov qword [rsp + 0x40], 0
jmp 0x1403b17ad
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetNextDlgTabItem]
mov rcx, rax
call sub.mfc90u.dll_CDaoDatabase::Execute
mov rcx, rax
call sub.mfc90u.dll_CDHtmlDialog::ResizeBorder
mov eax, 1
jmp 0x1403b184c
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x1403b183d
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x1403b183d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x157
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x1403b183d
mov r8d, 1
xor r9d, r9d
mov edx, CCmdUI::CCmdUI
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
jmp 0x1403b184c
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call sub.mfc90u.dll_CDocObjectServerItem::OnShow
add rsp, 0x58
ret
Function at 0x1403b7798
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
jne 0x1403b77b0
or eax, 0xffffffff
jmp 0x1403b77e2
xor ecx, ecx
cmp ebx, ecx
jne 0x1403b77c1
cmp eax, 0xffffffff
setne cl
sub ecx, 1
jmp 0x1403b77e0
cmp ebx, 2
je 0x1403b77d7
cmp ebx, 6
je 0x1403b77d7
cmp ebx, 4
jne 0x1403b77ab
sub eax, 0x120089
jmp 0x1403b77dc
sub eax, 0x120116
neg eax
sbb ecx, ecx
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x1403b7864
Capabilities:
Get disk size

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov eax, dword [rsp + 0x1b0]
xor ebx, ebx
mov edi, r9d
test eax, eax
mov rsi, rdx
mov byte [rsp + 0x50], 0
je 0x1403b78a2
cmp eax, 2
sete bl
add ebx, 1
test cl, 0x20
je 0x1403b7945
mov al, byte [r8 + 1]
cmp al, 0x3a
jne 0x1403b78cb
mov al, byte [r8]
mov byte [rsp + 0x51], 0x3a
mov byte [rsp + 0x52], 0x5c
mov byte [rsp + 0x50], al
mov byte [rsp + 0x53], 0
jmp 0x1403b790d
cmp byte [r8], 0x5c
jne 0x1403b79a2
cmp al, 0x5c
jne 0x1403b79a2
lea r9, [rsp + 0x50]
xor edx, edx
xor ecx, ecx
sub r9, r8
mov al, byte [r8]
cmp al, 0x5c
mov byte [r9 + r8], al
jne 0x1403b78fc
add edx, 1
cmp edx, 4
jge 0x1403b7905
add ecx, 1
add r8, 1
jmp 0x1403b78e9
movsxd rax, ecx
mov byte [rsp + rax + 0x51], 0
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x1403b79a2
test edi, edi
je 0x1403b7981
mov eax, dword [rsp + 0x34]
xor edx, edx
div edi
test edx, edx
jne 0x1403b79a2
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, ebx
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmove eax, ecx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1403c2380
add rsp, 0x170
pop rdi
pop rsi
pop rbx
ret
and dword [rsp + 0x30], 0
mov r9d, ebx
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1403b7966
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
jmp 0x1403b7966
Function at 0x1403b7a14
Capabilities:
Get disk size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edi, edi
mov rsi, r9
mov rbp, rcx
and dword [rsp + 0x30], edi
test dl, 0x20
mov byte [rsp + 0x50], 0
je 0x1403b7aec
mov al, byte [r8 + 1]
cmp al, 0x3a
jne 0x1403b7a6f
mov al, byte [r8]
mov byte [rsp + 0x51], 0x3a
mov byte [rsp + 0x52], 0x5c
mov byte [rsp + 0x50], al
mov byte [rsp + 0x53], dil
jmp 0x1403b7ab1
cmp byte [r8], 0x5c
jne 0x1403b7b5f
cmp al, 0x5c
jne 0x1403b7b5f
lea r9, [rsp + 0x50]
xor edx, edx
xor ecx, ecx
sub r9, r8
mov al, byte [r8]
cmp al, 0x5c
mov byte [r9 + r8], al
jne 0x1403b7aa0
add edx, 1
cmp edx, 4
jge 0x1403b7aa9
add ecx, 1
add r8, 1
jmp 0x1403b7a8d
movsxd rax, ecx
mov byte [rsp + rax + 0x51], dil
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x1403b7b5f
add edi, dword [rsp + 0x30]
cmp edi, dword [rsp + 0x1b0]
jbe 0x1403b7add
jmp 0x1403b7af3
mov edi, dword [rsp + 0x1b0]
lea edx, [rdi + 1]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rbx, rax
je 0x1403b7b5f
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, edi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1403b7b56
mov eax, dword [rsp + 0x34]
test eax, eax
jle 0x1403b7b47
mov rcx, rbx
mov rdx, rax
sub rcx, rsi
mov al, byte [rcx + rsi]
mov byte [rsi], al
add rsi, 1
sub rdx, 1
jne 0x1403b7b38
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [rsp + 0x34]
jmp 0x1403b7b62
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
or eax, 0xffffffff
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1403c2380
mov rbx, qword [rsp + 0x198]
add rsp, 0x170
pop rdi
pop rsi
pop rbp
ret
Function at 0x1403b7b88
Capabilities:
Get disk size
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x170
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edi, edi
mov rbp, r9
mov r12, rcx
and dword [rsp + 0x30], edi
test dl, 0x20
je 0x1403b7c63
mov al, byte [r8 + 1]
cmp al, 0x3a
jne 0x1403b7be4
mov al, byte [r8]
mov byte [rsp + 0x51], 0x3a
mov byte [rsp + 0x52], 0x5c
mov byte [rsp + 0x50], al
mov byte [rsp + 0x53], dil
jmp 0x1403b7c26
cmp byte [r8], 0x5c
jne 0x1403b7d06
cmp al, 0x5c
jne 0x1403b7d06
lea r9, [rsp + 0x50]
xor edx, edx
xor ecx, ecx
sub r9, r8
mov al, byte [r8]
cmp al, 0x5c
mov byte [r9 + r8], al
jne 0x1403b7c15
add edx, 1
cmp edx, 4
jge 0x1403b7c1e
add ecx, 1
add r8, 1
jmp 0x1403b7c02
movsxd rax, ecx
mov byte [rsp + rax + 0x51], dil
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x1403b7d06
mov ebx, dword [rsp + 0x1b0]
add edi, dword [rsp + 0x30]
cmp edi, ebx
jbe 0x1403b7c59
jmp 0x1403b7c6c
mov ebx, dword [rsp + 0x1b0]
mov edi, ebx
lea edx, [rdi + 1]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rsi, rax
je 0x1403b7d06
xor edx, edx
test ebx, ebx
jle 0x1403b7ca6
mov rcx, rax
sub rbp, rax
mov edx, ebx
mov r8d, ebx
mov al, byte [rcx + rbp]
mov byte [rcx], al
add rcx, 1
sub r8, 1
jne 0x1403b7c97
cmp edx, edi
movsxd rax, edx
jge 0x1403b7cbe
mov r8d, edi
lea rcx, [rax + rsi]
sub r8d, edx
xor edx, edx
call sub.MSVCR90.dll_memset
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, edi
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1403b7cf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
or eax, 0xffffffff
cmp edi, dword [rsp + 0x34]
cmove eax, ebx
jmp 0x1403b7d09
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
or eax, 0xffffffff
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1403c2380
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x1403b7d34
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
sub eax, 1
add rsp, 0x28
ret
Function at 0x1403b82f8
Capabilities:
Timestomp file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, word [rdx]
mov rbx, rcx
mov word [rsp + 0x42], ax
movzx eax, word [rdx + 4]
mov word [rsp + 0x46], ax
movzx eax, word [rdx + 8]
mov word [rsp + 0x40], ax
movzx eax, word [r8]
mov word [rsp + 0x48], ax
movzx eax, word [r8 + 4]
mov word [rsp + 0x4a], ax
movzx eax, word [r8 + 8]
mov word [rsp + 0x4c], ax
call fcn.1403b773c
movzx ecx, word [rsp + 0x4e]
mov edx, 0x87
xor edi, edi
cmp eax, edi
cmovne cx, dx
lea rdx, [rsp + 0x68]
mov word [rsp + 0x4e], cx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x1403b839a
xor eax, eax
jmp 0x1403b83c3
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
setne dil
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1403b8cc0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1d0
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor edi, edi
mov rsi, r8
mov rbp, rdx
cmp r8, rdi
jne 0x1403b8cfd
xor eax, eax
jmp 0x1403b8dbe
cmp rdx, rdi
je 0x1403b8cf6
lea rcx, str.Ws2_32.dll
mov dword [r8], edi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp rax, rdi
mov r12, rax
je 0x1403b8cf6
lea rdx, str.WSAStartup
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.gethostbyname
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WSACleanup
mov rcx, r12
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.inet_ntoa
mov rcx, r12
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.inet_addr
mov rcx, r12
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x20]
mov ecx, SerializeElements<class ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > >
mov r12, rax
call rbx
mov rcx, rbp
call r12
mov rcx, rbp
cmp eax, 0xffffffff
jne 0x1403b8daf
call r14
cmp rax, rdi
je 0x1403b8db9
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call r15
cmp rax, rdi
je 0x1403b8db9
mov rcx, rax
call r12
mov edi, 1
mov dword [rsi], eax
call r13
mov eax, edi
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1403c2380
mov rbx, qword [rsp + 0x210]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1403b92ec
Capabilities:
Check os version

Disassembly:
test rcx, rcx
je 0x1403b93b4
push rbx
sub rsp, 0xd0
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1403b9330
mov eax, 0x1e
jmp 0x1403b939a
cmp dword [rsp + 0x30], 1
mov ecx, dword [rsp + 0x24]
jne 0x1403b9352
cmp ecx, 4
jne 0x1403b938a
mov eax, dword [rsp + 0x28]
neg eax
sbb ecx, ecx
and ecx, 9
add ecx, 1
mov dword [rbx], ecx
jmp 0x1403b939c
cmp dword [rsp + 0x30], 2
jne 0x1403b938a
cmp ecx, 4
jne 0x1403b9366
mov dword [rbx], shutdown
jmp 0x1403b939c
cmp ecx, 5
jne 0x1403b938a
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x1403b9329
cmp ecx, 1
jne 0x1403b9380
mov dword [rbx], gethostbyname
jmp 0x1403b939c
mov edx, 0x28
cmp ecx, 2
jmp 0x1403b9392
mov edx, 0x46
cmp ecx, 6
mov eax, 0x1e
cmove eax, edx
mov dword [rbx], eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1403c2380
add rsp, 0xd0
pop rbx
ret
Function at 0x1403b92f5
Capabilities:
Check os version

Disassembly:
test rcx, rcx
je 0x1403b93b4
push rbx
sub rsp, 0xd0
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1403b9330
mov eax, 0x1e
jmp 0x1403b939a
cmp dword [rsp + 0x30], 1
mov ecx, dword [rsp + 0x24]
jne 0x1403b9352
cmp ecx, 4
jne 0x1403b938a
mov eax, dword [rsp + 0x28]
neg eax
sbb ecx, ecx
and ecx, 9
add ecx, 1
mov dword [rbx], ecx
jmp 0x1403b939c
cmp dword [rsp + 0x30], 2
jne 0x1403b938a
cmp ecx, 4
jne 0x1403b9366
mov dword [rbx], shutdown
jmp 0x1403b939c
cmp ecx, 5
jne 0x1403b938a
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x1403b9329
cmp ecx, 1
jne 0x1403b9380
mov dword [rbx], gethostbyname
jmp 0x1403b939c
mov edx, 0x28
cmp ecx, 2
jmp 0x1403b9392
mov edx, 0x46
cmp ecx, 6
mov eax, 0x1e
cmove eax, edx
mov dword [rbx], eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1403c2380
add rsp, 0xd0
pop rbx
ret