joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c3a0c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c3b7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x8c], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4c3b62
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.004093e0
mov dl, 1
mov eax, dword [0x49d448]
call fcn.0049d4a0
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x414890]
call fcn.004037fc
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0049d51c
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4c3b5f
mov dl, 1
mov eax, dword [0x49de90]
call fcn.0049def8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, 0x4c3b94
call fcn.0049d868
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404920
xor eax, eax
push ebp
push 0x4c3b58
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.0049e1f8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004c3b9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3b5f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0040382c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.0040382c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.0040382c
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3b84
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404640
ret
Function at 0x4c64fc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404abc
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4c6676
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.004c4b7c
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.004c4b9c
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4c6642
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404884
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004090f4
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.0040894c
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.0040894c
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404a18
je 0x4c661c
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404884
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.0040894c
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.0040894c
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404a18
jne 0x4c6633
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
push eax
call sub.KERNEL32.DLL_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.004c4bbc
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4c657d
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c667d
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404640
lea eax, [ebp - 4]
call fcn.0040461c
ret

Function at 0x4c88f4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
mov esi, 0x4cddd4
xor eax, eax
push ebp
push 0x4c89a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x360]
mov edx, dword [eax]
call dword [edx + 0xc8]
test eax, eax
jle 0x4c8933
xor edx, edx
mov eax, dword [ebx + 0x360]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, ebx
call fcn.00449684
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4c8955
push 0
mov eax, ebx
call fcn.00449684
push eax
call sub.user32.dll_ShowWindow
jmp 0x4c8964
push 1
mov eax, ebx
call fcn.00449684
push eax
call sub.user32.dll_ShowWindow
xor ebx, ebx
jmp 0x4c8985
push 0
lea ecx, [ebp - 4]
mov edx, ebx
mov eax, dword [esi]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 4]
call fcn.00408de0
push eax
call sub.user32.dll_ShowWindow
inc ebx
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jl 0x4c8968
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c89ad
lea eax, [ebp - 4]
call fcn.0040461c
ret
Function at 0x4c89c0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c8a9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x24], 0x20
lea eax, [ebp - 0x24]
push eax
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
fild qword [ebp - 0x2c]
fdiv dword [0x4c8acc]
call fcn.00402b20
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
call fcn.0047e514
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
fild qword [ebp - 0x2c]
fdiv dword [0x4c8acc]
call fcn.00402b20
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
call fcn.0047e5c4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
fild qword [ebp - 0x2c]
fdiv dword [0x4c8acc]
call fcn.00402b20
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
call fcn.0047e514
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
fild qword [ebp - 0x2c]
fdiv dword [0x4c8acc]
call fcn.00402b20
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
call fcn.0047e5c4
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c8ac4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4016aa
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x4126a0], eax
mov ebx, eax
jne 0x4016e0
push 0xfffffffffffffffe
jmp 0x401853
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 0xa]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x40170c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x401854
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__hread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi], 0x42
jne 0x40183f
cmp byte [esi + 1], 0x4d
jne 0x40183f
add esi, 0xe
cmp dword [esi + 0x10], 0
je 0x40175a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0xfffffffffffffff0
jmp 0x401853
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov dword [edi + 8], eax
mov eax, dword [esi + 8]
and dword [edi + 4], 0
mov dword [edi + 0xc], eax
movzx eax, word [esi + 0xe]
dec eax
je 0x401796
sub eax, 3
je 0x401792
sub eax, 4
je 0x40178b
sub eax, 0x10
jne 0x40183f
xor eax, eax
jmp 0x401799
mov eax, 0x400
jmp 0x401799
push 0x40
jmp 0x401798
push 8
pop eax
lea ebx, [esi + eax]
push 0
add ebx, dword [esi]
call dword [sym.imp.USER32.dll_GetDC]
and dword [ebp - 4], 0
push 0xc
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 8
jne 0x4017c2
mov dword [ebp - 4], 1
cmp word [esi + 0xe], 8
jne 0x4017f1
cmp dword [ebp - 4], 0
je 0x4017f1
push esi
call fcn.0040185b
pop ecx
mov dword [edi + 4], eax
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0
push esi
push ebx
push 4
push esi
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov dword [edi], eax
cmp word [esi + 0xe], 8
jne 0x40181e
cmp dword [ebp - 4], 0
je 0x40181e
push 0
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 0xc]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x401854
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0xfffffffffffffff8
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401de2
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0040287b
test eax, eax
pop ecx
jne 0x401f37
mov esi, 0x413228
push esi
call fcn.00402903
test eax, eax
pop ecx
jne 0x401f37
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x413228]
push 0x413230
mov dword [eax], ecx
call fcn.004028bc
test eax, eax
pop ecx
jne 0x401f37
mov edi, dword [ebp + 0x1c]
mov eax, dword [0x413230]
mov dword [edi], eax
cmp dword [0x413228], 1
jne 0x401e45
xor eax, eax
jmp 0x401f37
lea eax, [ebp + 8]
push eax
push 0x41323c
call fcn.00401dce
test eax, eax
jne 0x401f37
mov eax, dword [0x413228]
shl eax, 2
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x41322c], eax
jne 0x401e84
push 0xfffffffffffffffc
pop eax
jmp 0x401f37
push esi
call fcn.0040292b
mov ebx, eax
pop ecx
test ebx, ebx
je 0x401eb9
push dword [0x41322c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x41322c]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
jmp 0x401f37
movzx eax, word [ebp + 0x18]
push eax
mov dword [0x413234], edi
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
mov dword [0x413238], eax
movzx eax, word [ebp + 0x14]
push 0x4020ef
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edi, eax
mov eax, dword [0x413238]
test eax, eax
je 0x401efc
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp edi, 1
jne 0x401f05
xor edi, edi
jmp 0x401f0d
cmp edi, 2
jne 0x401f0d
or edi, 0xffffffff
mov eax, dword [0x41322c]
test eax, eax
je 0x401f35
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x41322c]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4023c1
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 0x3ea
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x402548
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 0x3eb
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x402548
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x402433
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 0x402548
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.004070c0
push 1
push 0x40f060
push esi
mov edi, eax
call fcn.004070c0
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 0x402548
test edi, edi
je 0x402548
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 0x4024d2
mov edi, ebx
push 1
sub edi, eax
add edi, esi
add ebx, esi
mov dword [ebp - 4], ebx
pop ebx
mov dword [ebp + 8], ebx
jmp 0x4024d8
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x4024e8
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x402548
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 0x4028bc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x413120
lea eax, [ebp - 0x14]
push 0x13
push eax
push 0x412744
push str.Default
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4028eb
push 0xfffffffffffffffa
pop eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x40f090
push eax
call fcn.00407860
add esp, 0xc
xor eax, eax
leave
ret
Function at 0x402903
Capabilities:
Read .ini file

Disassembly:
push 0x413120
push 0
push str.Count
push str.Languages
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 0x40292b
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 0x4029ab
push esi
push 0x40f0b8
lea eax, [ebp - 0x94]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x14]
push 0x413120
push 0x13
push eax
lea eax, [ebp - 0x94]
push 0x412744
push eax
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4029a8
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push 0x40f090
push eax
call fcn.00407860
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 0x402942
jmp 0x4029ab
push 0xfffffffffffffffa
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x402ca9
Capabilities:
Hide graphical window

Disassembly:
test byte [0x41276c], 2
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov edi, dword [sym.imp.USER32.dll_UpdateWindow]
je 0x402ce6
push dword [0x412780]
call ebp
test eax, eax
je 0x402ce6
push 5
push dword [0x412780]
call esi
push dword [0x412780]
call edi
test byte [0x41276c], 1
mov ebx, dword [esp + 0x14]
je 0x402d04
push ebx
call ebp
test eax, eax
je 0x402d04
push 5
push ebx
call esi
push ebx
call edi
jmp 0x402d09
push 0
push ebx
call esi
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402d11
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
lea eax, [ebp - 0x140]
push 0x105
push eax
push 0x1bc7
call fcn.004052a3
lea eax, [ebp - 0x140]
push eax
call fcn.004077b0
mov ebx, eax
mov edi, 0x7530
cmp ebx, edi
pop ecx
jbe 0x402d4d
mov ebx, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
add eax, ebx
mov dword [0x412760], eax
call esi
add eax, 0x1d4c0
mov dword [0x412764], eax
call esi
and dword [0x41277c], 0
push 0
push 0x3e8
push 0x3e9
push dword [ebp + 8]
add eax, edi
mov dword [0x412768], eax
call dword [sym.imp.USER32.dll_SetTimer]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402fac
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x413104], 0
push ebx
push esi
push edi
je 0x402fe4
push dword [ebp + 8]
call fcn.00403199
test eax, eax
pop ecx
jne 0x402ff1
test byte [0x41276c], 1
je 0x403137
xor dword [0x41276c], 1
jmp 0x403137
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403cbc
pop ecx
pop ecx
push 0x1b59
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_IsWindow]
mov esi, dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4030b3
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp + 0xc]
call fcn.00403446
test eax, eax
pop ecx
je 0x4030b3
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push dword [0x413108]
push 0x1c21
push dword [ebp + 8]
push 0xc
call ebx
push eax
push 0xb
call ebx
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x40000000
push str.LgoBitmapWin
push str.LgoBitmapCls
push 0
call esi
mov ebx, eax
test ebx, ebx
je 0x403137
push dword [ebp + 0xc]
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0
push dword [ebp - 4]
call edi
push 5
push ebx
call edi
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x1c52
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403191
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push dword [0x413108]
push 0x1c85
push dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x40000000
push str.LgoStatusWin
push str.ISBarCls
push 0
call esi
mov ebx, eax
test ebx, ebx
jne 0x40313b
xor eax, eax
jmp 0x403194
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x31
push dword [ebp - 4]
call esi
push 0
push eax
push 0x30
push ebx
call esi
push 1
push 0
push 0x495
push ebx
call esi
push 0x800000
push 0
push 0x493
push ebx
call esi
push 0xffffff
push 0
push 0x494
push ebx
call esi
push 0
push dword [ebp - 4]
call edi
push 5
push ebx
call edi
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4036ff
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
lea eax, [ebp - 0x2c]
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
push eax
push dword [ebp + 8]
call edi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call esi
xor ebx, ebx
push eax
push ebx
call esi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0x1e
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
cmp dword [0x413110], 1
mov dword [ebp - 8], eax
je 0x40375e
cmp dword [0x41310c], ebx
je 0x4037b3
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4037b3
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push esi
call edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
add ebx, esi
sub ebx, dword [ebp - 8]
push ebx
sub edi, eax
add edi, ecx
sub edi, dword [ebp - 0xc]
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403cbc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push edi
push 0x65
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x403d67
lea eax, [ebp - 0x200]
push 0x200
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov cl, byte [ebp - 0x200]
lea eax, [ebp - 0x200]
test cl, cl
je 0x403d25
cmp cl, 0x25
jne 0x403d14
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x50
je 0x403d1f
cmp cl, 0x70
je 0x403d1f
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
jmp 0x403cfd
push 1
mov byte [eax], 0x73
pop esi
test esi, esi
je 0x403d67
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x14], 0
lea esi, [eax + 0x14]
je 0x403d41
push 0x40f17c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x200]
push esi
push eax
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x4042aa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0xc]
add ecx, eax
cmp ecx, dword [esi + 0x14]
jb 0x40430c
mov edi, dword [esi + 0x18]
push 0
add edi, eax
push 0
push edi
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0x41279c
push 0x1830
push dword [esi]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4127a0], eax
mov eax, dword [0x41279c]
and dword [esi + 0xc], 0
mov dword [esi + 0x14], eax
test eax, eax
mov dword [esi + 0x18], edi
jne 0x40430c
push 0xfffffffffffffffd
pop eax
jmp 0x404336
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0xc]
cmp eax, dword [ebp + 0x10]
jle 0x40431a
mov eax, dword [ebp + 0x10]
xor ecx, ecx
test eax, eax
jle 0x404336
mov edx, dword [esi]
mov edi, dword [esi + 0xc]
mov dl, byte [edx + edi]
mov edi, dword [ebp + 0xc]
mov byte [ecx + edi], dl
inc dword [esi + 0xc]
inc ecx
cmp ecx, eax
jl 0x404320
pop edi
pop esi
pop ebp
ret

Function at 0x404436
Capabilities:
Get file size

Disassembly:
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
ret