joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d905c
Capabilities:
Unmount volume via ioctl

Disassembly:
push ebp
sub esp, 0x200
lea ebp, [esp - 4]
mov eax, dword [0x5675a0]
xor eax, ebp
mov dword [ebp + 0x200], eax
push 0x14
mov eax, 0x513ccf
call fcn.0044c7ac
push str.._
lea eax, [ebp - 0x10]
xor esi, esi
push eax
mov edi, ecx
mov dword [ebp - 0x14], esi
call fcn.00412c0a
push edi
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 4], esi
call fcn.00412c0a
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 1]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x20]
call fcn.00428926
mov byte [ebp - 4], 2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00411b1c
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00410d34
push dword [ebp - 0x10]
lea eax, [ebp]
push 0xff
push eax
call fcn.00447d65
add esp, 0xc
push esi
push esi
push 4
push esi
push 3
push 0xc0000000
lea eax, [ebp]
push eax
call dword [0x574d8c]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4d9113
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x4d9168
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
push esi
push 0x90018
push ebx
call edi
push esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
push esi
push 0x90020
push ebx
call edi
test eax, eax
jne 0x4d9150
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
je 0x4d9161
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
push esi
push 0x9001c
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00410d34
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00410d34
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.00447dd1
add ebp, 0x204
leave
ret

Function at 0x4d9360
Capabilities:
Compress data via winapi

Disassembly:
push edi
push str.ntdll.dll
call dword [0x574e3c]
mov edi, dword [0x574e04]
push str.RtlDecompressBuffer
push eax
mov dword [esi], eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi]
push str.NtQueryInformationFile
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.NtReadFile
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push str.NtWriteFile
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push str.RtlNtStatusToDosError
push eax
call edi
mov dword [esi + 0x14], eax
mov eax, esi
pop edi
ret

Function at 0x4d93f6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 0xc]
call fcn.004440c6
push dword [ebp + 0xc]
mov esi, eax
push 0
push esi
call fcn.00449940
add esp, 0x10
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call fcn.00448953
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x4d9d0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
mov esi, eax
cmp byte [esi + 0x34], bl
mov dword [ebp - 4], ebx
jne 0x4d9d30
call fcn.004d9c37
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x4d9e06
mov eax, dword [esi + 0x30]
push edi
xor edi, edi
cmp eax, 3
jne 0x4d9d3e
inc edi
jmp 0x4d9d46
cmp eax, 0x23
jne 0x4d9d46
push 2
pop edi
cmp eax, ebx
mov dword [ebp - 0xc], ebx
jbe 0x4d9e05
cmp dword [ebp - 4], ebx
jne 0x4d9e05
cmp dword [ebp - 0xc], ebx
je 0x4d9d71
mov eax, dword [ebp + 0xc]
push 1
push ebx
neg eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
jbe 0x4d9de8
cmp dword [ebp - 4], ebx
jne 0x4d9de8
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 8]
mov ecx, dword [esi + 0x38]
cmp eax, ecx
jbe 0x4d9d90
mov eax, ecx
mov ecx, dword [esi + edi*4 + 0x3c]
push ebx
lea edx, [ebp - 0x10]
push edx
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d9db0
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
jmp 0x4d9dbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x4d9de0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test al, al
jne 0x4d9dd9
cmp dword [esi + 0x48], ebx
je 0x4d9de0
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx]
call dword [eax + 0x18]
test al, al
jne 0x4d9de0
mov dword [ebp - 4], 0x4c7
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
jb 0x4d9d7c
inc edi
cmp edi, 3
jge 0x4d9df4
cmp dword [esi + edi*4 + 0x3c], ebx
jne 0x4d9df6
xor edi, edi
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [esi + 0x30]
jb 0x4d9d51
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8

Function at 0x4db027
Capabilities:
Get system information on windows

Disassembly:
push esi
push str.GetNativeSystemInfo
push str.kernel32.dll
mov esi, eax
call dword [0x574dec]
push eax
call dword [0x574e04]
add esi, 0x124
test eax, eax
push esi
je 0x4db050
call eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
pop esi
ret
Function at 0x4e04c7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5142c6
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5675a0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov edi, dword [ebp + 8]
lea eax, [esp + 0x34]
push eax
xor ecx, ecx
push ecx
lea eax, [edi + 0x78]
mov dword [esp + 0x58], ebx
call fcn.0042aceb
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x46d
push dword [edi + 0x10]
mov dword [esp + 0x20], eax
call esi
push 0x46e
push dword [edi + 0x10]
mov dword [esp + 0x2c], eax
call esi
cmp dword [esp + 0x38], ebx
mov dword [esp + 0x28], eax
jne 0x4e0554
mov dword [esp + 0x20], ebx
jmp 0x4e0563
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
sar eax, 2
mov dword [esp + 0x20], eax
push 0x3f6
push dword [edi + 0x10]
call esi
mov esi, dword [0x574eb4]
xor ecx, ecx
cmp dword [esp + 0x20], ebx
setne cl
push ecx
push eax
call esi
push ebx
push edi
lea eax, [esp + 0x3c]
call fcn.004df922
mov ebx, dword [esp + 0x24]
movzx eax, al
push eax
push ebx
call esi
push 1
push edi
lea eax, [esp + 0x3c]
call fcn.004df922
mov edi, dword [esp + 0x28]
movzx eax, al
push eax
push edi
call esi
cmp dword [esp + 0x18], ebx
mov esi, dword [sym.imp.USER32.dll_IsWindowEnabled]
je 0x4e05c1
cmp dword [esp + 0x18], edi
jne 0x4e05e3
jmp 0x4e05cf
push ebx
call esi
test eax, eax
jne 0x4e05cf
push edi
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [esp + 0x18], edi
jne 0x4e05e3
push edi
call esi
test eax, eax
jne 0x4e05e3
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
lea eax, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
lea ebx, [esp + 0x18]
call fcn.00418561
lea eax, [esp + 0x20]
lea ebx, [esp + 0x2c]
call fcn.0041857c
lea edi, [esp + 0x2c]
lea esi, [esp + 0x18]
call fcn.00411e4b
test al, al
jne 0x4e06ba
call fcn.00407031
mov edi, dword [eax]
mov esi, dword [ebp + 8]
push edi
call fcn.004df8e0
test al, al
mov eax, dword [0x5768f8]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
je 0x4e0650
push 0x8a3
lea edx, [esp + 0x28]
push edx
push eax
call dword [ecx + 0x34]
add esp, 0xc
or dword [esp + 0x14], 1
jmp 0x4e0666
push 0x8a4
lea edx, [esp + 0x2c]
push edx
push eax
call dword [ecx + 0x34]
add esp, 0xc
or dword [esp + 0x14], 2
mov eax, dword [eax]
push 0
push eax
push 1
push edi
add esi, 0x7c
push esi
call fcn.0042ae1e
test byte [esp + 0x14], 2
je 0x4e068f
mov eax, dword [esp + 0x28]
and dword [esp + 0x14], 0xfffffffd
add eax, 0xfffffff0
call fcn.00410d34
and dword [esp + 0x50], 0
test byte [esp + 0x14], 1
je 0x4e06ac
mov eax, dword [esp + 0x24]
and dword [esp + 0x14], 0xfffffffe
add eax, 0xfffffff0
call fcn.00410d34
lea esi, [esp + 0x18]
call fcn.0040704e
jmp 0x4e0605
lea esi, [esp + 0x34]
call fcn.0042d77f
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e0916
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x407
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esi + 0x78]
mov ebx, eax
mov eax, ecx
call fcn.0041bd46
push 2
lea ebx, [esi + 0x7c]
push 0
mov edx, 0x52cc70
call fcn.0041be8f
push 0
push 1
mov edx, 0x52cc74
call fcn.0041be8f
push 0
push 2
mov edx, 0x52cc78
call fcn.0041be8f
push 0
push 3
mov edx, 0x52cc7c
call fcn.0041be8f
push 0x20
push 0x20
mov edi, 0x1036
push edi
push dword [ebx]
call dword [0x574f08]
push 1
push 1
push edi
push dword [ebx]
call dword [0x574f08]
push 0x2000000
xor eax, eax
xor ecx, ecx
mov edi, ebx
call fcn.0041110e
push 0x3f6
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [0x574ed8]
push 0xfffffffffffffff0
push eax
mov dword [esp + 0x18], eax
call edi
mov ecx, eax
or ecx, 0x4000000
cmp eax, ecx
je 0x4e09de
push ecx
push dword [esp + 0x14]
call fcn.004df892
pop ecx
pop ecx
push 0x46d
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xfffffffffffffff0
push eax
mov dword [esp + 0x18], eax
call edi
mov ecx, eax
or ecx, 0x4000000
cmp eax, ecx
je 0x4e0a0d
push ecx
push dword [esp + 0x14]
call fcn.004df892
pop ecx
pop ecx
push 0x46e
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xfffffffffffffff0
push eax
mov dword [esp + 0x18], eax
call edi
mov ecx, eax
or ecx, 0x4000000
cmp eax, ecx
je 0x4e0a3c
push ecx
push dword [esp + 0x14]
call fcn.004df892
pop ecx
pop ecx
push 0x3f7
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xfffffffffffffff0
push eax
mov dword [esp + 0x18], eax
call edi
mov ecx, eax
or ecx, 0x4000000
cmp eax, ecx
je 0x4e0a6b
push ecx
push dword [esp + 0x14]
call fcn.004df892
pop ecx
pop ecx
xor eax, eax
cmp byte [esi + 0xf1], al
je 0x4e0ad8
push eax
push eax
push 0x101f
push dword [ebx]
call dword [0x574f08]
add esi, 0xa4
mov ebx, eax
call fcn.00428111
mov esi, dword [ebp + 8]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
lea eax, [esi + 0xe4]
push eax
lea ebx, [esp + 0x1c]
call fcn.00421652
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x46d
push dword [esi + 0x10]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x46e
push dword [esi + 0x10]
call edi
push 0
push eax
call ebx
lea eax, [esi + 0x2c]
call fcn.0042055c
add esi, 8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e2b45
Capabilities:
Get disk information

Disassembly:
push 0x14
mov eax, 0x519be4
call fcn.0044c815
mov eax, dword [0x52cee8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x52ceec]
mov edi, ecx
mov dword [ebp - 0x14], eax
call sub.KERNEL32.dll_GetLogicalDrives
mov ebx, eax
test ebx, ebx
je 0x4e2bc3
mov eax, dword [0x575038]
mov ecx, 0x575038
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
test bl, 1
je 0x4e2bb3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00412c0a
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.00426962
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00410d34
inc word [ebp - 0x18]
shr ebx, 1
jne 0x4e2b85
lea eax, [esi - 0x10]
call fcn.00410d34
call fcn.0044c898
ret
Function at 0x4e3897
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
lea eax, [ebp + 0x2c]
call fcn.00427263
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x412
push dword [ebp + 0x10]
lea edi, [ebp + 0xd4]
call esi
mov dword [edi], eax
mov ebx, 0x4000000
push ebx
xor eax, eax
xor ecx, ecx
call fcn.0041110e
push 0x40f
push dword [ebp + 0x10]
lea edi, [ebp + 0xd8]
call esi
mov dword [edi], eax
push ebx
xor eax, eax
xor ecx, ecx
call fcn.0041110e
push 0x46e
push dword [ebp + 0x10]
call esi
lea edx, [ebp + 0xdc]
mov ecx, eax
mov eax, edx
call fcn.00427aaa
lea ebx, [ebp + 0xe0]
push 0x4004000
xor eax, eax
xor ecx, ecx
mov edi, ebx
call fcn.0041110e
xor edi, edi
push edi
push edi
mov edx, str.Available_Drives
call fcn.0041be8f
push 0x3ef
push dword [ebp + 0x10]
call esi
lea esi, [ebp + 0x100]
mov ebx, eax
call fcn.0041569c
push 0x640000
push edi
push 0x401
lea esi, [ebp + 0x104]
push dword [esi]
call dword [0x574f08]
lea eax, [ebp + 0x124]
call fcn.00416635
mov ebx, 0x4000000
push ebx
xor eax, eax
xor ecx, ecx
mov edi, esi
call fcn.0041110e
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi]
call edi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x434
push dword [ebp + 0x10]
call esi
push 0xfffffffffffffff0
push eax
mov dword [esp + 0x1c], eax
call dword [0x574ed8]
mov ecx, eax
or ecx, ebx
cmp eax, ecx
je 0x4e39b0
push ecx
push dword [esp + 0x18]
call fcn.004e12e9
pop ecx
pop ecx
push 0x434
push dword [ebp + 0x10]
call esi
push 0
push eax
call edi
push 0x435
push dword [ebp + 0x10]
call esi
push 0xfffffffffffffff0
push eax
mov dword [esp + 0x1c], eax
call dword [0x574ed8]
mov ecx, eax
or ecx, ebx
cmp eax, ecx
je 0x4e39ea
push ecx
push dword [esp + 0x18]
call fcn.004e12e9
pop ecx
pop ecx
push 0x435
push dword [ebp + 0x10]
call esi
push 0
push eax
call edi
push 0x436
push dword [ebp + 0x10]
call esi
push 0xfffffffffffffff0
push eax
mov dword [esp + 0x1c], eax
call dword [0x574ed8]
mov ecx, eax
or ecx, ebx
cmp eax, ecx
je 0x4e3a24
push ecx
push dword [esp + 0x18]
call fcn.004e12e9
pop ecx
pop ecx
push 0x436
push dword [ebp + 0x10]
call esi
xor ebx, ebx
push ebx
push eax
call edi
push ebx
mov eax, ebp
call fcn.004e335d
push ebp
call fcn.004e15d4
lea esi, [ebp + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
push ebx
push 5
push 1
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
ret 4
Function at 0x4e4d98
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 9
jne 0x4e4e1a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4e4e1a
push ebx
push edi
mov edi, dword [0x574f08]
push 0
push 0
push 0x130b
push dword [esi + 4]
call edi
push 0
push 0
push 0x1304
push dword [esi + 4]
mov ebx, eax
inc ebx
call edi
dec eax
cmp ebx, eax
jle 0x4e4ddf
xor ebx, ebx
push 0
push ebx
push 0x130c
push dword [esi + 4]
call edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ebx, eax
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0xfffffdd9
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push ebx
push 0x4e
push eax
call edi
pop edi
pop ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
push dword [esi + 0x20]
call dword [0x574e8c]
leave
ret 0xc
Function at 0x4e4e33
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51083f
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5675a0]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x5675a0]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
push 1
xor esi, esi
mov edi, ecx
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [edi + 4]
lea ecx, [esp + 0x74]
push ecx
push eax
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0xcc], esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x3c]
lea ebx, [esp + 0x4c]
call fcn.004121f0
push 0xffffff
lea eax, [esp + 0x40]
push eax
mov esi, ebx
mov byte [esp + 0xd0], 1
call fcn.00403ecb
push 0x2d
pop esi
call fcn.004db3e6
mov dword [esp + 0x18], eax
call fcn.004d8d74
test al, al
mov ebx, dword [0x574f08]
mov byte [esp + 0x13], al
mov esi, 0x1304
jne 0x4e4f6e
xor eax, eax
push eax
push eax
push esi
push dword [edi + 4]
mov dword [esp + 0x24], eax
call ebx
test eax, eax
jle 0x4e4f6e
push 0
push 0
push 0x130b
push dword [edi + 4]
call ebx
cmp dword [esp + 0x14], eax
je 0x4e4f5a
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x18]
push 0x130a
push dword [edi + 4]
call ebx
test eax, eax
je 0x4e4f5a
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea eax, [esp + 0x30]
push eax
lea esi, [esp + 0x54]
call fcn.00403ecb
mov esi, 0x1304
inc dword [esp + 0x14]
push 0
push 0
push esi
push dword [edi + 4]
call ebx
cmp dword [esp + 0x14], eax
jl 0x4e4f13
push 0
push dword [esp + 0x50]
push 0xf
push dword [edi + 4]
push dword [edi + 0x20]
call dword [0x574e8c]
cmp byte [esp + 0x13], 0
je 0x4e5007
push 0
push 0
push esi
push dword [edi + 4]
call ebx
test eax, eax
jle 0x4e5007
push 0
push 0
push esi
push dword [edi + 4]
call ebx
lea ecx, [esp + 0x2c]
push ecx
dec eax
push eax
push 0x130a
push dword [edi + 4]
call ebx
push 0
push 0
push esi
push dword [edi + 4]
call ebx
push 0
push 0
push 0x130b
push dword [edi + 4]
mov esi, eax
call ebx
dec esi
cmp esi, eax
mov eax, dword [esp + 0x34]
jne 0x4e4fdb
mov ecx, dword [esp + 0x18]
add eax, ecx
and dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
push 0xffffff
lea eax, [esp + 0x20]
push eax
lea esi, [esp + 0x54]
call fcn.00403ecb
lea edi, [esp + 0x4c]
call fcn.004121a4
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x74]
call dword [sym.imp.USER32.dll_EndPaint]
xor eax, eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.00447dd1
mov esp, ebp
pop ebp
ret
Function at 0x4e5861
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, eax
test esi, esi
jne 0x4e5871
xor al, al
jmp 0x4e58c1
push 5
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4e586d
and dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push edi
call ebx
test eax, eax
je 0x4e58b3
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
movsd dword es:[edi], dword [esi]
push 5
push dword [ebp + 8]
movsb byte es:[edi], byte [esi]
call ebx
test eax, eax
jne 0x4e58bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x4e58bf
mov al, 1
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x4e660f
Capabilities:
Hide graphical window

Disassembly:
mov eax, esi
call fcn.004e65f1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x4e9a4c
Capabilities:
Get disk information

Disassembly:
push 0x14
mov eax, 0x519e98
call fcn.0044c815
mov eax, dword [0x52ff20]
mov dword [ebp - 0x18], eax
mov eax, dword [0x52ff24]
mov edi, ecx
mov dword [ebp - 0x14], eax
call sub.KERNEL32.dll_GetLogicalDrives
mov ebx, eax
test ebx, ebx
je 0x4e9aca
mov eax, dword [0x575038]
mov ecx, 0x575038
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
test bl, 1
je 0x4e9aba
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00412c0a
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.00426962
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00410d34
inc word [ebp - 0x18]
shr ebx, 1
jne 0x4e9a8c
lea eax, [esi - 0x10]
call fcn.00410d34
call fcn.0044c898
ret
Function at 0x4e9fd1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
push ebx
push edi
lea eax, [esi + 0x2c]
call fcn.0042055c
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x408
push dword [esi + 0x10]
lea edi, [esi + 0x98]
call ebx
mov dword [edi], eax
push 0x4000000
xor eax, eax
xor ecx, ecx
call fcn.0041110e
push 0x42f
push dword [esi + 0x10]
call ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call edi
push 0x411
push dword [esi + 0x10]
call ebx
push 0
push eax
call edi
push 0x40f
push dword [esi + 0x10]
lea edi, [esi + 0x9c]
call ebx
mov dword [edi], eax
push 0x4000000
xor eax, eax
xor ecx, ecx
call fcn.0041110e
push 0x46e
push dword [esi + 0x10]
call ebx
lea edx, [esi + 0xa0]
mov ecx, eax
mov eax, edx
call fcn.00427aaa
lea edi, [esi + 0xa4]
push 0x4000000
xor eax, eax
xor ecx, ecx
call fcn.0041110e
push 0
push 0
mov edx, 0x52fe60
mov ebx, edi
call fcn.0041be8f
push esi
call fcn.004e9f25
call fcn.004d8d53
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x46f
push dword [esi + 0x10]
mov bl, al
call edi
neg bl
sbb ebx, ebx
and ebx, 5
push ebx
mov dword [esp + 0x10], ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0x46e
push dword [esi + 0x10]
call edi
push dword [esp + 0xc]
push eax
call ebx
push 0x410
push dword [esi + 0x10]
call edi
push dword [esp + 0xc]
push eax
call ebx
push esi
call fcn.004e8f1e
lea edi, [esi + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
push 0
push 5
push 1
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
pop edi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret