joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406966
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ee
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x406aed
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
call ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
call esi
push 0x3ef
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x406aed
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x4069d8
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x406aed
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xd0]
push eax
push esi
call fcn.00407008
push 1
push 0x4245ac
push esi
mov edi, eax
call fcn.00407008
push esi
push dword [ebp - 8]
movzx ebx, ax
call dword [sym.imp.USER32.dll_ReleaseDC]
and dword [ebp + 8], 0
movzx esi, di
add esi, ebx
shr edi, 0x10
test esi, esi
mov dword [ebp - 0x14], edi
je 0x406aed
test edi, edi
je 0x406aed
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
cmp eax, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
jge 0x406a77
mov edi, esi
push 1
sub edi, eax
add edi, ebx
add esi, ebx
pop ebx
mov dword [ebp - 4], esi
mov dword [ebp + 8], ebx
jmp 0x406a7d
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x406a8d
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x406aed
mov esi, dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x2c
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x34]
push ebx
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
sub eax, edi
push dword [ebp - 4]
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x2c
push eax
push dword [ebp - 8]
call esi
mov ecx, dword [ebp - 0x34]
push 1
push dword [ebp - 0xc]
lea eax, [edi + edi]
sub ecx, eax
push dword [ebp - 4]
push dword [ebp - 0x30]
push ecx
push dword [ebp - 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406e55
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x42a95c
lea eax, [ebp - 0x14]
push 0x13
push eax
push 0x428770
push 0x4245c8
push 0x4244fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x406e84
push 0xfffffffffffffffa
pop eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x4245c4
push eax
call fcn.004156c0
add esp, 0xc
xor eax, eax
leave
ret
Function at 0x406e9c
Capabilities:
Read .ini file

Disassembly:
push 0x42a95c
push 0
push 0x4244f4
push 0x4244fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 4]
mov dword [ecx], eax
neg eax
sbb eax, eax
and eax, 6
add eax, 0xfffffffa
ret

Function at 0x406ec4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
cmp dword [edi], esi
jbe 0x406f44
push esi
push 0x4244f0
lea eax, [ebp - 0x94]
push 0x4244e8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x14]
push 0x42a95c
push 0x13
push eax
lea eax, [ebp - 0x94]
push 0x428770
push eax
push 0x4244fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x406f41
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push 0x4245c4
push eax
call fcn.004156c0
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [eax + esi*4], ecx
inc esi
cmp esi, dword [edi]
jb 0x406edb
jmp 0x406f44
push 0xfffffffffffffffa
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x40941c
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe20
and byte [ebp - 0x20], 0
push ebx
push esi
push edi
mov ebx, ecx
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1f]
and byte [ebp - 0x620], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x61f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x424d14
call fcn.0040f27a
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.0040fa67
add esp, 0x14
test eax, eax
jge 0x409609
mov ecx, ebx
call fcn.00401046
mov edi, eax
mov ecx, edi
call fcn.0040cff0
mov ecx, ebx
mov esi, eax
call fcn.004091e4
test eax, eax
je 0x40953b
cmp dword [esi], 2
jne 0x409534
call fcn.0040fd1c
test eax, eax
jne 0x4094c7
mov eax, 0x4b2
push eax
mov dword [0x42b314], eax
call fcn.0040f0b1
pop ecx
push 1
jmp 0x40960b
and byte [ebp - 0x420], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x41f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x420]
mov esi, 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x409509
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.00408edf
test eax, eax
je 0x40952d
lea eax, [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x409534
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.00408edf
test eax, eax
jne 0x409534
push 2
jmp 0x40960b
xor eax, eax
jmp 0x40960c
cmp dword [esi + 0x14], 2
jne 0x409555
cmp dword [esi + 8], 4
jne 0x409555
mov ecx, edi
call fcn.0040e34e
push 3
jmp 0x40960b
mov esi, 0x400
push 0x42a448
lea eax, [ebp - 0xe20]
push esi
push eax
push 0x428770
push dword [0x42057c]
push dword [0x420574]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0xe20], 0x79
je 0x409604
cmp byte [ebp - 0xe20], 0x59
je 0x409604
and byte [ebp - 0x420], 0
mov ebx, 0xff
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x41f]
mov edx, 0x4b7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x420]
push esi
push eax
push edx
mov dword [0x42b314], edx
call fcn.0040f191
and byte [ebp - 0xa20], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0xa1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xa20]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xa20]
push eax
call fcn.0040ef59
add esp, 0x10
or eax, 0xffffffff
jmp 0x40960c
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x409613
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
mov edx, ecx
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
mov esi, dword [ebp + 0xc]
mov byte [ebp + 0xf], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
mov dword [esi], ebx
stosb byte es:[edi], al
call fcn.00401046
add eax, 0x78
push eax
push 0x424d44
call fcn.0040fa67
pop ecx
test eax, eax
pop ecx
jge 0x409666
push dword [ebp + 8]
push 0x424d3c
jmp 0x409672
push dword [ebp + 8]
mov byte [ebp + 0xf], 1
push 0x424d1c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.0040faf7
mov edi, eax
cmp edi, ebx
je 0x409744
cmp edi, 0xbc2
je 0x4096bc
push ebx
push edi
mov dword [0x42b314], 0x484
call fcn.0040efcb
pop ecx
mov eax, edi
pop ecx
jmp 0x409746
cmp byte [ebp + 0xf], bl
je 0x40973e
push 0x20019
push 0x424a18
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 8]
mov dword [esi], 2
mov dword [ebp + 8], ebx
call fcn.00405bae
test eax, eax
jne 0x40972e
push 0x40
lea edi, [ebp - 0x20b]
pop ecx
mov byte [ebp - 0x20c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x424a04
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 8], ebx
je 0x409744
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409744
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4099f5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.00401046
mov dword [ebp - 8], eax
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x407]
mov byte [ebp - 0x408], bl
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 0x14]
cmp dword [ebp + 0x10], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esi], 2
je 0x409a48
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.004145c0
pop ecx
pop ecx
jmp 0x409a82
mov edi, 0x42a448
push edi
push ebx
push dword [0x4205a4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi], eax
push edi
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
push dword [0x4205a8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [ebp + 0xc]
mov esi, dword [esi]
sub esi, ebx
je 0x409b58
dec esi
je 0x409b3f
dec esi
je 0x409b27
dec esi
je 0x409acf
dec esi
jne 0x409b0d
push dword [ebp + 8]
push 0x428774
push edi
call fcn.0040f821
push edi
call fcn.0040f959
test eax, eax
jne 0x409b0d
mov eax, 0x483
push edi
push eax
mov dword [0x42b314], eax
call fcn.0040f0b1
pop ecx
pop ecx
xor eax, eax
jmp 0x409b10
mov esi, dword [ebp - 4]
push ebx
mov ecx, esi
call fcn.0040974d
cmp dword [esi + 0x10], ebx
je 0x409b17
push 1
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x408]
mov ecx, esi
push eax
call fcn.00409bbf
test eax, eax
je 0x409acb
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x408]
push 1
push eax
push 0x424dbc
call fcn.0040dd5f
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x14
lea eax, [ebp - 0x408]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x409b0d
push dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x408]
push edi
push dword [ebp + 8]
push eax
call fcn.00409bbf
jmp 0x409b4f
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.00409b69
test eax, eax
jne 0x409b0d
jmp 0x409acb
lea eax, [ebp - 0x408]
push eax
push 0x42af14
jmp 0x409aa8
Function at 0x40a83b
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
push 0x424eb8
lea eax, [ebp - 0x80c]
push 0x424e80
push eax
xor ebx, ebx
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x80c]
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40a8a7
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x80c]
push eax
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 8], ebx
sete byte [ebp - 1]
cmp edi, ebx
je 0x40a8b9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a8c1
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41f020
call fcn.00414b54
sub esp, 0x4e0
push ebx
push esi
mov dword [ebp - 0x10], ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4eb]
mov byte [ebp - 0x4ec], bl
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x42a448
lea eax, [ebp - 0x4ec]
push 0x400
push eax
push 0x428770
push 0x424eec
push dword [0x420574]
call esi
cmp byte [ebp - 0x4ec], bl
jne 0x40a929
xor eax, eax
jmp 0x40aa64
cmp dword [0x42b318], ebx
jne 0x40a97c
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0xeb]
mov byte [ebp - 0xec], bl
push 0x42a448
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xec]
push 0x80
push eax
push 0x428770
push 0x424ee0
push dword [0x420574]
call esi
cmp byte [ebp - 0xec], 0x59
je 0x40a987
cmp byte [ebp - 0xec], 0x79
je 0x40a987
mov eax, dword [ebp + 8]
mov dword [eax], 1
jmp 0x40a98c
mov eax, dword [ebp + 8]
mov dword [eax], ebx
push dword [0x42aa64]
mov ecx, dword [ebp - 0x10]
call fcn.0040aa98
mov ecx, eax
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x1b]
mov byte [ebp - 0x1c], bl
mov dword [eax], ecx
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
push ecx
lea eax, [ebp - 0x1c]
push 0x424b88
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0x6c]
push 1
pop esi
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040acb1
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040738b
pop ecx
pop ecx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00407311
cmp dword [ebp - 0x38], ebx
jbe 0x40aa56
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 0xc], 0x4205dc
cmp eax, ebx
je 0x40aa07
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], ebx
jne 0x40aa10
xor esi, esi
jmp 0x40aa3e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00414d30
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x4ec]
push esi
push eax
call fcn.0040fa67
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
setl cl
mov esi, ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00407311
mov eax, esi
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x4f8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40aa98
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
push 0x42a448
push 0
push dword [0x4205a4]
mov esi, ecx
push 0x424ab0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 2
mov edi, 0x409
je 0x40aace
push eax
mov ecx, esi
push dword [esp + 0x10]
call fcn.0040aad9
test eax, eax
je 0x40aad2
mov edi, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x40d9a6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b8
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 1
push dword [0x424f48]
mov dword [ebp - 8], ecx
call fcn.0040db8f
test eax, eax
je 0x40da9a
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4b7]
mov byte [ebp - 0x4b8], bl
rep stosd dword es:[edi], eax
push dword [0x424f48]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4b8]
push 0x428774
push eax
call fcn.0040f821
lea eax, [ebp - 0x4b8]
mov edi, 0x4244fc
push eax
push ebx
push 0x4244f4
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ebx
jbe 0x40da92
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp - 4]
lea eax, [ebp - 0xb8]
push 0x4244f0
push 0x4244e8
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x20]
push 0x13
push eax
lea eax, [ebp - 0xb8]
push 0x428770
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40da9a
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push 0x42509c
push eax
call esi
mov ecx, dword [ebp - 8]
add esp, 0xc
lea eax, [ebp - 0x38]
push ebx
push 1
push eax
call fcn.0040db8f
test eax, eax
je 0x40da9a
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x40da25
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x40da95

Function at 0x40dc6b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40dd21
lea eax, [ebp - 0x118]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.0040f191
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x40dd11
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40dccd
lea eax, [ebp - 0x118]
push 0x424170
push eax
call fcn.00415640
pop ecx
test eax, eax
pop ecx
jne 0x40dce9
mov eax, 0x486
push eax
mov dword [0x42b314], eax
call fcn.0040f0b1
pop ecx
push dword [0x42b314]
call fcn.0041553e
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.00410188
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
leave
ret 8
Function at 0x40dfdf
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, 0x4250d0
push edi
lea eax, [ebp - 0x14]
push esi
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 4
xor ebx, ebx
pop eax
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x2d3c]
push 0x7f00
push ebx
mov dword [ebp - 0x50], 0x40e137
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push dword [edi + 0x2d3c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x40e062
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x40e104
push 0xd0
call fcn.004146d7
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40e104
mov eax, dword [ebp + 8]
push 1
pop ecx
mov dword [esi + 4], ecx
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
mov eax, dword [eax]
mov dword [esi + 0x78], eax
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [esi]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
call ebx
sub eax, dword [ebp - 0x28]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call ebx
sub eax, dword [ebp - 0x24]
push esi
push dword [edi + 0x2d3c]
xor ecx, ecx
cdq
push ecx
push ecx
push dword [ebp - 0x24]
sub eax, edx
sar eax, 1
push dword [ebp - 0x28]
mov dword [edi + 0x2900], ecx
push eax
push dword [ebp + 8]
push 0x86000000
push 0x4250c0
push 0x4250d0
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
test ebx, ebx
jne 0x40e108
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40e130
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
push ebx
mov dword [edi + 0x2900], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x2900]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40eb1d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
push 0x80
push 3
push edi
push 3
lea eax, [esi + 4]
push SysReAllocStringLen
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40eb62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
jmp 0x40ebb1
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x78]
push 0x40
push eax
push ebx
call esi
mov ecx, dword [ebp - 0xc]
push edi
push edi
push dword [ebp - 0x3c]
push ebx
call fcn.0040edab
test eax, eax
je 0x40ebb1
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x13c]
push 0x18
push eax
push ebx
call esi
movzx eax, word [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
push 1
push edi
push eax
push ebx
call fcn.0040edab
test eax, eax
jne 0x40ebb5
xor eax, eax
jmp 0x40ec07
cmp word [ebp - 0x136], di
mov dword [ebp - 8], edi
jbe 0x40ebf1
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x38]
push 0x28
push eax
push ebx
call esi
cmp word [ebp - 8], di
mov eax, dword [ebp - 0x24]
je 0x40ebdb
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x28]
inc dword [ebp - 8]
mov dword [ebp - 4], eax
mov ax, word [ebp - 8]
cmp ax, word [ebp - 0x136]
jb 0x40ebc1
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.0040ec0c
add dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ec0c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
push ebx
mov dword [ebp - 4], ecx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x40ec38
xor eax, eax
jmp 0x40ece8
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40ecdd
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
push edi
mov edi, dword [esi + 0xa8]
cmp edi, ebx
mov dword [ebp - 0xc], edi
je 0x40ecd2
mov ecx, dword [ebp - 4]
push esi
push 0x4250fc
call fcn.0040eced
cmp eax, ebx
je 0x40ec88
cmp dword [eax + 0xc], edi
jne 0x40ec88
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0xac]
add ecx, dword [ebp + 8]
jmp 0x40ecb9
mov ecx, dword [ebp - 4]
push esi
push 0x4250f4
call fcn.0040eced
mov edi, eax
cmp edi, ebx
je 0x40ecd2
mov eax, dword [esi + 0xac]
push 0x1c
xor edx, edx
pop ecx
div ecx
cmp eax, ebx
je 0x40ecd2
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0xc]
add ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
cmp eax, ebx
jbe 0x40eccd
mov edx, dword [ebp - 8]
add ecx, 0x10
add edx, dword [ecx]
add ecx, 0x1c
dec eax
jne 0x40ecc3
jmp 0x40ecd0
mov edx, dword [ebp - 8]
mov ebx, edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
leave
ret 4