Function at 0x405090
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov eax, 0x1040c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00406960
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov esi, 0x8000
mov dword [esp + 4], edx
lea ebx, [ebp - 0x8018]
xor edi, edi
mov dword [esp + 8], esi
mov esi, pe_nt_image_headers32
mov dword [esp], ebx
lea ebx, [ebp - 0x10098]
mov dword [ebp - 0x103fc], ecx
call sub.msvcrt.dll_memset
mov dword [esp + 4], edi
lea ecx, [ebp - 0x10018]
mov eax, 0x8000
mov dword [esp], ecx
xor edi, edi
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], esi
xor edx, edx
mov esi, 0x104
mov dword [esp + 4], edx
mov dword [esp], ebx
lea ebx, [ebp - 0x102b8]
call sub.msvcrt.dll_memset
mov dword [esp + 4], edi
lea ecx, [ebp - 0x101a8]
mov eax, 0x104
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], esi
xor edx, edx
lea esi, [ebp - 0x102d8]
mov dword [esp + 4], edx
mov edi, esi
mov dword [esp], ebx
mov ebx, esi
call sub.msvcrt.dll_memset
cld
xor eax, eax
mov ecx, 5
rep stosd dword es:[edi], eax
mov edx, 0x11
mov ecx, 0x400
mov edi, 0xa
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov eax, dword [0x411680]
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x4057bb
mov dword [esp + 4], eax
mov edi, dword [0x411680]
mov dword [esp], edi
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x4051ed
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x4051ed
xor edx, edx
lea esi, [esi]
movzx eax, byte [edx + ecx]
mov byte [edx + ebx], al
inc edx
test al, al
jne 0x4051b0
mov edx, dword [0x409028]
test edx, edx
je 0x4051ed
mov eax, dword [0x409090]
test eax, eax
je 0x4051ed
mov dword [esp + 0xc], ebx
mov ecx, 0x11
mov esi, str.Resource__d:_t_s_n
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
cld
mov esi, ebx
mov ecx, 5
mov edi, 0x40815c
mov edx, 0xe
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 8], edx
seta al
setb cl
mov esi, 0x400
xor ebx, ebx
cmp al, cl
mov dword [esp + 0xc], esi
mov eax, 0xa
sete bl
mov dword [esp + 4], eax
mov edi, dword [0x411680]
mov dword [esp], edi
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x4057a0
mov dword [esp + 4], eax
mov edx, dword [0x411680]
mov dword [esp], edx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x4052b7
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x4052b7
xor edx, edx
lea esi, [esi]
movzx eax, byte [edx + ecx]
mov byte [edx + ebp - 0x101a8], al
inc edx
test al, al
jne 0x405270
mov edi, dword [0x409028]
test edi, edi
je 0x4052b7
mov eax, dword [0x409090]
test eax, eax
je 0x4052b7
mov dword [esp], eax
lea edx, [ebp - 0x101a8]
mov ecx, 0xe
mov dword [esp + 0xc], edx
mov esi, str.Resource__d:_t_s_n
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
call sub.msvcrt.dll_fprintf
mov ecx, 0x400
mov esi, 0xf
mov edi, 0xa
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov eax, dword [0x411680]
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x405607
mov dword [esp + 4], eax
mov edx, dword [0x411680]
mov dword [esp], edx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x40561d
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x40561d
xor edx, edx
mov esi, esi
movzx eax, byte [edx + ecx]
mov byte [edx + ebp - 0x10098], al
inc edx
test al, al
jne 0x405320
mov edi, dword [0x409028]
test edi, edi
je 0x405347
mov eax, dword [0x409090]
test eax, eax
jne 0x40582a
mov ecx, 0x400
mov esi, 0x10
mov edi, 0xa
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov eax, dword [0x411680]
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x405756
mov dword [esp + 4], eax
mov edx, dword [0x411680]
mov dword [esp], edx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x40576c
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x40576c
xor edx, edx
movzx eax, byte [edx + ecx]
mov byte [edx + ebp - 0x8018], al
inc edx
test al, al
jne 0x4053ae
mov edi, dword [0x409028]
test edi, edi
je 0x4053d5
mov eax, dword [0x409090]
test eax, eax
jne 0x405853
mov ecx, dword [ebp - 0x103fc]
lea eax, [ebp - 0x10018]
lea edi, [ebp - 0x8018]
mov dword [esp + 0xc], ecx
mov esi, dword [ebp + 8]
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 8], esi
mov esi, 0x22206874
call fcn.00402f40
mov dword [esp], 0x4091a4
call sub.msvcrt.dll_strlen
mov dword [eax + 0x4091ac], esi
mov edx, 0x616c632d
mov ecx, 0x61707373
mov dword [eax + 0x4091a4], edx
test ebx, ebx
mov dword [eax + 0x4091a8], ecx
mov byte [eax + 0x4091b0], 0
jne 0x4057d6
cmp byte [ebp - 0x101a8], 0
jne 0x405806
lea eax, [ebp - 0x10018]
mov esi, 0x40844c
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_strtok
test eax, eax
mov ebx, eax
je 0x4055b7
nop
lea esi, [esi]
mov eax, dword [0x409090]
test eax, eax
jne 0x4056fb
mov dword [esp], ebx
mov edx, 0x40844e
mov dword [esp + 4], edx
call sub.msvcrt.dll_strpbrk
test eax, eax
je 0x405729
mov dword [esp], ebx
mov edi, 0x5c
xor esi, esi
mov dword [esp + 4], edi
call sub.msvcrt.dll_strrchr
test eax, eax
je 0x4054b2
sub eax, ebx
lea esi, [eax + 1]
mov byte [ebp - 0x102b8], 0
lea edx, [ebp - 0x102b8]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edx
call sub.msvcrt.dll_strncpy
lea ecx, [ebp - 0x102b8]
lea esi, [ecx + esi]
lea eax, [ebp - 0x103f8]
mov byte [esi], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll__findfirst
cmp eax, 0xffffffff
mov ebx, eax
je 0x405590
lea edi, [ebp - 0x103e4]
jmp 0x405516
mov dword [esp], ebx
lea eax, [ebp - 0x103f8]
mov dword [esp + 4], eax
call sub.msvcrt.dll__findnext
test eax, eax
jne 0x405590
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
mov dword [esp], 0x4091a4
lea eax, [ebp - 0x102b8]
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcat
mov dword [esp], 0x4091a4
call sub.msvcrt.dll_strlen
mov ecx, 0x3b
mov word [eax + 0x4091a4], cx
mov eax, dword [0x409090]
test eax, eax
je 0x405500
mov dword [esp], eax
lea ecx, [ebp - 0x102b8]
mov edx, str._____________:_t_s_n
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.msvcrt.dll_fprintf
mov dword [esp], ebx
lea eax, [ebp - 0x103f8]
mov dword [esp + 4], eax
call sub.msvcrt.dll__findnext
test eax, eax
je 0x405516
lea esi, [esi]
mov dword [esp], ebx
call sub.msvcrt.dll__findclose
mov dword [esp], 0
mov esi, 0x40844c
mov dword [esp + 4], esi
call sub.msvcrt.dll_strtok
test eax, eax
mov ebx, eax
jne 0x405470
mov dword [esp], 0x4091a4
lea edi, [ebp - 0x10098]
call sub.msvcrt.dll_strlen
mov byte [eax + 0x4091a3], 0
mov dword [esp], 0x4091a4
call sub.msvcrt.dll_strlen
mov byte [eax + 0x4091a6], 0
mov edx, 0x2022
mov word [eax + 0x4091a4], dx
mov dword [esp + 4], edi
mov dword [esp], 0x4091a4
call sub.msvcrt.dll_strcat
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x10098], 0
sub esp, 4
test ebx, ebx
je 0x405678
mov dword [esp], 0x4091a4
mov ebx, 0x4091a4
mov esi, 0x72616a2d
call sub.msvcrt.dll_strlen
mov dword [eax + 0x4091a4], esi
mov word [eax + ebx + 4], 0x2220
mov byte [eax + ebx + 6], 0
mov ecx, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strcat
mov dword [esp], 0x4091a4
call sub.msvcrt.dll_strlen
mov ebx, 0x22
mov word [eax + 0x4091a4], bx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x4091a4
mov ebx, 0x4091a4
call sub.msvcrt.dll_strlen
mov edi, dword [ebp - 0x103fc]
mov edx, 0x72616a2d
mov dword [eax + 0x4091a4], edx
mov word [eax + ebx + 4], 0x2220
mov byte [eax + ebx + 6], 0
mov dword [esp + 8], edi
mov eax, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncat
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
cmp byte [eax + ebx - 1], 0x5c
je 0x4056d4
mov ecx, 0x5c
mov word [eax + 0x4091a4], cx
mov dword [esp], 0x4091a4
lea esi, [ebp - 0x101a8]
mov dword [esp + 4], esi
call sub.msvcrt.dll_strcat
mov dword [esp], 0x4091a4
call sub.msvcrt.dll_strlen
jmp 0x405664
mov dword [esp + 8], ebx
mov ecx, str.Add_classpath:_t_s_n
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], ebx
mov edx, 0x40844e
mov dword [esp + 4], edx
call sub.msvcrt.dll_strpbrk
test eax, eax
jne 0x405496
mov dword [esp + 4], ebx
mov ebx, 0x3b
mov dword [esp], 0x4091a4
call sub.msvcrt.dll_strcat
mov dword [esp], 0x4091a4
call sub.msvcrt.dll_strlen
mov word [eax + 0x4091a4], bx
jmp 0x405598
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x8018], 0
sub esp, 4
mov eax, dword [0x409090]
test eax, eax
je 0x4053d5
mov dword [esp + 0xc], eax
mov edi, 0x1e
mov eax, 1
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], str.Info:_t_tClasspath_not_defined._n
call sub.msvcrt.dll_fwrite
jmp 0x4053d5
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x101a8], 0
sub esp, 4
jmp 0x4052b7
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x102d8], 0
sub esp, 4
jmp 0x4051ed
mov ebx, dword [ebp + 8]
mov dword [esp], 0x4091a4
mov dword [esp + 4], ebx
call sub.msvcrt.dll_strcat
mov dword [esp], 0x4091a4
call sub.msvcrt.dll_strlen
mov edi, 0x3b
mov word [eax + 0x4091a4], di
jmp 0x405447
mov dword [esp], 0x4091a4
lea edx, [ebp - 0x101a8]
mov dword [esp + 4], edx
call sub.msvcrt.dll_strcat
mov dword [esp], 0x4091a4
call sub.msvcrt.dll_strlen
jmp 0x4057f5
mov dword [esp], eax
lea edx, [ebp - 0x10098]
mov ecx, 0xf
mov dword [esp + 0xc], edx
mov esi, str.Resource__d:_t_s_n
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
call sub.msvcrt.dll_fprintf
jmp 0x405347
mov dword [esp], eax
lea edx, [ebp - 0x8018]
mov ecx, 0x10
mov dword [esp + 0xc], edx
mov esi, str.Resource__d:_t_s_n
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
call sub.msvcrt.dll_fprintf
jmp 0x4053d5