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

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x38]
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
push esi
push edi
call sym.Storm.dll_Ordinal_299
test eax, eax
je 0x1501904b
pop edi
pop esi
lea eax, [ebp + 1]
pop ebp
add esp, 0x28
ret 8
cmp esi, ebp
je 0x15019051
mov dword [esi], ebp
push ebx
push ebp
xor bl, bl
mov eax, str._signature_
mov ecx, edi
mov dword [esp + 0x2c], ebp
call fcn.15017860
cmp eax, 0xffffffff
jne 0x1501908a
cmp esi, ebp
je 0x15019074
mov dword [esi], 1
push 0x4dc
call sym.Storm.dll_Ordinal_465
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret 8
push str.advapi32.dll
xor esi, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x1c], ebp
je 0x1501941c
push esi
push 0xa72
push str..SFile.cpp
push 0x24
call sym.Storm.dll_Ordinal_401
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push ebp
mov esi, eax
call edi
test eax, eax
mov dword [esi], eax
je 0x1501941c
push str.CryptCreateHash
push ebp
call edi
test eax, eax
mov dword [esi + 4], eax
je 0x1501941c
push str.CryptDestroyHash
push ebp
call edi
test eax, eax
mov dword [esi + 8], eax
je 0x1501941c
push str.CryptDestroyKey
push ebp
call edi
test eax, eax
mov dword [esi + 0xc], eax
je 0x1501941c
push str.CryptHashData
push ebp
call edi
test eax, eax
mov dword [esi + 0x10], eax
je 0x1501941c
push str.CryptImportKey
push ebp
call edi
test eax, eax
mov dword [esi + 0x14], eax
je 0x1501941c
push str.CryptReleaseContext
push ebp
call edi
test eax, eax
mov dword [esi + 0x18], eax
je 0x1501941c
push str.CryptSignHashA
push ebp
call edi
test eax, eax
mov dword [esi + 0x1c], eax
je 0x1501941c
push str.CryptVerifySignatureA
push ebp
call edi
test eax, eax
mov dword [esi + 0x20], eax
je 0x1501941c
mov ecx, dword [esi]
push 0
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.Blizzard_Storm
lea eax, [esp + 0x28]
push eax
call ecx
test eax, eax
jne 0x150191b7
mov eax, dword [esi]
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.Blizzard_Storm
lea edx, [esp + 0x28]
push edx
call eax
test eax, eax
je 0x1501941c
mov edi, dword [esp + 0x3c]
mov ecx, dword [edi + 0x10c]
push 0
push 0
push 0
push 0x8000002
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esp + 0x24], eax
je 0x1501941c
push 0
push 0
push 0
push 4
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esp + 0x14], eax
je 0x1501941c
push 0
xor bl, bl
mov eax, str._signature_
mov ecx, edi
call fcn.15017860
cmp eax, 0xffffffff
je 0x1501941c
mov ecx, dword [edi + 0x140]
mov edx, dword [esp + 0x3c]
shl eax, 4
mov edi, dword [ecx + eax + 0xc]
imul edi, edi, 0x2c
add edi, dword [edx + 0x13c]
test dword [edi + 0xc], 0x1ff00
jne 0x150194bc
cmp dword [edi + 8], 8
jbe 0x150194bc
mov eax, dword [edi]
test eax, eax
je 0x150194bc
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + ecx]
cmp eax, 1
mov dword [esp + 0x34], eax
jb 0x15019279
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1501941c
mov dword [eax], 3
jmp 0x1501941c
mov edx, dword [eax*8 + 0x15043734]
push str.256
push edx
call sym.Storm.dll_Ordinal_302
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
call sym.Storm.dll_Ordinal_302
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x150192da
lea eax, [esp + 0x20]
push eax
push 0
push 0
push ebx
call sym.Storm.dll_Ordinal_302
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esi + 0x14]
push ecx
push edx
call eax
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esp + 0x20], 0
je 0x1501941c
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x8003
push eax
call ecx
test eax, eax
je 0x1501941c
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x130]
mov ecx, dword [edi]
mov edx, dword [esp + 0x14]
sub ecx, eax
push 0
push ecx
mov ecx, dword [esi + 0x10]
add eax, edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call ecx
test eax, eax
je 0x1501941c
mov edx, dword [edi + 8]
push 8
push 0xac8
push str..SFile.cpp
push edx
call sym.Storm.dll_Ordinal_401
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x10]
mov ebx, eax
mov eax, dword [edi + 8]
push 0
push eax
push ebx
push ecx
call edx
push 0
push 0xacd
push str..SFile.cpp
push ebx
mov dword [esp + 0x40], eax
call sym.Storm.dll_Ordinal_403
cmp dword [esp + 0x30], 0
je 0x1501941c
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x138]
mov eax, dword [eax + 8]
mov ecx, dword [ecx + 0x130]
mov edx, dword [edi + 8]
mov ebx, dword [edi]
add ebx, edx
lea ebp, [eax + ecx]
cmp ebx, ebp
jae 0x150193c2
sub eax, dword [edi]
push 0
sub eax, edx
mov edx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esi + 0x10]
add ebx, ecx
push ebx
push edx
call eax
test eax, eax
je 0x15019418
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 8]
mov eax, dword [edi]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x20]
sub edx, 8
push edx
lea edx, [eax + ecx + 8]
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x20]
push edx
push eax
call ecx
test eax, eax
mov eax, dword [esp + 0x40]
je 0x1501940e
test eax, eax
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x28], 1
je 0x1501941c
mov edx, dword [esp + 0x34]
mov ecx, dword [edx*8 + 0x15043738]
mov dword [eax], ecx
jmp 0x1501941c
test eax, eax
je 0x15019418
mov dword [eax], 2
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1501942a
mov edx, dword [esi + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x15019438
push eax
mov eax, dword [esi + 0xc]
call eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x15019447
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x15019456
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1501947d
mov ecx, dword [esi + 0x18]
push 0
push eax
call ecx
mov eax, dword [esi]
push 0x10
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.Blizzard_Storm
lea edx, [esp + 0x28]
push edx
call eax
test esi, esi
je 0x15019493
push 0
push 0xaf6
push str..SFile.cpp
push esi
call sym.Storm.dll_Ordinal_403
test ebp, ebp
je 0x1501949e
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x150194b0
push 0x4dc
call sym.Storm.dll_Ordinal_465
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x28
ret 8
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1501941c
mov dword [eax], 2
jmp 0x1501941c