joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005bdf0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1005be8d
cmp dword [esi + 0x170], 8
lea eax, [esi + 0x15c]
mov dword [eax + 0x10], 0
jb 0x1005be20
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1005be69
mov eax, dword [esi + 0x130]
test eax, eax
je 0x1005be4d
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [esi + 0x130], 0
push 0
push dword [esi + 4]
mov dword [0x10279098], 0
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
push dword [ebp - 4]
mov edx, dword [esi + 0x13c]
push ecx
mov ecx, dword [esi + 0x138]
call fcn.1005d950
mov eax, dword [esi + 0x138]
add esp, 8
mov dword [esi + 0x13c], eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1005df10
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e74a8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x102683e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi], 0
jne 0x1005df45
cmp dword [edi + 4], 0
je 0x1005df80
mov eax, dword [edi + 8]
test eax, eax
je 0x1005df5a
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1005df71
push eax
call esi
mov dword [edi + 4], 0
mov eax, dword [edi]
test eax, eax
je 0x1005df80
push eax
call esi
mov dword [edi], 0
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x1005dfb8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push dword [edi]
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push dword [edi + 0xc]
mov dword [edi + 4], eax
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [edi + 8], ebx
test ebx, ebx
je 0x1005dfa2
xorps xmm0, xmm0
mov dword [ebp - 0x20], vtable.minilib::CMemFile.0
movdqu xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 4], 0
mov esi, dword [edi + 0xc]
push 0
call fcn.101a7c14
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0
push eax
call fcn.1005dc40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1006e950
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1006ea9f
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x1006ea84
cmp esi, 0xffffffff
je 0x1006ea84
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x1006ea61
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], 0
test eax, eax
je 0x1006ea37
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006ea37
cmp dword [ebp - 0xc], esi
jne 0x1006ea37
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1006ea37
call fcn.10052490
mov ecx, dword [ebp - 8]
mov esi, eax
test ecx, ecx
je 0x1006ea39
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x10076380
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call fcn.100763f0
push 0
push 0
push esi
push 0x10075120
push 0
push 0
call fcn.101ac9ca
mov ecx, dword [esi + 0x54]
add esp, 0x18
mov edi, eax
test ecx, ecx
je 0x100763b0
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x54], edi
test edi, edi
jne 0x100763e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CHttpManager::Start_return_error:_u
push edi
push str.HttpManager.cpp
call fcn.10036550
add esp, 0x10
mov ecx, esi
call fcn.100763f0
mov eax, 0x80004005
pop edi
pop esi
pop ecx
ret
pop edi
xor eax, eax
pop esi
pop ecx
ret

Function at 0x10078370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100783fb
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x100783bd
cmp eax, 2
jne 0x100783d9
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x100783f5
test ecx, ecx
je 0x100783f0
test cl, 1
jne 0x100783d9
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x100783f5
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101a0193
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10078550
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10078565
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x10078570
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10078570
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1007b690
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e8538
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x83c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings
mov dword [ebp - 0x840], 0
push SysReAllocStringLen
mov dword [ebp - 0x848], edi
mov dword [ebp - 0x83c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1007b720
push 0
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push 0x1022a749
mov byte [edi], 0
call fcn.100037c0
jmp 0x1007b8d7
xorps xmm0, xmm0
sub esp, 0x18
movdqu xmmword [ebp - 0x838], xmm0
mov eax, esp
movdqu xmmword [ebp - 0x828], xmm0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x83c]
mov dword [eax], vtable.._AV___Func_impl_U___Callable_obj_V_lambda_96dfe1787354200c493a3f9af176861c____0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x838]
mov dword [eax + 0x10], eax
mov byte [ebp - 4], 0
call fcn.10078a50
lea eax, [ebp - 0x814]
mov dword [ebp - 4], 2
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x818], 0
push eax
lea eax, [ebp - 0x818]
mov dword [ebp - 0x814], 0x7fe
push eax
push 0
push str.ProxyEnable
push dword [ebp - 0x83c]
call esi
test eax, eax
jne 0x1007b89f
cmp dword [ebp - 0x814], 4
jne 0x1007b89f
cmp dword [ebp - 0x818], 4
jne 0x1007b89f
cmp dword [ebp - 0x810], eax
jne 0x1007b7e0
push 0x1022a749
mov ecx, edi
call fcn.10003120
jmp 0x1007b8be
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], 0x7fe
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x818]
push eax
push 0
push str.ProxyServer
push dword [ebp - 0x83c]
call esi
test eax, eax
jne 0x1007b7cf
mov eax, dword [ebp - 0x814]
cmp eax, 0x800
jae 0x1007b89a
cmp dword [ebp + 0xc], 0
mov byte [ebp + eax - 0x810], 0
lea eax, [ebp - 0x810]
je 0x1007b84a
push str.https
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov esi, eax
test esi, esi
je 0x1007b88a
add esi, 5
jmp 0x1007b85f
push str.http
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov esi, eax
test esi, esi
je 0x1007b88a
add esi, 4
test esi, esi
je 0x1007b88a
mov al, byte [esi]
cmp al, 0x20
je 0x1007b86d
cmp al, 0x3d
jne 0x1007b870
inc esi
jmp 0x1007b863
push 0x3b
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrA]
test eax, eax
je 0x1007b880
mov byte [eax], 0
push esi
mov ecx, edi
call fcn.10003120
jmp 0x1007b8be
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
call fcn.10003120
jmp 0x1007b8be
call fcn.101a8017
push 0
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push 0x1022a749
mov byte [edi], 0
call fcn.100037c0
lea ecx, [ebp - 0x838]
mov dword [ebp - 0x840], 1
mov byte [ebp - 4], 0
call fcn.100789b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret 8
Function at 0x1007fdd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e884f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x102683e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.CReport.0
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], 0
mov byte [esi + 0x1c], 0
mov dword [esi + 0x48], 0xf
mov dword [esi + 0x44], 0
mov byte [esi + 0x34], 0
xor eax, eax
mov dword [esi + 0x60], 7
mov dword [esi + 0x5c], 0
mov word [esi + 0x4c], ax
mov dword [esi + 0x78], 7
mov dword [esi + 0x74], eax
mov word [esi + 0x64], ax
mov byte [ebp - 4], 5
lea edi, [esi + 0x84]
push 8
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
call fcn.101a0294
add esp, 4
test eax, eax
jne 0x1007fe8a
call fcn.10187443
mov dword [edi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi]
mov dword [eax], edi
mov eax, esi
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0xb8], vtable.basic_net::CNetCallbackDispatch.0
mov dword [esi + 0xd0], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0xd8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10080460
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e8893
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x78], 8
lea esi, [ebx + 0x64]
jb 0x1008049a
mov eax, dword [esi]
jmp 0x1008049c
mov eax, esi
push eax
push str.ReadReportFile_report_file__s
push 0
push str.Report.cpp
call fcn.10036720
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x100804bb
mov eax, dword [esi]
jmp 0x100804bd
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100804e4
push str.ReadReportFile_report_file_not_exsted
push 0
push str.Report.cpp
call fcn.10036720
add esp, 0xc
xor eax, eax
jmp 0x10080643
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x44], 0
jb 0x100804f3
mov esi, dword [esi]
lea edx, [ebp - 0x44]
mov ecx, esi
call fcn.100838c0
mov ecx, dword [ebp - 0x44]
mov edx, eax
test ecx, ecx
je 0x1008063e
cmp byte [ecx], 0
je 0x1008063e
test edx, edx
jle 0x1008063e
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea eax, [ebx + 0x1c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x28]
push eax
push edx
push ecx
call fcn.10025d10
add esp, 0x14
test eax, eax
je 0x1008062d
push 0xfde9
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100244e0
add esp, 0xc
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
push str.ReadReportFile_report_file_strDataW:_s
push 0
push str.Report.cpp
call fcn.10036720
add esp, 0x10
lea ecx, [ebp - 0x50]
call fcn.1000a2d0
mov dword [ebp - 0x50], vtable.CReportData.0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.10023440
test al, al
je 0x10080600
lea ecx, [ebp - 0x50]
call fcn.1000cae0
mov edi, eax
xor esi, esi
test edi, edi
jle 0x10080614
mov edi, edi
push 0xc
call fcn.101a0294
add esp, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x100805e1
push esi
push eax
lea ecx, [ebp - 0x50]
call fcn.1000c970
jmp 0x100805e3
xor eax, eax
mov byte [ebp - 4], 2
lea ecx, [ebx + 0x84]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
call fcn.10034900
inc esi
cmp esi, edi
jl 0x100805c0
jmp 0x10080614
push str.ReadReportFile_parse_json_failed
push 0
push str.Report.cpp
call fcn.10036720
add esp, 0xc
lea ecx, [ebp - 0x50]
call fcn.1000a390
cmp dword [ebp - 0x2c], 8
jb 0x1008062d
push dword [ebp - 0x40]
call fcn.101a02f0
add esp, 4
cmp dword [ebp - 0x14], 0x10
jb 0x1008063e
push dword [ebp - 0x28]
call fcn.101a02f0
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x10082010
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e2c58
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, dword [ebp + 8]
push esi
test cl, cl
je 0x10082061
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x100820e9
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x100820e9
lea ecx, [ebp - 0x28]
call fcn.100031d0
mov dword [ebp - 4], 0
cmp word [edi], 0
jne 0x1008207a
xor ecx, ecx
jmp 0x1008208f
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10082080
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10003b30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100820d8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x14], 8
jb 0x100820e9
push dword [ebp - 0x28]
call fcn.101a02f0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x10082ec0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 4

Function at 0x10082ee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10082ef7
xor eax, eax
pop ebp
ret 4
movzx eax, al
shr eax, 4
and eax, 1
pop ebp
ret 4
Function at 0x100838c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0
mov dword [ebp - 8], edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100838fd
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x10083933
test esi, esi
je 0x10083933
push 0x10277e4a
push esi
mov dword [ebp - 4], 0
call fcn.101a88fa
mov edi, eax
add esp, 8
test edi, edi
jne 0x10083943
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push edi
call fcn.101a01b0
add esp, 0xc
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10083967
cmp dword [ebp - 4], esi
je 0x10083974
push edi
call fcn.101a1ad1
add esp, 4
xor edi, edi
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10083a60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10083a9d
test al, 0x10
je 0x10083a9d
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret 4
push esi
mov esi, edi
test edi, edi
jne 0x10083ab8
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret 4
push ebx
lea esp, [esp]
push 0x5c
push esi
call fcn.101a96b8
mov esi, eax
add esp, 8
test esi, esi
je 0x10083b59
cmp word [esi - 2], 0x3a
je 0x10083b4e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10083ae1
sub eax, edx
mov edx, esi
sar eax, 1
lea ebx, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10083af5
sub edx, ebx
sar edx, 1
sub eax, edx
cmp eax, 0x7ffffffe
jbe 0x10083b18
xor eax, eax
mov word [ebp - 0x20c], ax
jmp 0x10083b26
push eax
push edi
push ecx
lea ecx, [ebp - 0x20c]
call fcn.10063470
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10083b4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10083b71
add esi, 2
test esi, esi
jne 0x10083ac0
pop ebx
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop esi
xor ecx, ebp
pop edi
call fcn.101a0193
mov esp, ebp
pop ebp
ret 4
Function at 0x10083b90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 8], edx
test esi, esi
je 0x10083c39
cmp word [esi], 0
je 0x10083c39
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10083be4
pop edi
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 4
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10083c23
cmp dword [ebp - 4], esi
jne 0x10083c23
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
mov esi, 0x80004005
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, 0x80070057
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10085910
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
mov edx, ecx
lea ecx, [ebp - 0x1c]
call fcn.10085e50
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
add esp, 4
movq qword [ebp - 0x2c], xmm0
cmp dword [ebp - 8], 8
mov eax, 0x614
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
movdqu xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
mov word [ebp - 0x20], 0
mov dword [ebp - 0x38], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x1008597f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x10085981
mov bl, 1
cmp dword [ebp - 8], 8
jb 0x10085992
push dword [ebp - 0x1c]
call fcn.101a02f0
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.101a0193
mov esp, ebp
pop ebp
ret