joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409160
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 0x471913
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x491654]
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.00406e00
push str.Zona
mov eax, esi
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040260d
mov ecx, esi
push ecx
lea edx, [ebp - 0x48]
push str.Try_delete_file_Zona_from
push edx
call fcn.0040c240
add esp, 0xc
mov byte [ebp - 4], 1
call fcn.00402639
push eax
push str.INFO
mov ecx, edi
call fcn.00417c10
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.004025ff
mov eax, esi
call fcn.00402639
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40932b
test al, 0x10
jne 0x40932b
push str.File_found
push str.INFO
mov ecx, edi
call fcn.00417c10
mov eax, esi
call fcn.00402639
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 0x40924a
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 0x409317
cmp dword [ebp - 0x54], ebx
jne 0x409317
push str.File_is_empty
push str.INFO
mov ecx, edi
call fcn.00417c10
push ebx
lea eax, [ebp - 0x2c]
call fcn.00402639
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x2c]
call fcn.00402639
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409304
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x100]
push ecx
mov esi, eax
call fcn.0040263e
push esi
push ecx
lea edx, [ebp - 0xf0]
push str.Cant_delete__last_error_is
push edx
mov byte [ebp - 4], 2
call fcn.00403d98
add esp, 0xc
push eax
call fcn.004093d0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x100]
call fcn.004026d1
mov byte [ebp - 4], 3
call fcn.00402639
push eax
push str.INFO
mov ecx, edi
call fcn.00417c10
lea ecx, [ebp - 0x48]
call fcn.004025ff
lea eax, [ebp - 0x100]
mov byte [ebp - 0x49], bl
mov byte [ebp - 4], bl
call fcn.00402210
jmp 0x40932b
push str.File_is_deleted
push str.INFO
mov ecx, edi
call fcn.00417c10
jmp 0x40932b
push str.File_is_NOT_empty
push str.INFO
mov ecx, edi
call fcn.00417c10
mov byte [ebp - 0x49], bl
lea ecx, [ebp - 0x2c]
call fcn.004025ff
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.00452dc2
mov esp, ebp
pop ebp
ret
Function at 0x4158d0
Capabilities:
Copy file
Create directory
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e68b
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x491654]
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 edx, dword [ebp + 0x10]
push 0x208
mov dword [ebp - 0x640], eax
xor ebx, ebx
lea eax, [ebp - 0x218]
lea edi, [ecx + 4]
push ebx
push eax
mov dword [ebp - 0x644], edx
mov esi, edi
call fcn.0045e9a0
push 0x208
lea ecx, [ebp - 0x420]
push ebx
push ecx
call fcn.0045e9a0
add esp, 0x18
cmp word [esi], 0x7c
je 0x41594d
add esi, 2
cmp word [esi], 0x7c
jne 0x415944
push edi
xor edx, edx
lea eax, [ebp - 0x218]
push 0x104
mov word [esi], dx
push eax
add esi, 2
call fcn.004533f1
lea eax, [ebp - 0x218]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415973
sub eax, edx
push esi
lea edx, [ebp - 0x420]
sar eax, 1
xor ecx, ecx
push 0x104
push edx
mov word [ebp + eax*2 - 0x216], cx
call fcn.004533f1
add esp, 0xc
push str.Copy_
lea eax, [ebp - 0x63c]
call fcn.004025ce
push 0x47b24c
lea ecx, [ebp - 0x420]
push ecx
push str._to_
lea edx, [ebp - 0x218]
push edx
push eax
mov dword [ebp - 4], ebx
call fcn.0040260d
push eax
call fcn.0040260d
push eax
call fcn.0040260d
push eax
call fcn.0040260d
call fcn.00402639
mov edi, dword [ebp - 0x644]
push eax
push str.INFO
mov ecx, edi
call fcn.00417c10
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004025ff
push ebx
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x65c], ecx
lea ecx, [ebp - 0x664]
lea edx, [ebp - 0x420]
mov eax, 0xe14
push ecx
mov dword [ebp - 0x664], ebx
mov dword [ebp - 0x660], 2
mov dword [ebp - 0x658], edx
mov word [ebp - 0x654], ax
mov dword [ebp - 0x652], ebx
mov dword [ebp - 0x64e], ebx
mov dword [ebp - 0x64a], 0x47a8cc
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
cmp esi, ebx
je 0x415abd
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x640]
mov ebx, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push esi
push 0x47b224
push edx
push eax
call ebx
push esi
push 0x47b250
lea ecx, [ebp - 0x620]
push 0x100
push ecx
call ebx
add esp, 0x20
lea edx, [ebp - 0x620]
push edx
push str.INFO
mov ecx, edi
call fcn.00417c10
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.00452dc2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415db0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e64b
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x491654]
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 ebx, dword [ebp + 0x10]
push 0x208
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x218]
push edi
push ecx
mov dword [ebp - 0x438], eax
call fcn.0045e9a0
add esi, 4
push esi
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.004533f1
lea eax, [ebp - 0x218]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x415e21
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x216], cx
push str.Delete
lea eax, [ebp - 0x434]
call fcn.004025ce
lea edx, [ebp - 0x218]
push edx
push eax
mov dword [ebp - 4], edi
call fcn.0040260d
call fcn.00402639
push eax
push str.INFO
mov ecx, ebx
call fcn.00417c10
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], 0xffffffff
call fcn.004025ff
lea edx, [ebp - 0x458]
lea eax, [ebp - 0x218]
mov ecx, 0xc14
push edx
mov dword [ebp - 0x458], edi
mov dword [ebp - 0x454], 3
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], edi
mov word [ebp - 0x448], cx
mov dword [ebp - 0x446], edi
mov dword [ebp - 0x442], edi
mov dword [ebp - 0x43e], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
cmp esi, edi
je 0x415f14
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x438]
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push esi
push 0x47b224
push eax
push ecx
call edi
push esi
push str.Error_delete_file__err:__d
lea edx, [ebp - 0x418]
push 0x100
push edx
call edi
add esp, 0x20
lea eax, [ebp - 0x418]
push eax
push str.INFO
mov ecx, ebx
call fcn.00417c10
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.00452dc2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415f40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47179b
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x491654]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x491654]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push str.Create_directory
lea eax, [esp + 0xe0]
mov esi, ecx
call fcn.004025ce
add esi, 4
push esi
push eax
mov dword [esp + 0x110], 0
call fcn.0040260d
call fcn.00402639
push eax
push str.INFO
mov ecx, edi
call fcn.00417c10
lea ecx, [esp + 0xdc]
mov dword [esp + 0x108], 0xffffffff
call fcn.004025ff
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415ffd
test al, 0x10
je 0x415ffd
push str.Folder_exist_already
push str.INFO
mov ecx, edi
call fcn.00417c10
jmp 0x4160b7
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x4160b7
push 0xa
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045440a
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.0040263e
push ebx
push ecx
push str.__error_code
push ecx
push esi
push ecx
lea ecx, [esp + 0x3c]
push str.Cant_create_folder_
push ecx
mov dword [esp + 0x128], 1
call fcn.00403d98
add esp, 0xc
push eax
call fcn.00403d98
add esp, 0xc
push eax
call fcn.00403d98
add esp, 0xc
push eax
call fcn.00403d98
add esp, 8
lea edx, [esp + 0xc0]
push edx
lea eax, [esp + 0x18]
call fcn.004026d1
mov byte [esp + 0x108], 2
call fcn.00402639
push eax
push str.ERROR
mov ecx, edi
call fcn.00417c10
lea ecx, [esp + 0xc0]
call fcn.004025ff
lea eax, [esp + 0x14]
mov dword [esp + 0x108], 0xffffffff
call fcn.00402210
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.00452dc2
mov esp, ebp
pop ebp
ret 0xc

Function at 0x416280
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 0x4162e2
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push esi
push edi
jmp 0x4162a3
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 0x4162c6
mov ecx, dword [eax]
push 0
push ecx
call ebx
inc esi
add edi, 4
cmp esi, 0x20
jl 0x4162b0
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 0x4162a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416860
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 0x4172b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.004675f0
mov eax, dword [0x491654]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push 0x47b520
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 0x417474
xor esi, esi
cmp dword [ebp - 0x17e0], esi
jle 0x417474
test esi, esi
jne 0x417386
push 0x3e8
lea ecx, [ebp - 0x7dc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41734b
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 0x417379
test dx, dx
je 0x417375
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417379
add eax, 4
add ecx, 4
test dx, dx
jne 0x417353
xor eax, eax
jmp 0x41737e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x417467
mov eax, dword [ebx + esi*4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417390
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.00452372
mov ecx, dword [ebx + esi*4]
push ecx
push 0x47b520
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 0x41742f
mov edx, dword [ebx + esi*4 + 4]
cmp word [edx], 0x2f
je 0x41742f
mov esi, eax
mov eax, dword [ebx + esi*4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4173f1
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.00452372
mov edi, eax
mov eax, dword [ebx + esi*4]
push eax
push 0x47b520
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.00417a40
mov edx, edi
push eax
push edx
lea edi, [ebp - 0x17fc]
call fcn.00417680
mov ebx, dword [ebp - 0x17e8]
inc esi
cmp esi, dword [ebp - 0x17e0]
jl 0x417317
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dc2
mov esp, ebp
pop ebp
ret 4
Function at 0x417ab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e5d9
mov eax, dword fs:[0]
push eax
mov eax, 0x100c
call fcn.004675f0
mov eax, dword [0x491654]
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 - 0x1018], esi
mov dword [ebp - 0x1014], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ebx, [esi + 0x18]
mov eax, ebx
mov dword [ebp - 4], 0
call fcn.004025a7
lea edi, [esi + 0x34]
mov eax, edi
call fcn.004025a7
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.0040260d
push eax
call fcn.0040260d
push 0x47b558
call fcn.00402628
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.00452dc2
mov esp, ebp
pop ebp
ret 4
Function at 0x418360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47026b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x491654]
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
inc dword [edi + 0x30]
lea esi, [edi + 0x20]
lea eax, [ebp + 8]
call fcn.00418f40
mov eax, dword [edi + 0x30]
cmp eax, dword [edi + 0xc]
jne 0x4184b1
mov ecx, dword [esi]
mov eax, dword [esi + 4]
lea edx, [ebp - 0x30]
push edx
xor ebx, ebx
sub eax, ecx
push ecx
mov dword [ebp - 0x30], ebx
call fcn.00407f90
mov esi, dword [ebp - 0x30]
add esp, 8
push esi
lea eax, [ebp - 0x2c]
call fcn.004025ce
push esi
mov dword [ebp - 4], ebx
call fcn.004532eb
add esp, 4
lea eax, [ebp - 0x2c]
call fcn.0040331c
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.00404f1a
lea edx, [ebp - 0x34]
push edx
lea esi, [ebp - 0x2c]
call fcn.00404dc3
mov ecx, dword [eax]
mov eax, dword [ebp - 0x30]
cmp eax, ecx
je 0x418415
cmp word [eax], 0x2f
jne 0x41840e
mov edx, 0x5c
mov word [eax], dx
add eax, 2
cmp eax, ecx
jne 0x418400
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [eax + 4]
call fcn.00403c8f
push 0xd0
call fcn.00453347
mov esi, eax
add esp, 4
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x418472
mov eax, dword [edi + 8]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0xffffffff
lea edx, [esi + 0x20]
mov byte [ebp - 4], 2
push edx
mov dword [esi], vtable.un8z::ValueState.0
call fcn.00418fd0
mov dword [esi + 0xc8], ebx
mov dword [ebp - 0x30], esi
jmp 0x418475
mov dword [ebp - 0x30], ebx
mov edi, dword [edi + 8]
mov esi, dword [edi]
cmp esi, ebx
je 0x4184a0
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x41848e
push eax
call fcn.004532eb
add esp, 4
push esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call fcn.004532eb
add esp, 4
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov dword [edi], eax
call fcn.004025ff
mov al, 1
jmp 0x4184b3
xor al, al
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.00452dc2
mov esp, ebp
pop ebp
ret 4
Function at 0x418fd0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4701d7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x491654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
lea eax, [edi + 0x60]
mov dword [edi], 0x47a4f8
call fcn.00401844
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [edi]
mov ecx, dword [edx + 4]
lea esi, [edi + 4]
push esi
add ecx, edi
mov dword [ebp - 0x10], 1
call fcn.0041a110
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.0041a1b0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
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], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x4968d8]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, edi
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 0x419cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46da98
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x491654]
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 0x419df1
cmp byte [edi + 0x49], bl
je 0x419df1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x419de5
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 0x419d44
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 0x419d5c
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 0x419d85
dec eax
je 0x419d89
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x419de0
jmp 0x419dec
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x419d99
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x419dc2
cmp ebx, 0x10
jae 0x419da8
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004540f0
add esp, 0x10
cmp esi, eax
jne 0x419ddd
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x419de9
test esi, esi
jne 0x419d50
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.004098c0
jmp 0x419d4a
lea ecx, [ebp - 0x2c]
call fcn.004093a0
xor al, al
jmp 0x419df3
lea ecx, [ebp - 0x2c]
call fcn.004093a0
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.00452dc2
mov esp, ebp
pop ebp
ret
Function at 0x41a1b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cf5b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x491654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [edi + 4]
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00451e04
push 4
mov dword [ebp - 4], 0
call fcn.00453347
add esp, 4
test eax, eax
je 0x41a203
mov esi, eax
call fcn.004012fe
jmp 0x41a205
xor eax, eax
mov dword [edi + 0x38], eax
lea eax, [edi + 8]
mov dword [edi + 0x10], eax
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], 0
mov eax, dword [edi + 0x24]
mov dword [eax], 0
mov ecx, dword [edi + 0x34]
mov dword [ecx], 0
mov edx, dword [edi + 0x10]
mov dword [edx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov ecx, dword [edi + 0x30]
mov dword [ecx], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41c5c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x491654]
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 0x41c5f3
mov edi, 3
test al, 4
je 0x41c604
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 0x41c673
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c630
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.00452dc2
mov esp, ebp
pop ebp
ret 4
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c673
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 0x41c6a4
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.00452dc2
mov esp, ebp
pop ebp
ret 4