joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd68f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xd7d9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xd69002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00d6cdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xd69002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00d646e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00d6d20b
push 0x10
call fcn.00d6d1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xd68fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00d591c0
jmp 0xd68fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00d68b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xd68ff0
mov ecx, edi
call fcn.00d592c0
push edi
call fcn.00d6d1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xd69021
inc ebx
cmp ebx, 0x20
jb 0xd68f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xd6a250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd7e808
push 0xd6e288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xd6a329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xd6a329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00d6d1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xd6a329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xd6a329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xd6a32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00d6a351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xd6ad20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd6ad58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xd6ad60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd6ad94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xd6ad94
push eax
push esi
call fcn.00d6d20b
add esp, 8
pop esi
ret 0x10

Function at 0xd6ada0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd6ae22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xd6ae15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xd83320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d6cdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xd6adda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xd6ae30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd6aec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xd6aeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xd83320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d6cdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xd6aeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xd6ae6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xd6b000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xd6b131
push esi
call fcn.00d6e145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00d5d080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xd6b131
push 0
push ebp
call fcn.00d5d3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00d5d260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xd6b08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00d5d2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xd6b121
push 0xd83918
push edi
call fcn.00d6c3f0
push eax
push ebx
push esi
call fcn.00d6af60
push 0xd838f8
push edi
call fcn.00d6c3f0
push eax
push ebx
push esi
call fcn.00d6af60
push 0xd838d8
push edi
call fcn.00d6c3f0
push eax
push ebx
push esi
call fcn.00d6af60
push 0xd838c0
push edi
call fcn.00d6c3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00d6af60
push 0xd838a0
push edi
call fcn.00d6c3f0
push eax
push ebx
push esi
call fcn.00d6af60
push 0xd83888
push edi
call fcn.00d6c3f0
push eax
push ebx
push esi
call fcn.00d6af60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xd6c1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d6c140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d6c140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d6c140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d6c140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd6cbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd6cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd7e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd6cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd6cc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40182f
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push 0x334
push 0x40
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40191a
push ebx
push edi
mov eax, 0x4000000
lea edi, [esi + 4]
push 0x2a
mov dword [edi], eax
mov dword [esi + 8], eax
pop eax
mov word [esi + 0x24], ax
xor eax, eax
push ebp
push eax
push edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
call fcn.00401719
add esp, 0xc
test eax, eax
je 0x4018ff
lea ebx, [esi + 0x226]
push ebx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40190a
push ecx
mov ecx, ebx
call fcn.00401447
test eax, eax
js 0x40190a
push ebp
push edi
push 0x40168d
push 0x401669
push 0x40163d
push fcn.00401619
push 0x4015e8
push 0x4015b7
push fcn.0040155f
push 0x401554
push 0x401547
lea ebx, [esi + 0x328]
push fcn.00401544
push ebx
call dword [sym.imp.Cabinet.dll_FCICreate]
add esp, 0x34
mov dword [esi], eax
test eax, eax
jne 0x40190a
mov ecx, dword [ebx]
call fcn.004017c3
push eax
push ecx
push 0x4aa420
call fcn.00403fb4
add esp, 0xc
jmp 0x40190a
push str.ERROR_kull_m_cabinet_create___Failed_to_initialize_the_cabinet_information_structure._n
call fcn.00403fb4
pop ecx
cmp dword [esi], 0
pop edi
pop ebx
jne 0x40191a
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x401a0a
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov ebx, ebp
push edi
mov edi, edx
cmp esi, 0x8000
jne 0x401a8e
cmp dword [esp + 0x30], 4
jne 0x401b47
lea eax, [esp + 0x10]
push eax
push 0xffffff7c
call dword [sym.imp.cryptdll.dll_CDLocateCheckSum]
test eax, eax
js 0x401b47
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push ebp
call dword [eax + 0xc]
test eax, eax
js 0x401b47
mov eax, dword [esp + 0x10]
push edi
push dword [esp + 0x2c]
push dword [esp + 0x24]
call dword [eax + 0x10]
push dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
push dword [esp + 0x20]
call dword [eax + 0x14]
test eax, eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
setns bl
call dword [eax + 0x18]
jmp 0x401b47
push 0xf0000000
push 0x18
push ebp
push ebp
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x401b47
lea eax, [esp + 0x18]
push eax
push ebp
push ebp
push esi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x401b3c
push ebp
push dword [esp + 0x2c]
push edi
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x401b32
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [esp + 0x14]
push ebp
push eax
push ebp
push 2
push dword [esp + 0x28]
call edi
test eax, eax
je 0x401b32
push dword [esp + 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x401b32
push ebp
lea eax, [esp + 0x18]
push eax
push esi
push 2
push dword [esp + 0x28]
call edi
mov ecx, dword [esp + 0x30]
mov ebx, eax
cmp dword [esp + 0x14], ecx
cmovb ecx, dword [esp + 0x14]
push ecx
push esi
push dword [esp + 0x34]
call fcn.004793b0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x14
ret
Function at 0x401c5d
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x24
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x1c], 0x8004
push 0xf0000000
push 0x18
push ebp
push ebp
lea eax, [esp + 0x24]
mov dword [esp + 0x30], ebp
push eax
mov esi, edx
mov dword [esp + 0x38], ebp
mov edi, ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x401d89
push ecx
lea eax, [esp + 0x1c]
push eax
push ecx
push dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
push esi
call fcn.00401b51
add esp, 0x14
test eax, eax
je 0x401d7e
lea eax, [esp + 0xc]
push eax
push ebp
push dword [esp + 0x20]
push 0x8009
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x401d74
push ebp
lea eax, [esp + 0x20]
push eax
push 5
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x401d6a
push ebp
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x401d6a
push ebp
lea eax, [esp + 0x14]
push eax
push ebp
push 2
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x401d6a
push dword [esp + 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x401d6a
push ebp
lea eax, [esp + 0x14]
push eax
push esi
push 2
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0x14
pop ecx
cmp dword [esp + 0x10], ecx
mov edi, eax
cmovb ecx, dword [esp + 0x10]
push ecx
push esi
push dword [esp + 0x48]
call fcn.004793b0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebp
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x24
ret
Function at 0x401e24
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x18], str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
xor ebp, ebp
mov dword [esp + 0x14], esi
inc ebp
mov dword [esp + 0x20], esi
push edi
mov edi, edx
mov dword [esp + 0x20], ebp
mov ebx, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebp
call fcn.004087c4
mov dword [esp + 0x18], eax
test eax, eax
je 0x401ef9
push 8
push dword [esp + 0x24]
push dword [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x401edc
lea eax, [esp + 0x14]
push eax
push ebp
push esi
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x401ebe
push dword [esp + 0x44]
lea eax, [esp + 0x1c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.00401f03
pop ecx
pop ecx
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x401ed1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_crypto_DerAndKeyToPfx___CryptImportKey__0x_08x__n
call fcn.00403fb4
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
call fcn.00401bba
jmp 0x401eef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_crypto_DerAndKeyToPfx___CryptAcquireContext__0x_08x__n
call fcn.00403fb4
pop ecx
pop ecx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x40240f
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ecx
mov eax, dword [0x4d5e70]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
lea eax, [esp + 0x18]
push eax
push esi
push esi
push ecx
mov dword [edi], esi
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x4024ad
push esi
push ebp
push esi
push esi
push 1
push esi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x4024a3
push ebx
push dword [ebp]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [edi], ebx
test ebx, ebx
je 0x4024a2
push dword [esp + 0x18]
push dword [esp + 0x14]
push ebx
call fcn.004793b0
add esp, 0xc
lea eax, [esp + 0x18]
push dword [ebp]
push eax
push ebx
push esi
push 1
push esi
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov esi, eax
test esi, esi
jne 0x4024a2
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], eax
pop ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret
Function at 0x4024b4
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
mov dword [eax], ebp
lea eax, [esp + 0x18]
push eax
push esi
push esi
push ecx
mov dword [esp + 0x1c], edx
mov dword [edi], esi
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x40252e
push ebx
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [edi], ebx
test ebx, ebx
je 0x402523
push ebp
push dword [esp + 0x14]
push ebx
call fcn.004793b0
add esp, 0xc
push dword [esp + 0x20]
push ebx
push esi
push 1
push esi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov esi, eax
test esi, esi
jne 0x402523
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret

Function at 0x402bfb
Capabilities:
Encode data using base64 via winapi
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor esi, esi
mov eax, ecx
mov ebx, esi
mov dword [esp + 0x10], eax
mov ebp, edx
mov dword [esp + 0xc], esi
push edi
cmp dword [0x4d5e5c], ebx
je 0x402cac
lea eax, [esp + 0x10]
push eax
push esi
push 1
push dword [esp + 0x28]
push ebp
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x402cf6
mov eax, dword [esp + 0x10]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x402cf6
lea eax, [esp + 0x10]
push eax
push edi
push 1
push dword [esp + 0x28]
push ebp
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov ebx, eax
test ebx, ebx
je 0x402ca3
push dword [esp + 0x14]
push str._n_nBase64_of_file_:__s_n_n
call fcn.00403fb4
pop ecx
pop ecx
cmp dword [esp + 0x10], esi
jbe 0x402c98
movzx eax, word [edi + esi*2]
push eax
push 0x4aebe8
call fcn.00403fb4
inc esi
pop ecx
pop ecx
cmp esi, dword [esp + 0x10]
jb 0x402c80
push str._n
call fcn.00403fb4
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x402cf6
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x402cf6
cmp edi, 0xffffffff
je 0x402cf6
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402cef
cmp esi, dword [esp + 0x10]
jne 0x402cef
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret
Function at 0x402cff
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push esi
xor esi, esi
mov ebp, edx
cmp dword [0x4d5e60], esi
je 0x402d3c
push dword [esp + 0x18]
call fcn.00408a56
mov esi, eax
pop ecx
test esi, esi
jne 0x402dc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_file_readGeneric___kull_m_string_quick_base64_to_Binary__0x_08x__n
call fcn.00403fb4
pop ecx
pop ecx
jmp 0x402dc2
push edi
push esi
push dword [esp + 0x24]
push 3
push esi
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x402dc1
cmp edi, 0xffffffff
je 0x402dc1
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x402dba
cmp dword [esp + 0x14], esi
jne 0x402dba
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x20]
push eax
push 0x40
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp], eax
test eax, eax
je 0x402db9
push esi
lea ecx, [esp + 0x14]
push ecx
push dword [ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402db0
mov eax, dword [ebx]
cmp eax, dword [esp + 0x10]
jne 0x402db0
xor esi, esi
inc esi
jmp 0x402db9
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret