Function at 0x40e7c0
Capabilities:
Extract resource via kernel32 functions
Link many functions at runtime
Read file via mapping

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c]
push edi
mov edi, dword [esp + 0x44]
push 0
push 0
push 0
push 0
push edi
push esi
call fcn.0040ef40
test eax, eax
je 0x40e7f1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 8
test edi, edi
je 0x40e7fb
mov dword [edi], 0
mov ecx, esi
call fcn.0040cac0
test eax, eax
mov dword [esp + 0x34], eax
jne 0x40e81d
xor ecx, ecx
call fcn.0040cb30
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
mov ebx, dword [sym.imp.MSVCRT.dll_toupper]
mov dword [esp + 0x2c], 0
mov edi, str._signature_
mov esi, 0x7fed7fed
mov ebp, 0xeeeeeeee
lea ebx, [ebx]
mov al, byte [edi]
test al, al
je 0x40e878
movsx eax, al
push eax
inc edi
call ebx
movzx eax, al
add esp, 4
cmp eax, 0x2f
jne 0x40e85d
mov eax, 0x5c
mov edx, dword [0x433c64]
lea ecx, [esi + ebp]
imul ebp, ebp, 0x21
mov esi, dword [edx + eax*4]
xor esi, ecx
add ebp, eax
test edi, edi
lea ebp, [esi + ebp + 3]
jne 0x40e840
mov edx, 1
mov ecx, str._signature_
call fcn.0040eec0
mov edx, 2
mov ecx, str._signature_
mov dword [esp + 0x40], eax
call fcn.0040eec0
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + 0x14c]
mov edx, dword [edx + 0x280]
lea edi, [ecx - 1]
and esi, edi
mov ecx, esi
shl ecx, 4
mov ebp, dword [ecx + edx + 0xc]
add ecx, edx
or ebx, 0xffffffff
cmp ebp, ebx
mov dword [esp + 0x28], eax
mov eax, esi
je 0x40e911
mov ebp, dword [ecx]
cmp ebp, dword [esp + 0x40]
jne 0x40e8fa
mov ebp, dword [esp + 0x28]
cmp dword [ecx + 4], ebp
jne 0x40e8fa
cmp dword [ecx + 0xc], 0xfffffffe
je 0x40e8fa
mov bp, word [ecx + 8]
test bp, bp
jne 0x40e8fa
cmp byte [ecx + 0xa], 0
je 0x40e913
test bp, bp
jne 0x40e8fa
cmp byte [ecx + 0xa], 0
jne 0x40e8fa
mov ebx, esi
inc esi
and esi, edi
cmp esi, eax
je 0x40e911
mov ecx, esi
shl ecx, 4
mov ebp, dword [ecx + edx + 0xc]
add ecx, edx
cmp ebp, 0xffffffff
jne 0x40e8c7
mov esi, ebx
cmp esi, 0xffffffff
jne 0x40e945
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40e926
mov dword [eax], 1
push 0x4dc
call fcn.0040c3e0
mov ecx, dword [esp + 0x34]
call fcn.0040cb30
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
xor esi, esi
push str.advapi32.dll
mov dword [esp + 0x44], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x40ee11
push esi
push 0xcc6
push str.C:projectsStormSourceSFile.cpp
push 0x24
call fcn.00408f70
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
mov edi, eax
push edx
mov dword [esp + 0x48], edi
call esi
test eax, eax
mov dword [edi], eax
je 0x40ee11
mov eax, dword [esp + 0x10]
push str.CryptCreateHash
push eax
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 4], eax
je 0x40ee11
mov edx, dword [esp + 0x10]
push str.CryptDestroyHash
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 8], eax
je 0x40ee11
mov edx, dword [esp + 0x10]
push str.CryptDestroyKey
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0xc], eax
je 0x40ee11
mov edx, dword [esp + 0x10]
push str.CryptHashData
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0x10], eax
je 0x40ee11
mov edx, dword [esp + 0x10]
push str.CryptImportKey
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0x14], eax
je 0x40ee11
mov edx, dword [esp + 0x10]
push str.CryptReleaseContext
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0x18], eax
je 0x40ee11
mov edx, dword [esp + 0x10]
push str.CryptSignHashA
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0x1c], eax
je 0x40ee11
mov edx, dword [esp + 0x10]
push str.CryptVerifySignatureA
push edx
call esi
test eax, eax
mov ecx, edi
mov dword [ecx + 0x20], eax
je 0x40ee11
push 0
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.Blizzard_Storm
lea edx, [esp + 0x2c]
push edx
mov esi, edi
call dword [esi]
test eax, eax
jne 0x40eaaa
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.Blizzard_Storm
lea eax, [esp + 0x2c]
push eax
call dword [esi]
test eax, eax
je 0x40ee11
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x128]
push 0
push 0
push 0
push 0x8000002
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esp + 0x24], eax
je 0x40ee11
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esp + 0x18], eax
je 0x40ee11
mov ebx, dword [sym.imp.MSVCRT.dll_toupper]
mov edi, str._signature_
mov esi, 0x7fed7fed
mov ebp, 0xeeeeeeee
mov al, byte [edi]
test al, al
je 0x40eb3c
movsx eax, al
push eax
inc edi
call ebx
movzx eax, al
add esp, 4
cmp eax, 0x2f
jne 0x40eb21
mov eax, 0x5c
mov edx, dword [0x433c64]
lea ecx, [esi + ebp]
imul ebp, ebp, 0x21
mov esi, dword [edx + eax*4]
xor esi, ecx
add ebp, eax
test edi, edi
lea ebp, [esi + ebp + 3]
jne 0x40eb04
mov edi, str._signature_
mov ebx, 0x7fed7fed
mov ebp, 0xeeeeeeee
nop
lea esp, [esp]
mov al, byte [edi]
test al, al
je 0x40eb90
movsx eax, al
push eax
inc edi
call dword [sym.imp.MSVCRT.dll_toupper]
movzx eax, al
add esp, 4
cmp eax, 0x2f
jne 0x40eb71
mov eax, 0x5c
mov edx, dword [0x433c64]
lea ecx, [ebx + ebp]
imul ebp, ebp, 0x21
mov ebx, dword [edx + eax*4 + 0x400]
xor ebx, ecx
add ebp, eax
test edi, edi
lea ebp, [ebx + ebp + 3]
jne 0x40eb50
mov edx, 2
mov ecx, str._signature_
call fcn.0040eec0
mov edi, dword [esp + 0x34]
mov ecx, dword [edi + 0x14c]
mov edi, dword [edi + 0x280]
lea ebp, [ecx - 1]
and esi, ebp
mov edx, esi
mov ecx, edx
shl ecx, 4
or esi, 0xffffffff
add ecx, edi
cmp dword [ecx + 0xc], esi
mov dword [esp + 0x30], eax
mov eax, edx
mov dword [esp + 0x28], esi
je 0x40ec18
nop
cmp dword [ecx], ebx
jne 0x40ec01
mov esi, dword [esp + 0x30]
cmp dword [ecx + 4], esi
jne 0x40ec01
cmp dword [ecx + 0xc], 0xfffffffe
je 0x40ec01
mov si, word [ecx + 8]
test si, si
jne 0x40ec01
cmp byte [ecx + 0xa], 0
je 0x40ec1c
test si, si
jne 0x40ec01
cmp byte [ecx + 0xa], 0
jne 0x40ec01
mov dword [esp + 0x28], edx
inc edx
and edx, ebp
cmp edx, eax
je 0x40ec18
mov ecx, edx
shl ecx, 4
mov esi, dword [ecx + edi + 0xc]
add ecx, edi
cmp esi, 0xffffffff
jne 0x40ebd0
mov edx, dword [esp + 0x28]
cmp edx, 0xffffffff
je 0x40ee11
mov ecx, dword [esp + 0x34]
call fcn.0040ef20
mov esi, eax
test dword [esi + 0xc], 0x1ff00
jne 0x40ee03
cmp dword [esi + 8], 8
jbe 0x40ee03
mov eax, dword [esi]
test eax, eax
je 0x40ee03
mov edx, dword [esp + 0x18]
mov eax, dword [eax + edx]
cmp eax, 1
mov dword [esp + 0x30], eax
jb 0x40ec78
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40ee11
mov dword [eax], 3
jmp 0x40ee11
mov eax, dword [eax*8 + 0x4266ec]
push str.256
push eax
call fcn.00413b00
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
call fcn.00413b00
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x40ecd3
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push edi
call fcn.00413b00
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x50]
push ebp
push edx
call dword [eax + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40ee11
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [eax + 4]
test eax, eax
je 0x40ee11
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x274]
mov edx, dword [esi]
mov ecx, dword [esp + 0x18]
sub edx, eax
push 0
push edx
mov edx, dword [esp + 0x1c]
add eax, ecx
push eax
mov eax, dword [esp + 0x4c]
push edx
call dword [eax + 0x10]
test eax, eax
je 0x40ee11
mov ecx, dword [esi + 8]
push 8
push 0xd1c
push str.C:projectsStormSourceSFile.cpp
push ecx
call fcn.00408f70
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x40]
push 0
mov edi, eax
mov eax, dword [esp + 0x18]
push edx
push edi
push eax
call dword [ecx + 0x10]
push 0
push 0xd21
push str.C:projectsStormSourceSFile.cpp
push edi
mov ebp, eax
call fcn.0040a0f0
test ebp, ebp
je 0x40ee11
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x274]
mov eax, dword [eax + 0x13c]
mov edx, dword [esi + 8]
mov edi, dword [esi]
lea ebp, [edi + edx]
lea ebx, [eax + ecx]
cmp ebp, ebx
jae 0x40edb9
sub eax, edi
sub eax, edx
mov edx, dword [esp + 0x18]
push 0
add eax, ecx
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x1c]
add ebp, edx
push ebp
push eax
call dword [ecx + 0x10]
test eax, eax
je 0x40ee11
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
push 0
push 0
push edx
mov edx, dword [esp + 0x24]
sub eax, 8
push eax
lea eax, [ecx + edx + 8]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
push eax
push ecx
call dword [edx + 0x20]
test eax, eax
mov eax, dword [esp + 0x44]
je 0x40ee07
test eax, eax
mov dword [esp + 0x2c], 1
je 0x40ee11
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx*8 + 0x4266f0]
mov dword [eax], edx
jmp 0x40ee11
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40ee11
mov dword [eax], 2
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0x40]
je 0x40ee21
push eax
call dword [esi + 8]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40ee2d
push eax
call dword [esi + 0xc]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40ee3c
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40ee4b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40ee6e
push 0
push eax
call dword [esi + 0x18]
push 0x10
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.Blizzard_Storm
lea eax, [esp + 0x2c]
push eax
call dword [esi]
test esi, esi
je 0x40ee84
push 0
push 0xd4a
push str.C:projectsStormSourceSFile.cpp
push esi
call fcn.0040a0f0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40ee93
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x40eea5
push 0x4dc
call fcn.0040c3e0
mov ecx, dword [esp + 0x34]
call fcn.0040cb30
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8