joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b0c8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov ebx, eax
push dword [ebx + 0x4ec]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebx + 0x4f0], 0
je 0x40b0f5
lea eax, [ebx + 0x7c]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.0041052b
mov esi, eax
mov eax, dword [esi + 8]
xor ecx, ecx
test eax, eax
lea edx, [ebx + 0x20]
jle 0x40b11e
mov edi, dword [esi + 4]
cmp dword [edi], edx
je 0x40b121
inc ecx
add edi, 4
cmp ecx, eax
jl 0x40b112
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x40b155
test ecx, ecx
jl 0x40b155
cmp ecx, eax
jge 0x40b155
lea edx, [eax - 1]
cmp ecx, edx
je 0x40b152
mov edx, dword [esi + 4]
sub eax, ecx
shl eax, 2
lea ecx, [edx + ecx*4]
lea edx, [eax - 4]
push edx
lea edx, [ecx + 4]
push edx
push eax
push ecx
call fcn.004095b1
add esp, 0x10
dec dword [esi + 8]
mov eax, dword [esi + 0x14]
xor ecx, ecx
test eax, eax
lea edx, [ebx + 0x24]
jle 0x40b170
mov edi, dword [esi + 0x10]
cmp dword [edi], edx
je 0x40b173
inc ecx
add edi, 4
cmp ecx, eax
jl 0x40b164
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x40b1a7
test ecx, ecx
jl 0x40b1a7
cmp ecx, eax
jge 0x40b1a7
lea edx, [eax - 1]
cmp ecx, edx
je 0x40b1a4
mov edx, dword [esi + 0x10]
sub eax, ecx
shl eax, 2
lea ecx, [edx + ecx*4]
lea edx, [eax - 4]
push edx
lea edx, [ecx + 4]
push edx
push eax
push ecx
call fcn.004095b1
add esp, 0x10
dec dword [esi + 0x14]
mov edi, dword [ebx + 0x74]
test edi, edi
je 0x40b1c7
call fcn.0040a72c
mov ebx, dword [ebx + 0x74]
test ebx, ebx
je 0x40b1c7
push ebx
call fcn.0040a63e
push ebx
call fcn.0044e46d
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b517
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
sub eax, 0x202
je 0x40b56f
dec eax
dec eax
jne 0x40b58d
push esi
push 8
call fcn.004501ce
pop ecx
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push 0x473520
push 0xcb
push 0
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_AppendMenuW]
push dword [edi + 4]
lea eax, [ebp - 4]
push dword [esi + 4]
push eax
mov eax, dword [esi]
call fcn.0040d0ce
push esi
call fcn.0044e46d
pop ecx
pop esi
jmp 0x40b58d
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [edi + 0x7c]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov byte [edi + 0x4f0], 0
xor eax, eax
leave
ret
Function at 0x40b591
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 4]
push edi
mov dword [esi + 0x80], eax
mov eax, 0xcd
lea edi, [esi + 0x7c]
push eax
mov byte [esi + 0x4f0], 1
mov dword [edi], 0x3a8
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], 7
mov dword [esi + 0x8c], 0x40d
push dword [0x480220]
call dword [sym.imp.USER32.dll_LoadIconW]
push dword [esi + 0x54]
mov dword [esi + 0x90], eax
lea eax, [esi + 0x94]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push edi
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
ret

Function at 0x40b603
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
push edi
xor edi, edi
push edi
lea eax, [esp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov ecx, dword [esi + 0x4f8]
cmp ecx, 0x2bf20
jae 0x40b653
cmp eax, edi
je 0x40b645
push ebx
push 0x404
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov ebx, dword [esi + 0x74]
mov dword [esi + 0x4f8], edi
call fcn.0040a6b9
pop ebx
jmp 0x40b674
add ecx, 0x1f4
mov dword [esi + 0x4f8], ecx
jmp 0x40b674
push edi
push str.No_Internet_connection_detected
push str.BrotherSoft_Downloader_needs_an_internet_connection_to_function_Please_connect_and_try_again.
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
push edi
push 0x10
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
pop edi
pop ecx
ret
Function at 0x40bdbe
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x1f94]
mov eax, 0x2014
call fcn.00452d40
mov eax, dword [0x47d874]
xor eax, ebp
mov dword [ebp + 0x1f90], eax
mov eax, dword [ebp + 0x1f9c]
push ebx
push esi
push edi
xor edi, edi
mov esi, 0xffe
push esi
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0xf92]
push edi
push eax
mov ebx, ecx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
mov word [ebp + 0xf90], di
call fcn.0044fe00
push esi
lea eax, [ebp - 0x6e]
push edi
push eax
mov word [ebp - 0x70], di
call fcn.0044fe00
add esp, 0x18
push dword [ebx + 0x4ec]
mov esi, 0x800
push esi
lea eax, [ebp + 0xf90]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
xor eax, eax
cmp word [ebp + eax*2 + 0xf90], di
jne 0x40be4e
cmp word [ebp + eax*2 + 0xf92], di
je 0x40be53
inc eax
cmp eax, esi
jl 0x40be3a
inc eax
cmp eax, 1
mov dword [ebp - 0x80], eax
jg 0x40be60
xor eax, eax
jmp 0x40beb2
xor ebx, ebx
cmp eax, edi
jle 0x40beaf
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x74], eax
movzx eax, word [ebp + ebx*2 + 0xf90]
mov ecx, dword [ebp - 0x78]
inc dword [ebp - 0x78]
cmp ax, di
mov word [ebp + ecx*2 - 0x70], ax
jne 0x40bea9
mov eax, dword [ebp - 0x74]
inc dword [ebp - 0x7c]
add dword [ebp - 0x74], 4
lea ecx, [ebp - 0x70]
push ecx
push eax
call fcn.004109b9
push esi
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.0044fe00
add esp, 0xc
mov dword [ebp - 0x78], edi
inc ebx
cmp ebx, dword [ebp - 0x80]
jl 0x40be6c
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp + 0x1f90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e472
add ebp, 0x1f94
leave
ret 4
Function at 0x40becc
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x2004]
mov eax, 0x2004
call fcn.00452d40
push 0xffffffffffffffff
push 0x46ba53
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x47d874]
xor eax, ebp
mov dword [ebp + 0x2000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x200c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x2010]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x2014]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x47fa80]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], eax
mov esi, 0xffe
push esi
lea eax, [ebp + 2]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp], bx
call fcn.0044fe00
push esi
lea eax, [ebp + 0x1002]
push ebx
push eax
mov word [ebp + 0x1000], bx
call fcn.0044fe00
add esp, 0x18
push dword [edi + 0x4ec]
mov esi, 0x800
push esi
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor eax, eax
cmp word [ebp + eax*2], bx
jne 0x40bf8e
cmp word [ebp + eax*2 + 2], bx
je 0x40bf93
inc eax
cmp eax, esi
jl 0x40bf80
inc eax
cmp eax, 1
mov dword [ebp - 0x28], eax
jg 0x40bfab
lea ecx, [ebp - 0x10]
call fcn.00409720
xor eax, eax
jmp 0x40c097
xor ecx, ecx
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
jle 0x40c08b
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
sub edi, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], edi
movzx eax, word [ebp + ecx*2]
mov ecx, dword [ebp - 0x18]
inc dword [ebp - 0x18]
cmp ax, bx
mov word [ebp + ecx*2 + 0x1000], ax
jne 0x40c07b
lea eax, [ebp + 0x1000]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004109b9
push 0x473674
lea esi, [ebp - 0x10]
call fcn.00410acc
lea ecx, [ebp - 0x20]
push ecx
mov edx, eax
mov ecx, esi
call fcn.00410042
mov ecx, eax
mov eax, dword [ebp - 0x14]
add eax, edi
mov edi, ecx
mov byte [ebp - 4], 1
call fcn.00410b7d
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00409720
push 0x473674
call fcn.00410acc
inc eax
push eax
lea eax, [ebp - 0x30]
push eax
mov edx, esi
call fcn.00410020
mov edi, eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00410b7d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00409720
push 0x800
lea eax, [ebp + 0x1000]
push ebx
push eax
call fcn.0044fe00
mov edi, dword [ebp - 0x2c]
add esp, 0xc
inc dword [ebp - 0x24]
add dword [ebp - 0x14], 4
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x1c]
inc ecx
cmp ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
jl 0x40bfc6
lea ecx, [ebp - 0x10]
call fcn.00409720
mov eax, dword [ebp - 0x24]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2000]
xor ecx, ebp
call fcn.0044e472
add ebp, 0x2004
leave
ret 0xc
Function at 0x40c942
Capabilities:
Create process on windows

Disassembly:
push 0x20c
mov eax, 0x46b9c4
call fcn.00454bfe
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1dc]
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 2
call fcn.00410af0
mov byte [ebp - 4], 3
push dword [ebp - 0x1dc]
lea esi, [ebp - 0x98]
call fcn.0040d082
xor esi, esi
cmp dword [ebp - 0x98], esi
je 0x40ca59
lea eax, [ebp - 0x1d8]
push eax
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40ca59
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x38
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.0044fe00
add esp, 0xc
push 6
push esi
mov dword [ebp - 0x218], 0x3c
mov dword [ebp - 0x214], 0x40
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], 0x473678
mov dword [ebp - 0x1f8], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp dword [ebp + 0x14], 1
jne 0x40caa0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x200], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x204], esi
mov dword [ebp - 0x1fc], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 0x1e0], esi
je 0x40ca59
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x98], eax
je 0x40ca51
push dword [ebp - 0x98]
call fcn.0044e5ab
pop ecx
xor esi, esi
inc esi
jmp 0x40cafa
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x98], eax
je 0x40ca73
push dword [ebp - 0x98]
call fcn.0044e5ab
pop ecx
lea ecx, [ebp - 0x1dc]
call fcn.00409720
lea ecx, [ebp + 8]
call fcn.00409720
lea ecx, [ebp + 0xc]
call fcn.00409720
lea ecx, [ebp + 0x10]
call fcn.00409720
xor eax, eax
call fcn.00454c48
ret 0x10
cmp dword [ebp + 0x14], 2
jne 0x40ca37
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x200], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x204], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x1fc], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 0x1e0], esi
jne 0x40ca37
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x98], eax
je 0x40cafa
push dword [ebp - 0x98]
call fcn.0044e5ab
pop ecx
lea ecx, [ebp - 0x1dc]
call fcn.00409720
lea ecx, [ebp + 8]
call fcn.00409720
lea ecx, [ebp + 0xc]
call fcn.00409720
lea ecx, [ebp + 0x10]
call fcn.00409720
mov eax, esi
jmp 0x40ca98
Function at 0x40cbc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x40
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x58], 0x44
call fcn.0044fe00
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
cmp dword [esi + 0x18], 8
stosd dword es:[edi], eax
jb 0x40cc00
mov esi, dword [esi + 4]
jmp 0x40cc03
add esi, 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40cc30
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d31d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46b979
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x47d874]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x47d874]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
mov esi, ecx
jne 0x40d380
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0044e472
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x40d3a8
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x40d3a8
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x40d360
mov eax, dword [esi + 0x4c]
cmp eax, edi
jne 0x40d3b4
or eax, 0xffffffff
jmp 0x40d360
cmp dword [esi + 0x3c], edi
jne 0x40d3c8
push eax
push ebx
call fcn.0040fd22
test al, al
pop ecx
pop ecx
je 0x40d3af
jmp 0x40d3a4
push edi
push 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x18], bl
call fcn.0040db26
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x74], edi
call fcn.0040db9a
mov ecx, eax
call fcn.0040e4f6
mov edi, dword [esp + 0x58]
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0040db9a
mov ecx, eax
call fcn.0040e4f6
lea edx, [esp + 0x18]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x40d4d8
cmp eax, 1
jg 0x40d500
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
call fcn.0040db9a
mov ecx, eax
call fcn.0040e4f6
mov edi, dword [esp + 0x18]
sub edi, eax
je 0x40d46d
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
call fcn.0040db9a
mov ecx, eax
call fcn.0040e4f6
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00450e55
add esp, 0x10
cmp edi, eax
jne 0x40d517
lea eax, [esp + 0x10]
cmp dword [esp + 0x1c], eax
mov byte [esi + 0x41], 1
jne 0x40d52e
test edi, edi
ja 0x40d49b
cmp dword [esp + 0x58], 0x20
jae 0x40d517
push 0
push 8
lea ecx, [esp + 0x4c]
call fcn.0040db4c
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.0040db9a
mov ecx, eax
call fcn.0040e4f6
mov edi, dword [esp + 0x58]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0040db9a
mov ecx, eax
call fcn.0040e4f6
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x21]
push edx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x40d41b
jmp 0x40d517
cmp eax, 3
jne 0x40d517
push dword [esi + 0x4c]
push dword [esp + 0x14]
call fcn.0040fd22
test al, al
pop ecx
pop ecx
jne 0x40d52e
or esi, 0xffffffff
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.004045fb
mov eax, esi
jmp 0x40d360
mov esi, dword [ebp + 8]
jmp 0x40d51a
Function at 0x40e113
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x46bf1a
call fcn.00454bfe
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x40e21f
cmp byte [esi + 0x41], 0
je 0x40e21f
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x40e149
xor al, al
jmp 0x40e221
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.0040db26
mov dword [ebp - 4], edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040db9a
mov ecx, eax
call fcn.0040e4f6
mov edi, dword [ebp - 0x1c]
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040db9a
mov ecx, eax
call fcn.0040e4f6
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
add edi, ebx
push edi
push dword [ebp - 0x38]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x40e1b9
dec eax
je 0x40e1bd
dec eax
dec eax
je 0x40e21b
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004045fb
mov al, bl
jmp 0x40e221
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040db9a
mov ecx, eax
call fcn.0040e4f6
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x40e1fd
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040db9a
mov ecx, eax
call fcn.0040e4f6
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00450e55
add esp, 0x10
cmp edi, eax
jne 0x40e1a7
cmp byte [esi + 0x41], 0
je 0x40e21b
test edi, edi
jne 0x40e157
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.0040db4c
jmp 0x40e157
mov bl, 1
jmp 0x40e1a9
mov al, 1
call fcn.00454c48
ret
Function at 0x410bed
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x47d874]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
xor ebx, ebx
push ebx
push ebx
mov edi, ecx
push ebx
push edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], ebx
call esi
cmp eax, 0xffffffff
je 0x410cc0
push ebx
lea eax, [ebp - 0x50]
push eax
push 0x40
lea eax, [ebp - 0x48]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x50], ebx
call edi
test eax, eax
je 0x410cc0
cmp dword [ebp - 0x50], 0x40
jne 0x410cc0
cmp word [ebp - 0x48], 0x5a4d
jne 0x410cc0
push ebx
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x54]
call esi
cmp eax, 0xffffffff
je 0x410cc0
push ebx
lea eax, [ebp - 0x50]
push eax
push 2
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x54]
mov dword [ebp - 0x50], ebx
call edi
test eax, eax
je 0x410cc0
cmp dword [ebp - 0x50], 2
jne 0x410cc0
push ebx
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x54]
call esi
cmp eax, 0xffffffff
je 0x410cc0
cmp byte [ebp - 0x4c], 0x4e
jne 0x410c9a
cmp byte [ebp - 0x4b], 0x45
jne 0x410cad
mov eax, 0x454e
jmp 0x410cc2
cmp byte [ebp - 0x4c], 0x50
jne 0x410cad
cmp byte [ebp - 0x4b], 0x45
jne 0x410cad
mov eax, 0x4550
jmp 0x410cc2
lea eax, [ebp - 0x4c]
push eax
push str.Cant_handle__s_files._n
mov byte [ebp - 0x4a], bl
call fcn.0045189c
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e472
leave
ret
Function at 0x410cd1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push edi
xor esi, esi
push 1
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x410dec
push esi
lea eax, [ebp - 8]
push eax
mov edi, 0xf8
push edi
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410dec
cmp dword [ebp - 8], edi
jne 0x410dec
movzx edi, word [ebp - 0x10e]
mov dword [ebp - 0x18], edi
imul edi, edi, 0x28
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x410dec
movzx eax, word [ebp - 0x100]
mov ecx, dword [ebp - 0x10]
push esi
push esi
lea eax, [eax + ecx + 0x18]
push eax
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
je 0x410dec
push esi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410dec
cmp edi, dword [ebp - 8]
je 0x410d9f
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x410dec
mov eax, dword [ebp - 0x18]
cmp eax, esi
jle 0x410dd4
mov edi, dword [ebp - 0xc]
add edi, 0x14
mov dword [ebp - 0x10], eax
push esi
push esi
push dword [edi]
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
je 0x410dcc
mov eax, dword [edi - 4]
mov ecx, dword [edi]
add eax, ecx
cmp dword [ebp - 0x14], eax
jae 0x410dcc
mov dword [ebp - 0x14], eax
add edi, 0x28
dec dword [ebp - 0x10]
jne 0x410daf
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x14]
cmp eax, esi
ja 0x410def
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410df4
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x410e59
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push str.totoal_file_size:__lu_n
call fcn.0045189c
pop ecx
pop ecx
mov ecx, esi
call fcn.00410bed
cmp eax, 0x4550
jne 0x410e4c
push esi
call fcn.00410cd1
pop ecx
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
mov eax, ebx
jl 0x410e5b
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4114dc
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [esi + 0x5c], edi
je 0x411518
mov eax, esi
call fcn.00411ec4
test eax, eax
je 0x41151d
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x411877
push edi
push edi
call fcn.00451a5b
add esp, 0x18
cmp eax, edi
mov dword [esi + 0x78], eax
je 0x411518
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
leave
ret
mov eax, dword [esi + 0x80]
cmp eax, edi
je 0x411518
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x80]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x80]
push edi
mov ecx, dword [eax]
neg edx
push edx
push dword [ebp - 8]
push dword [ebp - 4]
push edi
push dword [esi + 0x38]
push dword [esi + 0x34]
push edi
push edi
push dword [esi + 0x60]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x411518
push edi
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
inc eax
jmp 0x41151a

Function at 0x41157a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x472a54
push 0xdf
push dword [0x480220]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41162d
push esi
push dword [0x480220]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41162d
push esi
push dword [0x480220]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x411626
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41161f
cmp dword [ebp - 4], 0
je 0x41161f
push edi
push eax
push dword [ebp - 4]
call fcn.00451d70
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
push edi
push esi
call fcn.00411024
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x41162f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4