joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022ae
Capabilities:
Impersonate user

Disassembly:
push 0x64
mov eax, 0x4d21af
call fcn.0044dabe
mov esi, ecx
mov ecx, dword [0x4ff46c]
push str.Tuning_user...
call fcn.0040102f
cmp dword [esi + 0x14], 8
pop ecx
jb 0x4022d7
mov eax, dword [esi]
jmp 0x4022d9
mov eax, esi
lea ecx, [ebp - 0x50]
push ecx
push 0
push 5
push eax
push 0x4def40
mov ebx, 0x4def44
push ebx
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
jne 0x402334
lea eax, [ebp - 0x30]
push eax
call fcn.00420059
pop ecx
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x40230d
mov eax, dword [eax]
mov ecx, dword [0x4ff46c]
push eax
push str.LogonUser_failed._Last_error:__s
call fcn.0040102f
pop ecx
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00401198
xor al, al
call fcn.0044db41
ret
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x70], 0x20
mov dword [ebp - 0x68], ebx
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
jne 0x40239a
lea eax, [ebp - 0x30]
push eax
call fcn.00420059
pop ecx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
cmp dword [eax + 0x14], 8
jb 0x402371
mov eax, dword [eax]
mov ecx, dword [0x4ff46c]
push eax
push str.LoadUserProfile_failed._Last_error:__s
call fcn.0040102f
pop ecx
pop ecx
push esi
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00401198
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40232c
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x4023d7
lea eax, [ebp - 0x30]
push eax
call fcn.00420059
pop ecx
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x4023c0
mov eax, dword [eax]
push eax
push str.ImpersonateLoggedOnUser_failed._Last_error:__s
mov ecx, dword [0x4ff46c]
call fcn.0040102f
pop ecx
pop ecx
push 1
jmp 0x402385
mov ecx, esi
call fcn.004021fa
test al, al
jne 0x4023f5
push str.Failed_to_reset_daemon_password
mov ecx, dword [0x4ff46c]
call fcn.0040102f
pop ecx
jmp 0x40238f
call fcn.00402059
test al, al
jne 0x402405
push str.Failed_to_create_special_folders
jmp 0x4023e7
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x402430
lea eax, [ebp - 0x30]
push eax
call fcn.00420059
pop ecx
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x402428
mov eax, dword [eax]
push eax
push str.RevertToSelf_failed:__s
jmp 0x4023c6
push dword [ebp - 0x54]
push dword [ebp - 0x50]
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
test eax, eax
jne 0x40248a
lea eax, [ebp - 0x4c]
push eax
call fcn.00420059
pop ecx
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x402459
mov eax, dword [eax]
mov ecx, dword [0x4ff46c]
push eax
push str.UnloadUserProfile_failed:__s
call fcn.0040102f
pop ecx
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x4c]
call fcn.00401198
xor bl, bl
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x40232e
mov bl, 1
jmp 0x40247a
Function at 0x40248e
Capabilities:
Create process on windows

Disassembly:
push 0xa0
mov eax, 0x4cb741
call fcn.0044dabe
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov esi, ecx
mov edi, edx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
mov dword [ebp - 4], ebx
cmp dword [esi + 0x10], ebx
je 0x40253f
cmp dword [esi + 0x14], 8
jb 0x4024d1
mov eax, dword [esi]
jmp 0x4024d3
mov eax, esi
cmp word [eax], 0x22
je 0x4024f0
mov edi, 0x4df148
push edi
call fcn.00447827
pop ecx
push edi
mov edi, eax
lea eax, [ebp - 0x30]
call fcn.0040594f
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x30]
call fcn.004058b2
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x14], 8
jb 0x402508
mov eax, dword [eax]
cmp word [eax], 0x22
je 0x402525
mov esi, 0x4df148
push esi
call fcn.00447827
pop ecx
mov edi, eax
push esi
lea eax, [ebp - 0x30]
call fcn.0040594f
mov esi, 0x4df14c
push esi
call fcn.00447827
pop ecx
mov edi, eax
push esi
lea eax, [ebp - 0x30]
call fcn.0040594f
mov edi, dword [ebp - 0x50]
push ebx
push dword [ebp - 0x34]
or eax, 0xffffffff
lea esi, [ebp - 0x30]
call fcn.004058b2
push 0x10
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00447b70
push 0x44
pop esi
push esi
lea eax, [ebp - 0xac]
push ebx
push eax
call fcn.00447b70
xor eax, eax
mov word [ebp - 0x7c], ax
add esp, 0x18
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xac], esi
inc eax
lea esi, [ebp - 0x48]
mov dword [ebp - 0x80], 1
mov dword [ebp - 0xa4], 0x4df150
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call fcn.00405642
cmp dword [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x30]
mov eax, ecx
jae 0x4025b5
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
mov edx, dword [ebp - 0x20]
lea eax, [eax + edx*2]
jae 0x4025c4
lea ecx, [ebp - 0x30]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push ecx
push dword [ebp - 0x48]
call fcn.00447440
add esp, 0xc
cmp dword [edi + 0x10], ebx
jne 0x4025e0
xor edi, edi
jmp 0x4025e8
cmp dword [edi + 0x14], 8
jb 0x4025e8
mov edi, dword [edi]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xac]
push eax
push edi
push ebx
push 0x30
xor edi, edi
inc edi
push edi
push ebx
push ebx
push dword [ebp - 0x48]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402627
lea esi, [ebp - 0x48]
call fcn.0041a6ce
push edi
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00401198
or eax, 0xffffffff
call fcn.0044db41
ret
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x5c], ebx
je 0x402637
push dword [ebp - 0x5c]
call esi
or ebx, 0xffffffff
push ebx
push dword [ebp - 0x60]
mov dword [ebp - 0x38], 0xff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40260b
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x402677
lea esi, [ebp - 0x48]
call fcn.0041a6ce
push edi
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00401198
mov eax, ebx
jmp 0x402621
push dword [ebp - 0x60]
call esi
mov ebx, dword [ebp - 0x38]
jmp 0x402660
Function at 0x402681
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esi, 0x4ff434
push esi
push dword [ebp + 8]
call edi
test eax, eax
je 0x402744
cmp dword [0x4ff438], 4
jne 0x402744
push esi
push 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, dword [0x4ff46c]
test eax, eax
jne 0x4026d2
push str.Service_failed_to_stop_
call fcn.0040102f
pop ecx
push 3
pop eax
jmp 0x402746
push ebx
push str.Stopping_service...
call fcn.0040102f
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp], 0x3e8
call ebx
mov dword [0x4ff438], 4
jmp 0x402714
cmp dword [0x4ff438], 3
jne 0x40271e
push 0x4dfa50
call fcn.00447aa4
mov dword [esp], 0x3e8
call ebx
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4026f8
push 0x4dfa54
call fcn.00447aa4
cmp dword [0x4ff438], 1
pop ecx
mov ecx, dword [0x4ff46c]
pop ebx
jne 0x4026c2
push 0x4dfa58
call fcn.0040102f
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x40274a
Capabilities:
Modify service
Query service status
Stop service

Disassembly:
push 0x84
mov eax, 0x4cebff
call fcn.0044dabe
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x90]
push eax
push 0x24
lea eax, [ebp - 0x50]
push eax
mov esi, ecx
push 0
push esi
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x4027bc
lea eax, [ebp - 0x2c]
push eax
call fcn.00420059
pop ecx
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x402796
mov eax, dword [eax]
mov ecx, dword [0x4ff46c]
push eax
push str.Failed_to_query_service_status:__s
call fcn.0040102f
pop ecx
pop ecx
push 1
lea esi, [ebp - 0x2c]
xor edi, edi
call fcn.00401198
xor al, al
jmp 0x402888
cmp dword [ebp - 0x4c], 1
je 0x40280a
cmp dword [ebp - 0x4c], 3
je 0x40280a
lea eax, [ebp - 0x88]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40280a
lea eax, [ebp - 0x2c]
push eax
call fcn.00420059
pop ecx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
cmp dword [eax + 0x14], 8
jb 0x4027f4
mov eax, dword [eax]
mov ecx, dword [0x4ff46c]
push eax
push str.Failed_to_stop_service:__s
call fcn.0040102f
pop ecx
pop ecx
push esi
jmp 0x4027ab
mov ecx, dword [0x4ff46c]
push str.Calling_ChangeServiceConfig...
call fcn.0040102f
cmp dword [edi + 0x14], 8
pop ecx
jb 0x402825
mov eax, dword [edi]
jmp 0x402827
mov eax, edi
push str.NVIDIA_Update_Service_Daemon
push eax
push str..UpdatusUser
push 0x4ff458
push 0
push 0
push dword [ebp - 0x8c]
push 1
push 2
pop edi
push edi
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x402886
lea eax, [ebp - 0x6c]
push eax
call fcn.00420059
pop ecx
mov dword [ebp - 4], edi
cmp dword [eax + 0x14], 8
jb 0x402869
mov eax, dword [eax]
mov ecx, dword [0x4ff46c]
push eax
push str.ChangeServiceConfig_of_the_service_failed:__s
call fcn.0040102f
pop ecx
pop ecx
push 1
lea esi, [ebp - 0x6c]
jmp 0x4027ae
mov al, 1
call fcn.0044db41
ret
Function at 0x40901e
Capabilities:
Get common file path

Disassembly:
push 0x22c
mov eax, 0x4cc35b
call fcn.0044dabe
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
xor esi, esi
lea eax, [ebp - 0x21a]
push esi
push eax
mov ebx, ecx
call fcn.00447b70
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, esi
jge 0x409079
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], esi
jb 0x409070
mov ebx, dword [ebx]
xor eax, eax
mov word [ebx], ax
xor al, al
jmp 0x4090ca
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00404c84
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x238]
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.00405528
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x238]
call fcn.00401198
mov esi, str.NVIDIAUpdatus_
push esi
call fcn.00447827
pop ecx
mov edi, eax
push esi
mov eax, ebx
call fcn.0040594f
mov al, 1
call fcn.0044db41
ret
Function at 0x4090d0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push 0x2b4
mov eax, 0x4cd69d
call fcn.0044dabe
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x2c0], eax
test edx, edx
je 0x409283
cmp dword [eax + 0x14], 8
jb 0x4090fd
mov ecx, dword [eax]
jmp 0x4090ff
mov ecx, eax
cmp word [ecx + edx*2 - 2], 0x5c
je 0x40914a
push eax
lea esi, [ebp - 0x48]
call fcn.00401874
and dword [ebp - 4], 0
mov esi, 0x4e0ca0
push esi
call fcn.00447827
pop ecx
mov edi, eax
push esi
lea eax, [ebp - 0x48]
call fcn.0040594f
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push eax
call fcn.004090d0
pop ecx
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00401198
jmp 0x409283
push 0x4e0ca4
lea ebx, [ebp - 0x48]
mov ecx, eax
call fcn.00404d08
cmp dword [eax + 0x14], 8
jb 0x409161
mov eax, dword [eax]
lea ecx, [ebp - 0x2b8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 1
xor edi, edi
lea esi, [ebp - 0x48]
mov dword [ebp - 0x2bc], eax
call fcn.00401198
cmp dword [ebp - 0x2bc], 0xffffffff
je 0x409283
lea eax, [ebp - 0x28c]
push 0x4def40
push eax
call fcn.00448a0a
pop ecx
pop ecx
test eax, eax
je 0x40925c
lea eax, [ebp - 0x28c]
push 0x4e0ca8
push eax
call fcn.00448a0a
pop ecx
pop ecx
test eax, eax
je 0x40925c
mov ecx, dword [ebp - 0x2c0]
lea eax, [ebp - 0x28c]
push eax
lea ebx, [ebp - 0x2c]
call fcn.00404d08
mov dword [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4091eb
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40924c
test bl, 1
je 0x409217
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40920a
lea eax, [ebp - 0x2c]
mov ecx, ebx
and ecx, 0xfffffffe
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp + 0xc], 0
je 0x40924c
test bl, 0x10
je 0x40924c
push 0x4e0ca0
lea ebx, [ebp - 0x64]
lea ecx, [ebp - 0x2c]
call fcn.00404d08
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
push eax
call fcn.004090d0
pop ecx
pop ecx
push 1
xor edi, edi
mov esi, ebx
call fcn.00401198
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00401198
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40918e
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.0044db41
ret
Function at 0x409679
Capabilities:
Delete file

Disassembly:
push 0x48
mov eax, 0x4ccbc4
call fcn.0044daf4
mov ebx, ecx
cmp dword [ebx + 0x10], 0
je 0x409708
push ebx
lea esi, [ebp - 0x4c]
call fcn.00401874
and dword [ebp - 4], 0
push ebx
lea esi, [ebp - 0x30]
call fcn.00401874
mov esi, str..bak
push esi
mov byte [ebp - 4], 1
call fcn.00447827
pop ecx
mov edi, eax
push esi
lea eax, [ebp - 0x30]
call fcn.0040594f
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x4096ca
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x30]
jae 0x4096dd
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x4096e9
lea eax, [ebp - 0x4c]
push ecx
push eax
call fcn.0044bfb4
pop ecx
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00401198
push 1
lea esi, [ebp - 0x4c]
call fcn.00401198
mov esi, dword [0x4ff4b0]
push dword [esi]
mov dword [ebp - 0x50], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4ff4a4]
mov edx, dword [0x4ff4a0]
cmp edx, eax
je 0x40974a
mov esi, eax
sub esi, eax
sar esi, 2
shl esi, 2
push esi
push eax
push edx
mov edi, edx
call fcn.00447440
add esp, 0xc
add esi, edi
mov dword [0x4ff4a4], esi
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
push dword [esi]
mov dword [0x4ff450], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 8
mov dword [ebp - 4], 2
call fcn.00447c3b
mov edi, eax
pop ecx
mov dword [ebp - 0x50], edi
test edi, edi
je 0x409795
mov byte [ebp - 4], 4
and dword [edi + 4], 0
mov dword [edi], vtable.GFE::FileTraceHandler.0
cmp dword [ebx + 0x14], 8
jb 0x40978a
mov esi, dword [ebx]
jmp 0x40978c
mov esi, ebx
mov ecx, edi
call fcn.004219fc
jmp 0x409797
xor edi, edi
push edi
mov byte [ebp - 4], 2
call fcn.004217ba
or dword [ebp - 4], 0xffffffff
pop ecx
push str.START_UPDT
xor ecx, ecx
call fcn.0042181f
pop ecx
call fcn.0044db50
ret
Function at 0x40a398
Capabilities:
Encrypt data using dpapi
Write file on windows

Disassembly:
push 0x48
mov eax, 0x4cc32b
call fcn.0044dabe
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
mov edi, ecx
jb 0x40a3b1
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041d0ed
pop ecx
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40a3ce
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x3c]
push eax
push 1
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x40a403
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401154
xor al, al
call fcn.0044db41
ret
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.0040a963
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x4c]
call fcn.004487c4
add esp, 0x10
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x34], ebx
jb 0x40a436
mov edi, dword [edi]
push 0x4de2f8
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.00446eb1
add esp, 0xc
test eax, eax
je 0x40a45f
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea esi, [ebp - 0x4c]
call fcn.0041a6ce
jmp 0x40a3f0
push dword [ebp - 0x34]
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x3c]
push 4
push eax
call fcn.00448990
add esp, 0x10
cmp eax, edi
je 0x40a490
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea esi, [ebp - 0x4c]
call fcn.0041a6ce
push ebx
push edi
jmp 0x40a3f3
push dword [ebp - 0x34]
push edi
push dword [ebp - 0x3c]
push dword [ebp - 0x4c]
call fcn.00448990
add esp, 0x10
cmp eax, edi
je 0x40a4cc
mov byte [ebp - 0x2d], bl
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea esi, [ebp - 0x4c]
call fcn.0041a6ce
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401154
mov al, byte [ebp - 0x2d]
jmp 0x40a3fd
push dword [ebp - 0x34]
call fcn.00446d80
pop ecx
push dword [ebp - 0x34]
call fcn.0044707c
pop ecx
mov byte [ebp - 0x2d], 1
jmp 0x40a4a9
Function at 0x40a4e4
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x50
mov eax, 0x4cc2fe
call fcn.0044dabe
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax + 0x14], 8
mov edi, ecx
mov dword [ebp - 0x4c], esi
jb 0x40a502
mov eax, dword [eax]
push 0x4e149c
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00446eb1
add esp, 0xc
test eax, eax
je 0x40a51f
xor al, al
jmp 0x40a5e9
push dword [ebp - 0x4c]
xor ebx, ebx
inc ebx
push ebx
push 4
lea eax, [ebp - 0x54]
push 4
push eax
call fcn.00448586
add esp, 0x14
cmp eax, ebx
jne 0x40a518
mov eax, dword [ebp - 0x54]
inc eax
push eax
call fcn.004465eb
pop ecx
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x54]
push ebx
push eax
inc eax
push eax
push dword [ebp - 0x50]
call fcn.00448586
add esp, 0x14
cmp eax, ebx
je 0x40a56c
push dword [ebp - 0x50]
call fcn.00447e93
pop ecx
jmp 0x40a518
push dword [ebp - 0x4c]
call fcn.0044707c
pop ecx
lea eax, [ebp - 0x5c]
push eax
push ebx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x40a561
push dword [ebp - 0x58]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040a72e
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40a5a7
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0041d00d
pop ecx
pop ecx
push 0xffffffffffffffff
push esi
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.00405528
push ebx
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00401198
push dword [ebp - 0x50]
call fcn.00447e93
pop ecx
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00401154
mov al, bl
call fcn.0044db41
ret
Function at 0x40bf9e
Capabilities:
Initialize winsock library

Disassembly:
push 0
mov eax, 0x4d1658
call fcn.0044da55
mov esi, dword [ebp + 8]
lea ebx, [esi + 8]
mov dword [esi], vtable.updtDaemonManager.0
call fcn.00422313
xor ebx, ebx
push 0x190
lea edi, [esi + 0x100]
push ebx
push edi
mov dword [ebp - 4], ebx
call fcn.00447b70
add esp, 0xc
push edi
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb al, al
inc al
mov byte [edi + 0x190], al
lea eax, [esi + 0x298]
push eax
mov byte [ebp - 4], 1
call fcn.0040dedb
lea eax, [esi + 0x380]
push eax
mov byte [ebp - 4], 2
call fcn.0040d0de
mov dword [esi + 0x498], ebx
mov dword [esi + 0x49c], ebx
mov dword [esi + 0x4a0], ebx
mov dword [esi + 0x4a4], ebx
mov eax, esi
call fcn.0044db2d
ret 4

Function at 0x40c92e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
test eax, eax
jle 0x40c956
movzx edx, word [edi + ecx*2]
add dword [ebp - 4], edx
inc ecx
cmp ecx, eax
jl 0x40c94a
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
push 0x20
pop edi
xor eax, eax
push ebx
mov ebx, edx
and ebx, dword [ebp - 4]
shr dword [ebp - 4], cl
sub edi, ecx
xor eax, ebx
test edi, edi
jg 0x40c962
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, dword [esi + 0xc]
mov esi, dword [ecx + eax*4]
pop ebx
jmp 0x40c990
push dword [ebp + 8]
call fcn.0040cd95
pop ecx
test al, al
jne 0x40c99c
mov esi, dword [esi + 0x24]
test esi, esi
jne 0x40c980
xor eax, eax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40c996
Function at 0x41e4e3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x41e4eb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret

Function at 0x41e53b
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbe1f
mov eax, dword fs:[0]
push eax
mov eax, 0x202c
call fcn.0045f530
mov eax, dword [0x4fa654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 0x4e5848
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push 0x2000
lea eax, [ebp - 0x2018]
push 0
push eax
mov ebx, ecx
mov dword [ebp - 0x2038], 0x5c
movsw word es:[edi], word [esi]
call fcn.00447b70
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
push ebx
lea eax, [ebp - 0x2018]
push 0x1000
push eax
call fcn.0044bd5b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2018]
push eax
call fcn.0044c3b6
add esp, 0x18
mov esi, eax
push 0x4e1840
lea eax, [ebp - 0x2034]
push eax
call fcn.00404c84
and dword [ebp - 4], 0
xor ebx, ebx
inc ebx
jmp 0x41e68e
push esi
call fcn.00447827
pop ecx
mov edi, eax
push esi
lea eax, [ebp - 0x2034]
call fcn.0040594f
cmp dword [ebp - 0x2024], 0
jbe 0x41e65e
lea eax, [ebp - 0x2034]
call fcn.0041e4e3
test al, al
mov eax, dword [ebp - 0x2034]
je 0x41e642
cmp dword [ebp - 0x2020], 8
jae 0x41e629
lea eax, [ebp - 0x2034]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41e63c
shr eax, 4
and al, bl
jmp 0x41e63e
xor al, al
test al, al
jmp 0x41e65c
cmp dword [ebp - 0x2020], 8
jae 0x41e651
lea eax, [ebp - 0x2034]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41e6a8
lea eax, [ebp - 0x2038]
push eax
call fcn.00447827
pop ecx
lea ecx, [ebp - 0x2038]
mov edi, eax
push ecx
lea eax, [ebp - 0x2034]
call fcn.0040594f
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.0044c3b6
pop ecx
pop ecx
mov esi, eax
test esi, esi
jne 0x41e5e7
push ebx
xor edi, edi
lea esi, [ebp - 0x2034]
call fcn.00401198
mov al, bl
jmp 0x41e6b8
push ebx
xor edi, edi
lea esi, [ebp - 0x2034]
call fcn.00401198
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004466c5
leave
ret

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

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x41e6da
mov eax, dword [eax]
mov ecx, eax
jmp fcn.0041e53b
Function at 0x41f2bf
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4fa654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41f2dd
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
je 0x41f33c
mov ecx, dword [0x4e5b5c]
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x4e5b60]
push 0x100
mov dword [ebp - 8], ecx
add eax, 0x41
lea ecx, [ebp - 0x20c]
push ecx
mov word [ebp - 0xc], ax
xor eax, eax
lea ecx, [ebp - 0x210]
push ecx
push eax
push eax
push eax
push eax
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x41f33c
test byte [ebp - 0x210], 8
je 0x41f33c
mov al, 1
jmp 0x41f33e
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004466c5
leave
ret