joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e4a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40e750]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40e388]
je 0x407e7f
inc eax
cmp eax, 0x13
jb 0x407e70
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e388]
jne 0x407fa5
mov eax, dword [0x40f434]
cmp eax, 1
je 0x407f7d
cmp eax, edx
jne 0x407eaf
cmp dword [0x40e0c4], 1
je 0x407f7d
cmp ecx, 0xfc
je 0x407fa5
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407ee5
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00409640
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00409950
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x407f19
mov eax, edi
push eax
call fcn.00409950
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c090
push edi
call fcn.00409790
add esp, 0x10
push edi
call fcn.00409950
push dword [esi + 0x40e38c]
mov ebx, eax
call fcn.00409950
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004062a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00409640
push edi
push ebx
call fcn.00409650
push 0x40c070
push ebx
call fcn.00409650
push dword [esi + 0x40e38c]
push ebx
call fcn.00409650
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040a1fd
add esp, 0x2c
jmp 0x407fa5
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40e38c]
push dword [esi]
call fcn.00409950
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00409a0c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x408926
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x408954
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40895b
cmp ebx, dword [eax + 4]
jae 0x40895b
xor eax, eax
jmp 0x408b4b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40896c
xor eax, eax
inc eax
jmp 0x408b4a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x408982
cmp ecx, edx
jae 0x408ac7
cmp dword [eax + 4], 0
je 0x40898b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x408973
cmp dword [ebp + 8], 0
je 0x4089ad
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x408ac7
cmp eax, esi
jae 0x408ac7
mov eax, dword [0x40f708]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4089d2
cmp dword [esi*4 + 0x40f710], edi
je 0x408acb
inc esi
cmp esi, eax
jl 0x4089c0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408b47
cmp dword [ebp - 8], 0x1000000
jne 0x408b47
test byte [ebp - 0xc], 0xcc
je 0x408a50
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x408b47
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x408b47
cmp word [eax + 0x18], 0x10b
jne 0x408b47
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x408b47
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x408a50
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x408a50
test byte [ecx + 0x27], 0x80
jne 0x408ac7
push 1
push 0x40f750
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x408964
mov ecx, dword [0x40f708]
test ecx, ecx
mov edx, ecx
jle 0x408a84
lea eax, [ecx*4 + 0x40f70c]
cmp dword [eax], edi
je 0x408a84
dec edx
sub eax, 4
test edx, edx
jg 0x408a78
test edx, edx
jne 0x408ab5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x408a91
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x408aa9
lea eax, [edx*4 + 0x40f710]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x408a97
cmp ecx, 0x10
jge 0x408ab5
inc ecx
mov dword [0x40f708], ecx
push 0
push 0x40f750
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x408964
xor eax, eax
jmp 0x408b4a
test esi, esi
jle 0x408964
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40f750
call ebx
test eax, eax
jne 0x408964
cmp dword [esi*4 + 0x40f710], edi
je 0x408b21
mov eax, dword [0x40f708]
lea esi, [eax - 1]
test esi, esi
jl 0x408b0f
cmp dword [esi*4 + 0x40f710], edi
je 0x408b0b
dec esi
jns 0x408aff
test esi, esi
jge 0x408b1f
cmp eax, 0x10
jge 0x408b1a
inc eax
mov dword [0x40f708], eax
lea esi, [eax - 1]
jmp 0x408b21
je 0x408b39
xor ecx, ecx
test esi, esi
jl 0x408b39
lea eax, [ecx*4 + 0x40f710]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x408b27
push 0
push 0x40f750
call ebx
jmp 0x408964
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a1fd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40f7d8], ebx
push esi
push edi
jne 0x40a27d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40a2b8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40f7d8], eax
je 0x40a2b8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40f7dc], eax
call esi
cmp dword [0x40f58c], 2
mov dword [0x40f7e0], eax
jne 0x40a27d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40f7e8], eax
je 0x40a27d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40f7e4], eax
mov eax, dword [0x40f7e4]
test eax, eax
je 0x40a2c2
call eax
test eax, eax
je 0x40a2a9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40f7e8]
test eax, eax
je 0x40a2a9
test byte [ebp - 8], 1
jne 0x40a2c2
cmp dword [0x40f598], 4
jb 0x40a2bc
or byte [ebp + 0x12], 0x20
jmp 0x40a2e1
xor eax, eax
jmp 0x40a2f1
or byte [ebp + 0x12], 4
jmp 0x40a2e1
mov eax, dword [0x40f7dc]
test eax, eax
je 0x40a2e1
call eax
mov ebx, eax
test ebx, ebx
je 0x40a2e1
mov eax, dword [0x40f7e0]
test eax, eax
je 0x40a2e1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40f7d8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a31a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x4a5114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, 0x4ad01f
call fcn.0047a242
push 0
mov ecx, esi
call fcn.00454501
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x401a04
push eax
push esi
call fcn.004548c7
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
lea ecx, [ebp - 0x1c]
call fcn.00401830
push 0x4a4618
lea eax, [ebp - 0x1c]
push eax
call fcn.00457d33
int3

Function at 0x405dc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a810
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4a5114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, edx
sbb ecx, ecx
xor al, al
and ecx, 0xfffffffc
push edx
mov ecx, dword [ecx + esi + 0x30]
rep stosb byte es:[edi], al
call fcn.00445c80
add esp, 4
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x405e2f
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x405e40
push 0x48
push esi
call fcn.00456381
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4068a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a96c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x4a5114]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov esi, dword [ebx + 0x10]
mov ecx, 0x4ad061
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0
call fcn.0047a242
push 0
mov ecx, edi
call fcn.0043b0f0
mov dword [ebp - 4], 0
mov dword [edi], vtable.CryptoPP::BaseN_Decoder.0
mov dword [edi + 4], vtable.CryptoPP::BaseN_Decoder.1.0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x30], 0xffffffff
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
push esi
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0043c1d0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0043e100
mov esi, eax
push 0x14
mov byte [ebp - 4], 4
call fcn.004560d4
mov ecx, eax
xorps xmm0, xmm0
mov eax, dword [ebx + 8]
add esp, 4
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], str.DecodingLookupArray
mov word [ecx + 8], 1
mov dword [ecx + 0xc], 0
mov dword [ecx], vtable.CryptoPP::AlgorithmParametersTemplate_int_const__.0
mov dword [ecx + 0x10], eax
mov byte [ebp - 4], 5
mov eax, dword [esi + 4]
mov dword [esi + 4], 0
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x24], eax
test edx, edx
je 0x4069d2
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov dword [ecx + 0xc], eax
mov edx, dword [esi + 4]
mov dword [ebp - 0x18], 0
test edx, edx
je 0x4069ee
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 4], ecx
mov byte [esi + 8], 1
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0043e080
mov esi, eax
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x406a1c
mov eax, dword [ecx]
push 1
call dword [eax]
lea eax, [ebx + 0xc]
mov byte [ebp - 4], 3
push eax
push str.Log2Base
mov ecx, esi
mov dword [ebp - 0x34], vtable.CryptoPP::NameValuePairs.0
call fcn.0040f1d0
push eax
mov ecx, edi
call fcn.00449440
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x406a50
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00455e1e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x406a80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a810
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4a5114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
mov edi, edx
sbb ecx, ecx
xor al, al
and ecx, 0xfffffffc
push edx
mov ecx, dword [ecx + esi + 0x34]
rep stosb byte es:[edi], al
call fcn.00445c80
add esp, 4
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x406ae2
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x406af3
push 0x3c
push esi
call fcn.00456381
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x408980
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ad10
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4a5114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov ecx, 0x4ad057
mov dword [ebp - 0x14], edi
call fcn.0047a242
push 0
mov ecx, edi
call fcn.0043b0f0
push esi
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0043c1d0
lea esi, [edi + 0x18]
mov dword [ebp - 4], 1
push 0
mov ecx, esi
mov dword [edi], vtable.CryptoPP::SourceTemplate_class_CryptoPP::FileStore_.1.0
mov dword [edi + 4], vtable.CryptoPP::SourceTemplate_class_CryptoPP::FileStore_.0
mov dword [ebp - 0x10], esi
call fcn.0041ee10
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], 0xffffffff
mov dword [ebp - 0x14], ecx
mov eax, edi
mov byte [esi + 0x10], 0
mov dword [ecx], vtable.CryptoPP::FilterPutSpaceHelper.0
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [esi], vtable.CryptoPP::FileStore.1.0
mov dword [esi + 4], vtable.CryptoPP::FileStore.0
mov dword [ecx], vtable.CryptoPP::FileStore.2.0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40adc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4a5114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, 0x4ad046
push edi
call fcn.0047a242
mov edi, dword [ebp + 8]
mov eax, 0xffff
cmp ax, di
jne 0x40adff
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455e1e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x40ae3d
mov edx, dword [esi + 0x30]
mov ebx, dword [edx]
lea eax, [ecx + ebx*2]
cmp ecx, eax
jae 0x40ae3d
lea ecx, [ebx - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
pop ebx
mov ax, di
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455e1e
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40af18
mov ebx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ebx], eax
jne 0x40ae67
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov eax, dword [esi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40aea0
push dword [esi + 0x4c]
push edi
call fcn.00461136
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x40af1d
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455e1e
mov esp, ebp
pop ebp
ret 4
movzx eax, di
mov dword [ebp - 0x28], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x40af18
cmp eax, 1
jle 0x40aeeb
cmp eax, 3
jne 0x40af18
mov edx, dword [esi + 0x4c]
mov ecx, dword [ebp - 0x28]
call fcn.00404940
test al, al
movzx eax, di
jne 0x40af1d
jmp 0x40af18
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x40af08
push dword [esi + 0x4c]
push ebx
push 1
push eax
call fcn.0046321e
add esp, 0x10
cmp ebx, eax
jne 0x40af18
lea eax, [ebp - 0x28]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x30], eax
jne 0x40ae27
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00455e1e
mov esp, ebp
pop ebp
ret 4
Function at 0x40d4d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4a5114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, 0x4ad046
push edi
call fcn.0047a242
cmp dword [esi + 0x38], 0
je 0x40d58b
cmp byte [esi + 0x3e], 0
je 0x40d58b
mov eax, dword [esi]
mov ecx, esi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x40d541
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x40d553
sub eax, 1
je 0x40d557
sub eax, 2
je 0x40d58b
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455e1e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40d574
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0046321e
add esp, 0x10
cmp edi, eax
jne 0x40d541
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455e1e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00455e1e
mov esp, ebp
pop ebp
ret

Function at 0x412d10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a850
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4a5114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, edx
sbb ecx, ecx
xor al, al
and ecx, 0xfffffffc
push edx
mov ecx, dword [ecx + esi + 0x30]
rep stosb byte es:[edi], al
call fcn.00445c80
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov edi, edx
sbb ecx, ecx
xor al, al
and ecx, 0xfffffffc
push edx
mov ecx, dword [ecx + esi + 0x20]
rep stosb byte es:[edi], al
call fcn.00445c80
add esp, 8
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x412d97
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x412da8
push 0x40
push esi
call fcn.00456381
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43bb90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c700
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4a5114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xb4]
mov dword [esi], vtable.CryptoPP::AuthenticatedDecryptionFilter.0
mov dword [esi + 4], vtable.CryptoPP::AuthenticatedDecryptionFilter.1.0
call fcn.0043bab0
lea ecx, [esi + 0x4c]
call fcn.0043ba00
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
mov edx, dword [esi + 0x34]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 0
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.00445c80
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x43bc14
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x43bc28
push 0x12c
push esi
call fcn.00456381
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x440410
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4a5114]
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.004560d4
mov edi, eax
add esp, 4
test edi, edi
je 0x4404ad
push 1
mov dword [ebp - 4], 0
call fcn.004547c0
add esp, 4
mov dword [edi + 4], eax
jmp 0x4404af
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.0040eb60
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x44050a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x44050a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x440526
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 0x440549
cmp byte [ebp + 0xc], 0
je 0x440535
push esi
call fcn.00454d0f
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 0x440555
mov esi, str.ios_base::badbit_set
jmp 0x440565
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00402a50
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00403190
push 0x4a4474
lea eax, [ebp - 0x28]
push eax
call fcn.00457d33
int3