Function at 0x43e720
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
sub esp, 0x440
push ebx
push ebp
mov ebp, dword [esp + 0x44c]
test ebp, ebp
push esi
push edi
je 0x43e978
mov edi, dword [esp + 0x45c]
test edi, edi
je 0x43e978
mov eax, dword [esp + 0x458]
test eax, eax
je 0x43e978
mov dword [eax], 0
xor ecx, ecx
nop
mov esi, ecx
shr esi, 5
and esi, 7
imul esi, esi, 0xff
mov eax, 0x24924925
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
mov esi, ecx
shr esi, 2
shr eax, 2
and esi, 7
imul esi, esi, 0xff
mov byte [esp + ecx*4 + 0x50], al
mov eax, 0x24924925
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
mov edx, ecx
and edx, 3
imul edx, edx, 0xff
shr eax, 2
mov byte [esp + ecx*4 + 0x51], al
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
mov byte [esp + ecx*4 + 0x52], dl
mov byte [esp + ecx*4 + 0x53], 0
inc ecx
cmp ecx, 0x100
jb 0x43e760
push 2
push edi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43e87a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x43e8db
mov ecx, dword [eax]
cmp ecx, 0x28
lea edx, [ecx + eax]
mov dword [esp + 0x14], edx
jb 0x43e825
mov cx, word [eax + 0xe]
cmp cx, 8
ja 0x43e825
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x43e821
mov esi, 1
shl esi, cl
jmp 0x43e827
mov esi, eax
jmp 0x43e827
xor esi, esi
xor ecx, ecx
test esi, esi
jbe 0x43e955
mov ebx, dword [esp + 0x14]
lea edi, [esp + 0x50]
lea ebp, [esp + 0x51]
lea eax, [edx + 1]
sub edi, edx
sub ebp, edx
lea edx, [esp + 0x52]
sub edx, ebx
lea ebx, [ebx]
mov bl, byte [eax + 1]
mov byte [esp + ecx*4 + 0x50], bl
mov bl, byte [eax]
mov byte [edi + eax], bl
mov bl, byte [eax - 1]
mov byte [eax + ebp], bl
mov byte [edx + eax], 0
inc ecx
add eax, 4
cmp ecx, esi
jb 0x43e850
mov ebp, dword [esp + 0x454]
jmp 0x43e955
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x43e955
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x14]
push eax
push 0xe
lea ecx, [esp + 0x4c]
push ecx
push esi
call edi
cmp dword [esp + 0x10], 0xe
jne 0x43e8d4
push 0
lea edx, [esp + 0x14]
push edx
mov ebx, 0x28
push ebx
lea eax, [esp + 0x24]
push eax
push esi
call edi
cmp dword [esp + 0x10], ebx
je 0x43e8eb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x440
ret
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x400
lea edx, [esp + 0x5c]
push edx
push esi
call edi
cmp dword [esp + 0x10], 0x400
push esi
jne 0x43e8d5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], ebx
je 0x43e91a
xor edx, edx
jmp 0x43e937
mov ecx, dword [esp + 0x26]
cmp cx, 8
jbe 0x43e928
xor edx, edx
jmp 0x43e937
mov edx, dword [esp + 0x38]
test edx, edx
jne 0x43e937
mov edx, 1
shl edx, cl
xor eax, eax
test edx, edx
jbe 0x43e955
lea ecx, [ecx]
mov cl, byte [esp + eax*4 + 0x50]
mov bl, byte [esp + eax*4 + 0x52]
mov byte [esp + eax*4 + 0x50], bl
mov byte [esp + eax*4 + 0x52], cl
inc eax
cmp eax, edx
jb 0x43e940
mov ecx, dword [esp + 0x458]
mov eax, dword [ebp]
push 0
push ecx
lea edx, [esp + 0x58]
push edx
push 4
push ebp
call dword [eax + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
add esp, 0x440
ret