joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448268
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4744bc]
cmp byte [eax + 0xc], 0
je 0x4483d5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4483ce
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x479c5c], 0
jne 0x4482bc
push 0x4483dc
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4483e4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c5c], eax
cmp dword [0x4735e8], 0
jne 0x4483b7
push 0x4483f4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4735e8], eax
cmp dword [0x4735e8], 0
je 0x4483b7
push 0x448400
mov eax, dword [0x4735e8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c60], eax
push 0x448410
mov eax, dword [0x4735e8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c64], eax
push 0x448424
mov eax, dword [0x4735e8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c68], eax
push 0x44843c
mov eax, dword [0x4735e8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c6c], eax
push 0x448454
mov eax, dword [0x4735e8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c70], eax
push 0x448468
mov eax, dword [0x4735e8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c74], eax
push 0x448480
mov eax, dword [0x4735e8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c78], eax
push 0x448498
mov eax, dword [0x4735e8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c7c], eax
push 0x4484b4
mov eax, dword [0x4735e8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c80], eax
push 0x4484c0
mov eax, dword [0x4735e8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c84], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4483d5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x44d880
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp + 1], cl
mov byte [esp], dl
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
mov eax, dword [0x479c94]
cmp esi, dword [eax + 0x30]
jne 0x44d8a7
or edi, 0x8000000
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x44d8d6
mov eax, dword [0x479c94]
cmp esi, dword [eax + 0x30]
jne 0x44d8d2
mov eax, dword [0x479c94]
cmp byte [eax + 0x5b], 0
jne 0x44d8d6
xor eax, eax
jmp 0x44d8d8
mov al, 1
mov byte [esp + 2], al
movzx eax, byte [esp + 2]
or al, bl
je 0x44d8ed
push 0
push esi
call sub.user32.dll_ShowWindow
cmp byte [esp], 0
je 0x44d904
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x44d913
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp + 1]
and al, byte [esp + 2]
jne 0x44d922
test bl, bl
je 0x44d938
test bl, bl
je 0x44d930
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x44d938
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x44dbdc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x44dc02
mov eax, esp
push eax
push 0x44dba4
call sub.user32.dll_EnumWindows
jmp 0x44dc15
mov eax, esp
push eax
push 0x44db84
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x44dca0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44dcf4]
test si, 4
je 0x44dcb5
or bl, 1
test si, 8
je 0x44dcbf
or bl, 4
test si, 1
je 0x44dcc9
or bl, 8
test si, 2
je 0x44dcd3
or bl, 0x10
test si, 0x10
je 0x44dcdd
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44dcec
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44dcf8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44dd34]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44dd12
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44dd21
or bl, 4
test esi, 0x20000000
je 0x44dd2c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x455c00
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x455c12
add esp, 0xfffffff0
call fcn.00404720
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e468
mov eax, dword [0x47414c]
mov dword [eax + 4], ebx
mov dword [eax], 0x455fa4
mov eax, dword [0x474158]
mov dword [eax + 4], ebx
mov dword [eax], 0x455fb0
mov eax, ebx
call fcn.00455fbc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4160dc]
call fcn.004043cc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4160dc]
call fcn.004043cc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4160dc]
call fcn.004043cc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4160dc]
call fcn.004043cc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4160dc]
call fcn.004043cc
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45166c
push eax
push 0
push 0
mov eax, dword [0x4742b0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42284c]
call fcn.00423fc8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42284c]
call fcn.00423fc8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42284c]
call fcn.00423fc8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004563ec
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4562bc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4562bc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4562bc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x455d4f
call fcn.00404778
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4560a0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45624b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45622c
mov dl, 1
mov eax, dword [0x416500]
call fcn.004043cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00405228
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45621b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004485c4
test al, al
je 0x45620e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45625c
lea eax, [ebp - 0x254]
call fcn.0040a344
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45620e
xor eax, eax
push ebp
push 0x456207
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x456294
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4561f0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405498
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4561f0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405498
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45620e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x456111
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041a314
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456252
lea eax, [ebp - 0x260]
call fcn.00405228
ret

Function at 0x456bc4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x479c94]
cmp byte [eax + 0xad], 0
jne 0x456c35
cmp dword [0x479cb0], 0
jne 0x456bf6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x456b80
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x479cb0], eax
cmp dword [0x479cac], 0
jne 0x456c11
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x479cac], eax
cmp dword [0x479cb4], 0
jne 0x456c35
push esp
push 0
push 0
push 0x456b24
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x479cb4], eax
pop edx
ret
Function at 0x456e08
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x456e1f
add esp, 0xfffffff0
call fcn.00404720
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e468
mov eax, dword [0x47429c]
cmp word [eax + 2], 0
jne 0x456e47
mov eax, dword [0x47429c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458a20
mov eax, dword [0x47434c]
cmp word [eax + 2], 0
jne 0x456e61
mov eax, dword [0x47434c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458c2c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4160dc]
call fcn.004043cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4160dc]
call fcn.004043cc
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4160dc]
call fcn.004043cc
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x423284]
call fcn.0042ad68
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x457018
mov eax, dword [0x4741b8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b13c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x459300
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4741b8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040dc14
test eax, eax
je 0x456f68
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409cfc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dc48
test eax, eax
je 0x456f7c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405498
mov byte [ebx + 0xd4], 0
push ebx
push 0x458530
call fcn.0041fc04
mov dword [ebx + 0xc8], eax
mov eax, dword [0x47409c]
cmp byte [eax], 0
jne 0x456fcd
mov eax, ebx
call fcn.0045715c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004594d8
mov eax, ebx
call fcn.0045a03c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45700d
call fcn.00404778
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4573dc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45747b
cmp dword [ebx + 0x94], 0
jne 0x457475
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x457364
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x457475
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45743b
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x457475
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004185bc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45744a
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457694
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x479c94]
cmp dword [eax + 0x30], 0
je 0x4577f1
test bl, bl
jne 0x457742
cmp dword [esi + 0x9c], 0
jne 0x457737
mov eax, esi
call fcn.00459eb8
push eax
push 0x4575c0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x457708
mov eax, dword [0x479c94]
call fcn.0045a4a8
test al, al
je 0x457708
mov eax, dword [0x479cb8]
call fcn.0040636c
mov edi, eax
cmp edi, 0
jl 0x457708
push 0
mov eax, dword [0x479cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4576f2
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x457737
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004185bc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x457717
inc dword [esi + 0x9c]
jmp 0x4577f1
cmp dword [esi + 0x9c], 0
jle 0x4577f1
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4577f1
cmp dword [esi + 0x44], 0
je 0x45779d
mov eax, dword [0x479c94]
call fcn.0045a4a8
test al, al
je 0x45779d
mov eax, dword [0x479cb8]
call fcn.0040636c
mov edi, eax
cmp edi, 0
jl 0x45779d
push 5
mov eax, dword [0x479cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x457787
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4577cc
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004185bc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4577ac
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x479cb8
mov ecx, 1
mov edx, dword [0x4575a0]
call fcn.00406520
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x458284
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4582ee
mov eax, ebx
call fcn.0045a4a8
test al, al
jne 0x4582ee
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405318
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x4582db
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4582fb
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040527c
jmp 0x4582fb
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040527c
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x4596bc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45972a
mov eax, esi
call fcn.00443484
test al, al
je 0x45972a
mov eax, dword [ebx + 0x84]
call fcn.00443178
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45972a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45971e
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443178
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043b334
jmp 0x45972a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004594f8
pop esi
pop ebx
ret
Function at 0x45badc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov byte [ebp - 5], 0
xor edx, edx
push ebp
push 0x45bc11
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
test ebx, ebx
jle 0x45bc07
push 0
lea eax, [ebp - 0xc]
push eax
push 0x16
lea eax, [ebp - 0x2a]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
mov eax, 0x26
call fcn.00402ea0
mov esi, eax
mov eax, 0x22
call fcn.00402ea0
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x26
push esi
push ebx
call sub.kernel32.dll_ReadFile_1
mov edx, edi
mov eax, esi
mov ecx, 0x14
call fcn.0040309c
mov eax, dword [esi + 6]
mov dword [edi + 6], eax
mov eax, dword [esi + 0xa]
mov dword [edi + 0xa], eax
mov eax, dword [esi + 0xe]
mov dword [edi + 0xe], eax
mov word [edi + 0x12], 1
mov eax, dword [esi + 0xe]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call fcn.00402ea0
mov dword [ebp - 0x14], eax
push 0
push 0
mov eax, dword [esi + 0x12]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_BeginUpdateResourceA
mov ebx, eax
test ebx, ebx
jle 0x45bbf1
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 1
push 3
push ebx
call sub.kernel32.dll_UpdateResourceA
push 0
push ebx
call sub.kernel32.dll_EndUpdateResourceA
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0x14]
call fcn.00402ebc
mov eax, edi
call fcn.00402ebc
mov eax, esi
call fcn.00402ebc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45bc1b
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45bc28
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056a8
mov eax, dword [ebp - 8]
call fcn.004056a8
mov eax, dword [ebp - 0xc]
call fcn.004056a8
xor eax, eax
push ebp
push 0x45bd33
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x45bd0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x423284]
call fcn.0042ad68
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x45bcfd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
call fcn.004056b8
push eax
mov eax, dword [0x4777f8]
push eax
call sub.shell32.dll_ExtractIconA
mov edx, eax
mov eax, dword [ebp - 0x10]
call fcn.0042b13c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 8]
call fcn.004056b8
push eax
mov eax, dword [ebp - 0xc]
call fcn.004056b8
pop edx
call fcn.0045badc
mov eax, dword [ebp - 0xc]
call fcn.00409938
test al, al
je 0x45bce7
mov eax, dword [ebp - 0xc]
call fcn.004056b8
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bd04
mov eax, dword [ebp - 0x10]
call fcn.004043fc
ret
Function at 0x45bd44
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x45bd4c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056a8
xor eax, eax
push ebp
push 0x45bf57
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x474330]
mov eax, dword [eax]
call fcn.004586e0
mov eax, dword [ebp - 4]
call fcn.00409938
test al, al
je 0x45bf23
mov eax, dword [ebp - 4]
call fcn.0045bf80
test al, al
jne 0x45bf23
mov eax, dword [0x474330]
mov eax, dword [eax]
call fcn.004586e0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00409b44
push dword [ebp - 0x14]
push 0x45bf70
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00409b78
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004055bc
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x45bde2
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
sub ecx, 3
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405720
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov ecx, 0x45bf7c
call fcn.00405540
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00409b78
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x45be25
sub ebx, 4
mov ebx, dword [ebx]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00409b44
push dword [ebp - 0x28]
push 0x45bf70
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00409b78
mov eax, dword [ebp - 0x30]
mov ecx, ebx
mov edx, 2
call fcn.00405720
push dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004055bc
mov eax, dword [ebp - 4]
call fcn.00409938
test al, al
je 0x45bf23
mov eax, dword [ebp - 8]
call fcn.00409938
test al, al
jne 0x45bf23
mov eax, dword [ebp - 0xc]
call fcn.00409938
test al, al
jne 0x45bf23
mov eax, dword [0x474330]
mov eax, dword [eax]
call fcn.004586e0
xor eax, eax
push ebp
push 0x45bf0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004056b8
push eax
mov eax, dword [ebp - 4]
call fcn.004056b8
push eax
call sub.kernel32.dll_MoveFileA
mov eax, dword [ebp - 8]
call fcn.0045b91c
lea edx, [ebp - 0x34]
mov eax, dword [0x474330]
mov eax, dword [eax]
call fcn.00459018
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 4]
call fcn.0045b994
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0045bc28
mov eax, dword [0x474330]
mov eax, dword [eax]
call fcn.004586e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45bf17
mov eax, dword [0x474330]
mov eax, dword [eax]
call fcn.004586e0
mov eax, dword [0x474330]
mov eax, dword [eax]
call fcn.004586e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bf5e
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.0040524c
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.0040524c
ret