joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10078555
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + ecx]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x10078561
pop esi
mov eax, edx
pop ebp
ret

Function at 0x1007976a
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0x35], 0
je 0x1007977c
xor eax, eax
xor byte [ecx + eax], 0x3d
inc eax
cmp eax, 0x36
jb 0x10079772
mov eax, ecx
ret

Function at 0x1007a241
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
sub eax, ecx
je 0x1007a27a
sub eax, 1
jne 0x1007a27f
push ecx
push ecx
push dword [ebp + 8]
push 0x1007a139
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1007a27f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1007a27f
call fcn.1007a22e
xor eax, eax
inc eax
pop ebp
ret 0xc

Function at 0x1007a683
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1007a6aa
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1007a6ad
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1007a65f
pop esi
leave
ret 8
Function at 0x40117b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 8], ebx
je 0x401217
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ebx
push ebx
call esi
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40119f
sub eax, ecx
sar eax, 1
add eax, edi
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x401219
push edi
push ebx
call esi
cmp word [ebx + eax*2 - 2], 0x5c
je 0x4011d7
push 0x5c
pop ecx
mov word [ebx + eax*2], cx
inc eax
mov ecx, dword [ebp + 8]
xor edx, edx
lea edi, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x4011df
sub ecx, edi
sar ecx, 1
je 0x401217
lea ecx, [ebx + eax*2]
mov eax, dword [ebp + 8]
mov si, word [eax + edx*2]
mov word [ecx], si
inc edx
add ecx, 2
lea esi, [eax + 2]
mov di, word [eax]
add eax, 2
test di, di
jne 0x401204
sub eax, esi
sar eax, 1
cmp edx, eax
jb 0x4011f3
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013f9
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6274d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ecx, ecx
xor esi, esi
xor ebx, ebx
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0x24
mov dword [ebp - 0xc], 0x26
mov dword [ebp - 8], 0x2a
cmp dword [0x62fde0], ecx
jne 0x40149a
mov edi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 0x20
push 3
push 1
push 3
push 2
push ecx
push ecx
call edi
push edx
push eax
call edi
push edx
push eax
call edi
push edx
push eax
push 0x23
xor ecx, ecx
push 0x62fde0
mov dword [0x62fde0], 0x11c
mov dword [0x62fde4], 6
mov dword [0x62fde8], 1
mov word [0x62fef4], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
inc eax
mov dword [0x6289a0], eax
xor ecx, ecx
jmp 0x40149f
mov eax, dword [0x6289a0]
cmp eax, ecx
je 0x4014ab
xor eax, eax
inc eax
jmp 0x4015d5
cmp dword [ebp - 0x14], ecx
je 0x4015c5
push ecx
push ecx
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test edi, edi
je 0x4015c5
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4015c5
push 0
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp edi, eax
jbe 0x4015c5
and dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp + eax*4 - 0x10]
cmp eax, 0x26
jne 0x401578
push 0
push 0
push 0x5c2728
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x4015c5
lea eax, [edi + edi + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4015c5
push edi
push esi
push 0x5c2728
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp edi, eax
jne 0x4015c5
push esi
push 0x5c2728
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401561
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x26
jmp 0x401579
cmp word [esi + edi*2 - 4], 0x5c
je 0x401585
push 0x5c2724
inc edi
mov ebx, esi
call section..text
jmp 0x401585
push eax
call fcn.0040121e
mov esi, eax
pop ecx
test esi, esi
je 0x4015c5
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40158a
sub eax, edx
sar eax, 1
push eax
push esi
push dword [ebp - 0x18]
call fcn.0055dab9
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
jne 0x4015c5
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x4014f9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0x18]
call esi
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055d7fe
leave
ret
Function at 0x403c37
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x354
mov eax, 0x5a45fd
call fcn.0056ce95
mov ebx, ecx
cmp dword [ebx + 0x10], 0
jne 0x403c85
mov dword [ebp - 0x2bc], str.Path_cannot_be_empty
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.0055dff9
push 0x5ffac0
lea eax, [ebp - 0x2c8]
push eax
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::invalid_argument.0
call fcn.005676bc
push ebx
lea esi, [ebp - 0x48]
call fcn.0040905d
and dword [ebp - 4], 0
mov eax, esi
call fcn.00476b08
mov edi, dword [ebx + 0x10]
push 8
pop esi
cmp dword [ebx + 0x14], esi
jb 0x403ca8
mov eax, dword [ebx]
jmp 0x403caa
mov eax, ebx
push eax
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x48]
call fcn.0040d6eb
test eax, eax
je 0x403cc6
mov dword [ebp - 0x2bc], str.Path_contains_invalid_separators
jmp 0x403c58
mov edx, dword [ebx + 0x14]
cmp edx, esi
jb 0x403cd1
mov ecx, dword [ebx]
jmp 0x403cd3
mov ecx, ebx
mov eax, dword [ebx + 0x10]
lea ecx, [ecx + eax*2]
cmp word [ecx - 2], 0x5c
jne 0x403cef
mov dword [ebp - 0x2bc], str.Path_cannot_have_trailing_path_separator.
jmp 0x403c58
cmp eax, 0x104
jbe 0x403d05
mov dword [ebp - 0x2bc], str.Path_is_too_long
jmp 0x403c58
cmp edx, esi
jb 0x403d0d
mov eax, dword [ebx]
jmp 0x403d0f
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403d6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x360]
push eax
call fcn.00409ac6
mov esi, eax
push str.GetFileAttributes_failed_with
push esi
mov byte [ebp - 4], 1
call fcn.0040fa1f
pop ecx
pop ecx
push edi
push esi
call fcn.0040d432
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 2
push 0x21b
mov ecx, str.srcApplicationDetector.cpp
lea eax, [ebp - 0x2c]
call fcn.00401f44
test al, 0x10
jne 0x403d86
push str.Path_is_not_a_directory.
lea esi, [ebp - 0x2c]
call fcn.00409096
mov byte [ebp - 4], 3
push 0x220
jmp 0x403d5d
lea eax, [ebp - 0x64]
push 0x5c2dbc
push eax
call fcn.0040cf5b
push 0x24c
lea eax, [ebp - 0x2b4]
push 0
mov byte [ebp - 4], 4
and dword [ebp - 0x2b8], 0
push eax
call fcn.00560d40
mov eax, dword [ebp - 0x64]
add esp, 0x14
cmp dword [ebp - 0x50], esi
jae 0x403dc0
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x2b8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x403e1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x360]
push eax
call fcn.00409ac6
mov esi, eax
push str.FindFirstFile_failed_with
push esi
mov byte [ebp - 4], 5
call fcn.0040fa1f
pop ecx
pop ecx
push edi
push esi
call fcn.0040d432
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 6
push 0x230
jmp 0x403d5d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
xor edi, edi
lea esi, [ebp - 0x64]
call fcn.0040b028
push 1
lea esi, [ebp - 0x48]
call fcn.0040b028
call fcn.0056cf18
ret
Function at 0x405e12
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push 0x59c
mov eax, 0x5b2ccd
call fcn.0056cecb
xor eax, eax
push 0x206
mov word [ebp - 0x430], ax
xor ebx, ebx
lea eax, [ebp - 0x42e]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x470], edi
call fcn.00560d40
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x405f28
lea eax, [ebp - 0x430]
push eax
lea esi, [ebp - 0x44c]
mov dword [ebp - 4], ebx
call fcn.00409096
mov edx, esi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00403e3d
push 1
xor edi, edi
call fcn.0040b028
or dword [ebp - 4], 0xffffffff
jmp 0x405f99
lea eax, [ebp - 0x510]
push eax
call fcn.00409ac6
mov esi, eax
push str.Cannot_get_CSIDL_PROGRAM_FILES_path.
push esi
mov dword [ebp - 4], 5
call fcn.0040fa1f
pop ecx
pop ecx
lea eax, [ebp - 0x44c]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 6
cmp dword [ebp - 0x438], 8
mov eax, dword [ebp - 0x44c]
jae 0x405f71
lea eax, [ebp - 0x44c]
push eax
push 2
pop ecx
call fcn.0047c666
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x44c]
call fcn.0040b028
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x510]
call fcn.004021a3
lea eax, [ebp - 0x46c]
push eax
mov dword [ebp - 0x46c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x405fbd
mov dword [ebp - 0x46c], ebx
cmp dword [ebp - 0x46c], 1
jne 0x406032
xor eax, eax
push 0x208
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x226]
push ebx
push eax
call fcn.00560d40
add esp, 0xc
push 0x105
lea eax, [ebp - 0x228]
push eax
push 0x5c2728
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x406032
lea eax, [ebp - 0x228]
push eax
lea esi, [ebp - 0x44c]
mov dword [ebp - 4], 7
call fcn.00409096
mov ecx, dword [ebp - 0x470]
mov edx, esi
mov byte [ebp - 4], 8
call fcn.00403e3d
push 1
xor edi, edi
call fcn.0040b028
call fcn.0056cf27
ret

Function at 0x4063ba
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b2c16
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6274d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x18], eax
lea esi, [esp + 0x1c]
call fcn.0040617d
and dword [esp + 0x30], 0
mov edi, dword [esp + 0x20]
lea ebx, [ebp + 8]
lea eax, [esp + 0x14]
mov ecx, edi
call fcn.0040a184
mov esi, dword [esp + 0x14]
cmp esi, dword [edi + 4]
push 0x52f
setne al
movzx eax, al
push eax
mov edi, str.srcApplicationDetector.cpp
call fcn.0047a47f
mov edi, dword [ebp + 0xc]
pop ecx
pop ecx
push dword [esp + 0x18]
mov ecx, dword [ebp + 8]
mov edx, edi
call fcn.00406d76
add esi, 0x10
call fcn.00406469
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x406454
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4115b4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b2751
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x6274d0]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x6274d0]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
lea ebx, [esp + 0xb0]
call fcn.00411572
and dword [esp + 0xf8], 0
mov eax, ebx
call fcn.0047c4dd
test al, al
je 0x4116c2
cmp dword [esp + 0xc4], 8
mov eax, dword [esp + 0xb0]
jae 0x41162a
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4116c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [esp + 0x14]
push eax
call fcn.00409ac6
mov esi, eax
push str.Cannot_delete_ApplicationLaunchInfoStatistics_file:
push esi
mov byte [esp + 0x100], 1
call fcn.0040fa1f
pop ecx
pop ecx
push edi
push esi
call fcn.0040d432
lea eax, [esp + 0xcc]
push eax
mov eax, esi
call fcn.00409b30
push 2
pop ecx
mov byte [esp + 0xf8], cl
cmp dword [esp + 0xe0], 8
mov eax, dword [esp + 0xcc]
jae 0x41169a
lea eax, [esp + 0xcc]
push eax
call fcn.0047c666
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0xd0]
call fcn.0040b028
lea eax, [esp + 0x14]
mov byte [esp + 0xf8], 0
call fcn.004021a3
push 1
xor edi, edi
lea esi, [esp + 0xb4]
call fcn.0040b028
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.0055d7fe
mov esp, ebp
pop ebp
ret
Function at 0x4120bb
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a4237
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x6274d0]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x6274d0]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
dec eax
mov edi, edx
je 0x41215a
lea eax, [esp + 0x44]
push eax
call fcn.00409ac6
mov esi, eax
and dword [esp + 0x108], 0
push str.Version_is_not_supported:
push esi
call fcn.0040fa1f
pop ecx
pop ecx
push dword [ebp + 8]
push esi
call fcn.0040d432
lea eax, [esp + 0xdc]
push eax
mov eax, esi
call fcn.00409b30
push 0x8e
mov ecx, str.srcApplicationScanStatisticsStorage.cpp
lea eax, [esp + 0xe0]
mov byte [esp + 0x10c], 1
call fcn.00401f44
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], vtable.GFE::IOMemory.0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], esi
push ecx
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x110], 2
call fcn.0047e846
mov ebx, vtable.GFE::BinaryStream.0
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov byte [esp + 0x108], 3
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], esi
call fcn.0047e69c
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
push ecx
mov esi, eax
call fcn.0047e7da
mov eax, dword [esp + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0xc], eax
lea eax, [esp + 0x10]
push eax
push ecx
lea eax, [edi + 0x18]
push eax
push ecx
lea eax, [edi + 0x10]
push eax
call fcn.0047e7da
pop ecx
mov esi, eax
call fcn.0047e7da
pop ecx
mov esi, eax
call fcn.0047e57b
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
mov dword [edi + 0x20], eax
mov dword [esp + 0x1c], ebx
call fcn.0047e89d
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.0055d7fe
mov esp, ebp
pop ebp
ret
Function at 0x417387
Capabilities:
Delete file

Disassembly:
push 0xec
mov eax, 0x5aef50
call fcn.0056ce95
mov edi, ecx
push edi
lea eax, [ebp - 0x60]
push eax
mov esi, edx
call fcn.0047c15a
xor ebx, ebx
push 0xa
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], ebx
call fcn.0047c1fe
test al, al
jne 0x417400
lea eax, [ebp - 0xf8]
push eax
call fcn.00409ac6
mov esi, eax
push str.Cannot_open_file_for_writing:
push esi
mov byte [ebp - 4], 1
call fcn.0040fa1f
push esi
mov ecx, edi
call fcn.0040fbd3
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 2
push 0x263
mov ecx, str.srcApplicationUsageCollector.cpp
lea eax, [ebp - 0x48]
call fcn.00401f44
push 0x2e
push str.__xml_version1.0_encodingUTF_8___n_Data__n
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0040b619
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x49], bl
jae 0x41742f
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x49]
push ecx
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x60]
call dword [eax + 0x24]
cmp byte [ebp - 0x49], bl
je 0x4174d4
lea ecx, [ebp - 0x60]
call fcn.0047c2b8
cmp dword [edi + 0x14], 8
jb 0x41745a
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x417480
push str.Cannot_write_file_header.
lea esi, [ebp - 0x48]
call fcn.00409096
mov byte [ebp - 4], 4
push 0x26d
jmp 0x4173f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00409ac6
mov esi, eax
push str.Cannot_write_file_header_and_delete_incomplete_file__ec
push esi
mov byte [ebp - 4], 5
call fcn.0040fa1f
pop ecx
pop ecx
push edi
push esi
call fcn.0040d432
push 0x5c5bd4
push esi
call fcn.0040fa1f
pop ecx
pop ecx
lea eax, [ebp - 0x48]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 6
push 0x272
jmp 0x4173f3
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
mov edi, 0x1c8
mov dword [ebp - 0x50], ebx
cdq
mov ebx, edi
idiv ebx
test eax, eax
je 0x417514
and dword [ebp - 0x54], 0
add ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x60]
push eax
call fcn.00414332
mov eax, dword [esi + 4]
pop ecx
mov ecx, dword [esi]
sub eax, ecx
cdq
mov ebx, edi
idiv ebx
inc dword [ebp - 0x50]
add dword [ebp - 0x54], edi
cmp dword [ebp - 0x50], eax
jb 0x4174f0
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040aadd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.0047c1b1
call fcn.0056cf18
ret
Function at 0x41823a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b2751
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x6274d0]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x6274d0]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
lea ebx, [esp + 0xb0]
call fcn.004181f8
and dword [esp + 0xf8], 0
mov eax, ebx
call fcn.0047c4dd
test al, al
je 0x418363
cmp dword [esp + 0xc4], 8
mov eax, dword [esp + 0xb0]
jae 0x4182b0
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x418363
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [esp + 0x14]
push eax
call fcn.00409ac6
mov esi, eax
push str.Cannot_delete_
push esi
mov byte [esp + 0x100], 1
call fcn.0040fa1f
push esi
lea ecx, [esp + 0xbc]
call fcn.0040fbd3
add esp, 0xc
push 0x5c2ae0
push esi
call fcn.0040fa1f
pop ecx
pop ecx
push edi
push esi
call fcn.0040d432
lea eax, [esp + 0xcc]
push eax
mov eax, esi
call fcn.00409b30
push 2
pop ecx
mov byte [esp + 0xf8], cl
cmp dword [esp + 0xe0], 8
mov eax, dword [esp + 0xcc]
jae 0x41833b
lea eax, [esp + 0xcc]
push eax
call fcn.0047c666
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0xd0]
call fcn.0040b028
lea eax, [esp + 0x14]
mov byte [esp + 0xf8], 0
call fcn.004021a3
push 1
xor edi, edi
lea esi, [esp + 0xb4]
call fcn.0040b028
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.0055d7fe
mov esp, ebp
pop ebp
ret
Function at 0x427f94
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [esi]
call fcn.0055ebeb
push dword [esi]
mov ebx, eax
push 1
push edi
push dword [ebp + 8]
call fcn.0055f689
add esp, 0x14
cmp eax, 1
jne 0x427fc5
lea eax, [ebx + edi]
cmp eax, dword [esi + 8]
jbe 0x427fc1
mov dword [esi + 8], eax
mov al, 1
jmp 0x427fc7
xor al, al
pop ebx
pop ebp
ret 4
Function at 0x428311
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a3f73
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6274d0]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push esi
mov eax, dword [0x6274d0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov esi, dword [ebx]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x20], eax
cmp esi, eax
jne 0x428369
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
jmp 0x428432
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
call fcn.00429199
mov esi, dword [esp + 0x1c]
xor ecx, ecx
push ecx
mov dword [esp + 0x54], ecx
mov eax, dword [ebx + 0xc]
push ecx
push eax
push dword [esi + 0x40]
call fcn.0055ef91
add esp, 0x10
test eax, eax
je 0x4283c1
push str.Cannot_seek_to_data_position
lea esi, [esp + 0x28]
call fcn.00409096
mov byte [esp + 0x50], 1
push 0x105
mov ecx, str.srcBlobStorage.cpp
mov eax, esi
call fcn.00401f44
push dword [esi + 0x40]
mov ebx, dword [ebx]
push 1
push ebx
mov ebx, dword [esp + 0x18]
push ebx
call fcn.0055f515
add esp, 0x10
cmp eax, 1
je 0x4283fc
push str.Cannot_read_blob_data
lea esi, [esp + 0x28]
call fcn.00409096
mov byte [esp + 0x50], 2
push 0x109
mov ecx, str.srcBlobStorage.cpp
mov eax, esi
jmp 0x4283bc
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
lea eax, [esp + 0xc]
cmp edi, eax
je 0x428427
mov esi, edi
call fcn.004c601a
mov eax, dword [esp + 0x10]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x14]
mov dword [edi], ebx
mov dword [edi + 8], eax
xor ebx, ebx
test ebx, ebx
je 0x428432
push ebx
call fcn.0055e74f
pop ecx
mov eax, edi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0055d7fe
mov esp, ebp
pop ebp
ret 4

Function at 0x429a92
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a732d
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x6274d0]
xor eax, esp
mov dword [esp + 0xb4], eax
push esi
push edi
mov eax, dword [0x6274d0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
push 0x190
mov esi, ecx
push 0
push esi
call fcn.00560d40
add esp, 0xc
push esi
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, eax
test edi, edi
je 0x429b47
lea eax, [esp + 0xc]
push eax
call fcn.00409ac6
mov esi, eax
and dword [esp + 0xd0], 0
push str.WSAStartup_failed_with
push esi
call fcn.0040fa1f
pop ecx
pop ecx
push edi
push esi
call fcn.0040d33e
lea eax, [esp + 0xa4]
push eax
mov eax, esi
call fcn.00409b30
push 0x1b
mov ecx, str.srcDaemonManager.cpp
lea eax, [esp + 0xa8]
mov byte [esp + 0xd4], 1
call fcn.00401f44
mov eax, esi
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.0055d7fe
mov esp, ebp
pop ebp
ret