joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4659a2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x6b500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x1d8], 0xffffffff
jne 0x4659c6
xor eax, eax
inc eax
jmp 0x465a27
and dword [ebp - 8], 0
mov ecx, ebx
push esi
call fcn.00436920
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 + 0x1d8]
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 0x465a24
mov ecx, ebx
call fcn.00436920
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.0042d8e5
leave
ret 4

Function at 0x466766
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6b500c]
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 0x46678a
xor eax, eax
inc eax
jmp 0x4667cf
push esi
push edi
xor edi, edi
mov ecx, eax
mov dword [ebp - 8], edi
call fcn.00436920
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 0x4667cb
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.0042d8e5
leave
ret 4
Function at 0x466c32
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6b500c]
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 0x466cb2
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 0x466c8d
push esi
jmp 0x466c92
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 0x466cb5
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 8], 1
test cl, cl
je 0x466ceb
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 0x466ceb
push 0xa
push ebx
call dword [sym.imp.WS2_32.dll_listen]
mov esi, eax
cmp esi, 0xffffffff
jne 0x466cfa
cmp ebx, 0xffffffff
je 0x466cfa
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.00466d16
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d8e5
leave
ret 4

Function at 0x466d42
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6b500c]
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.0042e9f0
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.00466d16
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042d8e5
leave
ret

Function at 0x46707f
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x60f861
call fcn.0042d958
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.00467197
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push edi
push ebx
push dword [ebp - 0x14]
push 0x467020
push ebx
push ebx
call fcn.005f80ac
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4670c9
call fcn.0042d907
ret 8
push 6
mov dword [edi], ebx
call fcn.004ea4de
int3
Function at 0x46f502
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x6b500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [eax + 8]
mov dword [ebp - 0x40], eax
push edi
xor edi, edi
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x46f52c
mov eax, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.00602399
pop ecx
pop ecx
test eax, eax
jne 0x46f559
test dword [ebp - 0x36], 0x4000
jne 0x46f5cc
mov ecx, dword [ebp - 0x40]
push ebx
push esi
call fcn.0046f768
mov edi, eax
test edi, edi
js 0x46f5cc
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46f563
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46f584
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x46f5cc
cmp dword [esi + 0x14], 8
jb 0x46f590
mov esi, dword [esi]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebx + 4]
add eax, 0x5c
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], edi
push 0x677a8c
cmp ecx, dword [ebx + 8]
je 0x46f5bb
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
mov ecx, ebx
call fcn.0046dc5f
jmp 0x46f5cc
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0x48]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.0046ddf6
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d8e5
leave
ret 4

Function at 0x471dd5
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push 0xf0000000
push 0x18
push 0
push 0
push 0x6cf8e8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
setne al
ret
Function at 0x478892
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
push esi
mov esi, ecx
mov dword [ebp - 8], esi
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4788bd
jl 0x4788b4
test edi, edi
jne 0x4788bd
xor eax, eax
xor edx, edx
jmp 0x47896d
cmp dword [esi + 0x38], 0
je 0x4788d0
push eax
push edi
push edx
call method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_32
jmp 0x47896d
mov eax, dword [esi + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x47890a
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x47890a
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push ecx
push edx
call fcn.0042ec40
mov ecx, dword [ebp - 8]
sub ebx, 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, ecx
cmp dword [esi + 0x4c], 0
mov ecx, ebx
je 0x478962
mov ecx, esi
call fcn.00477572
mov edx, dword [ebp - 4]
mov ecx, ebx
jmp 0x478942
push dword [esi + 0x4c]
push eax
push 1
push edx
call fcn.00603dc4
mov edx, dword [ebp - 4]
sub ebx, eax
add edx, eax
add esp, 0x10
mov dword [ebp - 4], edx
mov ecx, ebx
cmp eax, 0xfff
jne 0x478973
mov eax, 0xfff
cmp ebx, eax
ja 0x478920
test ecx, ecx
je 0x478962
push dword [esi + 0x4c]
push ebx
push 1
push edx
call fcn.00603dc4
mov ecx, ebx
add esp, 0x10
sub ecx, eax
sub edi, ecx
mov edx, dword [ebp + 0x10]
mov eax, edi
sbb edx, 0
pop ebx
pop edi
pop esi
leave
ret 0xc
sub edi, ebx
jmp 0x478964
Function at 0x4881df
Capabilities:
Inspect section memory permissions

Disassembly:
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
invalid
ja 0x4881c7
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid

Function at 0x4881ff
Capabilities:
Inspect section memory permissions

Disassembly:
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
invalid
ja 0x4881c7
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid

Function at 0x48821f
Capabilities:
Inspect section memory permissions

Disassembly:
and edi, esp
lea eax, [ebp - 0x84]
push eax
call fcn.00487d49
push eax
push esi
push dword [ebp + 8]
call fcn.00487cfe
add esp, 0x10
invalid
test dword [eax - 1], eax
invalid

Function at 0x488396
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4883ed
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4883e8
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x4883d2
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4883da
cmp edx, ebx
jne 0x488528
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4883a9
add eax, dword [eax + 4]
jmp fcn.00488396
mov dword [ebp + 0xc], ebx
jmp 0x4883f8
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x488410
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x48842e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x48848c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x488473
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x48847c
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x488486
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x488468
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4883f2
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x4be714
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61b8d1
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6b500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
push str.WebClient__p_:_destroyed
push str.WebClient
push dword [esi + 0xa8]
mov dword [esi], vtable.WebClient.0
mov dword [esi + 4], vtable.WebClient.1.0
mov dword [esi + 8], vtable.WebClient.2.0
call fcn.004531b7
add esp, 0x10
lea ecx, [esi + 0xe8]
call fcn.00415bf1
lea ecx, [esi + 0xd0]
call fcn.00415bf1
lea ecx, [esi + 0xb8]
call fcn.00415bf1
lea eax, [esi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x58]
call fcn.004bf0a6
xor ecx, ecx
lea eax, [esi + 0x54]
xchg dword [eax], ecx
test ecx, ecx
je 0x4be7aa
call fcn.0041700a
xor ecx, ecx
lea eax, [esi + 0x50]
xchg dword [eax], ecx
test ecx, ecx
je 0x4be7ba
call fcn.0041700a
xor ecx, ecx
lea eax, [esi + 0x4c]
xchg dword [eax], ecx
test ecx, ecx
je 0x4be7ca
call fcn.0041700a
xor edi, edi
cmp dword [esi + 0x48], edi
je 0x4be7dd
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x48], edi
cmp dword [esi + 0x44], edi
je 0x4be7ee
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [esi + 0x40], edi
je 0x4be7ff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], edi
lea ecx, [esi + 0x38]
push edi
mov dword [ebp - 4], edi
mov dword [ecx], vtable.ClassPtr_struct_IDownloadRequestCallback_.0
call fcn.004143e3
lea ecx, [esi + 0x34]
call fcn.00414179
lea ecx, [esi + 0x30]
call fcn.00414179
lea ecx, [esi + 0x2c]
call fcn.00414179
lea ecx, [esi + 0x28]
call fcn.00414179
lea ecx, [esi + 0x10]
call fcn.00415bf1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x4bf35f
Capabilities:
Check if file exists

Disassembly:
push 0x44
mov eax, 0x61ba14
call fcn.0042d958
lea edi, [ecx + 0x54]
mov eax, dword [edi]
test eax, eax
je 0x4bf451
cmp dword [eax + 8], 0
je 0x4bf451
add eax, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bf444
xorps xmm0, xmm0
xor ebx, ebx
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], vtable.ClassPtr_struct_IFSManager_.0
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
call fcn.00452067
test eax, eax
js 0x4bf41c
mov ecx, dword [edi]
lea eax, [ecx + 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.00414308
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.004144d5
mov dword [ebp - 0x20], reloc.WS2_32.dll_accept
mov byte [ebp - 0x1c], bl
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00415bf1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x4bf400
int3
mov eax, dword [ecx]
mov esi, dword [eax + 0x3c]
lea eax, [ebp - 0x38]
push eax
push ecx
mov ecx, esi
call dword [0x62c6dc]
call esi
lea ecx, [ebp - 0x38]
call fcn.00415bf1
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 4
mov dword [ebp - 0x18], vtable.ClassPtr_struct_IFSManager_.0
mov dword [ebp - 0x14], ebx
test ecx, ecx
je 0x4bf444
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x62c6dc]
call esi
xor ecx, ecx
xchg dword [edi], ecx
test ecx, ecx
je 0x4bf451
call fcn.0041700a
call fcn.0042d907
ret
Function at 0x4bf963
Capabilities:
Check if file exists

Disassembly:
push 0x54
mov eax, 0x61bab4
call fcn.0042d958
mov edi, ecx
mov dword [ebp - 0x3c], edi
mov esi, dword [ebp + 8]
lea eax, [edi + 0x64]
push eax
mov dword [ebp - 0x40], esi
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 esi, esi
jne 0x4bf9c5
mov edi, 0x80004003
push 0x116
push str.d:dbs_shodct1021_100423_0cmdkclientonedriveSetupStandalonewebclientwebclient.cpp
push edi
call fcn.00451940
jmp 0x4bfacd
mov ecx, edi
call fcn.004a80e7
mov edi, eax
test edi, edi
jns 0x4bf9d9
push 0x119
jmp 0x4bf9b5
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x4bf9ef
mov edi, 0x8000ffff
push 0x11c
jmp 0x4bf9b5
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 [0x62c6dc]
call esi
mov edi, eax
test edi, edi
jns 0x4bfa12
push 0x11f
jmp 0x4bf9b5
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov eax, dword [eax + 0x30]
and dword [esi + 0x30], 0
mov dword [ecx], eax
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4bfad0
cmp dword [eax + 8], 0
je 0x4bfad0
add eax, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bfad0
cmp dword [ebp - 0x14], 0
je 0x4bfa52
int3
lea eax, [ebp - 0x14]
push eax
call fcn.00452067
test eax, eax
js 0x4bfad0
mov eax, esi
mov ecx, dword [eax + 0x54]
lea eax, [ecx + 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.00414308
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x60]
and dword [ebp - 0x24], 0
lea ecx, [ebp - 0x38]
push eax
mov byte [ebp - 4], 2
call fcn.004144d5
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.00415bf1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x4bfaad
int3
mov eax, dword [ecx]
mov esi, dword [eax + 0x6c]
lea eax, [ebp - 0x38]
push eax
push ecx
mov ecx, esi
call dword [0x62c6dc]
call esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00415bf1
mov esi, dword [ebp - 0x3c]
push esi
push str.WebClient__p_:_Leaving_GetDownloadedData__
push str.WebClient
push edi
call fcn.00451d25
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 0x4bfb0a
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x62c6dc]
call esi
xor eax, eax
inc eax
test al, al
je 0x4bfb1a
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
call fcn.0042d907
ret 4
Function at 0x4c1a45
Capabilities:
Persist via run registry key

Disassembly:
push 0x64
mov eax, 0x61bda7
call fcn.0042d958
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [edi], bl
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ebx
push eax
call fcn.004c37f3
mov esi, eax
test esi, esi
js 0x4c1b60
push 7
pop esi
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
mov word [ebp - 0x28], ax
push str.OneDrive
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], esi
mov word [ebp - 0x70], ax
call fcn.00414483
xor eax, eax
mov byte [ebp - 4], 2
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], esi
mov word [ebp - 0x58], ax
call fcn.00414483
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
push reloc.WS2_32.dll_accept
call fcn.004c54e1
mov esi, eax
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4c1afa
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x58]
call fcn.004157b4
xor eax, eax
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 7
cmp eax, 8
jb 0x4c1b22
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x70]
call fcn.004157b4
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0044b863
pop ecx
pop ecx
test eax, eax
jne 0x4c1b48
mov byte [edi], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4c1b60
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.004157b4
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4c1b78
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x40]
call fcn.004157b4
mov eax, esi
call fcn.0042d907
ret 4

Function at 0x4c227f
Capabilities:
Delete file

Disassembly:
nop
push ebp
mov ebp, esp
pop ebp
jmp 0x4c227f
Function at 0x4c2afe
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x228
mov eax, 0x61bf8c
call fcn.0042d958
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.00414ac4
mov eax, dword [ebx]
xor ecx, ecx
cmp dword [ebp + 0x10], 1
mov edx, 0x100
mov dword [ebx + 4], eax
mov eax, 0x200
cmove ecx, eax
xor eax, eax
cmp dword [ebp + 0x10], 2
cmove eax, edx
and dword [ebp - 0x230], 0
or ecx, eax
or ecx, 0x20019
cmp dword [esi + 0x14], 8
jb 0x4c2b59
mov esi, dword [esi]
lea eax, [ebp - 0x230]
push eax
push ecx
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4c2c6c
xor eax, eax
mov dword [ebp - 0x234], eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], 0xff
push ecx
lea ecx, [ebp - 0x210]
push ecx
push eax
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
jne 0x4c2c33
and dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x22c]
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x218], 7
call fcn.00414483
and dword [ebp - 4], edi
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x4c2c00
lea eax, [ebp - 0x22c]
mov ecx, ebx
push eax
call fcn.00489091
jmp 0x4c2c0f
lea ecx, [ebp - 0x22c]
push ecx
push eax
mov ecx, ebx
call fcn.0042a2f3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x218]
cmp eax, 8
jb 0x4c2c3b
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x22c]
call fcn.004157b4
jmp 0x4c2c3b
cmp edi, 0x103
jne 0x4c2c52
mov eax, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x234], eax
test edi, edi
je 0x4c2b89
jmp 0x4c2c60
movzx esi, di
or esi, 0x80070000
test edi, edi
cmovle esi, edi
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.0042d907
ret 0x10

Function at 0x4c3dd4
Capabilities:
Get common file path

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6b500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
xor esi, esi
mov dword [ebp - 0x210], 0x104
push esi
push eax
call fcn.0042e9f0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
test eax, eax
je 0x4c3e35
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00414483
jmp 0x4c3e49
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042d8e5
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x4c3dd2
Function at 0x4c3e5b
Capabilities:
Get file version info

Disassembly:
push 0xd4
mov eax, 0x61c302
call fcn.0042d958
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xc4], ecx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], 7
mov word [ebx], ax
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc4], 1
jb 0x4c3ea4
mov eax, dword [esi]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ecx, eax
mov dword [ebp - 0xbc], ecx
test ecx, ecx
je 0x4c4016
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xbd]
mov dword [ebp - 4], 1
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00427bcf
cmp dword [esi + 0x14], 8
jb 0x4c3eed
mov esi, dword [esi]
mov edi, dword [ebp - 0x1c]
push edi
push dword [ebp - 0xbc]
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4c4006
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xbc]
push eax
push 0x677a88
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4c4006
push 0x98
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.0042e9f0
add esp, 0xc
lea ecx, [ebp - 0xb8]
push 1
call fcn.0047a112
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
movzx eax, word [eax + 0xa]
push eax
call fcn.0042340f
mov esi, 0x67a3b8
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.00425162
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xb8]
movzx eax, word [eax + 8]
push eax
call fcn.0042340f
push esi
lea eax, [ebp - 0xb8]
push eax
call fcn.00425162
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xb8]
movzx eax, word [eax + 0xe]
push eax
call fcn.0042340f
push esi
lea eax, [ebp - 0xb8]
push eax
call fcn.00425162
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xb8]
movzx eax, word [eax + 0xc]
push eax
call fcn.0042340f
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0xb4]
call fcn.004240fa
lea eax, [ebp - 0xe0]
mov ecx, ebx
push eax
call fcn.004142e4
lea ecx, [ebp - 0xe0]
call fcn.00415bf1
lea ecx, [ebp - 0xb8]
call fcn.0047a348
test edi, edi
je 0x4c4016
mov ecx, dword [ebp - 0x14]
sub ecx, edi
push ecx
push edi
call fcn.004157b4
mov eax, ebx
call fcn.0042d907
ret 8