joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f5d0
Capabilities:
Connect pipe
Get common file path
Read pipe
Write pipe

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffee0
mov dword [esp], edx
push edi
push edx
push eax
call sub.gdi32.dll_GetObjectA
mov eax, dword [esp + 4]
push eax
mov ecx, ebx
mov edx, esi
mov eax, ebp
call fcn.0049b57c
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.wininet.dll_GopherGetLocatorTypeA
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
call fcn.0042b264
push dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_SetConsoleScreenBufferSize
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
call sub.gdi32.dll_ExtSelectClipRgn
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
call fcn.0042b224
lea eax, [esp + 0x34]
call fcn.0042b030
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push eax
call sub.user32.dll_EndDialog
lea eax, [esp + 0xa4]
push eax
call sub.shell32.dll_SHFileOperationA
mov eax, dword [esp + 0x4c]
push eax
lea eax, [esp + 0x48]
push eax
call sub.advapi32.dll_DeleteAce
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push eax
call sub.advapi32.dll_RegCreateKeyA
lea eax, [esp + 0xc2]
push eax
call sub.comdlg32.dll_ChooseFontW
mov eax, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push eax
call sub.kernel32.dll_GetTempPathA
mov eax, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x68]
push eax
call sub.user32.dll_UnregisterHotKey
mov eax, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
push eax
call sub.advapi32.dll_RegSetKeySecurity
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
call fcn.0042b158
mov eax, dword [esp + 0x98]
push eax
lea eax, [esp + 0x98]
push eax
mov eax, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0x98]
push eax
call sub.kernel32.dll_CallNamedPipeA
lea ecx, [esp + 0xfe]
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
call fcn.0042b180
add esp, 0x120
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x49f738
Capabilities:
Access the windows event log
Clear windows event logs
Set current directory

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffdcc
mov dword [esp], edx
push edi
push ecx
push edx
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [esp + 4]
push eax
push esi
push ebp
call sub.kernel32.dll_SetDefaultCommConfigA
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.user32.dll_UnhookWindowsHook
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, dword [esp + 0x14]
push eax
call sub.gdi32.dll_FlattenPath
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.user32.dll_GetDlgItem
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
call sub.advapi32.dll_IsTextUnicode
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push eax
call sub.advapi32.dll_RegUnLoadKeyA
mov eax, dword [esp + 0x34]
push eax
call sub.user32.dll_IsWindowUnicode
lea eax, [esp + 0xac]
push eax
mov eax, dword [esp + 0x3c]
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push eax
call sub.advapi32.dll_ClearEventLogA
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push eax
call sub.wininet.dll_HttpSendRequestExW
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push eax
call sub.kernel32.dll_SetThreadPriorityBoost
mov eax, dword [esp + 0x70]
push eax
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
push eax
call sub.gdi32.dll_PlayMetaFileRecord
mov eax, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push eax
call sub.gdi32.dll_EnumFontFamiliesA
mov eax, dword [esp + 0x84]
push eax
call sub.gdi32.dll_GetEnhMetaFileA
lea edx, [esp + 0x1ec]
mov eax, dword [esp + 0x88]
call fcn.0042b20c
mov eax, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0x98]
push eax
call sub.user32.dll_SetWindowsHookExA
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x228]
push eax
mov eax, dword [esp + 0xac]
push eax
lea eax, [esp + 0x220]
push eax
mov eax, dword [esp + 0xb0]
push eax
mov eax, dword [esp + 0xb0]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
add esp, 0x234
pop ebp
pop edi
pop esi
ret
Function at 0x49f8c8
Capabilities:
Shutdown system

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff38
push esp
push ebp
push edx
push eax
call sub.gdi32.dll_GetTextExtentPoint32A
push ebx
push esi
push edi
call sub.advapi32.dll_RegRestoreKeyA
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
call fcn.0042b140
mov eax, dword [esp + 0x10]
call fcn.0042b274
mov eax, dword [esp + 0x20]
push eax
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x28]
push eax
call sub.gdi32.dll_CreateDIBitmap
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push eax
call sub.gdi32.dll_ExtSelectClipRgn
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push eax
call sub.user32.dll_ExitWindowsEx
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
call fcn.0042b244
mov eax, dword [esp + 0x40]
call fcn.0042b254
lea eax, [esp + 0xa0]
push eax
call sub.comdlg32.dll_ReplaceTextA
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push eax
call sub.kernel32.dll_GetCompressedFileSizeA
add esp, 0xc8
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49f97c
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
push edx
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, ebx
call fcn.00407a0c
push esi
call sub.gdi32.dll_GetPixelFormat
mov eax, dword [esp]
push eax
push ebp
push edi
call sub.user32.dll_GetClipboardFormatNameA
mov eax, dword [esp + 4]
call fcn.004079ec
mov eax, dword [esp + 8]
call fcn.0042b1ac
mov eax, dword [esp + 0xc]
push eax
call sub.user32.dll_GetListBoxInfo
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.00406eb0
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x49f9dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff14
mov dword [esp], edx
push edi
push edx
push eax
call sub.gdi32.dll_GetTextFaceW
push esi
push ebp
call sub.advapi32.dll_GetSidSubAuthority
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x94]
push eax
push ebx
call sub.wininet.dll_RetrieveUrlCacheEntryStreamA
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
call fcn.0042b120
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push eax
call sub.user32.dll_SetClassLongA
mov eax, dword [esp + 0x28]
push eax
call sub.gdi32.dll_GetObjectType
mov eax, dword [esp + 0x2c]
call fcn.0042b19c
mov eax, dword [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
call sub.gdi32.dll_GetICMProfileW
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push eax
call sub.user32.dll_GetScrollPos
mov eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push eax
call sub.advapi32.dll_RegQueryValueExW
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push eax
call sub.kernel32.dll_GetConsoleMode
mov eax, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x70]
push eax
lea eax, [esp + 0xe4]
push eax
mov eax, dword [esp + 0x74]
push eax
call sub.user32.dll_DialogBoxIndirectParamW
mov eax, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x84]
push eax
call sub.wininet.dll_CreateUrlCacheEntryA
add esp, 0xec
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x49fafc
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff40
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
push ecx
push edi
lea ecx, [esp + 0xc]
push ecx
push ebp
push edx
push eax
call sub.advapi32.dll_LookupAccountSidA
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push ebx
push esi
call sub.gdi32.dll_GetTextExtentPointA
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_GetDriveTypeW
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
call fcn.0042b200
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push eax
call sub.gdi32.dll_GetTextExtentPointA
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
call fcn.0042b1bc
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push eax
call sub.user32.dll_GetMenuItemInfoW
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [esp + 0x9c]
call fcn.0049f57c
mov eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push eax
call sub.gdi32.dll_SelectClipPath
mov eax, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x68]
push eax
call fcn.0042cb6c
add esp, 0xc0
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49fbd4
Capabilities:
Get common file path
Read .ini file

Disassembly:
push esi
push edi
push ebp
add esp, 0xffffffdc
push ecx
push edx
push eax
call sub.kernel32.dll_GetPrivateProfileSectionNamesA
push esi
call sub.comctl32.dll_ImageList_DragLeave
push ebp
push edi
call sub.kernel32.dll_GetTempPathA
mov eax, dword [esp]
push eax
call sub.user32.dll_GetMenuContextHelpId
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.wininet.dll_HttpSendRequestA
mov eax, dword [esp + 0x18]
call fcn.0042b234
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push eax
call sub.kernel32.dll_GetCurrentDirectoryA
add esp, 0x24
pop ebp
pop edi
pop esi
ret

Function at 0x4a0164
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4a0189
cmp dword [esp + 4], 5
jb 0x4a0189
mov al, 1
jmp 0x4a018b
xor eax, eax
add esp, 0x94
ret
Function at 0x402684
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40271c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4026fc
xor eax, eax
push ebp
push 0x4026f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402738
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4026fc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x403570
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x40370c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403620
xor eax, eax
push ebp
push 0x403619
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403602
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40372c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403620
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x403701
cmp byte [ebp - 0xd], 0
jne 0x403662
cmp byte [ebp - 0x12], 0
je 0x403701
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40367b
dec ebx
cmp byte [ebx], 0x2e
je 0x40368a
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40367a
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x403701
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4036b7
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403701
cmp byte [ebp - 0xd], 0
je 0x403701
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403701
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404da4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x404dc5
mov al, byte [esp]
jmp 0x404dc7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4055fc
Capabilities:
Get file size

Disassembly:
pushal
xor ebx, ebx
mov esi, eax
xor eax, eax
mov dword [esi], 0xffffffff
mov edi, dword [esi + 0x14]
cmp edi, ebx
je 0x40562d
mov eax, edi
mov edx, dword [esi + 0x10]
call fcn.0040554c
cmp eax, 0xffffffff
je 0x40568a
mov dword [esi], eax
push ebx
push esp
push eax
call sub.kernel32.dll_GetFileSize_1
pop ecx
mov dword [esi + 8], eax
add eax, dword [esi + 0xc]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
push dword [esi + 0x18]
push eax
push ebx
push 4
test dword [esi + 0x10], 2
jne 0x40564d
mov dword [esp], 2
push ebx
push dword [esi]
call sub.kernel32.dll_CreateFileMappingA
test eax, eax
je 0x405683
mov dword [esi + 4], eax
push ebx
push ebx
push ebx
push 0xf001f
test dword [esi + 0x10], 2
jne 0x405674
mov dword [esp], 4
push eax
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x405683
mov dword [esi + 0x1c], eax
jmp 0x40568a
mov eax, esi
call fcn.004055c0
mov eax, ebx
cmp dword [esi + 0x1c], eax
setne al
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x4056e0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
call fcn.00406eac
xor ebx, ebx
test esi, esi
je 0x405742
mov eax, esi
call fcn.00403028
push eax
call sub.kernel32.dll_GetFileAttributesA
mov edi, eax
cmp edi, 0xffffffff
je 0x405742
test edi, 0x10
jne 0x405742
push 0x80
mov eax, esi
call fcn.00403028
mov ebp, eax
push ebp
call sub.kernel32.dll_SetFileAttributesA
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
je 0x405742
push ebp
call sub.kernel32.dll_DeleteFileA
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
jne 0x405742
push edi
push ebp
call sub.kernel32.dll_SetFileAttributesA
call fcn.00406ed0
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x405ff0
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov ebp, ecx
mov edi, edx
mov dword [esp], eax
call fcn.00406d0c
mov ebx, eax
test bl, bl
je 0x406054
push 0x4060cc
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
setne bl
test bl, bl
je 0x406054
push 0x4060dc
push esi
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
test ebx, ebx
je 0x406046
push ebp
push edi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0xc]
call fcn.00403028
push eax
call ebx
test eax, eax
jne 0x40604a
xor eax, eax
jmp 0x40604c
mov al, 1
mov ebx, eax
push esi
call sub.kernel32.dll_FreeLibrary_1
test bl, bl
jne 0x4060af
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
call fcn.00403028
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
je 0x4060af
mov eax, dword [esp + 4]
imul dword [esp + 8]
mov edx, eax
imul edx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fistp qword [edi]
wait
imul dword [esp + 0xc]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fistp qword [ebp]
wait
test bl, bl
jne 0x4060c2
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov eax, ebx
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x406850
Capabilities:
Parse pe header

Disassembly:
pushal
mov esi, eax
mov edi, edx
mov eax, edx
call fcn.004067bc
mov dword [edi], esi
test esi, esi
je 0x4068c9
cmp word [esi], 0x5a4d
jne 0x4068d0
mov ebx, esi
add ebx, dword [esi + 0x3c]
push 4
push ebx
call sub.kernel32.dll_IsBadReadPtr
test al, al
jne 0x4068d7
cmp dword [ebx], 0x4550
je 0x40689e
cmp word [ebx], 0x454e
jne 0x4068d7
mov dword [edi + 4], 1
mov dword [edi + 8], ebx
movzx eax, word [ebx + 0x24]
add eax, ebx
mov dword [edi + 0xc], eax
jmp 0x4068c5
mov dword [edi + 8], ebx
mov eax, ebx
add eax, 0xf8
mov dword [edi + 0xc], eax
lea eax, [ebx + 4]
mov dword [edi + 0x14], eax
lea eax, [ebx + 0x18]
mov dword [edi + 0x18], eax
movzx eax, word [ebx + 6]
mov dword [edi + 0x10], eax
mov eax, edi
call fcn.00406830
xor eax, eax
jmp 0x4068dc
mov eax, 1
jmp 0x4068dc
mov eax, 2
jmp 0x4068dc
mov eax, 4
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x406d70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406deb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
mov ecx, 0x44
xor edx, edx
call fcn.00404600
mov dword [ebp - 0x44], 0x44
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [ebp - 0x48]
mov edx, esi
mov eax, ebx
call fcn.00405f74
mov eax, dword [ebp - 0x48]
call fcn.004043fc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406df2
lea eax, [ebp - 0x48]
call fcn.00402df4
ret
Function at 0x40753c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x407582
cmp edx, 0x10
jl 0x40756e
shr ecx, 4
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x40755b
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x407582
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x40757a
and edx, 3
cmp edx, 3
jne 0x407596
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x40759b
cmp edx, 2
jne 0x4075a7
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x4075ac
cmp edx, 1
jne 0x4075b2
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x40b030
Capabilities:
Create directory
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x14], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40b10a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.0040afdc
lea ecx, [ebp - 0x14]
mov edx, pe_nt_image_headers32
mov eax, esi
call fcn.004059e4
mov edx, dword [ebp - 0x14]
mov eax, 0x40ddb4
call fcn.00402e48
mov eax, dword [0x40ddb4]
call fcn.00403028
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x40b0f4
lea ecx, [ebp - 0x10]
lea edx, [ebp - 8]
mov eax, dword [0x40ddb4]
call fcn.00405ff0
fild dword [0x40ddb8]
fild qword [ebp - 0x10]
fcompp
fnstsw ax
sahf
jbe 0x40b0f4
lea ecx, [ebp - 0x14]
mov edx, 0x40b124
mov eax, esi
call fcn.0040b000
mov edx, dword [ebp - 0x14]
mov eax, 0x40dda8
call fcn.00402e48
push 0
mov eax, dword [0x40dda8]
call fcn.00403028
push eax
call sub.kernel32.dll_CreateDirectoryA
lea ecx, [ebp - 0x14]
mov edx, 0x40b138
mov eax, dword [0x40dda8]
call fcn.0040b000
mov edx, dword [ebp - 0x14]
mov eax, 0x40ddac
call fcn.00402e48
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b111
lea eax, [ebp - 0x14]
call fcn.00402df4
ret