joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4034e2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x4ec]
sub esp, 0x56c
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x4e8], eax
push ebx
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x44]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x48], ebx
call fcn.0043e180
push esi
push 0
push edi
mov dword [ebp - 0x44], esi
call fcn.0043e180
add esp, 0x18
push edi
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [edi + 4], 5
jne 0x403545
call fcn.00403360
test eax, eax
je 0x403545
and dword [ebx + 4], 0
jmp 0x4035f4
lea eax, [ebp - 0x44]
push eax
call fcn.0040332f
mov ebx, dword [edi + 4]
mov eax, dword [ebp - 0x40]
imul ebx, ebx, 0xa
add ebx, dword [edi + 8]
imul eax, eax, 0xa
add eax, dword [ebp - 0x3c]
cmp eax, ebx
mov dword [ebp - 0x4c], eax
jle 0x403578
push esi
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.0043e200
mov ebx, dword [ebp - 0x4c]
add esp, 0xc
xor eax, eax
push 0x40e
push eax
mov word [ebp + 0xd8], ax
lea eax, [ebp + 0xda]
push eax
call fcn.0043e180
add esp, 0xc
lea esi, [ebp + 0xd8]
call fcn.004033a0
test eax, eax
jl 0x4035ed
lea eax, [ebp - 0x80]
push eax
mov eax, esi
push eax
call fcn.0040341b
test eax, eax
je 0x4035ed
mov ecx, dword [ebp - 0x70]
movzx edx, word [ebp - 0x70]
shr ecx, 0x10
mov esi, ecx
imul esi, esi, 0xa
xor eax, eax
add esi, edx
inc eax
cmp ebx, esi
jge 0x4035e4
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x6c]
shr ecx, 0x10
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp - 0x48]
mov dword [edi + 8], edx
mov dword [ecx + 4], eax
jmp 0x4035f7
mov ecx, dword [ebp - 0x48]
and dword [ecx + 4], 0
jmp 0x4035f7
mov eax, dword [ebp - 0x48]
and dword [eax + 4], 0
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x4e8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b103
add ebp, 0x4ec
leave
ret

Function at 0x403996
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push edi
push str.TrayNotifyWnd
push edi
push eax
call esi
push edi
push str.SysPager
mov ebx, eax
push edi
push ebx
call esi
push edi
push str.ToolbarWindow32
push edi
cmp eax, edi
je 0x4039d7
push eax
jmp 0x4039d8
push ebx
call esi
mov dword [ebp - 4], eax
cmp eax, edi
je 0x403a2b
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [ebp - 0x10]
sub esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
xor ebx, ebx
inc ebx
cmp esi, ebx
jle 0x403a2b
cdq
sub eax, edx
mov dword [ebp - 8], eax
sar dword [ebp - 8], 1
movzx eax, word [ebp - 8]
movzx ecx, bx
shl eax, 0x10
or eax, ecx
push eax
push edi
push 0x200
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_PostMessageW]
inc ebx
cmp ebx, esi
jl 0x403a0a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403a9d
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ecx
push ebx
mov bl, al
push esi
movzx esi, bl
neg esi
sbb esi, esi
xor eax, eax
and esi, 5
test bl, bl
setne al
push edi
mov edi, ecx
dec eax
and eax, 5
mov dword [esp + 0x10], eax
xor eax, eax
test bl, bl
sete al
mov dword [esp + 0xc], eax
test bl, bl
jne 0x403add
xor eax, eax
cmp dword [edi + 0x48c], eax
setne al
mov dword [esp + 0xc], eax
push ebp
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [edi + 0x6b8]
call ebp
push esi
push dword [edi + 0x6c0]
call ebp
mov eax, dword [esp + 0x10]
call fcn.00404dcd
mov esi, dword [esp + 0x14]
push esi
push dword [edi + 0x7f0]
call ebp
push esi
push dword [edi + 0x86c]
call ebp
test bl, bl
sete bl
push ebx
push edi
call fcn.00403b59
push esi
push dword [edi + 0x8e8]
call ebp
push 0
push 0
push 0xf0
push dword [edi + 0x964]
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebp
test eax, eax
jne 0x403b53
mov eax, edi
pop edi
pop esi
mov cl, bl
pop ebx
add esp, 8
jmp fcn.004067e2
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret

Function at 0x403c91
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, eax
push 0xc8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push dword [esi + 0x73c]
call dword [sym.imp.USER32.dll_ShowWindow]
add esi, 0x738
call fcn.00410112
pop esi
ret

Function at 0x403d24
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
je 0x403d3f
push dword [ebp + 8]
push dword [esi + 0x9c8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
and dword [esi + 0x9e8], 0
push 0
push 0xffffffffffffffec
push dword [esi + 0x9c8]
mov dword [ebp - 0x10], 0x1e
mov dword [ebp - 0xc], 0x140
mov dword [ebp - 8], 0x17c
mov dword [ebp - 4], 0x14e
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push 0xe
push 0x15e
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0
push dword [esi + 0x9c8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [esi + 0x9c8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
leave
ret 4

Function at 0x404106
Capabilities:
Create thread

Disassembly:
lea eax, [esi + 0xd40]
push eax
xor eax, eax
push eax
push esi
push 0x404099
push eax
push eax
call fcn.0043eaa5
add esp, 0x18
mov dword [esi + 0xd44], eax
ret
Function at 0x4044d3
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x7e4], ebx
je 0x40453e
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.0043e180
add esp, 0xc
call fcn.00411719
push str.360DrvMgr.exe
push dword [eax + 0x20]
lea eax, [ebp - 0x210]
push 0x475124
push 0x103
push eax
call fcn.0043f3d3
add esp, 0x14
call fcn.004179af
call fcn.00411719
mov ecx, dword [eax + 0x20]
call fcn.00417d8f
call fcn.00403996
cmp dword [edi + 0x5c], ebx
je 0x40457c
lea esi, [edi + 0x60]
xor eax, eax
cmp ax, word [esi]
je 0x40457c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40457c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x40457c
push esi
call fcn.0041680f
pop ecx
push ebx
call fcn.00404647
push ebx
push ebx
push 0x1409
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b103
leave
ret
Function at 0x404eb7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x475144
lea eax, [ebp - 0x424]
push eax
call fcn.00402ad3
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0043e180
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0043e180
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x18
mov ebx, 0x3f7
push ebx
push dword [esi + 4]
call edi
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x20
lea eax, [ebp - 0x448]
push 0
push eax
call fcn.0043e180
mov eax, dword [esi + 4]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x430], eax
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
mov dword [ebp - 0x438], 0x1041
mov dword [ebp - 0x434], 0x404e29
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x40500f
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push ebx
push dword [esi + 4]
call edi
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 0x428]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
cmp word [ebp - 0x210], bx
je 0x40500f
push ebx
push ebx
push 0xf0
push dword [esi + 0x964]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
cmp eax, 1
jne 0x404ffd
push eax
push dword [esi + 0x7f0]
call edi
push 1
jmp 0x405007
push ebx
push dword [esi + 0x7f0]
call edi
push ebx
push dword [esi + 0x86c]
call edi
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
call fcn.004031f6
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0043b103
leave
ret
Function at 0x4054b1
Capabilities:
Print debug messages

Disassembly:
push 0x154
mov eax, 0x46a2aa
call fcn.00443760
xor eax, eax
push 0xc6
mov word [ebp - 0xdc], ax
xor edi, edi
lea eax, [ebp - 0xda]
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x130], esi
call fcn.0043e180
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
push dword [esi + 4]
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x134], edi
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 0x134]
lea eax, [ebp - 0xdc]
push dword [ebp - 0x138]
push dword [ebp - 0x13c]
push dword [ebp - 0x140]
push str.__d__d_:__d__d__r_n
push eax
call fcn.0040323a
add esp, 0x18
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x11c]
push ecx
push eax
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x120], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [ebp - 0x124], eax
lea edx, [ebp - 0x140]
mov ecx, eax
lea ebx, [ebp - 0x160]
mov dword [ebp - 4], edi
call fcn.00407b04
mov byte [ebp - 4], 2
push dword [ebp - 0x124]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
xor ebx, ebx
mov dword [ebp - 0x12c], eax
cmp dword [esi + 0x48c], ebx
je 0x4055b0
call fcn.0040e6e7
mov esi, eax
call fcn.0040eae1
jmp 0x4055bc
call fcn.0040e6e7
mov esi, eax
call fcn.0040eafd
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 0x12c]
call edi
mov byte [ebp - 0x128], bl
mov byte [ebp - 0x127], bl
mov byte [ebp - 0x126], 0xff
mov byte [ebp - 0x125], 1
push dword [ebp - 0x128]
mov ecx, 0x18f
push ecx
mov esi, eax
mov eax, 0x26a
push eax
push ebx
push ebx
push dword [ebp - 0x12c]
push ecx
push eax
push ebx
push ebx
push dword [ebp - 0x160]
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
mov eax, dword [ebp - 0x130]
cmp dword [eax + 0xd54], ebx
je 0x405679
call fcn.0040e6e7
mov esi, eax
call fcn.0040ebd2
push eax
push dword [ebp - 0x12c]
call edi
mov byte [ebp - 0x128], bl
mov byte [ebp - 0x127], bl
mov byte [ebp - 0x126], 0xff
mov byte [ebp - 0x125], 1
push dword [ebp - 0x128]
mov esi, eax
push 0x24
push 0x78
push ebx
push ebx
push dword [ebp - 0x12c]
push 0x24
push 0x78
push 0x145
push 7
push dword [ebp - 0x160]
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push esi
push dword [ebp - 0x12c]
call edi
lea esi, [ebp - 0x12c]
call fcn.00407b69
mov eax, dword [ebp - 0x130]
xor esi, esi
inc esi
lea edi, [ebp - 0x160]
mov dword [eax + 0x58], esi
call fcn.00407a3a
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x120]
call dword [sym.imp.USER32.dll_EndPaint]
mov eax, esi
call fcn.004437e3
ret
Function at 0x406153
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push edi
push 6
call fcn.0040809d
pop ecx
push eax
mov ebp, 0x3e8
push ebp
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x409
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x407
push dword [esi + 4]
call edi
push 0
push eax
call ebx
push ebp
push dword [esi + 4]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, esi
call fcn.004045a1
pop edi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4082f8
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x4755e8
push esi
push 0x4755f8
push 0x488520
mov dword [0x487d3c], eax
call fcn.00402e53
xor ebx, ebx
inc ebx
add esp, 0xc
xor edi, edi
test byte [0x48b720], bl
jne 0x408384
mov eax, dword [0x488520]
or dword [0x48b720], ebx
push eax
push ebx
push edi
mov dword [ebp - 0x214], eax
mov byte [0x48a4c8], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x48a4cc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408379
push dword [ebp - 0x214]
call fcn.004081ce
push 0x46c2b8
call fcn.0043e019
pop ecx
cmp byte [0x48a4c8], 0
je 0x408394
xor eax, eax
jmp 0x40842b
push esi
push 0x475608
push 0x488524
call fcn.00402e53
add esp, 0xc
call fcn.00418222
test al, al
jne 0x4083ce
cmp dword [0x487d40], edi
jne 0x40838d
push 0x30
push dword [0x488520]
push 0x475628
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40838d
call fcn.0041b6fe
call fcn.00418c68
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.0043e180
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x408423
push 0xe
pop ebx
mov edi, 0x488190
lea esi, [ebp - 0x210]
call fcn.0041df5f
xor ebx, ebx
inc ebx
mov dword [0x4881b4], ebx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b103
leave
ret

Function at 0x409f55
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x409f63
push 0xd
pop eax
jmp 0x409f96
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x409f6a
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x409fbb
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc
Function at 0x40a497
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
mov dword [ebp - 0x21c], ecx
xor esi, esi
or eax, 0x2001f
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.0040a459
mov ebx, eax
cmp ebx, esi
je 0x40a500
lea esi, [ebp - 0x214]
call fcn.0040a5b9
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b103
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40a51e
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040a497
cmp eax, esi
jne 0x40a565
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], pe_nt_image_headers32
call ebx
test eax, eax
je 0x40a508
lea esi, [ebp - 0x214]
call fcn.0040a5b9
push dword [ebp - 0x21c]
mov esi, edi
call fcn.0040a5dc
lea esi, [ebp - 0x214]
mov edi, eax
call fcn.0040a5b9
mov eax, edi
jmp 0x40a4ef

Function at 0x40a5dc
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x489384], 0
jne 0x40a60c
push 0x4756e8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a605
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x489388], eax
mov byte [0x489384], 1
mov eax, dword [0x489388]
test eax, eax
je 0x40a624
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x40a630
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x40b619
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 8
push 0
push edi
call fcn.0043e180
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40b66a
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b669
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], ebx
inc eax
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x40b6b3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b6e5
xor eax, eax
jmp 0x40b705
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
call fcn.0040b708
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
leave
ret

Function at 0x40b708
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.0045fd70
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa0]
push ebx
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xfa4]
push edi
mov edi, edx
mov dword [ebp - 0x7c], eax
test ecx, ecx
je 0x40b7fe
test edi, edi
jle 0x40b7fe
mov eax, edi
cdq
and edx, 0xfff
add eax, edx
mov esi, eax
sar esi, 0xc
and edi, 0x80000fff
jns 0x40b76e
dec edi
or edi, 0xfffff000
inc edi
and dword [ebp - 0x70], 0
and dword [ebp - 0x78], 0
mov dword [ebp - 0x74], ecx
test esi, esi
jle 0x40b7c1
mov ebx, 0x1000
push ebx
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0043e200
add esp, 0xc
push 0
lea eax, [ebp - 0x70]
push eax
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b7fe
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40b7b6
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
add dword [ebp - 0x74], ebx
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], esi
jl 0x40b782
test edi, edi
jle 0x40b7f9
push edi
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0043e200
add esp, 0xc
push 0
lea eax, [ebp - 0x70]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b7fe
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40b7f9
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
xor eax, eax
inc eax
jmp 0x40b800
xor eax, eax
mov ecx, dword [ebp + 0xf94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b103
add ebp, 0xf98
leave
ret
Function at 0x40b831
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x46afa4
call fcn.004436f7
mov edi, 0x485f6c
mov ecx, edi
lea esi, [ebp - 0x10]
call fcn.00402b4a
and dword [ebp - 4], 0
mov ebx, esi
call fcn.0040236e
test eax, eax
jne 0x40b870
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004031f6
xor eax, eax
call fcn.004437cf
ret 0xc
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 8]
mov ecx, ebx
call fcn.0040b6b3
test eax, eax
jne 0x40b88d
lea eax, [ebx - 0x10]
jmp 0x40b861
mov ecx, edi
lea esi, [ebp + 8]
call fcn.00402b4a
mov ebx, esi
mov byte [ebp - 4], 1
call fcn.0040236e
mov esi, dword [ebp + 8]
push esi
xor edi, edi
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [ebp + 0x10], edi
je 0x40b8d3
push edi
mov edi, dword [ebp - 0x10]
push esi
push edi
call fcn.004019f9
add esp, 0xc
test eax, eax
jge 0x40b903
lea eax, [esi - 0x10]
call fcn.004031f6
lea eax, [edi - 0x10]
jmp 0x40b861
cmp dword [ebp - 0x10], edi
je 0x40b8e3
push esi
push dword [ebp - 0x10]
call fcn.0040bad9
jmp 0x40b8e5
xor eax, eax
cmp eax, edi
jne 0x40b903
lea eax, [esi - 0x10]
call fcn.004031f6
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, edi
jmp 0x40b868
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 8]
call fcn.00402b81
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
inc edi
jmp 0x40b8e9

Function at 0x40b91c
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x46b83c
call fcn.004436f7
mov edi, 0x485f6c
mov ecx, edi
lea esi, [ebp - 0x10]
call fcn.00402b4a
and dword [ebp - 4], 0
mov ebx, esi
call fcn.0040236e
test eax, eax
jne 0x40b95b
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004031f6
xor eax, eax
call fcn.004437cf
ret 8
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 8]
mov ecx, ebx
call fcn.0040b6b3
test eax, eax
jne 0x40b978
lea eax, [ebx - 0x10]
jmp 0x40b94c
mov ecx, edi
lea esi, [ebp + 8]
call fcn.00402b4a
mov ebx, esi
mov byte [ebp - 4], 1
call fcn.0040236e
mov esi, dword [ebp + 8]
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
call fcn.00402ad3
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 2
call fcn.0040b278
mov edi, dword [ebp - 0x10]
push 0x488568
push esi
push edi
call fcn.004019f9
add esp, 0xc
test eax, eax
mov eax, dword [ebp + 0xc]
jge 0x40b9ef
add eax, 0xfffffff0
call fcn.004031f6
lea eax, [esi - 0x10]
call fcn.004031f6
lea eax, [edi - 0x10]
call fcn.004031f6
mov eax, ebx
jmp 0x40b953
add eax, 0xfffffff0
call fcn.004031f6
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
inc ebx
jmp 0x40b9d8
Function at 0x40bda6
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x7a0]
sub esp, 0x820
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x79c], eax
mov eax, dword [ebp + 0x7a8]
push ebx
push edi
mov edi, ecx
push 1
push edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edi
call dword [sym.imp.GDI32.dll_SetBkMode]
xor eax, eax
cmp dword [esi + 0x28], eax
jne 0x40bdf1
push eax
push eax
push 0x31
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x28], eax
push dword [esi + 0x28]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push edi
call ebx
push dword [esi + 0x24]
mov dword [ebp - 0x70], eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xfffffffffffffff0
push dword [esi + 4]
xor edi, edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
je 0x40be1e
inc edi
jmp 0x40be25
test al, 2
je 0x40be25
push 2
pop edi
lea eax, [ebp - 0x80]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push eax
call fcn.0043e180
add esp, 0xc
push 0x400
lea eax, [ebp - 0x64]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
or edi, 0x20
push edi
lea eax, [ebp - 0x80]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x70]
push dword [ebp - 0x68]
call ebx
push dword [ebp - 0x6c]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [ebp + 0x79c]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop ebx
call fcn.0043b103
add ebp, 0x7a0
leave
ret 4