joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4960e4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x513cd0]
cmp dword [eax + 0x30], 0
je 0x49618e
cmp dword [ebx + 0x94], 0
jne 0x496188
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x496074
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x496188
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 0x49614e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x496188
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.0041b00c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x49615d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x496cf0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x496d25
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.004049d0
jmp 0x496d32
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404934
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x497dac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x497ded
mov eax, esi
call fcn.0047de20
test al, al
je 0x497ded
mov eax, dword [ebx + 0x84]
call fcn.0047db1c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x497ded
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047db1c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x49ec50
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x417cac]
call fcn.00405554
xor eax, eax
push ebp
push 0x49ed94
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x50e43c], 0
jne 0x49eca3
mov ecx, dword [0x511ed0]
mov dl, 1
mov eax, dword [0x408308]
call fcn.0040d948
call fcn.00404298
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004032a4
mov eax, ebx
call fcn.004051e0
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x49eda4
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406588
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004051f0
test eax, eax
jle 0x49ed3b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x49ed34
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404b68
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404b50
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00409184
test eax, eax
jne 0x49ed34
mov ebx, 0x15
jmp 0x49ed40
mov ebx, 0x10
jmp 0x49ed40
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x50e43c]
call fcn.0049eba8
mov eax, dword [ebp - 8]
call fcn.0049eba8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004065a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ed9b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404904
lea eax, [ebp - 0x10]
mov edx, dword [0x417cac]
call fcn.00405624
ret
Function at 0x4af3ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4af60c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4af40f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004aee74
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040e290
cmp al, 1
jne 0x4af40f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004af18c
test al, al
je 0x4af59b
cmp dword [ebp - 8], 0
jge 0x4af42d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004aee74
mov eax, dword [ebp - 0x210]
call fcn.00404ba0
cmp ebx, eax
jge 0x4af477
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004aee74
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x5126cc]
and eax, 0xff
bt dword [edx], eax
jae 0x4af477
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4af48b
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004af388
cmp ebx, dword [ebp - 8]
je 0x4af58d
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4af4b7
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d08
and eax, 0x7f
movzx eax, word [eax*2 + 0x50e730]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4af57a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d08
and eax, 0x7f
movzx eax, word [eax*2 + 0x50e730]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0047db1c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d08
and eax, 0x7f
movzx eax, word [eax*2 + 0x50e730]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0047db1c
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af581
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4af5ee
cmp dword [ebp - 8], 0
jge 0x4af5a6
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004aee74
mov eax, dword [ebp - 0x218]
call fcn.00404ba0
cmp eax, dword [ebp - 8]
jg 0x4af5e0
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004aee74
mov eax, dword [ebp - 0x21c]
call fcn.00404ba0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004af388
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af613
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404904
ret
Function at 0x4b7dfc
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b7f1d
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
mov edx, dword [0x512508]
mov dword [edx], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x512508]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x4b7f34
call fcn.0040a8b4
mov eax, dword [ebp - 4]
call fcn.004ce948
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x51214c]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, dword [0x5124b4]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x4b7f50
call fcn.0040a8b4
mov eax, dword [ebp - 0x10]
call fcn.004ce948
call sub.kernel32.dll_GetCurrentThreadId_1
mov esi, eax
push esi
push 0
push 0x4b7a18
push 5
call sub.user32.dll_SetWindowsHookExA
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x4b7f70
call fcn.0040a8b4
mov eax, dword [ebp - 0x24]
call fcn.004ce948
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x4b7f88
call fcn.0040a8b4
mov eax, dword [ebp - 0x28]
call fcn.004ce948
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7f24
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404904
lea eax, [ebp - 0x10]
call fcn.004048e0
lea eax, [ebp - 4]
call fcn.004048e0
ret

Function at 0x4bfabc
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x4bfaf2
jmp 0x4bfb98
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x4bfb36
mov edx, dword [ebx + 0x4c]
cmp dword [edx + 0x144], 0
je 0x4bfb36
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0x144]
mov eax, dword [eax + 0x14]
jmp 0x4bfb46
mov edx, dword [ebx + 0x4c]
mov edx, dword [edx + 0x140]
test edx, edx
je 0x4bfb46
mov eax, dword [edx + 0x14]
test eax, eax
je 0x4bfb5f
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.004bd328
jmp 0x4bfb98
mov dl, 1
mov eax, dword [0x447b34]
call fcn.00449b38
mov esi, eax
mov edx, dword [edi + 0x10]
mov eax, esi
call fcn.0044a3ac
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + 0xac]
mov eax, dword [esi + 0x10]
call fcn.004496c8
mov edx, esp
mov eax, esi
call fcn.00449f7c
mov eax, esi
call fcn.00403b0c
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4c1758
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.0047db1c
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x264], 0
pop ebx
ret
Function at 0x4c4f90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov esi, edx
mov ebp, eax
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0048e3d4
mov ebx, eax
mov dx, word [esi + 4]
mov eax, ebp
call fcn.004c4cb8
mov edi, eax
test edi, edi
je 0x4c4fdd
mov al, byte [0x4c5020]
cmp al, bl
jne 0x4c4fdd
mov edx, edi
mov eax, ebp
call fcn.004c4c60
mov dword [esi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x4c5013
cmp byte [ebp + 0x165], 2
jne 0x4c5006
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x5125b4]
mov eax, dword [eax]
mov eax, dword [eax + 0x4c]
mov edx, 0xb006
call fcn.0047839c
test eax, eax
jne 0x4c5013
xor eax, eax
mov dword [esi + 0xc], eax
mov edx, esi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4c86c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4c877a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405014
mov eax, dword [0x511fac]
cmp byte [eax], 0
je 0x4c872f
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.004054f0
mov eax, dword [ebx]
call fcn.004051f0
push eax
mov eax, dword [ebx]
call fcn.004051e0
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.004051f0
mov edx, eax
dec edx
mov eax, ebx
call fcn.004054f0
jmp 0x4c8761
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.0040a3c4
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.004051d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c8781
lea eax, [ebp - 0x3f0]
call fcn.004048e0
ret

Function at 0x4c8788
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.0040a3c4
add esp, 0x3ec
pop ebx
ret
Function at 0x4c9c0c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
call fcn.00489460
mov edi, eax
dec edi
test edi, edi
jl 0x4c9cbf
inc edi
xor esi, esi
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.00489470
mov eax, dword [eax + 0xc]
sub eax, 1
jb 0x4c9c56
je 0x4c9c77
dec eax
je 0x4c9c98
jmp 0x4c9cb7
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.00489470
cmp byte [ebx + 0x168], 0
setne dl
call fcn.0048938c
jmp 0x4c9cb7
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.00489470
cmp byte [ebx + 0x168], 1
setne dl
call fcn.0048938c
jmp 0x4c9cb7
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.00489470
cmp byte [ebx + 0x168], 2
setne dl
call fcn.0048938c
inc esi
dec edi
jne 0x4c9c37
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x88]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x8c]
cdq
cmp edx, dword [esp + 4]
jne 0x4c9ce4
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4c9d53
jmp 0x4c9ce8
pop edx
pop eax
jge 0x4c9d53
mov eax, dword [0x5125b4]
mov eax, dword [eax]
mov dword [eax + 0x40], 2
mov esi, 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x88], eax
mov eax, dword [ebx + 0x13c]
test byte [eax + 0x4c], 4
je 0x4c9d2f
cmp byte [ebx + 0x165], 2
je 0x4c9d2f
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [ebx + 0xf8]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x4c9d78
push 0
mov eax, dword [ebx + 0x130]
push eax
push 0
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push esi
mov eax, dword [ebx + 0x108]
push eax
call sub.user32.dll_TrackPopupMenu
jmp 0x4c9d78
cmp dword [ebx + 0x120], 0
je 0x4c9d78
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.004567e8
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x130]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4d3b20
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 0x4d3c91
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 0x4d3c76
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.0040a3c4
mov dl, 1
mov eax, dword [0x4acc58]
call fcn.004accb0
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x4190b4]
call fcn.00403adc
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.004acd2c
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4d3c73
mov dl, 1
mov eax, dword [0x4ad728]
call fcn.004ad790
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, 0x4d3ca8
call fcn.004ad078
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404bec
xor eax, eax
push ebp
push 0x4d3c6c
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 + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.004ada90
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004d3cb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3c73
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00403b0c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403b0c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00403b0c
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3c98
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404904
ret

Function at 0x4d4b04
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404da0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4d4b1d
test al, 0x10
jne 0x4d4b21
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4d4fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d90
xor eax, eax
push ebp
push 0x4d508a
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404da0
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4d5069
push 0
lea eax, [ebp - 0xc]
push eax
push 0x1000
lea eax, [ebp - 0x100c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x4d5052
mov edi, dword [ebp - 0xc]
test edi, edi
jbe 0x4d5057
lea ebx, [ebp - 0x100c]
mov edx, esi
mov al, byte [ebx]
call fcn.004d4fa0
add esi, eax
inc ebx
dec edi
jne 0x4d5041
jmp 0x4d5057
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1000
je 0x4d5015
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, esi
call fcn.004d4fbc
mov esi, eax
mov ebx, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5091
lea eax, [ebp - 4]
call fcn.004048e0
ret

Function at 0x4d6990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404da0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4d69a9
test al, 0x10
jne 0x4d69ad
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4d6f98
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404d90
xor eax, eax
push ebp
push 0x4d705b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
lea eax, [ebp - 0x110]
mov edx, dword [ebp - 4]
call fcn.0040a270
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jle 0x4d7045
mov eax, ebx
call fcn.004027bc
mov edi, eax
push edi
push ebx
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4d706c
push edi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4d703e
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0xfeef04bd
jne 0x4d703e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [esi + 4], eax
mov eax, edi
call fcn.004027dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7062
lea eax, [ebp - 4]
call fcn.004048e0
ret

Function at 0x4d76f8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d90
xor eax, eax
push ebp
push 0x4d7769
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404da0
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
test ebx, ebx
jbe 0x4d7753
lea eax, [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7770
lea eax, [ebp - 4]
call fcn.004048e0
ret

Function at 0x4d7778
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d90
xor eax, eax
push ebp
push 0x4d7828
push dword fs:[eax]
mov dword fs:[eax], esp
or ebx, 0xffffffff
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404da0
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
test esi, esi
jbe 0x4d7812
push 0
lea eax, [ebp - 8]
push eax
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x4d77fe
mov edx, dword [ebp - 8]
test edx, edx
jbe 0x4d7803
lea eax, [ebp - 0x1008]
xor ecx, ecx
mov cl, byte [eax]
add ebx, ecx
inc eax
dec edx
jne 0x4d77f2
jmp 0x4d7803
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x1000
je 0x4d77c9
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d782f
lea eax, [ebp - 4]
call fcn.004048e0
ret
Function at 0x4d7a4c
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d90
xor eax, eax
push ebp
push 0x4d7ae5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 4]
call fcn.00404da0
mov ebx, eax
push ebx
call sub.LZ32.DLL_LZOpenFileA
mov esi, eax
lea eax, [ebp - 0x191]
push eax
push ebx
call sub.LZ32.DLL_GetExpandedNameA
dec eax
jne 0x4d7ac3
push 0x1000
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x191]
push eax
call sub.LZ32.DLL_LZOpenFileA
mov edi, eax
push edi
push esi
call sub.LZ32.DLL_LZCopy
push edi
call sub.LZ32.DLL_LZClose
push esi
call sub.LZ32.DLL_LZClose
push ebx
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7aec
lea eax, [ebp - 4]
call fcn.004048e0
ret

Function at 0x4d7bf4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d7c5e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.0040a3c4
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.004d7af4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7c65
lea eax, [ebp - 0x10c]
call fcn.004048e0
ret