joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4638b2
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 0x4638ec
mov byte [ebp + 0x6b], 0xff
jmp 0x463903
lea eax, [ebp - 0x24]
push 1
push dword [ebp + 0x74]
mov dword [ebp + 0x7c], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004421ac
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.004144ea
add esp, 0x10
cmp byte [ebp + 0x6b], bl
jle 0x463a49
mov eax, dword [edi]
cmp word [eax], bx
jne 0x463a49
push 0x105
lea ecx, [ebp + 0x64]
call fcn.00444e50
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 0x463a3d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
jne 0x46396b
mov word [eax], bx
lea ecx, [ebp + 0x7c]
mov word [esi + 2], 0x3f
mov dword [ebp + 0x78], ebx
call fcn.00444cbe
push ebx
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x7c]
push eax
push esi
push str.SYSTEMMountedDevices
push 0x80000002
call fcn.0044947b
add esp, 0x18
cmp dword [ebp + 0x78], 0x18
jne 0x4639cc
push 8
push dword [ebp + 0x7c]
push str.DMIO:ID:
call fcn.0043e718
add esp, 0xc
test eax, eax
jne 0x4639cc
mov eax, dword [ebp + 0x7c]
push 0x10
add eax, 8
push eax
push dword [ebp + 0x74]
call fcn.00445104
add esp, 0xc
test eax, eax
jne 0x4639f0
lea ecx, [ebp + 0x7c]
call fcn.0043e679
push 0x103
push esi
push dword [ebp + 0x60]
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x463957
jmp 0x463a20
push ebx
push ebx
push edi
push esi
call fcn.004144ea
add esi, 0x14
add esp, 0x10
cmp byte [ebp + 0x6b], 2
mov dword [ebp + 0x5c], esi
jne 0x463a18
push ebx
push dword [ebp + 0x74]
lea eax, [ebp + 0x5c]
push eax
call fcn.00453e0c
add esp, 0xc
lea ecx, [ebp + 0x7c]
call fcn.0043e679
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
cmp byte [ebp + 0x6b], 2
jne 0x463a33
xor eax, eax
jmp 0x463a3b
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea ecx, [ebp + 0x64]
call fcn.0043e679
mov eax, ebx
jmp 0x463a63
cmp byte [ebp + 0x6b], 2
jne 0x463a5b
mov eax, dword [edi]
cmp word [eax], bx
je 0x463a5b
push 2
pop eax
jmp 0x463a63
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x46b5a6
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 0x20]
call fcn.00447166
lea eax, [ebp + 8]
push eax
call fcn.0043e611
pop ecx
push 5
lea ecx, [ebp - 0xc]
call fcn.00444e50
push 0x14
lea ecx, [ebp - 8]
call fcn.00444e50
push 2
lea eax, [ebp + 8]
push eax
xor edi, edi
push 0x4cab88
mov dword [ebp - 4], edi
call fcn.00446de5
add esp, 0xc
push 1
push 0x2c
pop esi
movzx ebx, al
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.004589f9
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00447c46
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x46b63d
add dword [ebp + 8], 2
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004589f9
push edi
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.00447c46
add esp, 0xc
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x46b666
add dword [ebp + 8], 2
push esi
lea eax, [ebp - 4]
push eax
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004589f9
push eax
call fcn.00447eda
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x46b678
mov esi, 0x80070057
jmp 0x46b787
cmp dword [ebp - 4], edi
mov eax, dword [ebp - 8]
jne 0x46b689
cmp ebx, edi
jne 0x46b689
cmp word [eax], di
je 0x46b66e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call ebx
mov esi, eax
lea eax, [esi + 0x214]
push eax
lea ecx, [ebp - 8]
call fcn.00444e77
mov eax, dword [ebp - 8]
push eax
lea esi, [eax + esi*2 + 8]
mov dword [ebp - 0x14], edi
call fcn.0041310a
push dword [ebp - 0xc]
mov dword [ebp + 8], eax
call fcn.0041310a
pop ecx
pop ecx
mov edi, eax
xor ecx, ecx
cmp word [edi], cx
je 0x46b66e
cmp dword [ebp - 0x10], ecx
jne 0x46b6e0
cmp dword [ebp - 4], ecx
jne 0x46b6e0
push ecx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
jmp 0x46b730
cmp dword [ebp - 4], 2
je 0x46b738
cmp dword [ebp - 0x10], ecx
jne 0x46b738
xor esi, esi
test byte [ebp - 4], 0x10
je 0x46b6f4
inc esi
push edi
call ebx
lea eax, [edi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x46b708
xor esi, esi
inc esi
and word [eax], 0
test esi, esi
jne 0x46b723
cmp dword [ebp - 4], 3
jne 0x46b723
push dword [ebp + 8]
call fcn.004ad0f1
mov esi, eax
neg esi
sbb esi, esi
pop ecx
neg esi
push esi
push dword [ebp + 8]
push edi
call fcn.00442a09
add esp, 0xc
test eax, eax
je 0x46b77f
xor eax, eax
jmp 0x46b785
mov eax, dword [ebp + 8]
cmp word [eax], cx
jne 0x46b749
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x46b730
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [esi + 8]
push ecx
push 0x208
push eax
call fcn.0044561a
push esi
push edi
mov word [esi], 0x5c
mov word [esi + 2], 0x3f
mov word [esi + 4], 0x3f
mov word [esi + 6], 0x5c
call fcn.00442905
add esp, 0x18
jmp 0x46b730
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 8]
call fcn.0043e679
lea ecx, [ebp - 0xc]
call fcn.0043e679
lea ecx, [ebp - 0x20]
call fcn.0043e679
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x46b7a8
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 0x46b8d1
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00444e50
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jle 0x46b8c9
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 0x46b8b9
cmp word [edi], si
je 0x46b8b9
mov eax, dword [ebp + 0x10]
push dword [eax]
lea ecx, [ebp - 4]
call fcn.0044e66d
push 0x4c17d8
lea ecx, [ebp - 4]
call fcn.00444e9e
push edi
lea ecx, [ebp - 4]
call fcn.00444e9e
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 [0x4dbc28]
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 0x46b8b1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0046b7a8
add esp, 0xc
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x46b8b1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
call fcn.0043e679
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x46b7ff
pop edi
lea ecx, [ebp - 0x18]
call fcn.0043e679
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x47c079
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x4dcd58
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
call fcn.00457a0b
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x47c0be
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x47c0be
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 0x47c0d2
push 5
push edi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x20], 0
je 0x47c0ea
push 1
push edi
call fcn.004aa1fd
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x484510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [ebp + 0x24]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov ebx, eax
and eax, 2
and ebx, 1
mov dword [ebp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, 0xb4
cmp esi, eax
jle 0x484540
mov esi, eax
xor eax, eax
xor edx, edx
cmp dword [ebp + 0x24], edx
mov ecx, 0xcc
lea edi, [ebp - 0x340]
mov dword [ebp - 0x344], edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 0x290], 0x40
mov byte [ebp - 0x24], dl
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xd4], edx
je 0x484597
mov dword [ebp - 0xd4], 0x40000000
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x32c], eax
lea eax, [esi + esi]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x264]
push eax
call fcn.00414409
and word [ebp + esi*2 - 0x264], 0
add esp, 0xc
mov esi, 0x4dc8fc
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4dbc2c
push 0x10000
lea eax, [ebp - 0x344]
push eax
push 0x483e59
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0x1c], eax
je 0x484627
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x24], 0x270f
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x268], eax
jne 0x484627
push 0
call edi
dec dword [ebp + 0x24]
jns 0x484602
jmp 0x48461c
push 1
call edi
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x268], eax
je 0x484618
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 0x1c]
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
je 0x48465d
cmp esi, edi
je 0x484668
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x14]
mov ecx, 0x4dc0f8
call fcn.00415ff0
cmp esi, edi
je 0x484668
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0xd4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49a8e1
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.00444e77
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 0x49b910
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 0x49b96d
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x49b964
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 0x49ef6f
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 + 0xb0]
push 0x132f
push dword [esi + 0x18]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esi + 0xa4]
mov edi, eax
mov eax, dword [ebp - 4]
cmp edi, eax
je 0x49f03f
test edi, edi
jl 0x49f03f
cmp edi, dword [esi + 0xac]
jge 0x49f03f
mov eax, dword [ebx + eax*4]
mov eax, dword [eax]
test eax, eax
je 0x49efce
push 0
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0xb0], edi
mov eax, dword [ebx + edi*4]
mov eax, dword [eax]
test eax, eax
je 0x49efe8
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 0x49effc
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
push 0x4c9c80
lea ecx, [ebp - 4]
call fcn.0044e66d
push dword [esi + 0x84]
lea ecx, [ebp - 4]
call fcn.00444e9e
push str..Select
lea ecx, [ebp - 4]
call fcn.00444e9e
push dword [ebp - 4]
inc edi
push edi
push dword [esi + 0x88]
call fcn.0044749d
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.0043e679
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a103b
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 0x4a1066
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 0x4aa422
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 0x4aa4d6
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 0x4aa4b7
mov al, byte [esi + 0x75]
cmp al, bl
jle 0x4aa498
mov byte [esi + 0x75], bl
cmp byte [esi + 0x74], bl
jle 0x4aa5cc
push 1
push ebx
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4aa5cc
dec al
cmp al, 0x9c
mov byte [esi + 0x75], al
jge 0x4aa5cc
push edi
push dword [esi + 0x18]
mov byte [esi + 0x75], bl
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x4aa5cc
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, ah
jns 0x4aa5cc
cmp byte [esi + 0x75], bl
jg 0x4aa5cc
mov byte [esi + 0x75], 1
jmp 0x4aa47e
mov edi, 0x2711
cmp dword [ebp + 8], edi
jne 0x4aa5cc
cmp byte [esi + 0x68], bl
jle 0x4aa5cc
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 0x4aa58f
push edi
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_KillTimer]
cmp word [esi + 0x6a], bx
mov byte [esi + 0x68], bl
jl 0x4aa560
mov al, byte [esi + 0x74]
cmp al, bl
mov word [esi + 0x6a], bx
jle 0x4aa54b
mov cl, byte [esi + 0x6c]
and cl, 2
mov byte [esi + 0x6d], cl
cmp byte [esi + 0x69], bl
jne 0x4aa554
cmp al, bl
jle 0x4aa560
push 1
push ebx
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
push ebx
push 0x2a3
mov dword [0x4dce84], ebx
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x50]
cmp eax, dword [0x4dce58]
jne 0x4aa5cc
push 1
push dword [esi + 0x18]
call fcn.004aa1fd
pop ecx
pop ecx
jmp 0x4aa5cc
mov al, byte [0x4da851]
cmp al, byte [esi + 0x68]
jne 0x4aa5a2
push dword [esi + 0x18]
call fcn.004a23e2
pop ecx
mov al, byte [esi + 0x68]
cmp al, byte [0x4da850]
jg 0x4aa5b2
inc al
mov byte [esi + 0x68], al
mov al, byte [0x4da850]
cmp al, byte [esi + 0x68]
jne 0x4aa5cc
push ebx
push ebx
push 0x2a1
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp byte [esi + 0x7c], bl
jge 0x4aa5e2
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 0x4ad0ae
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 0x4ad0cc
cmp ax, 0x42
je 0x4ad0cc
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 0x4ad260
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 0x4b0af6
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4ce810
call fcn.004ae7f0
mov edi, 0x94
mov eax, edi
call fcn.004ade80
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 [0x4dcf60], ecx
mov eax, dword [esi + 4]
mov dword [0x4dcf6c], eax
mov edx, dword [esi + 8]
mov dword [0x4dcf70], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4dcf64], esi
cmp ecx, 2
je 0x4b0b56
or esi, 0x8000
mov dword [0x4dcf64], esi
shl eax, 8
add eax, edx
mov dword [0x4dcf68], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4b0b91
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b0b91
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4b0ba9
cmp eax, 0x20b
je 0x4b0b96
mov dword [ebp - 0x1c], esi
jmp 0x4b0bbd
cmp dword [ecx + 0x84], 0xe
jbe 0x4b0b91
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4b0bb7
cmp dword [ecx + 0x74], 0xe
jbe 0x4b0b91
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004b3385
pop ecx
test eax, eax
jne 0x4b0bd1
push 0x1c
call fcn.004b0ad2
pop ecx
call fcn.004b28cb
test eax, eax
jne 0x4b0be2
push 0x10
call fcn.004b0ad2
pop ecx
call fcn.004b98d3
mov dword [ebp - 4], esi
call fcn.004b96d5
test eax, eax
jge 0x4b0bfb
push 0x1b
call fcn.004b0aad
pop ecx
call fcn.004b9636
mov dword [0x4de934], eax
call fcn.004b94cc
mov dword [0x4dcf54], eax
call fcn.004b9436
test eax, eax
jge 0x4b0c20
push 8
call fcn.004b0aad
pop ecx
call fcn.004b9203
test eax, eax
jge 0x4b0c31
push 9
call fcn.004b0aad
pop ecx
push 1
call fcn.004b0ed6
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4b0c47
push eax
call fcn.004b0aad
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.004b91bd
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4b0c68
movzx eax, word [ebp - 0x40]
jmp 0x4b0c6b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040932f
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4b0c89
push edi
call fcn.004b1003
call fcn.004b1025
jmp 0x4b0cbb
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004ae82b
ret
Function at 0x4b0f40
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4ce848
call fcn.004ae7f0
push 8
call fcn.004b3529
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4dcfa0], esi
jne 0x4b0f74
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4dcf9c], esi
mov al, byte [ebp + 0x10]
mov byte [0x4dcf98], al
cmp dword [ebp + 0xc], edi
jne 0x4b0fbe
cmp dword [0x4de92c], edi
je 0x4b0fae
mov eax, dword [0x4de928]
sub eax, 4
mov dword [0x4de928], eax
cmp eax, dword [0x4de92c]
jb 0x4b0fae
mov eax, dword [eax]
cmp eax, edi
je 0x4b0f8f
call eax
jmp 0x4b0f8f
push 0x4da0e0
mov eax, 0x4da0d8
call fcn.004b0ebe
pop ecx
push 0x4da0ec
mov eax, 0x4da0e4
call fcn.004b0ebe
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4b0fef
cmp dword [ebp + 0x10], edi
jne 0x4b0ffd
mov dword [0x4dcfa0], esi
push dword [ebp + 8]
call fcn.004b0e7c
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4b0ffc
push 8
call fcn.004b3474
pop ecx
ret
call fcn.004ae82b
ret
Function at 0x4b1c4c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4db34c]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x4b1c88
xor eax, eax
jmp 0x4b1df2
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4dd7e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4b1cc6
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.004b9d87
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4b1d60
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x4b1dc3
jmp 0x4b1cea
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x4b1d25
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4b1d16
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x4b1cf6
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b1d84
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4b1d8d
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x4b1ce8
jmp 0x4b1d8d
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b1d84
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x4b1d8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x4b1ded
cmp dword [ebp - 0x68], eax
je 0x4b1dc0
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x4b1db5
call fcn.004b1bc7
mov dword [eax], 9
call fcn.004b1bd0
mov dword [eax], esi
jmp 0x4b1de8
push dword [ebp - 0x68]
call fcn.004b1bd9
pop ecx
jmp 0x4b1de8
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4b1dd5
cmp byte [edi], 0x1a
jne 0x4b1dd5
xor eax, eax
jmp 0x4b1df0
call fcn.004b1bc7
mov dword [eax], 0x1c
call fcn.004b1bd0
and dword [eax], 0
or eax, 0xffffffff
jmp 0x4b1df0
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.004b9cde
add ebp, 0x3a4
leave
ret