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

Disassembly:
push 0x248
mov eax, 0x619169
call fcn.00429e48
mov ebx, dword [ebp + 8]
mov eax, 0x6e95c0
mov dword [ebp - 0x240], ebx
push eax
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x254], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x250], 1
and dword [ebp - 4], 0
cmp dword [0x6d5f78], 0
jne 0x44ebc8
xorps xmm0, xmm0
movlpd qword [ebp - 0x220], xmm0
and dword [ebp - 0x21c], 0
mov dword [ebp - method.ClassPtr_struct_IFSManager_.virtual_0], vtable.ClassPtr_struct_IFSManager_.0
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push eax
call fcn.0044e870
mov ebx, eax
call fcn.004c574b
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax + 0x88]
mov ecx, esi
call dword [0x63a7a0]
mov ecx, edi
call esi
push 0x208
mov byte [ebp - 0x241], al
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0042af50
add esp, 0xc
test ebx, ebx
js 0x44eb8f
cmp byte [0x6e95b8], 0
mov bl, byte [ebp - 0x241]
je 0x44ea93
test bl, bl
je 0x44ea93
push 0x26
jmp 0x44ea95
push 0x1c
pop eax
lea ecx, [ebp - 0x218]
push ecx
xor ecx, ecx
push ecx
push ecx
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x44eb8f
and dword [ebp - 0x23c], 0
xor eax, eax
and dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
mov byte [ebp - 4], 2
cmp byte [0x6e95b8], al
je 0x44eae7
mov eax, str.Microsoft_OneDrive_setuplogs
test bl, bl
jne 0x44eaec
mov eax, str.MicrosoftOneDrive_setuplogs
push eax
lea ecx, [ebp - 0x23c]
call fcn.00411a05
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
push 0
cmovae eax, dword [ebp - 0x23c]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.004183ac
mov ecx, dword [ebp - 0x228]
mov esi, eax
mov byte [ebp - 4], 1
cmp ecx, 8
jb 0x44eb7a
mov eax, dword [ebp - 0x23c]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x240], eax
cmp ecx, 0x1000
jb 0x44eb71
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00413aba
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x240]
push ecx
push eax
call fcn.00429b68
pop ecx
pop ecx
test esi, esi
js 0x44eb8f
lea eax, [ebp - 0x218]
mov ecx, 0x6d5f68
push eax
call fcn.00411a05
mov ecx, dword [ebp - 0x21c]
and dword [ebp - 0x21c], 0
mov byte [ebp - 4], 3
mov dword [ebp - method.ClassPtr_struct_IFSManager_.virtual_0], vtable.ClassPtr_struct_IFSManager_.0
test ecx, ecx
je 0x44ebbe
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x63a7a0]
call esi
mov ebx, dword [ebp - 0x248]
mov byte [ebp - 4], 0
push 0x6d5f68
mov ecx, ebx
call fcn.00411873
push 0x6e95c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
call fcn.00429df7
ret 4
Function at 0x453fd2
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x208
push 0
push eax
mov dword [ebp - 0x214], esi
call fcn.0042af50
add esp, 0xc
xor edi, edi
test ebx, ebx
je 0x45412e
cmp byte [ebp + 0x10], 0
mov byte [ebp - 0x20d], 0
jne 0x45405b
mov eax, dword [esi]
mov esi, dword [eax + 0x54]
lea eax, [ebp - 0x20d]
push eax
push ebx
push dword [ebp - 0x214]
mov ecx, esi
call dword [0x63a7a0]
call esi
test eax, eax
js 0x454055
cmp byte [ebp - 0x20d], 0
je 0x454055
mov edi, 0x80040c91
jmp 0x45411b
mov esi, dword [ebp - 0x214]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45411b
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004197ab
mov edi, eax
test edi, edi
jns 0x454097
push 0x2ba
push str.D:dbs_shodct0216_182312_0cmd7clientonedriveSetupStandalone_fsmanager_fsmanagerimpl.cpp
push edi
call fcn.0044e23a
jmp 0x45411b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x4540af
mov eax, 0x80040b04
jmp 0x45411d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4540e9
mov eax, dword [esi]
mov esi, dword [eax + 0x4c]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
mov ecx, esi
call dword [0x63a7a0]
call esi
mov edi, eax
test edi, edi
jns 0x4540e9
push 0x2c3
jmp 0x454087
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45411b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x454107
xor edi, edi
jmp 0x45411b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429dd5
leave
ret 0xc
push 0x80004005
call fcn.0041393f
int3

Function at 0x455242
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x208
push esi
push eax
call fcn.0042af50
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x45527d
mov edi, dword [edi]
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x647bc0
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4552ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4552bb
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.00411a05
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429dd5
leave
ret 0xc
Function at 0x4558bb
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x619b0c
call fcn.00429e48
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
call fcn.00455052
and dword [ebp - 0x1c], 0
xor edi, edi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4559f0
mov ecx, eax
call fcn.00457381
test ebx, ebx
je 0x45592b
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45592e
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x4559d3
jmp 0x45592e
mov dword [ebp - 0x1c], esi
xor ecx, ecx
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
push eax
push ecx
push dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x455973
cmp eax, 2
je 0x45596a
cmp eax, 0xea
je 0x45596a
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x4559d3
cmp eax, 2
je 0x4559d3
cmp dword [ebp - 0x18], 1
jne 0x4559d3
mov ebx, dword [ebp - 0x14]
add ebx, 2
push ebx
call fcn.00505fe7
mov esi, eax
pop ecx
mov dword [ebp - 0x2c], esi
and dword [ebp - 4], 0
test esi, esi
jne 0x45599a
mov edi, 0x8007000e
jmp 0x4559c9
mov eax, esi
test ebx, ebx
je 0x4559a9
mov byte [eax], 0
inc eax
sub ebx, 1
jne 0x4559a0
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x24]
push esi
call fcn.00411a05
push esi
call fcn.0042a3d5
mov ebx, dword [ebp - 0x28]
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x4559e6
test ebx, ebx
je 0x4559e6
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.00429df7
ret 0x10
push 0x80004005
call fcn.0041393f
int3
Function at 0x456455
Capabilities:
Timestomp file

Disassembly:
push 0x24
mov eax, 0x619c31
call fcn.00429e48
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
test edi, edi
jne 0x45648f
push 0x645
mov eax, 0x80070057
push str.D:dbs_shodct0216_182312_0cmd7clientonedriveSetupStandalone_fsmanager_fsmanagerimpl.cpp
mov esi, eax
push eax
call fcn.0044e23a
jmp 0x45655a
lea eax, [ebp - 0x2c]
push eax
push 0x104
push edi
call fcn.0044f289
mov esi, eax
test esi, esi
jns 0x4564b1
push 0x646
push str.D:dbs_shodct0216_182312_0cmd7clientonedriveSetupStandalone_fsmanager_fsmanagerimpl.cpp
push esi
jmp 0x456485
cmp dword [ebp - 0x2c], 0
jne 0x4564be
push 0x647
jmp 0x456478
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x100
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x456513
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x45655a
push 0x64f
jmp 0x4564a9
push ebx
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x45654f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x45654f
push 0x651
push str.D:dbs_shodct0216_182312_0cmd7clientonedriveSetupStandalone_fsmanager_fsmanagerimpl.cpp
push esi
call fcn.0044e23a
test edi, edi
je 0x45655a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.00429df7
ret 4

Function at 0x460d82
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1e8], 0xffffffff
jne 0x460da3
xor eax, eax
inc eax
jmp 0x460de4
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [esi + 0x1e8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esi + 0x1e8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x1e8], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00429dd5
leave
ret
Function at 0x461182
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x1e8], 0xffffffff
jne 0x4611a6
xor eax, eax
inc eax
jmp 0x461207
and dword [ebp - 8], 0
mov ecx, ebx
push esi
call fcn.00433110
mov ecx, ebx
mov esi, eax
call sym.OneDriveStandaloneUpdater.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____thiscall_Microsoft::Applications::Events::EventProperties::GetName_void_const
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 0x1e8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
mov esi, 0x80004005
add dword [edi + 0xc8], ecx
adc dword [edi + 0xcc], 0
lea edx, [eax - 1]
neg edx
sbb edx, edx
and edx, esi
cmp eax, 1
jne 0x461204
mov ecx, ebx
call fcn.00433110
mov edx, eax
sub edx, dword [ebp - 8]
neg edx
sbb edx, edx
and edx, esi
mov eax, edx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00429dd5
leave
ret 4

Function at 0x461e8c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x54], 0xffffffff
jne 0x461eb0
xor eax, eax
inc eax
jmp 0x461ef5
push esi
push edi
xor edi, edi
mov ecx, eax
mov dword [ebp - 8], edi
call fcn.00433110
mov ecx, dword [ebp - 0xc]
mov esi, eax
call sym.OneDriveStandaloneUpdater.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____thiscall_Microsoft::Applications::Events::EventProperties::GetName_void_const
push edi
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebx + 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x461ef1
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00429dd5
leave
ret 4
Function at 0x462312
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], ecx
push esi
push 1
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
lea edi, [ebp - 0x18]
cmp ebx, 0xffffffff
setne cl
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp ebx, 0xffffffff
je 0x462392
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp - 0x1c]
mov word [ebp - 0x16], ax
cmp byte [edi + 8], 0
jne 0x46236d
push esi
jmp 0x462372
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0x10
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
mov esi, eax
cmp esi, 0xffffffff
setne cl
jmp 0x462395
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 8], 1
test cl, cl
je 0x4623e6
push 4
lea eax, [ebp - 8]
push eax
push 8
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
cmp esi, 0xffffffff
je 0x4623e6
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
cmp esi, 0xffffffff
je 0x4623e6
push 0xa
push ebx
call dword [sym.imp.WS2_32.dll_listen]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4623f5
cmp ebx, 0xffffffff
je 0x4623f5
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or ebx, 0xffffffff
push esi
mov ecx, edi
mov dword [edi + 4], ebx
call fcn.00462411
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429dd5
leave
ret 4

Function at 0x462442
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x190
lea eax, [ebp - 0x194]
mov esi, ecx
push 0
push eax
call fcn.0042af50
add esp, 0xc
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
mov ecx, esi
call fcn.00462411
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00429dd5
leave
ret

Function at 0x462763
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x61b156
call fcn.00429e48
mov esi, ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
push eax
call fcn.0046287d
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push edi
push ebx
push dword [ebp - 0x14]
push 0x462700
push ebx
push ebx
call fcn.006033ea
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4627ad
call fcn.00429df7
ret 8
push 6
mov dword [edi], ebx
call fcn.004f49e1
int3
Function at 0x46aea4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x40], eax
push esi
push edi
xor edi, edi
lea esi, [ebx + 8]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46aece
mov eax, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.0060d578
pop ecx
pop ecx
test eax, eax
jne 0x46aef8
test dword [ebp - 0x36], 0x4000
jne 0x46af4e
push dword [ebp - 0x40]
mov ecx, ebx
push esi
call fcn.0046b0d6
mov edi, eax
test edi, edi
js 0x46af4e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46af02
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46af23
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x46af4e
cmp dword [esi + 0x14], 8
jb 0x46af2f
mov esi, dword [esi]
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push 0x68d3dc
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x44], esi
push eax
lea eax, [ebx + 0x5c]
mov dword [ebp - 0x48], edi
push eax
call fcn.004696d7
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429dd5
leave
ret 4

Function at 0x46d746
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push 0xf0000000
push 0x18
push 0
push 0
push 0x6e71a0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
setne al
ret

Function at 0x473d62
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
test esi, esi
jg 0x473d8c
jl 0x473d83
test ebx, ebx
jne 0x473d8c
xor eax, eax
xor edx, edx
jmp 0x473e44
cmp dword [ecx + 0x38], 0
je 0x473d9f
push esi
push ebx
push edx
call method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_32
jmp 0x473e44
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x473ddf
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x473ddf
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.0042b130
mov ecx, dword [ebp - 8]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x473e3a
call fcn.00472a14
mov ecx, dword [ebp - 4]
mov edx, edi
cmp edi, 0xfff
jbe 0x473e22
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push 0xfff
push 1
push ecx
call fcn.0060efa3
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x473e3a
jmp 0x473def
test edx, edx
je 0x473e3a
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push edi
push 1
push ecx
call fcn.0060efa3
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4868d6
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov edi, ecx
push esi
push esi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
push 0x64cbe0
push eax
mov dword [ebp - 0x18], esi
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jns 0x48691d
mov eax, 0x8004fb21
jmp 0x4869d8
push esi
push 0x20
push str.ChainingModeCBC
push str.ChainingMode
push dword [ebp - 0x18]
call sub.bcrypt.dll_BCryptSetProperty
test eax, eax
jns 0x486940
mov eax, 0x8004fb22
jmp 0x4869d8
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 8]
push esi
push eax
push dword [edi + 8]
lea eax, [ebp - 0x1c]
push esi
push esi
push eax
push dword [ebp - 0x18]
call sub.bcrypt.dll_BCryptGenerateSymmetricKey
test eax, eax
jns 0x486964
mov eax, 0x8004fb24
jmp 0x4869d8
xor eax, eax
mov dword [ebp - 8], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1d]
push eax
mov eax, dword [ebp - 0x24]
add eax, ebx
push eax
push ebx
call fcn.0048622e
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 8]
push 1
push edx
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
push eax
push dword [ecx]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
push esi
push esi
push esi
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
jns 0x4869b3
mov esi, 0x8004fb23
jmp 0x4869ce
cmp dword [ebp - 0x18], esi
je 0x4869c1
push esi
push dword [ebp - 0x18]
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
cmp dword [ebp - 0x1c], esi
je 0x4869ce
push dword [ebp - 0x1c]
call sub.bcrypt.dll_BCryptDestroyKey
lea ecx, [ebp - 0x14]
call fcn.004195f2
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429dd5
leave
ret 0xc

Function at 0x488602
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 2
push 0x20
push dword [eax]
push 0
call sub.bcrypt.dll_BCryptGenRandom
xor ecx, ecx
mov edx, 0x8004fb29
test eax, eax
cmovs ecx, edx
mov eax, ecx
pop ebp
ret 4
Function at 0x4c3be3
Capabilities:
Check if file exists

Disassembly:
push 0x54
mov eax, 0x628463
call fcn.00429e48
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov edi, dword [ebp + 8]
lea eax, [esi + 0xa4]
push eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
inc eax
mov byte [ebp - 0x44], al
and dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], vtable.ClassPtr_struct_IFSManager_.0
mov byte [ebp - 4], al
test edi, edi
jne 0x4c3c48
mov edi, 0x80004003
push 0x129
push str.D:dbs_shodct0216_182312_0cmdwclientonedriveSetupStandalonewebclientwebclient.cpp
push edi
call fcn.0044e23a
jmp 0x4c3d4b
mov ecx, esi
call fcn.004a6d4d
mov edi, eax
test edi, edi
jns 0x4c3c5c
push 0x12c
jmp 0x4c3c38
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x4c3c6f
mov edi, 0x8000ffff
push 0x12f
jmp 0x4c3c38
mov eax, dword [ecx]
mov esi, dword [eax + 0x14]
xor eax, eax
push eax
push eax
push eax
push eax
push ecx
mov ecx, esi
call dword [0x63a7a0]
call esi
mov edi, eax
test edi, edi
jns 0x4c3ca0
push 0x132
push str.D:dbs_shodct0216_182312_0cmdwclientonedriveSetupStandalonewebclientwebclient.cpp
push edi
call fcn.0044e23a
jmp 0x4c3d48
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov eax, dword [esi + 0x34]
and dword [esi + 0x34], 0
mov dword [ecx], eax
cmp dword [esi + 0x90], 0
je 0x4c3d4b
sub esi, 0xffffff80
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4c3cc9
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c3d48
cmp dword [ebp - 0x14], 0
je 0x4c3cdb
int3
lea eax, [ebp - 0x14]
push eax
call fcn.0044e870
test eax, eax
js 0x4c3d48
cmp dword [esi + 0x14], 8
jb 0x4c3cf0
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x60]
call fcn.00411838
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x38]
call fcn.00411873
mov dword [ebp - 0x20], reloc.WS2_32.dll_accept
mov byte [ebp - 0x1c], 0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.0041395f
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x4c3d28
int3
mov eax, dword [ecx]
mov esi, dword [eax + 0x70]
lea eax, [ebp - 0x38]
push eax
push ecx
mov ecx, esi
call dword [0x63a7a0]
call esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0041395f
mov esi, dword [ebp - 0x3c]
push esi
push str.WebClient__p_:_Leaving_GetDownloadedData__
push str.WebClient
push edi
call fcn.0044e676
add esp, 0x10
mov ecx, dword [ebp - 0x14]
and dword [ebp - 0x14], 0
mov byte [ebp - 4], 5
mov dword [ebp - 0x18], vtable.ClassPtr_struct_IFSManager_.0
test ecx, ecx
je 0x4c3d85
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x63a7a0]
call esi
xor eax, eax
inc eax
test al, al
je 0x4c3d95
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
call fcn.00429df7
ret 4