joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444de0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x444e0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x444e6e
movzx eax, ax
or eax, 0x80070000
pop edi
pop ebp
ret 0xc
push esi
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x10]
push 1
push 0xf01ff
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x444e5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x444e64
movzx esi, si
push edi
or esi, 0x80070000
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 0xc
push eax
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x445700
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x445717
mov eax, 0x8000ffff
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0
lea edi, [esi + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
test eax, eax
jne 0x445744
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x44573e
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x44585d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
mov byte [edi + 0x18], 1
call ebx
mov dword [esi + 0x40], eax
test eax, eax
jne 0x44577b
cmp byte [edi + 0x18], al
je 0x44576f
push edi
mov byte [edi + 0x18], al
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.0040faf0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x4457b4
call fcn.0040faf0
push 0x2710
mov ecx, esi
mov edi, eax
call fcn.00445890
test eax, eax
jns 0x44585a
test edi, edi
pop ebx
cmovns edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
mov ecx, esi
call fcn.00445330
mov dword [ebp - 4], eax
test eax, eax
jns 0x4457e4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.00445890
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov ebx, eax
test ebx, ebx
je 0x44578b
push 0
push 0
push ebx
mov ecx, esi
call fcn.00445330
mov edi, eax
test edi, edi
jns 0x445822
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.00445890
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x445ba0
push 0
push 0
call fcn.00518ed4
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x44578b
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x44585a
call fcn.0040faf0
mov edi, eax
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x445c80
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x61d4d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x214], 0x104
test edi, edi
je 0x445d44
lea eax, [ebp - 0x218]
mov dword [ebp - 0x210], 0
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x445d44
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x445d44
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x445d44
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x445d3d
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f038
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0045f038
mov esp, ebp
pop ebp
ret 4
Function at 0x446190
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x61d4d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x438], eax
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x428], edi
test eax, eax
jne 0x4461cb
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f038
mov esp, ebp
pop ebp
ret 0x14
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x42c]
push ecx
push ebx
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x42c], ebx
push ecx
push ebx
push ebx
push 4
push dword [ebp + 0xc]
mov dword [ebp - 0x418], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x4463a2
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 2
je 0x446211
cmp esi, 1
jne 0x4462b0
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x4462b0
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x424], ebx
push ecx
lea ecx, [ebp - 0x424]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclW]
test eax, eax
jne 0x4462b0
mov esi, dword [ebp - 0x424]
sub esi, 1
js 0x4462ad
mov ebx, dword [ebp - 0x428]
mov edi, esi
shl edi, 5
nop word [eax + eax]
mov eax, dword [ebp - 0x430]
cmp dword [edi + eax + 4], 3
jne 0x44629d
test ebx, ebx
je 0x446290
cmp dword [edi + eax + 0x14], 0
jne 0x44629d
add eax, 0xc
push ebx
add eax, edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetTrusteeNameW]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x44629d
push esi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
sub edi, 0x20
sub esi, 1
jns 0x446260
mov edi, dword [ebp - 0x428]
xor ebx, ebx
mov esi, dword [ebp + 0x10]
push 0x208
xorps xmm0, xmm0
mov dword [ebp - 0x41c], 0
lea eax, [ebp - 0x20c]
push 0
push eax
movups xmmword [ebp - 0x458], xmm0
movups xmmword [ebp - 0x448], xmm0
call fcn.004fba30
add esp, 0xc
mov dword [ebp - 0x434], 0x104
test edi, edi
je 0x446325
lea eax, [ebp - 0x430]
mov dword [ebp - 0x420], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
push 3
push esi
push dword [ebp + 0x18]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x418]
lea eax, [ebp - 0x458]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x446394
push 0
push dword [ebp - 0x41c]
push 0
push 0
push 4
push dword [ebp + 0xc]
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 0x41c]
inc ebx
test eax, eax
je 0x446394
push eax
call esi
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x4463a1
push eax
call esi
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
xor ecx, ebp
pop edi
call fcn.0045f038
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4473e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8ec8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x61d4d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.004076f0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea eax, [esi + 4]
mov ecx, esi
push eax
call fcn.00446cb0
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x447453
push dword [ebp - 0x14]
push esi
push 7
push str.PendingFileRenameOperations
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x447472
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44cae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x61d4d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push 0
push 0x80
push 2
push 1
push 0x40000000
push eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.0044b820
mov edi, dword [ebp - 0xc]
test eax, eax
js 0x44cb73
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x44cb33
mov esi, dword [esi]
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44cb51
call fcn.0040faf0
mov esi, eax
test esi, esi
js 0x44cb6c
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x44cb6a
call fcn.0040faf0
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x44cb75
xor esi, esi
not esi
shr esi, 0x1f
jmp 0x44cb75
xor esi, esi
test edi, edi
je 0x44cb80
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0045f038
mov esp, ebp
pop ebp
ret
Function at 0x450220
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9be6
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x61d4d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ecx + 8]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
test esi, esi
je 0x45030d
test edi, edi
je 0x450339
mov edx, dword [ebp + 0x10]
test edx, 0xf
jne 0x450365
lea eax, [edx - 0x10]
cmp dword [ebp + 0xc], eax
jbe 0x450391
cmp byte [ecx + 0x10], 0
je 0x4503bd
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edx
push eax
push edi
push 0
push 1
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, eax
test ecx, ecx
je 0x4503e9
jmp 0x4502e5
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045f038
mov esp, ebp
pop ebp
ret 0x10
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Key_is_not_valid
lea ecx, [ebp - 0xc0]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0xc0]
push eax
call fcn.004fbc2c
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0xcc]
push eax
call fcn.004fbc2c
push 0x80090005
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Data_size_is_not_a_multple_of_block_size
lea ecx, [ebp - 0xd8]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0xd8]
push eax
call fcn.004fbc2c
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xe4]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0xe4]
push eax
call fcn.004fbc2c
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xf0]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0xf0]
push eax
call fcn.004fbc2c
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.004526b0
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.0044e720
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Decrypt_1_:_CryptDecrypt_failed__
push eax
call fcn.0044e140
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.00450e30
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.0044e140
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.0044e140
add esp, 8
mov ecx, eax
push 0x4533c0
call fcn.0044fb00
mov edi, eax
call esi
push eax
mov ecx, edi
call fcn.0044f840
push 0x5c9bdc
push eax
call fcn.0044e140
add esp, 8
mov dword [ebx], 0
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00453ba0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00452850
push eax
lea ecx, [ebp - 0xfc]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0xfc]
push eax
call fcn.004fbc2c
push 0
push 0
call fcn.004fbc2c
int3
Function at 0x450840
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9c66
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x61d4d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ecx + 8]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
test edx, edx
je 0x450929
test esi, esi
je 0x450955
mov ebx, dword [ebp + 0x10]
mov eax, ebx
and eax, 0xfffffff0
add eax, 0x10
cmp dword [ebp + 0xc], eax
jb 0x450981
cmp byte [ecx + 0x10], 0
je 0x4509ad
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push esi
push 0
push 1
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, eax
test ecx, ecx
je 0x4509d9
jmp 0x450901
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045f038
mov esp, ebp
pop ebp
ret 0x10
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Key_is_not_valid
lea ecx, [ebp - 0xc0]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0xc0]
push eax
call fcn.004fbc2c
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0xcc]
push eax
call fcn.004fbc2c
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xd8]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0xd8]
push eax
call fcn.004fbc2c
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xe4]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0xe4]
push eax
call fcn.004fbc2c
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.004526b0
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.0044e720
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Encrypt_1_:_CryptEncrypt_failed__
push eax
call fcn.0044e140
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.00450e30
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.0044e140
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.0044e140
add esp, 8
mov ecx, eax
push 0x4533c0
call fcn.0044fb00
mov ebx, eax
call esi
push eax
mov ecx, ebx
call fcn.0044f840
push 0x5c9bdc
push eax
call fcn.0044e140
add esp, 8
mov dword [edi], 0
lea eax, [ebp - 0x108]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00453ba0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00452850
push eax
lea ecx, [ebp - 0xf0]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0xf0]
push eax
call fcn.004fbc2c
push 0
push 0
call fcn.004fbc2c
int3
Function at 0x451240
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9d08
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x61d4d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [edi + 8]
lea ebx, [edi + 8]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x45129a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x18]
mov dword [ebx], 0
mov byte [edi + 0x10], 0
cmp dword [edi + 4], 0
mov dword [ebp - 4], 0
je 0x4513c9
test ecx, ecx
je 0x4513e4
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
je 0x4512c9
cmp esi, 0x18
je 0x4512c9
cmp esi, 0x20
jne 0x4513ff
push 0x2c
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004fba30
add esp, 0xc
mov dword [ebp - 0x44], 0x208
mov byte [ebp - 4], 1
cmp esi, 0x10
je 0x451310
cmp esi, 0x18
je 0x451302
cmp esi, 0x20
jne 0x45141a
mov dword [ebp - 0x40], 0x6610
mov eax, esi
jmp 0x45131c
mov dword [ebp - 0x40], 0x660f
mov eax, 0x18
jmp 0x45131c
mov dword [ebp - 0x40], 0x660e
mov eax, 0x10
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00453ea0
add esp, 0x10
test eax, eax
jne 0x451435
push ebx
push 0
push 0
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x451456
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x451477
jmp 0x451393
mov al, 1
lea ecx, [ebp - 0x44]
mov edx, 4
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x4513a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045f038
mov esp, ebp
pop ebp
ret 8
push str.SetKey:_Provider_is_not_valid
lea ecx, [ebp - 0x58]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0x58]
push eax
call fcn.004fbc2c
push str.SetKey:_Key_buffer_is_NULL
lea ecx, [ebp - 0x64]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0x64]
push eax
call fcn.004fbc2c
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x70]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0x70]
push eax
call fcn.004fbc2c
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x7c]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0x7c]
push eax
call fcn.004fbc2c
push str.SetKey:_Unable_to_copy_key
lea ecx, [ebp - 0x88]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0x88]
push eax
call fcn.004fbc2c
push str.SetKey:_Import_key_failed
lea ecx, [ebp - 0x94]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0x94]
push eax
call fcn.004fbc2c
push str.SetKey:_Set_CBC_mode_failed
lea ecx, [ebp - 0xa0]
call fcn.0044eb90
push 0x608c5c
lea eax, [ebp - 0xa0]
push eax
call fcn.004fbc2c
push 0
push 0
call fcn.004fbc2c
int3
Function at 0x4533f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x61d4d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0042ffc0
mov edi, eax
add esp, 4
test edi, edi
je 0x453494
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00582562
add esp, 4
mov dword [edi + 4], eax
jmp 0x453496
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.0044e3f0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x4534f7
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4534f7
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x45351a
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x45353d
cmp byte [ebp + 0xc], 0
je 0x453529
push esi
call fcn.0058361d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x453549
mov esi, 0x5c97bc
jmp 0x453559
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00453580
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.0044ef60
push 0x608be0
lea eax, [ebp - 0x30]
push eax
call fcn.004fbc2c
int3
Function at 0x45d710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x45d73a
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 4], 0
push dword [ebp + 0x10]
movzx eax, word [ebp + 8]
mov ebx, dword [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x45d75a
xor esi, esi
jmp 0x45d850
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x45d850
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
jne 0x45d78b
xor esi, esi
jmp 0x45d850
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x45d7a8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
jmp 0x45d850
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x45d7c8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
jmp 0x45d850
push esi
push dword [ebp + 8]
push eax
call fcn.004fc120
add esp, 0xc
mov dword [ebp + 0x10], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0x10]
xor esi, esi
test eax, eax
je 0x45d7f2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp + 0x10]
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x45d83c
mov eax, dword [ebp + 0x10]
push 0x10
mov dword [ebp + 0xc], eax
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x45d83a
lea eax, [ebp + 8]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push dword [ebp + 0xc]
mov dword [ebp + 8], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
jmp 0x45d83c
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x45d850
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi + 4], esi
test esi, esi
jne 0x45d860
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x45d87a
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [edi + 4]
mov dword [edi + 8], eax
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], 0
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x45d89d
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov ecx, edi
mov dword [edi + 0xc], eax
call fcn.0045d590
pop edi
pop esi
pop ebx
pop ebp
ret 0xc