joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4034f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push str.SetupApp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403541
push 0xd0
call fcn.00408e3c
add esp, 4
test eax, eax
je 0x40352a
mov ecx, eax
call section..text
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp + 8]
mov ecx, dword [0x41df40]
push eax
call fcn.00401710
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0040d570
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403654
mov ecx, dword [ebp - 0x10c]
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push str.UninstallString
push ecx
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403647
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], 0
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4035f6
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3f
jl 0x40361d
lea eax, [edi + 1]
push eax
push 0
mov dword [esi], 0
call fcn.004096a1
add esp, 8
mov dword [esi], eax
mov edx, dword [esi]
push edi
lea ecx, [ebp - 0x108]
push ecx
push edx
call fcn.004093b7
mov eax, dword [esi]
add esp, 0xc
mov byte [edi + eax], 0
pop edi
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408bbe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 4]
push 0
push 0x418416
push eax
mov dword [esi], eax
mov byte [eax], 0
call fcn.004093b7
mov ecx, dword [ebp - 4]
mov edx, dword [esi]
xor ecx, ebp
add esp, 0xc
mov byte [edx], 0
mov eax, esi
call fcn.00408bbe
mov esp, ebp
pop ebp
ret
Function at 0x403770
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi]
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403783
sub eax, edi
jne 0x403799
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4037b2
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov eax, dword [esi]
sub esp, 0x44
mov esi, esp
lea ecx, [esi + 4]
mov dword [ebp - 4], esp
mov dword [esi], ecx
mov byte [ecx], 0
mov ebx, eax
test eax, eax
jne 0x4037cf
mov ebx, 0x418416
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4037d4
sub eax, edx
mov edi, eax
cmp edi, 0x3f
jl 0x4037fa
lea ecx, [edi + 1]
push ecx
push 0
mov dword [esi], 0
call fcn.004096a1
add esp, 8
mov dword [esi], eax
mov edx, dword [esi]
push edi
push ebx
push edx
call fcn.004093b7
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
add esp, 0xc
push ecx
mov byte [edi + eax], 0
call fcn.00403830
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403830
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415288
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x144], eax
push 0x418560
push 0x66
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x403890
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
jmp 0x403980
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push esi
test ebx, ebx
jne 0x4038ab
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x403978
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x4038c6
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
jmp 0x403980
push edi
call fcn.00408bb3
add esp, 4
mov dword [0x41df0c], eax
test eax, eax
je 0x4038f0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x41df0c]
push eax
push edx
call fcn.0040f360
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x12c
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.0040d570
add esp, 0xc
push edi
call fcn.00408ac0
mov edi, eax
add esp, 4
test edi, edi
je 0x403973
push 0xffffffffffffffff
lea edx, [ebp - 0x140]
call fcn.00408b30
add esp, 4
test eax, eax
jne 0x403973
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40394b
mov edx, dword [ebp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 0x44
lea eax, [ebp + 0xc]
mov esi, esp
mov dword [ebp - 0x148], esp
push eax
call fcn.00402d20
mov ecx, dword [ebp - 0x140]
push ecx
mov ecx, dword [ebp - 0x144]
mov edx, edi
call fcn.004039b0
call fcn.00408b70
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
je 0x40398b
push eax
call fcn.004093d1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408bbe
mov esp, ebp
pop ebp
ret 0x48
Function at 0x4039b0
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415250
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x18c], edi
mov dword [ebp - 0x190], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0x98]
cmp eax, ebx
je 0x403a0e
mov ecx, dword [ebp + 8]
push ebx
push ecx
push 0x52c
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp + 8], ebx
jle 0x403b97
jmp 0x403a26
mov esi, dword [ebp - 0x190]
push 0x12c
lea edx, [ebp - 0x188]
push 0
push edx
call fcn.0040d570
add esp, 0xc
test esi, esi
jne 0x403a4c
mov dword [0x41df3c], 0x10000
jmp 0x403a71
cmp dword [esi], 1
je 0x403a5d
mov dword [0x41df3c], 0x80000
jmp 0x403a71
mov ecx, dword [esi + 4]
push ebx
lea edx, [ebp - 0x188]
call fcn.004080a0
mov dword [0x41df3c], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0
test edi, edi
jne 0x403a87
mov edi, 0x418416
mov ecx, edi
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403a90
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x403ab8
lea eax, [esi + 1]
push eax
push 0
mov dword [ebp - 0x58], 0
call fcn.004096a1
add esp, 8
mov dword [ebp - 0x58], eax
push esi
push edi
push eax
call fcn.004093b7
mov ecx, dword [ebp - 0x58]
add esp, 0xc
mov byte [esi + ecx], 0
push 0x418384
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00402db0
lea edx, [ebp - 0x184]
push edx
lea eax, [ebp - 0x58]
call fcn.00402db0
test byte [ebp - 0x80], 0x10
je 0x403afc
mov eax, dword [ebp - 0x58]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x190]
test eax, eax
jne 0x403b12
mov dword [0x41df3c], 0x10000
jmp 0x403b35
cmp dword [eax], 1
je 0x403b23
mov dword [0x41df3c], 0x80000
jmp 0x403b35
mov edx, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
push edx
push ebx
call fcn.00408790
mov dword [0x41df3c], eax
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x403b51
mov ecx, dword [ebp - 0x58]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x98]
test eax, eax
je 0x403b70
push 0
push ebx
push 0x52d
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
cmp eax, ecx
je 0x403b87
push eax
call fcn.004093d1
add esp, 4
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x403a20
mov edi, dword [ebp - 0x18c]
mov eax, dword [edi + 0x98]
test eax, eax
je 0x403bb1
push 0
push 0
push 0x52e
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
je 0x403bc4
push eax
call fcn.004093d1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408bbe
mov esp, ebp
pop ebp
ret 0x48
Function at 0x404250
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x90]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404350
mov edx, dword [0x41df40]
push edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 0x88], al
mov eax, dword [edx + 4]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [esi]
push eax
push ecx
push str.__s_s___mini
lea edi, [ebp - 0x8c]
call fcn.00403380
lea edx, [ebp - 0x44]
push 5
mov eax, edx
push str.fmyy4
push eax
mov dword [ebp - 0x48], edx
mov byte [ebp - 0x44], 0
call fcn.004093b7
mov ecx, dword [ebp - 0x48]
mov byte [ecx + 5], 0
mov edx, dword [esi + 0x54]
add esp, 0x18
push edx
lea eax, [ebp - 0x48]
call fcn.00402db0
mov edx, dword [ebp - 0x8c]
mov eax, edx
lea esi, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4042f7
mov ecx, dword [ebp - 0x90]
sub eax, esi
push eax
mov eax, dword [ebp - 0x48]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
cmp eax, ecx
je 0x404337
push eax
call fcn.004093d1
add esp, 4
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
cmp eax, edx
je 0x404350
push eax
call fcn.004093d1
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00408bbe
mov esp, ebp
pop ebp
ret
Function at 0x404360
Capabilities:
Persist via run registry key
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x138]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404535
push esi
push edi
mov edi, dword [ebx]
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov byte [ebp - 0xa8], 0
test edi, edi
jne 0x4043b9
mov edi, 0x418416
mov ecx, edi
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4043c0
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x4043ee
lea ecx, [esi + 1]
push ecx
push 0
mov dword [ebp - 0xac], 0
call fcn.004096a1
add esp, 8
mov dword [ebp - 0xac], eax
push esi
push edi
push eax
call fcn.004093b7
mov edx, dword [ebp - 0xac]
add esp, 0xc
push str.SysConfig.ini
lea eax, [ebp - 0xac]
mov byte [esi + edx], 0
call fcn.00402db0
mov eax, dword [ebp - 0xac]
push eax
push 0x63
lea ecx, [ebp - 0x68]
push ecx
push str.BoxNews.exe
push str.RunSetup
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebx]
lea eax, [ebp - 0x68]
push eax
push ecx
lea edx, [ebp - 0x130]
push str.__s_s___mini
lea edi, [ebp - 0x134]
mov dword [ebp - 0x134], edx
mov byte [ebp - 0x130], 0
call fcn.00403380
lea edx, [ebp - 0xec]
push 5
mov eax, edx
push str.fmyy4
push eax
mov dword [ebp - 0xf0], edx
mov byte [ebp - 0xec], 0
call fcn.004093b7
mov ecx, dword [ebp - 0xf0]
add esp, 0x18
push str._News
lea eax, [ebp - 0xf0]
mov byte [ecx + 5], 0
call fcn.00402db0
mov edx, dword [ebx + 0x54]
push edx
lea eax, [ebp - 0xf0]
call fcn.00402db0
mov edx, dword [ebp - 0x134]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4044b8
mov ecx, dword [ebp - 0x138]
sub eax, esi
push eax
mov eax, dword [ebp - 0xf0]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0xec]
pop edi
pop esi
cmp eax, ecx
je 0x404503
push eax
call fcn.004093d1
add esp, 4
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
cmp eax, edx
je 0x40451c
push eax
call fcn.004093d1
add esp, 4
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0xa8]
cmp eax, ecx
je 0x404535
push eax
call fcn.004093d1
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408bbe
mov esp, ebp
pop ebp
ret
Function at 0x4067a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4067a7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x40687d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419b30]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419b30]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419b30]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419b30]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419b30]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419b30]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419b30]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419b30]
add ecx, 8
sub edx, 8
dec esi
jne 0x4067c0
pop edi
test edx, edx
je 0x40689a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x419b30]
inc ecx
dec edx
jne 0x406881
not eax
pop esi
ret

Function at 0x406f60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x406f96
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406f8c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x406fa7
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.0040f360
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret

Function at 0x406fd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x407003
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406ffe
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x40702e
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x407015
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x10]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.0040f360
add esp, 0xc
add ebx, edi
mov dword [esi + 0x18], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x407043
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40703d
cmp byte [esi + 8], 0
je 0x40703d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x4070e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x407127
cmp byte [esi + 1], 0
je 0x40712f
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x407141
cmp byte [esi + 1], 0
je 0x407135
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x407149
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x407101
xor eax, eax
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x407149
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x40715b
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0040940b
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x407175
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0
cmp edi, eax
jbe 0x407289
jmp 0x407199
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x4071a8
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x4071bf
mov ebx, 0x404
cmp byte [esi], 0
je 0x4071e4
cmp byte [esi + 1], 0
je 0x407289
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4071e7
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebx
je 0x407210
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40720b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x407239
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x407221
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.0040f360
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x407289
lea eax, [ebx - 3]
test eax, eax
jle 0x40727d
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x40726f
cmp byte [eax + ecx + 1], 0x4b
jne 0x40726f
cmp byte [eax + ecx + 2], 5
jne 0x40726f
cmp byte [eax + ecx + 3], 6
je 0x407275
test eax, eax
jg 0x407250
jmp 0x40727d
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jne 0x407289
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x407190
mov eax, dword [ebp - 0x10]
push eax
call fcn.004093d1
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408bbe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c024]
jne 0x408bc8
repz ret
jmp fcn.0040a0fe

Function at 0x40e425
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040a4fb
and dword [ebp - 0x14], 0
cmp dword [0x41de78], 0
mov dword [ebp - 0x18], eax
jne 0x40e4d8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e580
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e580
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41de78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41de7c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41de80], eax
call edi
push eax
call esi
mov dword [0x41de88], eax
test eax, eax
je 0x40e4d8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41de84], eax
mov eax, dword [0x41de84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e531
cmp dword [0x41de88], ecx
je 0x40e531
push eax
call esi
push dword [0x41de88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e531
test ebx, ebx
je 0x40e531
call edi
test eax, eax
je 0x40e528
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e528
test byte [ebp - 8], 1
jne 0x40e531
or dword [ebp + 0x10], 0x200000
jmp 0x40e564
mov eax, dword [0x41de7c]
cmp eax, dword [ebp - 0x18]
je 0x40e564
push eax
call esi
test eax, eax
je 0x40e564
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e564
mov eax, dword [0x41de80]
cmp eax, dword [ebp - 0x18]
je 0x40e564
push eax
call esi
test eax, eax
je 0x40e564
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41de78]
call esi
test eax, eax
je 0x40e580
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e582
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bbe
leave
ret