joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453710
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x65c428]
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 0x45374b
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472636
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 0x453922
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 2
je 0x453791
cmp esi, 1
jne 0x453830
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x453830
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 0x453830
mov esi, dword [ebp - 0x424]
sub esi, 1
js 0x45382d
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 0x45381d
test ebx, ebx
je 0x453810
cmp dword [edi + eax + 0x14], 0
jne 0x45381d
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 0x45381d
push esi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
sub edi, 0x20
sub esi, 1
jns 0x4537e0
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.00537020
add esp, 0xc
mov dword [ebp - 0x434], 0x104
test edi, edi
je 0x4538a5
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 0x453914
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 0x453914
push eax
call esi
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x453921
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.00472636
mov esp, ebp
pop ebp
ret 0x14
Function at 0x454950
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e01a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x65c428]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.00407970
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.00454220
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x4549c3
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 0x4549e2
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 0x45be90
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e08c3
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x65c428]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x45bf35
cmp word [esi], di
je 0x45bf35
test eax, eax
je 0x45bef1
cmp word [eax], di
je 0x45bef1
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x45bf35
jmp 0x45bf30
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00537020
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x45bf35
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x45bf9b
lea esi, [ebx + 0x38]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x428], esi
test esi, esi
je 0x45bf5b
mov eax, dword [esi]
push esi
call dword [eax]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x45bfbb
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
mov byte [ebp - 4], 2
test esi, esi
je 0x45bf83
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x45bf9b
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472636
mov esp, ebp
pop ebp
ret 0x30
call fcn.00459326
int3
Function at 0x45ffd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x65c428]
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.00416880
mov edi, dword [ebp - 0xc]
test eax, eax
js 0x460063
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x460023
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 0x460041
call fcn.00416620
mov esi, eax
test esi, esi
js 0x46005c
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x46005a
call fcn.00416620
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x460065
xor esi, esi
not esi
shr esi, 0x1f
jmp 0x460065
xor esi, esi
test edi, edi
je 0x460070
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.00472636
mov esp, ebp
pop ebp
ret
Function at 0x4632d0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e14b6
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x65c428]
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 0x4633bd
test edi, edi
je 0x4633e9
mov edx, dword [ebp + 0x10]
test edx, 0xf
jne 0x463415
lea eax, [edx - 0x10]
cmp dword [ebp + 0xc], eax
jbe 0x463441
cmp byte [ecx + 0x10], 0
je 0x46346d
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 0x463499
jmp 0x463395
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.00472636
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.00461f40
push 0x64532c
lea eax, [ebp - 0xc0]
push eax
call fcn.00537d16
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.00461f40
push 0x64532c
lea eax, [ebp - 0xcc]
push eax
call fcn.00537d16
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.00461f40
push 0x64532c
lea eax, [ebp - 0xd8]
push eax
call fcn.00537d16
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xe4]
call fcn.00461f40
push 0x64532c
lea eax, [ebp - 0xe4]
push eax
call fcn.00537d16
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xf0]
call fcn.00461f40
push 0x64532c
lea eax, [ebp - 0xf0]
push eax
call fcn.00537d16
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.00465760
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.00461be0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Decrypt_1_:_CryptDecrypt_failed__
push eax
call fcn.00461600
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.00463ee0
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00461600
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.00461600
add esp, 8
mov ecx, eax
push 0x466210
call fcn.00462c30
mov edi, eax
call esi
push eax
mov ecx, edi
call fcn.00462970
push 0x6053b4
push eax
call fcn.00461600
add esp, 8
mov dword [ebx], 0
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00466990
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00411020
push eax
lea ecx, [ebp - 0xfc]
call fcn.00461f40
push 0x64532c
lea eax, [ebp - 0xfc]
push eax
call fcn.00537d16
push 0
push 0
call fcn.00537d16
int3
Function at 0x4638f0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1536
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x65c428]
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 0x4639d9
test esi, esi
je 0x463a05
mov ebx, dword [ebp + 0x10]
mov eax, ebx
and eax, 0xfffffff0
add eax, 0x10
cmp dword [ebp + 0xc], eax
jb 0x463a31
cmp byte [ecx + 0x10], 0
je 0x463a5d
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 0x463a89
jmp 0x4639b1
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.00472636
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.00461f40
push 0x64532c
lea eax, [ebp - 0xc0]
push eax
call fcn.00537d16
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.00461f40
push 0x64532c
lea eax, [ebp - 0xcc]
push eax
call fcn.00537d16
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xd8]
call fcn.00461f40
push 0x64532c
lea eax, [ebp - 0xd8]
push eax
call fcn.00537d16
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xe4]
call fcn.00461f40
push 0x64532c
lea eax, [ebp - 0xe4]
push eax
call fcn.00537d16
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.00465760
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.00461be0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Encrypt_1_:_CryptEncrypt_failed__
push eax
call fcn.00461600
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.00463ee0
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00461600
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.00461600
add esp, 8
mov ecx, eax
push 0x466210
call fcn.00462c30
mov ebx, eax
call esi
push eax
mov ecx, ebx
call fcn.00462970
push 0x6053b4
push eax
call fcn.00461600
add esp, 8
mov dword [edi], 0
lea eax, [ebp - 0x108]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00466990
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00411020
push eax
lea ecx, [ebp - 0xf0]
call fcn.00461f40
push 0x64532c
lea eax, [ebp - 0xf0]
push eax
call fcn.00537d16
push 0
push 0
call fcn.00537d16
int3
Function at 0x4642f0
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e15d8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x65c428]
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 0x46434a
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 0x464479
test ecx, ecx
je 0x464494
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
je 0x464379
cmp esi, 0x18
je 0x464379
cmp esi, 0x20
jne 0x4644af
push 0x2c
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00537020
add esp, 0xc
mov dword [ebp - 0x44], 0x208
mov byte [ebp - 4], 1
cmp esi, 0x10
je 0x4643c0
cmp esi, 0x18
je 0x4643b2
cmp esi, 0x20
jne 0x4644ca
mov dword [ebp - 0x40], 0x6610
mov eax, esi
jmp 0x4643cc
mov dword [ebp - 0x40], 0x660f
mov eax, 0x18
jmp 0x4643cc
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.00466c90
add esp, 0x10
test eax, eax
jne 0x4644e5
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 0x464506
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 0x464527
jmp 0x464443
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 0x464450
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.00472636
mov esp, ebp
pop ebp
ret 8
push str.SetKey:_Provider_is_not_valid
lea ecx, [ebp - 0x58]
call fcn.00461f40
push 0x64532c
lea eax, [ebp - 0x58]
push eax
call fcn.00537d16
push str.SetKey:_Key_buffer_is_NULL
lea ecx, [ebp - 0x64]
call fcn.00461f40
push 0x64532c
lea eax, [ebp - 0x64]
push eax
call fcn.00537d16
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x70]
call fcn.00461f40
push 0x64532c
lea eax, [ebp - 0x70]
push eax
call fcn.00537d16
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x7c]
call fcn.00461f40
push 0x64532c
lea eax, [ebp - 0x7c]
push eax
call fcn.00537d16
push str.SetKey:_Unable_to_copy_key
lea ecx, [ebp - 0x88]
call fcn.00461f40
push 0x64532c
lea eax, [ebp - 0x88]
push eax
call fcn.00537d16
push str.SetKey:_Import_key_failed
lea ecx, [ebp - 0x94]
call fcn.00461f40
push 0x64532c
lea eax, [ebp - 0x94]
push eax
call fcn.00537d16
push str.SetKey:_Set_CBC_mode_failed
lea ecx, [ebp - 0xa0]
call fcn.00461f40
push 0x64532c
lea eax, [ebp - 0xa0]
push eax
call fcn.00537d16
push 0
push 0
call fcn.00537d16
int3
Function at 0x466240
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e17a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x65c428]
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.0043d1b0
mov edi, eax
add esp, 4
test edi, edi
je 0x4662e4
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.005bc15e
add esp, 4
mov dword [edi + 4], eax
jmp 0x4662e6
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.004618b0
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 0x466347
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x466347
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 0x46636a
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 0x46638d
cmp byte [ebp + 0xc], 0
je 0x466379
push esi
call fcn.005bc416
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 0x466399
mov esi, 0x604f94
jmp 0x4663a9
test cl, 2
mov esi, 0x604fac
mov eax, 0x604fc4
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004663d0
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.004620f0
push 0x6452e8
lea eax, [ebp - 0x30]
push eax
call fcn.00537d16
int3
Function at 0x4703d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4703f9
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 4], 0
movzx eax, word [ebp + 8]
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x47041a
xor esi, esi
jmp 0x47050d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x47050d
push dword [ebp + 8]
push edi
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 0x47044b
xor esi, esi
jmp 0x47050d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x470468
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
jmp 0x47050d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x470488
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
jmp 0x47050d
push esi
push dword [ebp + 8]
push eax
call fcn.00537180
add esp, 0xc
mov dword [ebp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0x10]
xor esi, esi
test eax, eax
je 0x4704b2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp + 0x10]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4704f9
mov edi, dword [ebp + 0x10]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4704f5
lea eax, [ebp + 8]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push edi
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 0x470500
xor esi, esi
jmp 0x470500
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x47050d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 4], esi
pop edi
test esi, esi
jne 0x47051d
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 0x470537
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebx + 4]
mov dword [ebx + 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 0x47055a
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebx + 0xc], eax
call fcn.00470250
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x474ee0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e20b2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x65c428]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x474f3c
mov dword [esi], 0x6068b4
mov dword [esi + 0x10], 0x6068bc
mov dword [esi + 0x68], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
push 0
lea edi, [esi + 0x18]
mov ecx, esi
push edi
call fcn.00474c60
lea edx, [esi + 0x10]
mov dword [ebp + 0xc], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
push 8
mov dword [ebp - 4], 4
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp + 0xc], edi
lea eax, [ecx - 0x68]
mov dword [ecx + esi - 4], eax
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0043d1b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x474fcc
push 1
mov byte [ebp - 4], 5
call fcn.005bc15e
add esp, 4
mov dword [ebx + 4], eax
jmp 0x474fce
xor ebx, ebx
lea eax, [edi + 4]
mov dword [edi + 0x34], ebx
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [edi + 0x10], ecx
mov dword [ecx], 0
mov ecx, ebx
mov eax, dword [edi + 0x20]
not ecx
and ecx, 1
shl ecx, 2
mov edx, ecx
mov dword [eax], 0
or edx, 2
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, ebx
and al, 2
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, ebx
mov dword [edi + 0x38], 0
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
mov dword [edi + 0x3c], eax
mov eax, esi
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