joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a832
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
cmp dword [0x4e2f30], edi
mov ebx, ecx
mov dword [ebp - 0xc], ebx
jne 0x45a85e
push edi
push edi
call fcn.00416215
test eax, eax
pop ecx
pop ecx
jne 0x45a85e
or eax, 0xffffffff
jmp 0x45a9ea
mov eax, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0xc], edi
je 0x45a86f
mov ecx, dword [eax]
jmp 0x45a871
xor ecx, ecx
mov eax, dword [ebp + 8]
cmp eax, edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
jne 0x45a887
push 0x64
pop eax
cmp eax, 0x10000
push esi
jge 0x45a8d0
mov esi, dword [0x4e2fc8]
movzx eax, ax
push str.IMAGE
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x45a8b4
or eax, 0xffffffff
jmp 0x45a9e9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 8
mov dword [ebp + 0xc], eax
jb 0x45a8ac
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x45a8d9
cmp ecx, edi
je 0x45a8f4
mov eax, dword [eax]
mov dword [ebp + 0xc], ecx
cmp eax, edi
je 0x45a8ac
lea ecx, [ebx + 0x2c]
push ecx
push dword [ebp + 0xc]
lea esi, [ebx + 0x28]
push eax
call fcn.00445559
add esp, 0xc
mov dword [esi], eax
jmp 0x45a8ff
lea esi, [ebx + 0x28]
push esi
push eax
call dword [0x4e2ed8]
mov eax, dword [esi]
cmp eax, edi
jne 0x45a90d
push 0xfffffffffffffffe
pop eax
jmp 0x45a9e9
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], edi
call dword [0x4e2eec]
mov eax, dword [ebp - 8]
shl eax, 4
push eax
lea ecx, [ebp + 8]
call fcn.00446437
push dword [ebp - 8]
push dword [ebp + 8]
push dword [esi]
call dword [0x4e2edc]
lea eax, [ebx + 0xc]
push eax
push dword [ebp + 8]
push dword [esi]
call dword [0x4e2ef0]
cmp dword [ebx + 0xc], 1
ja 0x45a955
or edi, 0xffffffff
jmp 0x45a9df
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
mov edi, 0x5100
push edi
push dword [esi]
call dword [0x4e2ef4]
push dword [ebp - 4]
lea ecx, [ebp + 0xc]
call fcn.00446437
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
push dword [esi]
call dword [0x4e2ef8]
mov edi, dword [ebp - 4]
push dword [ebx + 0xc]
add edi, 0xfffffff0
mov ecx, ebx
shr edi, 2
call fcn.0040fb6c
xor esi, esi
xor ebx, ebx
test edi, edi
jbe 0x45a9bd
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ebp - 0xc]
lea esi, [eax + eax*4]
push ebx
shl esi, 1
call fcn.0040fb6c
inc ebx
cmp ebx, edi
mov dword [eax], esi
jb 0x45a99f
mov edi, dword [ebp - 0xc]
add edi, 0xc
jmp 0x45a9d1
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.0040fb6c
mov dword [eax], esi
inc ebx
cmp ebx, dword [edi]
jb 0x45a9c5
mov edi, dword [edi]
lea ecx, [ebp + 0xc]
call fcn.0043fe25
lea ecx, [ebp + 8]
call fcn.0043fe25
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x46568b
Capabilities:
Enumerate disk volumes

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x90
push ebx
push esi
push edi
push 5
pop ecx
mov esi, str.__Volume
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1a
xor eax, eax
pop ecx
lea edi, [ebp - 0xe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x7c]
cmp eax, 4
mov byte [ebp + 0x6b], al
jbe 0x4656c5
mov byte [ebp + 0x6b], 0xff
jmp 0x4656dc
lea eax, [ebp - 0x24]
push 1
push dword [ebp + 0x74]
mov dword [ebp + 0x7c], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00443abf
add esp, 0xc
mov edi, dword [ebp + 0x78]
mov eax, dword [edi]
xor ebx, ebx
push ebx
push ebx
push edi
push dword [ebp + 0x7c]
mov word [eax], bx
call fcn.0041491a
add esp, 0x10
cmp byte [ebp + 0x6b], bl
jle 0x465822
mov eax, dword [edi]
cmp word [eax], bx
jne 0x465822
push 0x105
lea ecx, [ebp + 0x64]
call fcn.004465ac
mov esi, dword [ebp + 0x64]
push 0x103
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [ebp + 0x60], eax
je 0x465816
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
jne 0x465744
mov word [eax], bx
lea ecx, [ebp + 0x7c]
mov word [esi + 2], 0x3f
mov dword [ebp + 0x78], ebx
call fcn.0044641a
push ebx
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x7c]
push eax
push esi
push str.SYSTEMMountedDevices
push 0x80000002
call fcn.0044ad45
add esp, 0x18
cmp dword [ebp + 0x78], 0x18
jne 0x4657a5
push 8
push dword [ebp + 0x7c]
push str.DMIO:ID:
call fcn.0043ff15
add esp, 0xc
test eax, eax
jne 0x4657a5
mov eax, dword [ebp + 0x7c]
push 0x10
add eax, 8
push eax
push dword [ebp + 0x74]
call fcn.004468ae
add esp, 0xc
test eax, eax
jne 0x4657c9
lea ecx, [ebp + 0x7c]
call fcn.0043fe25
push 0x103
push esi
push dword [ebp + 0x60]
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x465730
jmp 0x4657f9
push ebx
push ebx
push edi
push esi
call fcn.0041491a
add esi, 0x14
add esp, 0x10
cmp byte [ebp + 0x6b], 2
mov dword [ebp + 0x5c], esi
jne 0x4657f1
push ebx
push dword [ebp + 0x74]
lea eax, [ebp + 0x5c]
push eax
call fcn.004567b5
add esp, 0xc
lea ecx, [ebp + 0x7c]
call fcn.0043fe25
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
cmp byte [ebp + 0x6b], 2
jne 0x46580c
xor eax, eax
jmp 0x465814
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea ecx, [ebp + 0x64]
call fcn.0043fe25
mov eax, ebx
jmp 0x46583c
cmp byte [ebp + 0x6b], 2
jne 0x465834
mov eax, dword [edi]
cmp word [eax], bx
je 0x465834
push 2
pop eax
jmp 0x46583c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x46da80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
cmp ebx, esi
jne 0x46dba9
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.004465ac
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jle 0x46dba1
push edi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
shl eax, 2
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov word [edi], si
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x46db91
cmp word [edi], si
je 0x46db91
mov eax, dword [ebp + 0x10]
push dword [eax]
lea ecx, [ebp - 4]
call fcn.004505eb
push 0x4c7828
lea ecx, [ebp - 4]
call fcn.004465fa
push edi
lea ecx, [ebp - 4]
call fcn.004465fa
push esi
push dword [ebp + 0xc]
push esi
push esi
push 4
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea eax, [ebp - 8]
push eax
movzx eax, word [0x4e2c20]
or eax, 0xf003f
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x46db89
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0046da80
add esp, 0xc
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x46db89
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
call fcn.0043fe25
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x46dad7
pop edi
lea ecx, [ebp - 0x18]
call fcn.0043fe25
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x47e628
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x4e3d84
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
call fcn.0045aad7
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x47e66d
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x47e66d
push 0
push edi
inc ebx
call ebp
push dword [esp + 0x1c]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
test ebx, ebx
je 0x47e681
push 5
push edi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x20], 0
je 0x47e699
push 1
push edi
call fcn.004b09dd
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x488f3d
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x24]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, eax
push edi
push dword [ebp + 0xc]
and ecx, 1
and eax, 2
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
call esi
mov dword [ebp + 0x24], eax
mov eax, 0xb4
cmp dword [ebp + 0x24], eax
jle 0x488f72
mov dword [ebp + 0x24], eax
push dword [ebp + 8]
call esi
push dword [ebp + 0x18]
mov edi, eax
inc edi
call esi
push dword [0x4e3d54]
inc eax
lea eax, [eax + edi + 0x1a4]
push eax
lea ecx, [ebp - 4]
call fcn.004505d1
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0x1c]
push dword [ebp + 8]
mov dword [esi + 0x294], eax
lea eax, [esi + 0x348]
lea ecx, [eax + edi*2]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [esi + 0x320], ecx
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
push eax
mov byte [esi + 0xc0], 0x40
mov dword [esi + 0x284], eax
mov byte [esi + 0x32c], bl
mov dword [esi + 0xe8], ecx
call edi
push dword [ebp + 0x18]
push dword [esi + 0x320]
call edi
cmp dword [ebp - 8], ebx
lea edi, [esi + 0x27c]
mov dword [edi], ebx
je 0x488ff9
mov dword [edi], 0x40000000
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x24]
add eax, eax
push eax
push dword [ebp + 0xc]
lea eax, [esi + 0xec]
push eax
call fcn.00414839
mov eax, dword [ebp + 0x24]
add esp, 0xc
push 0x4e2c24
push 0x10004
push esi
push 0x4887d6
push 0x20000
push ebx
mov word [esi + eax*2 + 0xec], bx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [ebp + 0x24], eax
je 0x4890c4
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x338], eax
mov esi, 0x4e3d84
push esi
mov dword [ebp + 0x1c], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x4e34c8], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 0x24]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 0xc], ebx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
je 0x4890bf
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp + 0x14]
mov ecx, 0x4e3110
call fcn.0041195d
push dword [ebp + 0x24]
call esi
movzx esi, byte [edi]
lea ecx, [ebp - 4]
call fcn.0043fe25
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a014e
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, dword [esp + 0x10]
mov esi, eax
lea eax, [esi + 2]
push eax
mov ecx, edi
call fcn.004465d3
mov eax, dword [edi]
and word [eax], 0
mov edi, dword [edi]
inc esi
push esi
push edi
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
pop esi
ret

Function at 0x4a1417
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4a1474
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x4a146b
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x4a4dfb
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0xbc]
push 0x132f
push dword [esi + 0x18]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esi + 0xb0]
mov edi, eax
mov eax, dword [ebp - 4]
cmp edi, eax
je 0x4a4ecb
test edi, edi
jl 0x4a4ecb
cmp edi, dword [esi + 0xb8]
jge 0x4a4ecb
mov eax, dword [ebx + eax*4]
mov eax, dword [eax]
test eax, eax
je 0x4a4e5a
push 0
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0xbc], edi
mov eax, dword [ebx + edi*4]
mov eax, dword [eax]
test eax, eax
je 0x4a4e74
push 5
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
je 0x4a4e88
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
push 0x4cff40
lea ecx, [ebp - 4]
call fcn.004505eb
push dword [esi + 0x90]
lea ecx, [ebp - 4]
call fcn.004465fa
push str..Select
lea ecx, [ebp - 4]
call fcn.004465fa
push dword [ebp - 4]
inc edi
push edi
push dword [esi + 0x94]
call fcn.00448c7f
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.0043fe25
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a6f02
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0xfffffffffffffff0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x4a6f2d
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x18]
call edi
push 5
push dword [esi + 0x18]
call edi
pop edi
pop esi
ret
Function at 0x4b0c02
Capabilities:
Check for unmoving mouse cursor
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, 0x2713
xor ebx, ebx
cmp dword [ebp + 8], edi
mov esi, ecx
jne 0x4b0cb6
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4b0c97
mov al, byte [esi + 0x79]
cmp al, bl
jle 0x4b0c78
mov byte [esi + 0x79], bl
cmp byte [esi + 0x78], bl
jle 0x4b0dac
push 1
push ebx
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4b0dac
dec al
cmp al, 0x9c
mov byte [esi + 0x79], al
jge 0x4b0dac
push edi
push dword [esi + 0x18]
mov byte [esi + 0x79], bl
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x4b0dac
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, ah
jns 0x4b0dac
cmp byte [esi + 0x79], bl
jg 0x4b0dac
mov byte [esi + 0x79], 1
jmp 0x4b0c5e
mov edi, 0x2711
cmp dword [ebp + 8], edi
jne 0x4b0dac
cmp byte [esi + 0x6c], bl
jle 0x4b0dac
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4b0d6f
push edi
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_KillTimer]
cmp word [esi + 0x6e], bx
mov byte [esi + 0x6c], bl
jl 0x4b0d40
mov al, byte [esi + 0x78]
cmp al, bl
mov word [esi + 0x6e], bx
jle 0x4b0d2b
mov cl, byte [esi + 0x70]
and cl, 2
mov byte [esi + 0x71], cl
cmp byte [esi + 0x6d], bl
jne 0x4b0d34
cmp al, bl
jle 0x4b0d40
push 1
push ebx
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
push ebx
push 0x2a3
mov dword [0x4e3ec0], ebx
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x54]
cmp eax, dword [0x4e1854]
jne 0x4b0dac
push 1
push dword [esi + 0x18]
call fcn.004b09dd
pop ecx
pop ecx
jmp 0x4b0dac
mov al, byte [0x4e1859]
cmp al, byte [esi + 0x6c]
jne 0x4b0d82
push dword [esi + 0x18]
call fcn.004a834d
pop ecx
mov al, byte [esi + 0x6c]
cmp al, byte [0x4e1858]
jg 0x4b0d92
inc al
mov byte [esi + 0x6c], al
mov al, byte [0x4e1858]
cmp al, byte [esi + 0x6c]
jne 0x4b0dac
push ebx
push ebx
push 0x2a1
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp byte [esi + 0x80], bl
jge 0x4b0dc5
mov eax, dword [esi]
push ebx
push dword [ebp + 8]
push 0x113
push dword [esi + 0x18]
call dword [eax + 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4b3ac8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and eax, 0xffdf
cmp ax, 0x41
je 0x4b3ae6
cmp ax, 0x42
je 0x4b3ae6
push 0xfffffffffffffffe
pop eax
leave
ret
and word [ebp - 4], 0
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], 0x3a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 2
setne cl
mov eax, ecx
leave
ret

Function at 0x4b3c7a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret
Function at 0x4b3d02
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4c5b18
call fcn.004b74ac
sub esp, 0x26c
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, eax
xor edi, edi
and esi, 1
and eax, 0xf0
cmp word [ebx], di
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], eax
jne 0x4b3d3f
mov eax, esi
jmp 0x4b3dc9
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esi
mov dword [ebp + 8], edi
mov dword [ebp - 0x274], edi
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x270]
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp + 0xc], edi
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp + 8]
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.004b3c03
add esp, 0xc
cmp dword [ebp + 8], edi
jne 0x4b3ec7
cmp dword [ebp - 0x24], edi
mov esi, dword [ebp - 0x1c]
je 0x4b3dd8
push ebx
mov word [ebx + esi*2], 0x5c
mov word [ebx + esi*2 + 2], di
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
mov dword [ebp - 0x18], eax
mov word [ebx + esi*2], di
je 0x4b3dd8
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0043fe25
lea ecx, [ebp + 8]
call fcn.00402d60
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
cmp esi, 2
jl 0x4b3ea6
add esi, esi
cmp word [esi + ebx - 2], 0x3a
je 0x4b3e0b
cmp word [ebx], 0x5c
jne 0x4b3ea6
cmp word [ebx + 2], 0x5c
jne 0x4b3ea6
cmp word [ebx + 4], 0x3f
jne 0x4b3ea6
push ebx
lea ecx, [ebp + 0xc]
call fcn.004506c8
mov edi, dword [ebp - 0x1c]
lea eax, [edi + 8]
push eax
lea ecx, [ebp + 0xc]
call fcn.004465d3
mov ebx, dword [ebp + 0xc]
or dword [ebp - 0x14], 0x10
mov word [esi + ebx], 0x5c
mov eax, dword [ebp + 0xc]
mov word [esi + eax + 2], 0x2a
mov eax, dword [ebp + 0xc]
and word [eax + edi*2 + 4], 0
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp + 8]
push ebx
push eax
call fcn.004b3c03
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x4b3ec4
mov eax, dword [ebp + 0xc]
mov word [esi + eax + 2], 0x2a
mov eax, dword [ebp + 0xc]
mov word [eax + edi*2 + 4], 0x2e
mov eax, dword [ebp + 0xc]
mov word [esi + eax + 2], 0x2a
mov eax, dword [ebp + 0xc]
and word [eax + edi*2 + 6], 0
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp + 8]
push ebx
push eax
call fcn.004b3c03
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x4b3ec4
mov eax, dword [ebp + 0xc]
and word [esi + eax], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x274]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4b3db2
mov esi, dword [ebp - 0x14]
xor edi, edi
inc edi
cmp esi, edi
jne 0x4b3efb
mov eax, dword [ebp - 0x274]
shr eax, 4
and eax, edi
mov dword [ebp - 0x18], eax
jne 0x4b3db2
lea eax, [ebp - 0x274]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4b3ece
jmp 0x4b3db2
mov dword [ebp - 0x18], edi
jmp 0x4b3db2
Function at 0x4b7576
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4d4e70
call fcn.004b5270
mov edi, 0x94
mov eax, edi
call fcn.004b4900
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4e3f9c], ecx
mov eax, dword [esi + 4]
mov dword [0x4e3fa8], eax
mov edx, dword [esi + 8]
mov dword [0x4e3fac], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4e3fa0], esi
cmp ecx, 2
je 0x4b75d6
or esi, 0x8000
mov dword [0x4e3fa0], esi
shl eax, 8
add eax, edx
mov dword [0x4e3fa4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4b7611
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b7611
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4b7629
cmp eax, 0x20b
je 0x4b7616
mov dword [ebp - 0x1c], esi
jmp 0x4b763d
cmp dword [ecx + 0x84], 0xe
jbe 0x4b7611
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4b7637
cmp dword [ecx + 0x74], 0xe
jbe 0x4b7611
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004b9e05
pop ecx
test eax, eax
jne 0x4b7651
push 0x1c
call fcn.004b7552
pop ecx
call fcn.004b934b
test eax, eax
jne 0x4b7662
push 0x10
call fcn.004b7552
pop ecx
call fcn.004c0353
mov dword [ebp - 4], esi
call fcn.004c0155
test eax, eax
jge 0x4b767b
push 0x1b
call fcn.004b752d
pop ecx
call fcn.004c00b6
mov dword [0x4e5974], eax
call fcn.004bff4c
mov dword [0x4e3f90], eax
call fcn.004bfeb6
test eax, eax
jge 0x4b76a0
push 8
call fcn.004b752d
pop ecx
call fcn.004bfc83
test eax, eax
jge 0x4b76b1
push 9
call fcn.004b752d
pop ecx
push 1
call fcn.004b7956
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4b76c7
push eax
call fcn.004b752d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.004bfc3d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4b76e8
movzx eax, word [ebp - 0x40]
jmp 0x4b76eb
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00408f48
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4b7709
push edi
call fcn.004b7a83
call fcn.004b7aa5
jmp 0x4b773b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004b52ab
ret
Function at 0x4b79c0
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4d4ea8
call fcn.004b5270
push 8
call fcn.004b9fa9
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4e3fdc], esi
jne 0x4b79f4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4e3fd8], esi
mov al, byte [ebp + 0x10]
mov byte [0x4e3fd4], al
cmp dword [ebp + 0xc], edi
jne 0x4b7a3e
cmp dword [0x4e596c], edi
je 0x4b7a2e
mov eax, dword [0x4e5968]
sub eax, 4
mov dword [0x4e5968], eax
cmp eax, dword [0x4e596c]
jb 0x4b7a2e
mov eax, dword [eax]
cmp eax, edi
je 0x4b7a0f
call eax
jmp 0x4b7a0f
push 0x4e10e8
mov eax, 0x4e10e0
call fcn.004b793e
pop ecx
push 0x4e10f4
mov eax, 0x4e10ec
call fcn.004b793e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4b7a6f
cmp dword [ebp + 0x10], edi
jne 0x4b7a7d
mov dword [0x4e3fdc], esi
push dword [ebp + 8]
call fcn.004b78fc
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4b7a7c
push 8
call fcn.004b9ef4
pop ecx
ret
call fcn.004b52ab
ret