joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458810
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x4e84b8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
cmp dword [esp + 0x34], 0
je 0x458936
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x458936
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x8004
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x45889e
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
sub eax, 0x10
call fcn.00406260
add eax, 0x10
mov dword [esp + 0x14], eax
lea esi, [eax - 0x10]
mov dword [esp + 0x28], 0
mov edi, dword [eax - 0xc]
mov ecx, esi
cmp dword [ecx + 0xc], 1
jle 0x4588e0
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004063d0
mov eax, dword [esp + 0x14]
lea esi, [eax - 0x10]
mov ecx, esi
or edx, 0xffffffff
add dword [ecx + 0xc], edx
jne 0x4588eb
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0xc]
push 0
lea ecx, [edi + edi]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
mov eax, dword [esi + 0xc]
jne 0x45894a
test eax, eax
jns 0x458915
inc eax
mov dword [esi + 0xc], eax
jne 0x458915
mov dword [esi + 0xc], 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0x10]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [esp + 0x14]
call fcn.0045ef50
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
test eax, eax
jns 0x45895b
inc eax
mov dword [esi + 0xc], eax
jne 0x45895b
mov dword [esi + 0xc], 1
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push 4
push ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 4
call esi
test eax, eax
je 0x458915
mov edi, 0x14
cmp dword [esp + 0x18], edi
jne 0x458915
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xc]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push 2
push ecx
call esi
test eax, eax
je 0x4589e9
cmp dword [esp + 0x18], edi
jne 0x4589e9
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [esp + 0x14]
call fcn.0045ef50
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 0x10]
push 0
push edx
jmp 0x458927
Function at 0x45c910
Capabilities:
Check mutex on windows
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ea300
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push str.A946A6A9_917E_4949_B9BC_6BADA8C7FD63
xor ebp, ebp
push ebp
xor bl, bl
push ebp
mov byte [esp + 0x28], bl
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
push edi
mov dword [esp + 0x24], edi
call fcn.0045c080
add esp, 4
test al, al
je 0x45c976
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete bl
mov byte [esp + 0x1c], bl
mov dword [esp + 0x38], ebp
test bl, bl
je 0x45c9c2
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
push 0x2021f
lea eax, [esp + 0x28]
push eax
mov eax, str.SoftwareGoogleCommonRlz
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x40], 1
call fcn.00405df0
test eax, eax
je 0x45c9df
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x45c9bb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp esi, ebp
je 0x45c9fe
xor eax, eax
cmp word [esi], bp
je 0x45c9fe
lea ebx, [ebx]
cmp eax, 0x80
jae 0x45c9ac
inc eax
cmp word [esi + eax*2], bp
jne 0x45c9f0
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.0045c700
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
add esp, 8
mov esi, eax
cmp eax, ebp
je 0x45ca3e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push ebp
push 0x50bcf8
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebp
mov eax, dword [esp + 0x18]
je 0x45ca76
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ca5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebp
je 0x45ca65
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
jmp 0x45c9c3
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ca92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebp
je 0x45ca9d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x45d100
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
push str.A946A6A9_917E_4949_B9BC_6BADA8C7FD63
push ebx
push ebx
mov esi, eax
mov dword [esp + 0x1c], 0x81
mov byte [esp + 0x20], bl
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
push edi
mov dword [esp + 0x1c], edi
call fcn.0045c080
add esp, 4
test al, al
je 0x45d197
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete al
mov byte [esp + 0x14], al
cmp al, bl
je 0x45d197
cmp esi, ebx
je 0x45d190
xor eax, eax
lea ecx, [esp + 0x1c]
mov word [esi], ax
push ecx
mov edx, 0x20219
mov eax, str.SoftwareGoogleCommonRlz
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.00404dd0
test eax, eax
je 0x45d1a7
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x45d190
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x20
ret
push 0x50bcf8
lea edx, [esp + 0x20]
push edx
lea edi, [esp + 0x18]
call fcn.00414e80
test eax, eax
je 0x45d1de
xor eax, eax
mov word [esi], ax
lea esi, [esp + 0x1c]
call fcn.00405e70
lea esi, [esp + 0x14]
call fcn.0045c160
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x20
ret
lea esi, [esp + 0x1c]
call fcn.00405e70
lea esi, [esp + 0x14]
call fcn.0045c160
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x20
ret
Function at 0x45d3d0
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x4ebf76
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xbc]
test ebp, ebp
jne 0x45d41d
xor al, al
jmp 0x45d582
cmp byte [0x52ffbd], 0
je 0x45d439
mov eax, 0x530324
mov edi, ebp
call fcn.00403900
mov al, 1
jmp 0x45d582
mov eax, dword [0x52a1ec]
mov edx, dword [eax + 0xc]
mov ecx, 0x52a1ec
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0xb4], 0
xor eax, eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x88]
push edx
mov word [esp + 0x8c], ax
mov dword [esp + 0x8e], eax
mov dword [esp + 0x92], eax
mov dword [esp + 0x96], eax
mov dword [esp + 0x9a], eax
mov dword [esp + 0x9e], eax
mov dword [esp + 0xa2], eax
mov dword [esp + 0xa6], eax
mov word [esp + 0xaa], ax
mov dword [esp + 0x28], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x45d525
lea esi, [esp + 0x24]
call fcn.0045e9e0
mov eax, esi
push eax
lea ebx, [esp + 0x88]
mov byte [esp + 0xb8], 1
call fcn.0045e680
test al, al
je 0x45d514
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x45d514
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x18]
call fcn.0045ebf0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x24]
mov byte [esp + 0xb4], 0
call fcn.0045e930
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0
call fcn.0045d200
add esp, 4
test al, al
jne 0x45d542
xor ecx, ecx
jmp 0x45d546
mov ecx, dword [esp + 0x1c]
push ebp
lea edx, [esp + 0x1c]
call fcn.0045d5b0
mov bl, al
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45d580
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004c9392
add esp, 0xa4
ret
Function at 0x45e680
Capabilities:
Get user security identifier

Disassembly:
push 0xffffffffffffffff
push 0x4eaeab
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0xdc], eax
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x100]
lea esi, [ebp + 0x50]
lea edi, [ebp + 0x4c]
mov dword [edi], 7
mov dword [esp + 0x20], esi
call fcn.004062d0
lea esi, [ebp + 0x54]
mov dword [esp + 0x18], esi
call fcn.004062d0
lea esi, [ebp + 0x58]
call fcn.004062d0
lea esi, [ebp + 0x5c]
mov dword [esp + 0x1c], esi
call fcn.004062d0
xor eax, eax
mov byte [ebp + 0x48], 0
cmp ebx, eax
je 0x45e843
mov dword [esp + 0x24], eax
mov dword [esp + 0xf8], eax
lea eax, [esp + 0x24]
push eax
mov eax, 0x100
call fcn.0045e590
mov esi, dword [esp + 0x24]
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xb8]
push eax
push ebx
push 0
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x30], 0x80
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x45e7ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45e803
cmp dword [esp + 0x10], 0x44
jbe 0x45e773
push 0x80004005
call fcn.004065a0
mov eax, dword [esp + 0x14]
cmp eax, 0x80
jbe 0x45e78b
lea ecx, [esp + 0x24]
call fcn.0045e5e0
mov esi, dword [esp + 0x24]
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xb8]
push eax
push ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x45e803
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xa8]
push ecx
lea edx, [ebp + 4]
push edx
push eax
mov byte [ebp + 0x48], 1
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x45e803
mov edi, dword [esp + 0x18]
mov edx, esi
call fcn.0045ebf0
mov edi, dword [esp + 0x20]
mov edx, ebx
call fcn.0045ebf0
mov edi, dword [esp + 0x1c]
xor edx, edx
call fcn.0045ebf0
lea ecx, [esp + 0x28]
cmp dword [esp + 0x24], ecx
je 0x45e7ff
lea eax, [esp + 0x24]
call fcn.0045e5d0
mov al, 1
jmp 0x45e845
mov esi, dword [esp + 0x20]
mov dword [edi], 7
call fcn.004062d0
mov esi, dword [esp + 0x18]
call fcn.004062d0
lea esi, [ebp + 0x58]
call fcn.004062d0
mov esi, dword [esp + 0x1c]
call fcn.004062d0
lea edx, [esp + 0x28]
mov byte [ebp + 0x48], 0
cmp dword [esp + 0x24], edx
je 0x45e843
lea eax, [esp + 0x24]
call fcn.0045e5d0
xor al, al
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.004c9392
add esp, 0xec
ret 4

Function at 0x45ea50
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
mov dword [esp + 0x18], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45ea89
mov eax, dword [esp + 0xc]
sub eax, 0xb
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8
Function at 0x45ef70
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x45ef77
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.0045ef80
Function at 0x4752d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ebc41
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov eax, dword [esp + 0x84]
xor ebx, ebx
mov dword [esp + 0xc], ebx
push 0x14
push 0x50d480
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00404fd0
mov dword [esp + 0x7c], ebx
mov edx, dword [esi]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call edx
cmp dword [esp + 0x3c], 0x10
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov edi, dword [ecx + 0x48]
mov ecx, dword [esp + 0x28]
jae 0x47535a
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], ecx
push eax
lea eax, [esp + 0x1c]
mov ecx, edi
call fcn.0047a2c0
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [0x530408]
cmp ecx, edi
mov edi, dword [0x530404]
je 0x47538f
lea edx, [ecx + 0x10]
cmp edx, ebx
jne 0x475395
mov ecx, edi
mov edx, eax
jmp 0x47539a
mov ecx, dword [edx]
mov edx, dword [edx + 4]
cmp ecx, 2
je 0x4753a3
mov ecx, edi
jmp 0x4753a5
mov eax, edx
cmp ecx, ebx
je 0x4753b2
cmp byte [eax + 0x20], bl
jne 0x4753b2
mov edi, eax
jmp 0x4753b4
xor edi, edi
mov dword [esp + 0x7c], 0xffffffff
cmp dword [esp + 0x3c], 0x10
jb 0x4753d0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004c9387
add esp, 4
mov eax, 0xf
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp edi, ebx
jne 0x47542f
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], str.p:p_agentshpam2.eem_recipes499894881_base_branchesgoopy2_release_branchgoogleclient_third_partyprotobuf_files_srcgoogleprotobufdescriptor.cc
mov dword [esp + 0x4c], 0x1185
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov eax, 1
mov dword [esp + 0x7c], eax
mov dword [esp + 0xc], eax
push 0x1d
mov eax, str.CHECK_failed:_field___NULL:
lea ecx, [esp + 0x54]
call fcn.00408960
lea ecx, [esp + 0x44]
call fcn.0047ca30
mov dword [esp + 0x7c], 0xffffffff
test byte [esp + 0xc], 1
je 0x475462
cmp dword [esp + 0x64], 0x10
jb 0x475452
mov edx, dword [esp + 0x50]
push edx
call fcn.004c9387
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov eax, dword [esi]
mov edx, dword [eax + 0x44]
mov ecx, esi
call edx
mov edx, dword [eax]
push ebx
push edi
mov ecx, eax
mov eax, dword [edx + 0x100]
push esi
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x30]
push ecx
mov ecx, eax
call edx
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004c9392
add esp, 0x74
ret 4
Function at 0x489050
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4f23f8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x54]
xor ebx, ebx
mov dword [esp + 0xc], ecx
add ecx, eax
mov dword [esp + 8], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x20], bx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x4000000
mov dword [esp + 0x30], 0x2000000
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0x64
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call edx
test al, al
je 0x4890f7
mov ecx, esi
call fcn.00488f50
cmp al, bl
je 0x4890f7
cmp byte [esp + 0x20], bl
je 0x4890f7
mov bl, 1
lea ecx, [esp + 8]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00489fa0
mov al, bl
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x48
ret

Function at 0x489ca0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4f6198
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5c]
xor ebx, ebx
lea edi, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov word [esp + 0x28], bx
mov dword [esp + 0x2c], SysReAllocString
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x4000000
mov dword [esp + 0x38], 0x2000000
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0x64
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.0048ac90
mov dword [esp + 0x54], ebx
cmp dword [esi], ebx
je 0x489d32
mov ebx, esi
call fcn.00489490
xor ebx, ebx
push esi
lea ecx, [esp + 0x14]
call fcn.00489bc0
test al, al
je 0x489d48
cmp byte [esp + 0x28], bl
je 0x489d48
mov bl, 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], 0xffffffff
call fcn.00489fa0
mov al, bl
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x4c
ret 4
Function at 0x4bf510
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4efb8b
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x43c], eax
push ebx
push ebp
push esi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
xor esi, esi
cmp edi, esi
je 0x4bf6e4
cmp byte [edi], 0
je 0x4bf6e4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], esi
mov word [esp + 0x20], ax
mov eax, edi
mov dword [esp + 0x458], esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bf580
lea ecx, [esp + 0x20]
push ecx
sub eax, edx
mov ecx, edi
call fcn.004ba980
mov eax, dword [esp + 0x24]
mov ebx, 8
add esp, 4
cmp dword [esp + 0x34], ebx
jae 0x4bf5ab
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp eax, 0x10
jne 0x4bf5dc
mov dword [esp + 0x458], 0xffffffff
cmp dword [esp + 0x34], ebx
jb 0x4bf5d5
mov edx, dword [esp + 0x20]
push edx
call fcn.004c9387
add esp, 4
mov al, 1
jmp 0x4bf70f
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], ebx
jae 0x4bf5ea
lea eax, [esp + 0x20]
mov ebp, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
push eax
push esi
call ebp
mov esi, eax
cmp esi, 0xa1
jne 0x4bf687
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x24e]
push ecx
mov word [esp + 0x250], ax
call fcn.004cf830
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x46]
push eax
mov word [esp + 0x48], dx
call fcn.004cf830
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4bf68b
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], ebx
jae 0x4bf65f
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x24c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x4bf68b
push 0
lea ecx, [esp + 0x248]
push ecx
push 0
call ebp
mov esi, eax
test esi, esi
je 0x4bf6cc
push esi
push edi
push str.Can_not_create_directory:__s_return_code:__d
lea esi, [esp + 0x20]
mov dword [esp + 0x20], 2
mov dword [esp + 0x24], str.p:p_agentshpam2.eem_recipes499894881_base_branchesgoopy2_release_branchgoogleclientimegoopy_third_partygoogle_gadgets_for_linuxggadget_system_utils.cc
mov dword [esp + 0x28], 0xe4
call fcn.004b97d0
add esp, 0xc
lea esi, [esp + 0x20]
mov dword [esp + 0x458], 0xffffffff
call fcn.00438d50
jmp 0x4bf70d
lea esi, [esp + 0x20]
mov dword [esp + 0x458], 0xffffffff
call fcn.00438d50
mov al, 1
jmp 0x4bf70f
push str.Cant_create_empty_path.
lea esi, [esp + 0x18]
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], str.p:p_agentshpam2.eem_recipes499894881_base_branchesgoopy2_release_branchgoogleclientimegoopy_third_partygoogle_gadgets_for_linuxggadget_system_utils.cc
mov dword [esp + 0x20], 0xcf
call fcn.004b97d0
add esp, 4
xor al, al
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x43c]
xor ecx, esp
call fcn.004c9392
add esp, 0x44c
ret
Function at 0x4bfdd0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ea8a2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
xor eax, eax
mov edi, ecx
push 0x206
push eax
lea ecx, [esp + 0x1a]
mov dword [esp + 0x10], 0
push ecx
mov dword [esp + 0x18], edi
mov word [esp + 0x1c], ax
call fcn.004cf830
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov dword [esp + 0x224], 0
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
call fcn.004baa80
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004c9392
add esp, 0x220
ret