joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406280
Capabilities:
Check if file exists
Delete file
Get file attributes
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4703a3
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x48f310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x49], 1
call fcn.00403f80
push str.Zona
mov eax, esi
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00401cf8
mov ecx, esi
push ecx
lea edx, [ebp - 0x48]
push str.Try_delete_file_Zona_from
push edx
call fcn.0040ae00
add esp, 0xc
mov byte [ebp - 4], 1
call fcn.00401489
push eax
push str.INFO
mov ecx, edi
call fcn.00414290
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.004012b8
mov eax, esi
call fcn.00401489
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40644a
test al, 0x10
jne 0x40644a
push str.File_found
push str.INFO
mov ecx, edi
call fcn.00414290
mov eax, esi
call fcn.00401489
push ebx
push 1
push 3
push ebx
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40636a
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x58], ebx
jne 0x406436
cmp dword [ebp - 0x54], ebx
jne 0x406436
push str.File_is_empty
push str.INFO
mov ecx, edi
call fcn.00414290
push ebx
lea eax, [ebp - 0x2c]
call fcn.00401489
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x2c]
call fcn.00401489
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406423
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x100]
push ecx
mov esi, eax
call fcn.00406b30
push esi
push ecx
lea edx, [ebp - 0xf0]
push str.Cant_delete__last_error_is
push edx
mov byte [ebp - 4], 2
call fcn.0040a510
add esp, 0xc
push eax
call fcn.00406500
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x100]
call fcn.00406bd0
mov byte [ebp - 4], 3
call fcn.00401489
push eax
push str.INFO
mov ecx, edi
call fcn.00414290
lea ecx, [ebp - 0x48]
call fcn.004012b8
lea ecx, [ebp - 0x100]
mov byte [ebp - 0x49], bl
mov byte [ebp - 4], bl
call fcn.00405430
jmp 0x40644a
push str.File_is_deleted
push str.INFO
mov ecx, edi
call fcn.00414290
jmp 0x40644a
push str.File_is_NOT_empty
push str.INFO
mov ecx, edi
call fcn.00414290
mov byte [ebp - 0x49], bl
lea ecx, [ebp - 0x2c]
call fcn.004012b8
mov al, byte [ebp - 0x49]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045080d
mov esp, ebp
pop ebp
ret
Function at 0x408c90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c11b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x48f310]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004684cb
push 4
mov dword [ebp - 4], 0
call fcn.00450883
mov edi, eax
add esp, 4
test edi, edi
je 0x408d0c
call fcn.004683a3
mov dword [edi], eax
call fcn.00468162
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0046848c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x408d02
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004684b4
jmp 0x408d0e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x412b30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x412b92
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push esi
push edi
jmp 0x412b53
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor esi, esi
lea edi, [eax + 0x20]
mov edi, edi
mov eax, dword [edi]
test eax, eax
je 0x412b76
mov ecx, dword [eax]
push 0
push ecx
call ebx
inc esi
add edi, 4
cmp esi, 0x20
jl 0x412b60
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, dword [edx]
jne 0x412b50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413190
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 8]
mov eax, dword [edx + 4]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
Function at 0x4138f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.004601c0
mov eax, dword [0x48f310]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push 0x479b8c
lea esi, [ecx + 0x10]
push 0x4000
push esi
mov dword [ebp - 0x17e4], ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x17e0]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [ebp - 0x17e8], ebx
test ebx, ebx
je 0x413ab4
xor esi, esi
cmp dword [ebp - 0x17e0], esi
jle 0x413ab4
test esi, esi
jne 0x4139c6
push 0x3e8
lea ecx, [ebp - 0x7dc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41398b
push 0x800
lea edx, [ebp - 0x17dc]
push edx
lea eax, [ebp - 0x7dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ecx, dword [ebx]
lea eax, [ebp - 0x17dc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4139b9
test dx, dx
je 0x4139b5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4139b9
add eax, 4
add ecx, 4
test dx, dx
jne 0x413993
xor eax, eax
jmp 0x4139be
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x413aa7
mov eax, dword [ebx + esi*4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4139d0
sub eax, edx
sar eax, 1
xor ecx, ecx
lea eax, [eax + eax + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045081c
mov ecx, dword [ebx + esi*4]
push ecx
push 0x479b8c
push eax
mov dword [ebp - 0x17ec], eax
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esi + 1]
add esp, 0x10
cmp eax, dword [ebp - 0x17e0]
jge 0x413a6f
mov edx, dword [ebx + esi*4 + 4]
cmp word [edx], 0x2f
je 0x413a6f
mov esi, eax
mov eax, dword [ebx + esi*4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413a31
sub eax, edx
sar eax, 1
xor ecx, ecx
lea eax, [eax + eax + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045081c
mov edi, eax
mov eax, dword [ebx + esi*4]
push eax
push 0x479b8c
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp - 0x17ec]
mov dword [ebp - 0x17f0], edi
mov edi, dword [ebp - 0x17e4]
lea ebx, [ebp - 0x17f4]
mov dword [ebp - 0x17f4], ecx
call fcn.00414080
mov edx, edi
push eax
push edx
lea edi, [ebp - 0x17fc]
call fcn.00413cc0
mov ebx, dword [ebp - 0x17e8]
inc esi
cmp esi, dword [ebp - 0x17e0]
jl 0x413957
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045080d
mov esp, ebp
pop ebp
ret 4
Function at 0x414100
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d6a7
mov eax, dword fs:[0]
push eax
mov eax, 0x1010
call fcn.004601c0
mov eax, dword [0x48f310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x101c], esi
mov dword [ebp - 0x1014], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ecx
mov eax, esp
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
mov dword [ebp - 0x1018], esp
call fcn.00402a24
mov eax, ebx
call fcn.00401f4d
push 0
push 0
mov edi, ebx
call fcn.004012f5
push ecx
mov eax, esp
lea edi, [esi + 0x34]
mov dword [ebp - 0x1018], esp
call fcn.00402a24
mov eax, edi
call fcn.00401f4d
push 0
push 0
call fcn.004012f5
lea ecx, [ebp - 0x1010]
push ecx
push 0x800
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp - 0x1014]
push edx
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.00401cf8
push eax
call fcn.00401cf8
push 0x479bc4
call fcn.00401d13
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045080d
mov esp, ebp
pop ebp
ret 4
Function at 0x4156b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e9b7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x48f310]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x4799b8
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov esi, dword [edx + 4]
add esi, ebx
mov dword [ebp - 0x10], 1
call fcn.004033a0
lea edi, [ebx + 4]
push esi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
call fcn.00416990
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x41573b
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push 0
mov ecx, esi
call fcn.00403260
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push edi
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.00416810
lea edx, [edi + 8]
mov dword [edi + 0x10], edx
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [edi + 0x50], 0
mov byte [edi + 0x49], 0
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
xor ecx, ecx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [edi + 0x24]
mov dword [eax], ecx
mov edx, dword [edi + 0x34]
mov dword [edx], ecx
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov edx, dword [edi + 0x20]
mov dword [edx], ecx
mov eax, dword [edi + 0x30]
mov edx, dword [0x494724]
mov dword [eax], ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4163c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cc68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x48f310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x4164e1
cmp byte [edi + 0x49], bl
je 0x4164e1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x4164d5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x416434
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x41644c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x416475
dec eax
je 0x416479
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4164d0
jmp 0x4164dc
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x416489
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4164b2
cmp ebx, 0x10
jae 0x416498
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00451b40
add esp, 0x10
cmp esi, eax
jne 0x4164cd
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4164d9
test esi, esi
jne 0x416440
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.00407850
jmp 0x41643a
lea ecx, [ebp - 0x2c]
call fcn.004064b0
xor al, al
jmp 0x4164e3
lea ecx, [ebp - 0x2c]
call fcn.004064b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045080d
mov esp, ebp
pop ebp
ret
Function at 0x416810
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c11b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x48f310]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004684cb
push 4
mov dword [ebp - 4], 0
call fcn.00450883
mov edi, eax
add esp, 4
test edi, edi
je 0x41688c
call fcn.004683a3
mov dword [edi], eax
call fcn.00468162
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0046848c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x416882
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004684b4
jmp 0x41688e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4186f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x48f310]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x208], 1
test al, 1
je 0x418723
mov edi, 3
test al, 4
je 0x418734
mov dword [ebp - 0x208], 0x21
or edi, 4
mov ecx, dword [ebx + 4]
push 0x100
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
call dword [sym.imp.UxTheme.dll_IsThemeActive]
test eax, eax
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
je 0x4187a3
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418760
mov ecx, dword [esi + 0x18]
sub eax, edx
lea edx, [esi + 0x1c]
push edx
mov edx, dword [ebx + 0x28]
push 0
push 0x25
sar eax, 1
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push 1
push ecx
push edx
call dword [sym.imp.UxTheme.dll_DrawThemeText]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045080d
mov esp, ebp
pop ebp
ret 4
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4187a3
sub eax, edx
lea ecx, [ebp - 0x210]
push ecx
sar eax, 1
push eax
mov eax, dword [esi + 0x18]
lea edx, [ebp - 0x204]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4187d4
sub eax, edx
mov edx, dword [ebp - 0x208]
sar eax, 1
mov ecx, dword [esi + 0x24]
mov edi, eax
mov eax, dword [esi + 0x28]
push edx
push eax
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 0x20c]
cdq
sub eax, edx
sar eax, 1
push ecx
sar ebx, 1
sub ebx, eax
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x210]
cdq
sub eax, edx
push ebx
sar eax, 1
sar ecx, 1
sub ecx, eax
mov eax, dword [esi + 0x18]
push ecx
push edi
lea edx, [ebp - 0x204]
push edx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_DrawStateW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045080d
mov esp, ebp
pop ebp
ret 4
Function at 0x418850
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x48f310]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x408], 1
test al, 1
je 0x418883
mov ebx, 3
test al, 4
je 0x418894
mov dword [ebp - 0x408], 0x21
or ebx, 4
mov ecx, dword [edi + 4]
push 0x100
lea eax, [ebp - 0x404]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [edi + 0x2c], 0
jne 0x418906
call dword [sym.imp.UxTheme.dll_IsThemeActive]
test eax, eax
je 0x418906
lea eax, [ebp - 0x404]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4188c3
mov ecx, dword [esi + 0x18]
sub eax, edx
lea edx, [esi + 0x1c]
push edx
mov edx, dword [edi + 0x28]
push 0
push 0x25
sar eax, 1
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
push 1
push ecx
push edx
call dword [sym.imp.UxTheme.dll_DrawThemeText]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045080d
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
test byte [esi + 0x10], 4
mov dword [ebp - 0x40c], eax
je 0x418923
mov eax, 0x828282
jmp 0x418933
movzx eax, byte [edi + 0x2c]
neg eax
sbb eax, eax
and eax, 0xfefff8
add eax, 8
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esi + 0x18]
push 1
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [edi + 4]
push 0x100
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418970
mov ecx, dword [esi + 0x18]
sub eax, edx
lea edx, [ebp - 0x414]
push edx
sar eax, 1
push eax
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4189a1
sub eax, edx
mov edx, dword [ebp - 0x408]
sar eax, 1
mov ecx, dword [esi + 0x24]
mov edi, eax
mov eax, dword [esi + 0x28]
push edx
push eax
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 0x410]
cdq
sub eax, edx
sar eax, 1
push ecx
sar ebx, 1
sub ebx, eax
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x414]
cdq
sub eax, edx
push ebx
sar eax, 1
sar ecx, 1
sub ecx, eax
mov eax, dword [esi + 0x18]
push ecx
push edi
lea edx, [ebp - 0x204]
push edx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_DrawStateW]
mov ecx, dword [ebp - 0x40c]
mov edx, dword [esi + 0x18]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045080d
mov esp, ebp
pop ebp
ret 4
Function at 0x41ad90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x41adef
mov dword [edi], 0
jmp 0x41adb0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x41adbf
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x41adf7
test ecx, ecx
je 0x41adef
test esi, esi
jne 0x41adb0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41b230
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x44], 0
je 0x41b23d
mov al, 1
pop esi
ret
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi - 4]
mov eax, dword [edx + 0x38]
lea ecx, [esi - 4]
call eax
xor al, al
pop esi
ret

Function at 0x41b990
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ca9b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x48f310]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x24
call fcn.00450883
add esp, 4
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x41b9fe
mov eax, dword [esi - 0x808]
call fcn.00401034
mov edi, dword [eax + 4]
mov eax, dword [esi - 0x808]
mov ecx, dword [eax + 8]
mov ebx, dword [ecx + 4]
call fcn.00401034
mov ecx, dword [esi + 0x20]
push eax
mov edx, ebx
mov ebx, dword [ebp - 0x10]
push edi
call fcn.004215a0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
call ebx
mov edx, dword [edi + 8]
push 5
push edx
call ebx
mov eax, dword [esi + 0x24]
add eax, 0xbec
push eax
call fcn.00404ee0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret