joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474ed0
Capabilities:
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4b8744]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.004748f9
mov eax, dword [ebp + 8]
xor esi, esi
push 0xf0000000
inc esi
mov dword [edi + 0xc], eax
push esi
xor ebx, ebx
mov dword [edi], vtable.Decryptor_struct_Payload_.0
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push ebx
lea eax, [ebp - 0x30]
mov dword [edi + 4], ebx
push eax
mov byte [edi + 8], bl
mov dword [edi + 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x475000
push 0x18
pop eax
push eax
mov ecx, edi
mov dword [ebp - 0x28], 0x208
mov dword [ebp - 0x24], 0x6603
mov dword [ebp - 0x20], eax
call fcn.0041ce9a
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0047b870
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
push 0x24
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x474ff6
push ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push eax
push 4
push dword [ebp - 0x2c]
call esi
test eax, eax
je 0x474fed
push ebx
mov ecx, edi
call fcn.00412ce8
push eax
push 1
push dword [ebp - 0x2c]
call esi
test eax, eax
je 0x474fed
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffe0
pop ecx
sub ecx, eax
test eax, eax
cmovns ecx, eax
add ecx, 3
and ecx, 0xfffffffc
push ecx
mov dword [edi + 0x10], ecx
call fcn.0047ac3c
pop ecx
push dword [edi + 0x10]
mov esi, eax
mov ecx, edi
mov dword [edi + 4], esi
call fcn.0041cea1
push eax
push esi
call fcn.0047b870
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push dword [edi + 4]
push ebx
push 1
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
setne al
mov byte [edi + 8], al
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b6bc
mov esp, ebp
pop ebp
ret 8
Function at 0x47502f
Capabilities:
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4b8744]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.00475174
mov eax, dword [ebp + 8]
xor esi, esi
push 0xf0000000
inc esi
mov dword [edi + 0xc], eax
push esi
xor ebx, ebx
mov dword [edi], vtable.Decryptor_struct__bool___cdecl_ProcessPayload_struct_Payload_const___struct_HWND_____enum_PROCESSING_TYPE_::_30::JsonPayload_.0
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push ebx
lea eax, [ebp - 0x30]
mov dword [edi + 4], ebx
push eax
mov byte [edi + 8], bl
mov dword [edi + 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x47515f
push 0x18
pop eax
push eax
mov ecx, edi
mov dword [ebp - 0x28], 0x208
mov dword [ebp - 0x24], 0x6603
mov dword [ebp - 0x20], eax
call fcn.0041ce9a
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0047b870
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
push 0x24
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x475155
push ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push eax
push 4
push dword [ebp - 0x2c]
call esi
test eax, eax
je 0x47514c
push ebx
mov ecx, edi
call fcn.00412ce8
push eax
push 1
push dword [ebp - 0x2c]
call esi
test eax, eax
je 0x47514c
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffe0
pop ecx
sub ecx, eax
test eax, eax
cmovns ecx, eax
add ecx, 3
and ecx, 0xfffffffc
push ecx
mov dword [edi + 0x10], ecx
call fcn.0047ac3c
pop ecx
push dword [edi + 0x10]
mov esi, eax
mov ecx, edi
mov dword [edi + 4], esi
call fcn.0041cea1
push eax
push esi
call fcn.0047b870
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push dword [edi + 4]
push ebx
push 1
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
setne al
mov byte [edi + 8], al
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b6bc
mov esp, ebp
pop ebp
ret 8
Function at 0x475247
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4b8744]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push 0x3bc
push ebx
lea eax, [esi + 8]
mov dword [0x4be244], esi
push eax
call fcn.0047b750
push 0x110
xor edi, edi
mov dword [esi + 0x3d0], ebx
inc edi
mov dword [esi + 0x408], ebx
lea eax, [ebp - 0x114]
mov dword [esi + 0x3d4], edi
push ebx
push eax
mov dword [esi + 0x3d8], edi
mov dword [esi + 0x40c], edi
mov dword [esi + 0x3dc], ebx
mov dword [esi + 0x3f0], ebx
mov dword [esi + 0x404], ebx
mov dword [esi + 0x3cc], ebx
mov dword [esi + 0x410], ebx
mov dword [ebp - 0x118], 0x114
call fcn.0047b750
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x4752f3
cmp dword [ebp - 0x114], 5
jae 0x4752f5
mov edi, ebx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x3e0], edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0047b6bc
mov esp, ebp
pop ebp
ret

Function at 0x475ac8
Capabilities:
Get file version info

Disassembly:
push 0x18
mov eax, 0x49ae0c
call fcn.00481e05
mov ebx, edx
mov esi, ecx
and dword [ebp - 0x1c], 0
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x475b9b
push edi
call fcn.0047ac3c
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.004769c2
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004052b2
push eax
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
push edi
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x475b8f
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push 0x4aecfc
push dword [ebp - 0x10]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x475b8f
lea ecx, [ebp - 0x10]
call fcn.00404b1b
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x10]
push 0x4ae940
push eax
call fcn.0040a607
add esp, 0x18
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0040a6ef
lea ecx, [ebp - 0x10]
call fcn.00404b2f
lea ecx, [ebp - 0x24]
call fcn.004052ad
jmp 0x475ba7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004052ad
push 0x4a3234
mov ecx, esi
call fcn.0040b282
mov eax, esi
call fcn.00481dd3
ret
Function at 0x476261
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push 0x234
mov eax, 0x49aef0
call fcn.00481e38
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x234], ebx
call fcn.0040e3d4
lea eax, [ebp - 0x228]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x234], 1
push eax
mov dword [ebp - 0x228], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x47640f
lea eax, [ebp - 0x230]
mov dword [ebp - 0x21c], ebx
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], ebx
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x47640f
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
jne 0x47640f
push dword [ebp - 0x21c]
call fcn.0047ac3c
mov ebx, eax
xor ecx, ecx
mov eax, dword [ebp - 0x220]
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047ac3c
pop ecx
pop ecx
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x22c], eax
push ecx
lea ecx, [ebp - 0x220]
push ecx
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x4763fc
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_GetWindowsAccountDomainSid]
test eax, eax
jne 0x4763fc
call edi
cmp eax, 0x7a
jne 0x4763fc
push dword [ebp - 0x21c]
call fcn.0047ac3c
pop ecx
mov edi, eax
lea eax, [ebp - 0x21c]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_GetWindowsAccountDomainSid]
test eax, eax
je 0x4763f5
lea eax, [ebp - 0x224]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
push dword [ebp - 0x224]
lea ecx, [ebp - 0x23c]
call fcn.0040de39
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.0040e369
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.0040e39e
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call fcn.0047de81
pop ecx
push dword [ebp - 0x22c]
call fcn.0047de81
push ebx
call fcn.0047de81
pop ecx
pop ecx
mov eax, esi
call fcn.00481de7
ret
Function at 0x4764b6
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x44
mov eax, 0x49af49
call fcn.00481e38
mov ebx, edx
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
push 0x4a3288
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], edi
call fcn.00476428
push ecx
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x48], 1
call fcn.0041d400
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 1
call fcn.0040e359
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], eax
call fcn.00404b49
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x44]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x47657e
lea eax, [ebp - 0x38]
push eax
push 0x209
push 0
lea ecx, [ebp - 0x40]
call fcn.00404b49
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x476578
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
call fcn.004764b6
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0047647f
test al, al
je 0x476563
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00476611
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0041c433
mov eax, dword [ebp - 0x4c]
inc edi
jmp 0x47650b
xor ecx, ecx
lea eax, [ebp - 0x30]
push eax
push ecx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], ecx
push eax
push ecx
push str.version
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x476601
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.0047ac3c
cmp dword [ebp - 0x34], 1
mov edi, eax
pop ecx
jne 0x4765fa
lea eax, [ebp - 0x30]
push eax
push edi
lea eax, [ebp - 0x34]
push eax
push 0
push str.version
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4765fa
push edi
lea ecx, [ebp - 0x2c]
call fcn.00476428
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.0047647f
test al, al
je 0x4765f2
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00476611
lea ecx, [ebp - 0x2c]
call fcn.0041c433
push edi
call fcn.0047de81
pop ecx
lea ecx, [ebp - 0x40]
call fcn.0040e39e
mov eax, esi
call fcn.00481de7
ret
Function at 0x4948e4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b8744]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00483e9f
mov dword [ebp - 0x14], eax
cmp dword [0x4bdefc], esi
jne 0x4949d7
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x494964
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x494ab7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x494ab7
push 0x4a2b70
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x494ab7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4bdefc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4bdf00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4bdf04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4bdf0c], eax
test eax, eax
je 0x4949d4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4bdf08], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4949fc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4949ef
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x494a11
push 4
pop eax
jmp 0x494ab9
cmp dword [ebp - 0x14], esi
je 0x494a11
push dword [0x4bdefc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4949f6
mov eax, dword [0x4bdf08]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x494a6f
cmp dword [0x4bdf0c], edi
je 0x494a6f
push eax
call ebx
push dword [0x4bdf0c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x494a6f
test eax, eax
je 0x494a6f
call ecx
test eax, eax
je 0x494a64
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x494a64
test byte [ebp - 8], 1
jne 0x494a6f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x494a9f
mov eax, dword [0x4bdf00]
cmp eax, edi
je 0x494a9c
push eax
call ebx
test eax, eax
je 0x494a9c
call eax
mov esi, eax
test esi, esi
je 0x494a9c
mov eax, dword [0x4bdf04]
cmp eax, edi
je 0x494a9c
push eax
call ebx
test eax, eax
je 0x494a9c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4bdefc]
call ebx
test eax, eax
je 0x494ab7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x494ab9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b6bc
mov esp, ebp
pop ebp
ret
Function at 0x5e0370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x5e038e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x609074
push ecx
mov edi, eax
call fcn.005f4198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5e03cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.005f402e
push esi
call fcn.005f3fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x5e3850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x5e38ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x60e720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5e38ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.005f41e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x5e38ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x60e720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5e392a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.005f5082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x5e3957
mov word [eax], si
add eax, 2
push eax
call fcn.005f5030
add esp, 4
jmp 0x5e3959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x5e38ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5e38b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x5e3ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x5e4080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5e40c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x609458
push ecx
call fcn.005f41e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005f41e1
add esp, 0x10
jmp 0x5e40d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.005f420b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.005f3dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.005e4050
mov eax, dword [0x60e728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x5e413b
push esi
call fcn.005e3fb0
add esp, 4
mov dword [0x60e728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x5e414c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.005e3ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x5e7440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5e74b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x5e748e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5e7471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5e747e
add edx, ecx
cmp ebx, edx
jb 0x5e748a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5e7467
xor ecx, ecx
jmp 0x5e74a2
test eax, eax
jne 0x5e7492
xor ecx, ecx
jmp 0x5e74a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.005e73c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5e78f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5e7921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x5e7946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x5e796e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x5e7993
push ecx
push esi
call fcn.005e74c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x5e8c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x5e8c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x5e8c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x5e8c38
add edx, eax
cmp ebx, edx
jb 0x5e8c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x5e8c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x5e8c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x5e8c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x5e8cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5e8c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5e8ca8
add edx, ecx
cmp ebx, edx
jb 0x5e8cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5e8c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x5e8f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.005f5145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5e8ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x5e8fdd
lea eax, [esp + 0x18]
push eax
jmp 0x5e8fe2
push 0x60e720
call fcn.005f4fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x5e8fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x5e8f40
push 4
push ecx
push eax
call fcn.005f543f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret