joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14032ecc0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x20]
call qword [0x1403f4428]
nop
mov edx, 0xa
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90u.dll_CStdioFile::Flush]
mov r9d, 0xa
mov r8, rax
mov edx, 0x1d
mov ecx, reloc.mfc90u.dll_CDHtmlControlSink::AddRef
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90u.dll_CDataPathProperty::Open]
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov eax, dword [rsp + 0x28]
or eax, 1
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret

Function at 0x140339190
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1404e41f8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0xa
mov r9d, 0xa
lea r8, [rsp + 0x30]
mov edx, 0x23
mov ecx, reloc.mfc90u.dll_CDHtmlControlSink::AddRef
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor r11d, r11d
mov word [rsp + 0x32], r11w
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR90.dll__wtoi]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1403addc0
add rsp, 0x58
ret
Function at 0x140341e00
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 0x140341e5f
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 0x14034205a
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 0x140341e83
xor eax, eax
jmp 0x14034205a
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x140]
call fcn.140340890
test eax, eax
jne 0x140341ea3
xor eax, eax
jmp 0x14034205a
mov dword [rsp + 0x20], 0
call fcn.140001240
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 0x140341ed5
xor eax, eax
jmp 0x14034205a
call fcn.140339dd0
movzx ecx, ax
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14034203b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14034203b
mov r8d, reloc.mfc90u.dll_CDaoTableDef::GetValidationRule
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.1403ad0e4
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.1401960e0
movzx eax, al
test eax, eax
je 0x140341ff1
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.140340f10
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [rsp + 0x20], 0
je 0x140342031
xor edx, edx
mov rcx, qword [rsp + 0x140]
call fcn.140344d20
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.140340890
mov eax, dword [rsp + 0x20]
add rsp, 0x128
pop rdi
pop rsi
ret
Function at 0x14035ffb0
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 0x140360050
cmp dword [rsp + 0x20], 0
jl 0x140360050
movzx eax, word [rsp + 0x24]
cmp eax, 0x20
je 0x14036001b
movzx eax, word [rsp + 0x48]
cmp eax, 0x71
jne 0x140360050
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 0x140360050
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 0x140368a10
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 0x140368b79
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x34], eax
mov ecx, setsockopt
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140368b79
cmp dword [rsp + 0x34], 0x43
je 0x140368a77
cmp dword [rsp + 0x34], 0x2d
jne 0x140368b79
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140368b79
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea rcx, [rsp + 0x48]
call qword [0x1403f4428]
nop
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xeb4]
shr eax, 0x10
mov eax, eax
and rax, 0xff
movzx ecx, al
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0xeb4]
sar eax, 8
cdqe
and rax, 0xff
movzx r9d, al
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xeb4]
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.1400fe160
add rsp, 0x68
ret
Function at 0x140390310
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.140337270
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 6
jne 0x1403904c9
mov rcx, qword [rsp + 0xe0]
call fcn.140229b30
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], 0
jmp 0x14039036d
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jge 0x1403904c9
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 0x1403903df
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0x98], rax
jge 0x1403903df
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 0x1403903e4
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 0x1403904c4
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov rax, qword [rsp + 0xe0]
cmp ecx, dword [rax + 0x18]
jge 0x140390473
mov ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x3c]
sub eax, ecx
mov dword [rsp + 0xb0], eax
jmp 0x140390485
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 0x1403904c2
mov dword [rsp + 0x20], 7
jmp 0x1403904c9
jmp 0x140390362
mov eax, dword [rsp + 0x20]
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x14039d200
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 + 0x230], 0
je 0x14039d3bd
mov rax, qword [rsp + 0x68]
cmp dword [rax + 8], 0x100
jne 0x14039d3bd
cmp dword [0x1404e0c08], 0
jne 0x14039d3bd
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 0x14039d304
cmp qword [rsp + 0x28], 0x1b
je 0x14039d29a
cmp qword [rsp + 0x28], 0x26
je 0x14039d35b
cmp qword [rsp + 0x28], 0x28
je 0x14039d35b
jmp 0x14039d3bd
cmp qword [0x1404e8078], 0
jne 0x14039d2b5
mov rcx, qword [rsp + 0x60]
call sub.mfc90u.dll_CDialog::GetThisClass
mov qword [rsp + 0x30], rax
jmp 0x14039d2c1
mov rax, qword [0x1404e8078]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14039d2fa
cmp qword [0x1404e8078], 0
jne 0x14039d2e4
mov rcx, qword [rsp + 0x60]
call sub.mfc90u.dll_CDialog::GetThisClass
mov qword [rsp + 0x38], rax
jmp 0x14039d2f0
mov rax, qword [0x1404e8078]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call sub.mfc90u.dll_CDHtmlDialog::ResizeBorder
mov eax, 1
jmp 0x14039d3cc
cmp qword [rsp + 0x20], 0
je 0x14039d354
cmp qword [rsp + 0x60], 0
jne 0x14039d31f
mov qword [rsp + 0x40], 0
jmp 0x14039d32d
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 0x14039d3cc
mov ecx, setsockopt
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x14039d3bd
mov ecx, setsockopt
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x14039d3bd
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 0x14039d3bd
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 0x14039d3cc
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call sub.mfc90u.dll_CDocObjectServerItem::OnShow
add rsp, 0x58
ret
Function at 0x1403a3328
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
jne 0x1403a3340
or eax, 0xffffffff
jmp 0x1403a3372
xor ecx, ecx
cmp ebx, ecx
jne 0x1403a3351
cmp eax, 0xffffffff
setne cl
sub ecx, 1
jmp 0x1403a3370
cmp ebx, 2
je 0x1403a3367
cmp ebx, 6
je 0x1403a3367
cmp ebx, 4
jne 0x1403a333b
sub eax, 0x120089
jmp 0x1403a336c
sub eax, 0x120116
neg eax
sbb ecx, ecx
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x1403a33f4
Capabilities:
Get disk size

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x1404e41f8]
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 0x1403a3432
cmp eax, 2
sete bl
add ebx, 1
test cl, 0x20
je 0x1403a34d5
mov al, byte [r8 + 1]
cmp al, 0x3a
jne 0x1403a345b
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 0x1403a349d
cmp byte [r8], 0x5c
jne 0x1403a3532
cmp al, 0x5c
jne 0x1403a3532
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 0x1403a348c
add edx, 1
cmp edx, 4
jge 0x1403a3495
add ecx, 1
add r8, 1
jmp 0x1403a3479
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 0x1403a3532
test edi, edi
je 0x1403a3511
mov eax, dword [rsp + 0x34]
xor edx, edx
div edi
test edx, edx
jne 0x1403a3532
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.1403addc0
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 0x1403a34f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
jmp 0x1403a34f6
Function at 0x1403a35a4
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 [0x1404e41f8]
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 0x1403a367c
mov al, byte [r8 + 1]
cmp al, 0x3a
jne 0x1403a35ff
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 0x1403a3641
cmp byte [r8], 0x5c
jne 0x1403a36ef
cmp al, 0x5c
jne 0x1403a36ef
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 0x1403a3630
add edx, 1
cmp edx, 4
jge 0x1403a3639
add ecx, 1
add r8, 1
jmp 0x1403a361d
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 0x1403a36ef
add edi, dword [rsp + 0x30]
cmp edi, dword [rsp + 0x1b0]
jbe 0x1403a366d
jmp 0x1403a3683
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 0x1403a36ef
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 0x1403a36e6
mov eax, dword [rsp + 0x34]
test eax, eax
jle 0x1403a36d7
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 0x1403a36c8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [rsp + 0x34]
jmp 0x1403a36f2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
or eax, 0xffffffff
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1403addc0
mov rbx, qword [rsp + 0x198]
add rsp, 0x170
pop rdi
pop rsi
pop rbp
ret
Function at 0x1403a3718
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 [0x1404e41f8]
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 0x1403a37f3
mov al, byte [r8 + 1]
cmp al, 0x3a
jne 0x1403a3774
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 0x1403a37b6
cmp byte [r8], 0x5c
jne 0x1403a3896
cmp al, 0x5c
jne 0x1403a3896
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 0x1403a37a5
add edx, 1
cmp edx, 4
jge 0x1403a37ae
add ecx, 1
add r8, 1
jmp 0x1403a3792
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 0x1403a3896
mov ebx, dword [rsp + 0x1b0]
add edi, dword [rsp + 0x30]
cmp edi, ebx
jbe 0x1403a37e9
jmp 0x1403a37fc
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 0x1403a3896
xor edx, edx
test ebx, ebx
jle 0x1403a3836
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 0x1403a3827
cmp edx, edi
movsxd rax, edx
jge 0x1403a384e
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 0x1403a3887
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 0x1403a3899
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.1403addc0
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 0x1403a38c4
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 0x1403a3e88
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.1403a32cc
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 0x1403a3f2a
xor eax, eax
jmp 0x1403a3f53
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 0x1403a4850
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 [0x1404e41f8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor edi, edi
mov rsi, r8
mov rbp, rdx
cmp r8, rdi
jne 0x1403a488d
xor eax, eax
jmp 0x1403a494e
cmp rdx, rdi
je 0x1403a4886
lea rcx, str.Ws2_32.dll
mov dword [r8], edi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp rax, rdi
mov r12, rax
je 0x1403a4886
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 0x1403a493f
call r14
cmp rax, rdi
je 0x1403a4949
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call r15
cmp rax, rdi
je 0x1403a4949
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.1403addc0
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 0x1403a4e7c
Capabilities:
Check os version

Disassembly:
test rcx, rcx
je 0x1403a4f44
push rbx
sub rsp, 0xd0
mov rax, qword [0x1404e41f8]
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 0x1403a4ec0
mov eax, 0x1e
jmp 0x1403a4f2a
cmp dword [rsp + 0x30], 1
mov ecx, dword [rsp + 0x24]
jne 0x1403a4ee2
cmp ecx, 4
jne 0x1403a4f1a
mov eax, dword [rsp + 0x28]
neg eax
sbb ecx, ecx
and ecx, 9
add ecx, 1
mov dword [rbx], ecx
jmp 0x1403a4f2c
cmp dword [rsp + 0x30], 2
jne 0x1403a4f1a
cmp ecx, 4
jne 0x1403a4ef6
mov dword [rbx], socket
jmp 0x1403a4f2c
cmp ecx, 5
jne 0x1403a4f1a
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x1403a4eb9
cmp ecx, 1
jne 0x1403a4f10
mov dword [rbx], gethostbyname
jmp 0x1403a4f2c
mov edx, 0x28
cmp ecx, 2
jmp 0x1403a4f22
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.1403addc0
add rsp, 0xd0
pop rbx
ret
Function at 0x1403a4e85
Capabilities:
Check os version

Disassembly:
test rcx, rcx
je 0x1403a4f44
push rbx
sub rsp, 0xd0
mov rax, qword [0x1404e41f8]
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 0x1403a4ec0
mov eax, 0x1e
jmp 0x1403a4f2a
cmp dword [rsp + 0x30], 1
mov ecx, dword [rsp + 0x24]
jne 0x1403a4ee2
cmp ecx, 4
jne 0x1403a4f1a
mov eax, dword [rsp + 0x28]
neg eax
sbb ecx, ecx
and ecx, 9
add ecx, 1
mov dword [rbx], ecx
jmp 0x1403a4f2c
cmp dword [rsp + 0x30], 2
jne 0x1403a4f1a
cmp ecx, 4
jne 0x1403a4ef6
mov dword [rbx], socket
jmp 0x1403a4f2c
cmp ecx, 5
jne 0x1403a4f1a
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x1403a4eb9
cmp ecx, 1
jne 0x1403a4f10
mov dword [rbx], gethostbyname
jmp 0x1403a4f2c
mov edx, 0x28
cmp ecx, 2
jmp 0x1403a4f22
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.1403addc0
add rsp, 0xd0
pop rbx
ret