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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x6c2008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x1e0], 0xffffffff
jne 0x4623e6
xor eax, eax
inc eax
jmp 0x462447
and dword [ebp - 8], 0
mov ecx, ebx
push esi
call fcn.00432a80
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 + 0x1e0]
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 0x462444
mov ecx, ebx
call fcn.00432a80
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.004297f5
leave
ret 4

Function at 0x46306c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6c2008]
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 0x463090
xor eax, eax
inc eax
jmp 0x4630d5
push esi
push edi
xor edi, edi
mov ecx, eax
mov dword [ebp - 8], edi
call fcn.00432a80
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 0x4630d1
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.004297f5
leave
ret 4
Function at 0x4634f2
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6c2008]
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 0x463572
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 0x46354d
push esi
jmp 0x463552
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 0x463575
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 8], 1
test cl, cl
je 0x4635c6
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 0x4635c6
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 0x4635c6
push 0xa
push ebx
call dword [sym.imp.WS2_32.dll_listen]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4635d5
cmp ebx, 0xffffffff
je 0x4635d5
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.004635f1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004297f5
leave
ret 4

Function at 0x463622
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6c2008]
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.0042a970
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.004635f1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004297f5
leave
ret

Function at 0x463943
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x612fb2
call fcn.00429868
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.00463a5d
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push edi
push ebx
push dword [ebp - 0x14]
push 0x4638e0
push ebx
push ebx
call fcn.005fae0a
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x46398d
call fcn.00429817
ret 8
push 6
mov dword [edi], ebx
call fcn.004ec891
int3
Function at 0x46a244
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x6c2008]
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 + 4]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46a26e
mov eax, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.00604f98
pop ecx
pop ecx
test eax, eax
jne 0x46a298
test dword [ebp - 0x36], 0x4000
jne 0x46a2ee
push dword [ebp - 0x40]
mov ecx, ebx
push esi
call fcn.0046a476
mov edi, eax
test edi, edi
js 0x46a2ee
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46a2a2
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46a2c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x46a2ee
cmp dword [esi + 0x14], 8
jb 0x46a2cf
mov esi, dword [esi]
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push 0x682614
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x44], esi
push eax
lea eax, [ebx + 0x54]
mov dword [ebp - 0x48], edi
push eax
call fcn.004684da
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004297f5
leave
ret 4

Function at 0x46d666
Capabilities:
Create new key via cryptacquirecontext

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

Function at 0x47a8e2
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 0x47a90c
jl 0x47a903
test ebx, ebx
jne 0x47a90c
xor eax, eax
xor edx, edx
jmp 0x47a9c4
cmp dword [ecx + 0x38], 0
je 0x47a91f
push esi
push ebx
push edx
call method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_32
jmp 0x47a9c4
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x47a95f
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x47a95f
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.0042ab50
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 0x47a9ba
call fcn.0047a03b
mov ecx, dword [ebp - 4]
mov edx, edi
cmp edi, 0xfff
jbe 0x47a9a2
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push 0xfff
push 1
push ecx
call fcn.00605189
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 0x47a9ba
jmp 0x47a96f
test edx, edx
je 0x47a9ba
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push edi
push 1
push ecx
call fcn.00605189
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 0x47df76
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6c2008]
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 0x6430e0
push eax
mov dword [ebp - 0x18], esi
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jns 0x47dfbd
mov eax, 0x8004fb21
jmp 0x47e078
push esi
push 0x20
push str.ChainingModeCBC
push str.ChainingMode
push dword [ebp - 0x18]
call sub.bcrypt.dll_BCryptSetProperty
test eax, eax
jns 0x47dfe0
mov eax, 0x8004fb22
jmp 0x47e078
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 0x47e004
mov eax, 0x8004fb24
jmp 0x47e078
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.0047d8ce
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 0x47e053
mov esi, 0x8004fb23
jmp 0x47e06e
cmp dword [ebp - 0x18], esi
je 0x47e061
push esi
push dword [ebp - 0x18]
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
cmp dword [ebp - 0x1c], esi
je 0x47e06e
push dword [ebp - 0x1c]
call sub.bcrypt.dll_BCryptDestroyKey
lea ecx, [ebp - 0x14]
call fcn.00421862
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004297f5
leave
ret 0xc

Function at 0x47fed2
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 0x4bc353
Capabilities:
Check if file exists

Disassembly:
push 0x54
mov eax, 0x61f2a4
call fcn.00429868
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 0x4bc3b8
mov edi, 0x80004003
push 0x129
push str.D:dbs_shodct0613_102023cmdgclientonedriveSetupStandalonewebclientwebclient.cpp
push edi
call fcn.0044db7a
jmp 0x4bc4bb
mov ecx, esi
call fcn.0049e8cd
mov edi, eax
test edi, edi
jns 0x4bc3cc
push 0x12c
jmp 0x4bc3a8
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x4bc3df
mov edi, 0x8000ffff
push 0x12f
jmp 0x4bc3a8
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 [0x6317ac]
call esi
mov edi, eax
test edi, edi
jns 0x4bc410
push 0x132
push str.D:dbs_shodct0613_102023cmdgclientonedriveSetupStandalonewebclientwebclient.cpp
push edi
call fcn.0044db7a
jmp 0x4bc4b8
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 0x4bc4bb
sub esi, 0xffffff80
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4bc439
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bc4b8
cmp dword [ebp - 0x14], 0
je 0x4bc44b
int3
lea eax, [ebp - 0x14]
push eax
call fcn.0044e1b2
test eax, eax
js 0x4bc4b8
cmp dword [esi + 0x14], 8
jb 0x4bc460
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x60]
call fcn.0040ad69
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x38]
call fcn.00411a2e
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.00413b5a
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x4bc498
int3
mov eax, dword [ecx]
mov esi, dword [eax + 0x70]
lea eax, [ebp - 0x38]
push eax
push ecx
mov ecx, esi
call dword [0x6317ac]
call esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00413b5a
mov esi, dword [ebp - 0x3c]
push esi
push str.WebClient__p_:_Leaving_GetDownloadedData__
push str.WebClient
push edi
call fcn.0044df9a
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 0x4bc4f5
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x6317ac]
call esi
xor eax, eax
inc eax
test al, al
je 0x4bc505
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
call fcn.00429817
ret 4
Function at 0x4c08ed
Capabilities:
Persist via run registry key

Disassembly:
push 0x6c
mov eax, 0x61faf8
call fcn.00429868
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 7
mov byte [edi], bl
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x44]
mov dword [ebp - 4], ebx
push eax
call fcn.004c26f5
mov esi, eax
test esi, esi
js 0x4c09ec
xor eax, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push str.OneDrive
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.0040ad69
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.0040ad69
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x60]
push eax
push reloc.WS2_32.dll_accept
call fcn.004c4a43
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.00413b5a
lea ecx, [ebp - 0x78]
call fcn.00413b5a
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.0043c127
pop ecx
pop ecx
test eax, eax
jne 0x4c09b1
mov byte [edi], 1
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4c09ec
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x4c09e3
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00413cba
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.00429588
pop ecx
pop ecx
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x4c0a27
mov ecx, dword [ebp - 0x44]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x4c0a1e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00413cba
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.00429588
pop ecx
pop ecx
mov eax, esi
call fcn.00429817
ret 4

Function at 0x4c1464
Capabilities:
Delete file

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x6c2008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
xor edi, edi
cmp dword [esi + 0x14], 8
jb 0x4c1488
mov eax, dword [esi]
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4c14c9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
jb 0x4c14aa
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4c14c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004297f5
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x4c1462
Function at 0x4c1c2a
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x228
mov eax, 0x61fded
call fcn.00429868
mov eax, dword [ebp + 0x14]
mov ecx, eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
call fcn.00457b78
xor ecx, ecx
mov eax, 0x200
cmp dword [ebp + 0x10], 1
mov edx, 0x100
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 0x4c1c82
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 0x4c1d40
xor ebx, ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0xff
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
jne 0x4c1d17
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040ad69
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x22c]
and dword [ebp - 4], edi
push eax
call fcn.00423a76
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00413b5a
jmp 0x4c1d1f
cmp edi, 0x103
jne 0x4c1d26
inc ebx
test edi, edi
je 0x4c1cac
jmp 0x4c1d34
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.00429817
ret 0x10

Function at 0x4c2cff
Capabilities:
Get common file path

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6c2008]
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.0042a970
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 0x4c2d60
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00411bb5
jmp 0x4c2d74
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.004297f5
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x4c2cfd
Function at 0x4c3118
Capabilities:
Get file version info

Disassembly:
push 0xd4
mov eax, 0x6201b8
call fcn.00429868
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], ecx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], 7
mov dword [ebp - 0x14], esi
mov word [ebx], ax
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc4], 1
jb 0x4c3166
mov eax, dword [esi]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x4c32e8
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0xbd]
mov dword [ebp - 4], 1
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.00421885
cmp dword [esi + 0x14], 8
jb 0x4c31af
mov esi, dword [esi]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x24]
push esi
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4c32b6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x682610
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4c32b6
push 0x98
lea eax, [ebp - 0xbc]
push edi
push eax
call fcn.0042a970
add esp, 0xc
lea ecx, [ebp - 0xbc]
push 1
call fcn.00427379
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 2
movzx eax, word [eax + 0xa]
push eax
call fcn.0041d13e
mov edi, 0x684978
lea eax, [ebp - 0xbc]
push edi
push eax
call fcn.0041ef72
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xbc]
movzx eax, word [eax + 8]
push eax
call fcn.0041d13e
push edi
lea eax, [ebp - 0xbc]
push eax
call fcn.0041ef72
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xbc]
movzx eax, word [eax + 0xe]
push eax
call fcn.0041d13e
push edi
lea eax, [ebp - 0xbc]
push eax
call fcn.0041ef72
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xbc]
movzx eax, word [eax + 0xc]
push eax
call fcn.0041d13e
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0xb8]
call fcn.0045f291
lea eax, [ebp - 0xe0]
mov ecx, ebx
push eax
call fcn.004119c0
lea ecx, [ebp - 0xe0]
call fcn.00413b5a
lea ecx, [ebp - 0xbc]
call fcn.0042502e
test esi, esi
je 0x4c32e8
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x4c32df
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00413cba
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
push eax
push esi
call fcn.00429588
pop ecx
pop ecx
mov eax, ebx
call fcn.00429817
ret 8
Function at 0x4c37d5
Capabilities:
Query or enumerate registry value

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x6c2008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
shl eax, 8
push esi
add eax, 0x20019
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x4c380b
mov ecx, dword [ecx]
lea esi, [ebp - 0x830]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x82c], 0x820
test eax, eax
cmovle esi, eax
and dword [ebp - 0x828], 0
test esi, esi
js 0x4c38b3
cmp dword [edi + 0x14], 8
jb 0x4c3848
mov edi, dword [edi]
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x828]
push eax
push 0
push edi
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4c38a7
cmp dword [ebp - 0x828], 1
je 0x4c3897
cmp dword [ebp - 0x828], 2
je 0x4c3897
mov esi, 0x8007065d
jmp 0x4c38a7
lea eax, [ebp - 0x824]
mov ecx, ebx
push eax
xor esi, esi
call fcn.00411bb5
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004297f5
leave
ret 0x14
push ebp
mov ebp, esp
pop ebp
jmp 0x4c37d3

Function at 0x4c436c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6c2008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
push 0x208
push 0
push eax
mov dword [ebp - 0x214], esi
call fcn.0042a970
add esp, 0xc
mov dword [ebp - 0x210], 0x104
lea eax, [ebp - 0x210]
push 0
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push ebx
call fcn.004c4261
mov esi, eax
test esi, esi
js 0x4c43e5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c4428
push 1
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x214]
push ebx
call fcn.004c4261
mov esi, eax
test esi, esi
js 0x4c4440
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c4440
test edi, edi
je 0x4c4445
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x1c]
push edi
call fcn.0044fae2
mov esi, eax
jmp 0x4c4445
mov esi, 0x80070490
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004297f5
leave
ret 0x18