joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402beb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402beb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402bd8
cmp esi, edx
jae 0x402beb
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x402bc6
cmp esi, edx
jae 0x402beb
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x405800
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf903
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x655140]
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 dword [ebp - 0x224], ecx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004b69d0
mov ebx, dword [0x67a844]
add esp, 0xc
test ebx, ebx
je 0x405865
lock inc dword [ebx + 4]
mov ebx, dword [0x67a844]
mov edi, dword [0x67a840]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], ebx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.004903a0
mov esi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x21c]
mov edx, dword [edi]
mov ecx, edi
push eax
call dword [edx + 0xec]
push dword [esi]
lea ecx, [ebp - 0x218]
push 0x104
push ecx
push 0x631bd0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [ebp - 0x21c]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4058db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4058fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
test ebx, ebx
je 0x405923
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x405923
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x405923
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x405969
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405940
mov ecx, dword [ebp - 0x224]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00408fa0
mov edi, 1
jmp 0x40596b
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x40598a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.004b3f1a
mov esp, ebp
pop ebp
ret
Function at 0x407a40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add ecx, 0xfffffe94
cmp dword [ebp + 8], 0
je 0x407a58
call fcn.00405ed0
pop ebp
ret 4
mov dword [ebp + 8], 3
pop ebp
jmp fcn.00404e00
Function at 0x40a030
Capabilities:
Access peb ldr_data
Get process heap force flags

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 0x5d001e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x655140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], ecx
push 0x44
mov dword [ebp - 0x34], eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.004b4016
mov edi, eax
mov dword [ebp - 0x24], edi
push 0x44
push 0
push edi
mov dword [ebp - 4], 0
call fcn.004b69d0
add esp, 0x10
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 3
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x40a255
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x18], eax
mov byte [ebp - 4], 4
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x40a255
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x1c], eax
mov byte [ebp - 4], 5
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x40a255
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 6
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x40a255
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 7
lea esi, [edi + 0x28]
mov dword [ebp - 0x20], esi
push 0x20
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b4016
mov dword [ebp - 0x20], edi
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 1
mov dword [edi + 0x40], 0xffffffff
push 0x10
mov dword [ebp - 4], 8
call fcn.004b4016
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x20], esi
add esp, 8
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
movups xmmword [esi], xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_class_CHttpRequest_.0
mov dword [esi + 0xc], edi
push dword [ebp - 0x28]
lea ecx, [edi + 0x20]
mov dword [ebp - 4], 9
call fcn.00408630
push dword [ebp - 0x2c]
lea ecx, [edi + 0x24]
call fcn.00408630
push dword [ebp - 0x30]
lea ecx, [edi + 0x1c]
call fcn.00408630
push dword [ebp - 0x34]
lea ecx, [edi + 0x18]
call fcn.00408630
mov eax, dword [ebp - 0x38]
mov dword [eax + 4], 0
mov dword [eax], edi
mov dword [eax + 4], esi
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.004b3f1a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.00402a80
int3
Function at 0x40a720
Capabilities:
Check if file exists
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x334
mov eax, dword [0x655140]
xor eax, esp
mov dword [esp + 0x330], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x48], 0
jne 0x40a934
push 0x208
lea eax, [esp + 0x134]
mov dword [edi + 0x48], 1
push 0
push eax
call fcn.004b69d0
add esp, 0xc
lea eax, [esp + 0x130]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x130]
push 0x631bac
push eax
call esi
push str.WebView_Edge.dll
lea eax, [esp + 0x134]
push eax
call esi
push 0x118
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004b69d0
add esp, 0xc
mov dword [esp + 0x10], 0x11c
push str.RtlGetVersion
push str.NtDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a803
lea ecx, [esp + 0x10]
push ecx
call eax
test eax, eax
je 0x40a803
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40a8eb
cmp dword [esp + 0x14], 0xa
jb 0x40a8eb
cmp byte [esp + 0x12a], 1
jne 0x40a8eb
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x130]
push eax
call esi
test eax, eax
je 0x40a8eb
lea eax, [esp + 0x130]
mov dword [esp + 0xc], 0
push eax
xor ebx, ebx
call esi
test eax, eax
je 0x40a8eb
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40a88e
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetWebViewFactory
push esi
call ebx
test eax, eax
je 0x40a87c
call eax
mov dword [esp + 0xc], eax
push str.IWebViewToIWebViewEx
push esi
call ebx
push str.IsSupportedWebViewEngine
push esi
call ebx
mov ebx, eax
cmp dword [esp + 0xc], 0
je 0x40a8eb
test ebx, ebx
je 0x40a8eb
push 0
push 2
call ebx
test eax, eax
je 0x40a8eb
lea edx, [esp + 0x130]
lea ecx, [edi + 0x4c]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40a8b0
sub edx, esi
lea eax, [esp + 0x130]
sar edx, 1
push edx
push eax
call fcn.00408fa0
mov dword [edi + 0x48], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x330]
xor ecx, esp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret
call fcn.0040ace0
test eax, eax
je 0x40a913
call fcn.0040ab00
test eax, eax
jne 0x40a8cd
mov ecx, edi
call fcn.0040b1b0
test eax, eax
jne 0x40a934
mov ecx, edi
call fcn.0040b800
test eax, eax
jne 0x40a934
mov dword [edi + 0x48], 0
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x330]
xor ecx, esp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x33c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret
Function at 0x40a950
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d010e
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x655140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edx, str.webview
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
mov dword [esi], 0
call fcn.00490080
mov dword [ebp - 4], 0
push dword [esi]
mov dword [ebp - 0x18], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a9c2
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.cef
mov edx, esi
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
call fcn.00408100
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a9f2
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40aa0d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret 4
Function at 0x40ab00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d01a5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x655140]
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
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call fcn.0040a950
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
or edi, 0xffffffff
test eax, eax
je 0x40ac8d
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40ac8d
xor esi, esi
nop dword [eax + eax]
push 0x63403c
lea edx, [ebp - 0x14]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
call fcn.00408100
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
push dword [esi + 0x6320dc]
mov edx, eax
call fcn.00408100
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x20]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40abbf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x18]
call ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
test eax, eax
mov eax, edi
je 0x40ac7b
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40abe6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, 0x30
jb 0x40ab70
push str.ceflibcef.dll
lea edx, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
call fcn.00408100
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00490a70
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [0x67a78c]
test ecx, ecx
je 0x40accc
push ecx
push dword [eax]
call fcn.004c0ad1
mov byte [ebp - 4], 2
add esp, 8
mov edx, dword [ebp - 0x20]
mov esi, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40ac54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
test esi, esi
mov eax, edi
sete bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ac8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40ac8f
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ac8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40acae
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.004b3f1a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402a80
int3
Function at 0x40d960
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x67accc]
cmp eax, dword [ecx + 4]
jle 0x40da22
push 0x67accc
call fcn.004b3fb2
add esp, 4
cmp dword [0x67accc], 0xffffffff
jne 0x40da22
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push 0
push 0
push 0x67acc0
mov dword [0x67acc0], 0
mov dword [0x67acc4], 0
mov dword [0x67acc8], 0
call esi
test eax, eax
jne 0x40d9f0
push 8
push 1
push eax
push eax
push 0x67acc0
call esi
test eax, eax
jne 0x40d9f0
push 0xf0000000
push 1
push eax
push eax
push 0x67acc0
call esi
test eax, eax
je 0x40da0a
push 0x67acc8
push 0
push 0
push 0x8003
push dword [0x67acc0]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push 0x5dc4f0
call fcn.004b43ec
push 0x67accc
call fcn.004b3f61
add esp, 8
pop esi
mov eax, 0x67acc0
ret

Function at 0x40da30
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x40dab6
mov eax, dword [esi + 8]
lea edi, [esi + 8]
test eax, eax
je 0x40dab6
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push 0
push 0
push 0x8003
push dword [esi]
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40dab6
mov eax, dword [esi + 4]
lea ebx, [esi + 4]
test eax, eax
je 0x40da81
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebx], 0
mov eax, dword [ebp + 8]
push 0
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40dab6
push ebx
push 1
push dword [edi]
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x40dab6
mov esi, 1
jmp 0x40dab8
xor esi, esi
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40dad3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x40dd30
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x655140]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edx, dword [eax + 4]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
test edx, edx
je 0x40dd70
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x40dd72
push edx
call fcn.004c9902
add esp, 4
mov ebx, eax
jmp 0x40dd72
xor ebx, ebx
xor eax, eax
mov esi, ebx
shld eax, esi, 1
add esi, esi
push esi
call fcn.004b44b4
mov ecx, dword [esp + 0x14]
push ebx
mov dword [esp + 0x20], eax
push dword [ecx + 4]
push eax
call fcn.004b63f0
add esp, 0x10
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push esi
push eax
mov eax, dword [esp + 0x1c]
push ebx
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x40dddc
push ebx
call fcn.004b44af
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 4]
test eax, eax
je 0x40ddfa
push eax
call fcn.004b44af
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov esi, dword [esp + 0x20]
push esi
call fcn.004b44b4
push esi
push 0
push eax
mov dword [edi + 4], eax
call fcn.004b69d0
push dword [esp + 0x30]
mov dword [edi + 8], esi
push ebx
push dword [edi + 4]
call fcn.004b63f0
push ebx
call fcn.004b44af
mov ecx, dword [esp + 0x44]
add esp, 0x20
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret 8
Function at 0x40de50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0605
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x655140]
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 dword [ebp - 0x30], ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push ecx
mov ecx, dword [ecx]
mov esi, esp
sub ecx, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esi
call fcn.00408e50
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.0040da30
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor esi, esi
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], vtable.CxAutoArray_unsigned_char_.0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
cmp dword [ebx], esi
je 0x40df6f
cmp dword [ebx + 4], esi
je 0x40df6f
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], vtable.CxAutoArray_unsigned_char_.0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
mov ebx, dword [edi]
mov edi, dword [ebx - 0xc]
add edi, edi
test ebx, ebx
je 0x40df1b
test edi, edi
je 0x40df1b
push edi
call fcn.004b44b4
push edi
mov esi, eax
push ebx
push esi
call fcn.004b63f0
add esp, 0x10
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040dd30
mov ecx, dword [ebp - 0x24]
mov esi, eax
test ecx, ecx
je 0x40df3d
push ecx
call fcn.004b44af
add esp, 4
test esi, esi
je 0x40df6c
mov eax, dword [ebp - 0x34]
xor edi, edi
push edi
push 0x80
push 2
push edi
push 2
push 0x40000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40df9e
call fcn.0040d920
test eax, eax
jns 0x40dfa0
mov esi, dword [ebp - 0x18]
xor edi, edi
test esi, esi
je 0x40df7e
push esi
call fcn.004b44af
add esp, 4
mov eax, edi
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.004b3f1a
mov esp, ebp
pop ebp
ret 0xc
mov edi, eax
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x40dfb9
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40dfbb
push esi
call fcn.004c9902
add esp, 4
jmp 0x40dfbb
xor eax, eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40dfd3
call fcn.0040d920
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x40dfe3
call fcn.0040d920
test edi, edi
je 0x40dfee
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x40df71
Function at 0x40e000
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0645
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x655140]
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 dword [ebp - 0x34], ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push ecx
mov esi, esp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], esi
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.00408e50
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.0040da30
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
xor esi, esi
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], vtable.CxAutoArray_unsigned_char_.0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
xor ebx, ebx
mov dword [ebp - 4], esi
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push ebx
push 0x80
push 4
push ebx
push 1
push SysReAllocString
mov byte [ebp - 4], 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x40e0b8
call fcn.0040d920
test eax, eax
js 0x40e143
jmp 0x40e0bd
mov ebx, ecx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
jne 0x40e0de
call fcn.0040d920
mov edi, dword [ebp - 0x18]
test eax, eax
js 0x40e0e4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
push edi
call fcn.004b44b4
push edi
mov esi, eax
push 0
push esi
mov dword [ebp - 0x28], esi
call fcn.004b69d0
add esp, 0x10
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e11d
call fcn.0040d920
test ebx, ebx
je 0x40e12d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040dae0
mov esi, dword [ebp - 0x28]
test eax, eax
jne 0x40e147
xor edi, edi
jmp 0x40e14c
mov edi, 1
test ebx, ebx
je 0x40e157
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40e164
push esi
call fcn.004b44af
add esp, 4
mov eax, edi
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.004b3f1a
mov esp, ebp
pop ebp
ret 0xc