joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1ae4
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 0x4a1d44
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4a1b47
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004a15ac
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040c7b4
cmp al, 1
jne 0x4a1b47
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004a18c4
test al, al
je 0x4a1cd3
cmp dword [ebp - 8], 0
jge 0x4a1b65
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.004a15ac
mov eax, dword [ebp - 0x210]
call fcn.00404734
cmp ebx, eax
jge 0x4a1baf
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004a15ac
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4ccfd0]
and eax, 0xff
bt dword [edx], eax
jae 0x4a1baf
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4a1bc3
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004a1ac0
cmp ebx, dword [ebp - 8]
je 0x4a1cc5
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 0x4a1bef
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040390c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4cca70]
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 0x4a1cb2
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040390c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4cca70]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00447478
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040390c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4cca70]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00447478
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1cb9
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 0x4a1d26
cmp dword [ebp - 8], 0
jge 0x4a1cde
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004a15ac
mov eax, dword [ebp - 0x218]
call fcn.00404734
cmp eax, dword [ebp - 8]
jg 0x4a1d18
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004a15ac
mov eax, dword [ebp - 0x21c]
call fcn.00404734
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004a1ac0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1d4b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004044a0
ret
Function at 0x4ac584
Capabilities:
Swap mouse buttons

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff34
mov dword [esp], edx
push edi
push edx
push eax
call sub.kernel32.dll_EnumTimeFormatsW
lea eax, [esp + 4]
push eax
push esi
lea eax, [esp + 0x9c]
push eax
push ebp
call sub.kernel32.dll_ReadConsoleInputA
mov eax, ebx
call fcn.0042b188
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xc4]
push eax
mov eax, dword [esp + 0x2c]
push eax
lea eax, [esp + 0xbc]
push eax
mov eax, dword [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
mov eax, dword [esp + 0x30]
push eax
call sub.advapi32.dll_AccessCheckByTypeResultList
mov eax, dword [esp + 0x2c]
push eax
call sub.user32.dll_SwapMouseButton
mov eax, dword [esp + 0x30]
push eax
call sub.gdi32.dll_GetPixelFormat
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x58]
push eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
call fcn.00478a44
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push eax
call sub.wininet.dll_HttpQueryInfoW
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
call fcn.0042ae54
mov eax, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
push eax
call sub.kernel32.dll_FlushViewOfFile
mov eax, dword [esp + 0x7c]
push eax
lea eax, [esp + 0x7c]
push eax
call sub.kernel32.dll_InterlockedExchangeAdd
mov eax, dword [esp + 0x80]
call fcn.0042adc0
mov eax, dword [esp + 0x90]
push eax
mov eax, dword [esp + 0x90]
push eax
mov eax, dword [esp + 0x90]
push eax
mov eax, dword [esp + 0x90]
push eax
call sub.wininet.dll_InternetSetOptionA
add esp, 0xcc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4ac6b8
Capabilities:
Create mailslot
Manipulate console buffer

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff2c
lea edx, [esp + 0x5c]
call fcn.0042ad90
mov eax, ebx
call fcn.0042b178
lea eax, [esp + 4]
push eax
push dword [esp + 4]
push ebp
push edi
push esi
call sub.kernel32.dll_WriteConsoleOutputCharacterA
mov eax, dword [esp + 8]
call fcn.00435f20
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.user32.dll_EndDialog
lea edx, [esp + 0x84]
mov eax, dword [esp + 0x14]
call fcn.0042b160
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_BeginUpdateResourceA
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push eax
call sub.kernel32.dll_CreateMailslotA
lea edx, [esp + 0xcc]
mov eax, dword [esp + 0x30]
call fcn.004075c4
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push eax
lea eax, [esp + 0xc4]
push eax
mov eax, dword [esp + 0x50]
push eax
call sub.mpr.dll_WNetUseConnectionA
mov eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push eax
call sub.user32.dll_EnumDesktopWindows
add esp, 0xd4
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4ac794
Capabilities:
Create mailslot

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff38
push edi
push edx
push eax
call sub.kernel32.dll_EnumDateFormatsA
lea eax, [esp + 0x74]
push eax
call sub.comctl32.dll_PropertySheetA
push ebp
call sub.gdi32.dll_AddFontResourceA
mov ecx, dword [esp]
mov edx, ebx
mov eax, esi
call fcn.0042acd8
lea eax, [esp + 0xa8]
push eax
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_GetCPInfo
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.kernel32.dll_CreateMailslotA
mov eax, dword [esp + 0x18]
call fcn.0042afa4
mov eax, dword [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
call sub.wininet.dll_InternetCanonicalizeUrlA
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push eax
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push eax
call sub.advapi32.dll_LookupAccountSidA
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
call fcn.0042b194
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push eax
lea eax, [esp + 0xc4]
push eax
mov eax, dword [esp + 0x5c]
push eax
call sub.advapi32.dll_QueryServiceLockStatusA
mov eax, dword [esp + 0x5c]
call fcn.00435f2c
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push eax
call sub.gdi32.dll_GetTextExtentPoint32A
add esp, 0xc8
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4ac8e0
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc30
lea edx, [esp + 0x58]
push edx
push eax
call sub.kernel32.dll_FindNextFileA
push edi
push ebp
push ebx
call sub.kernel32.dll_FindFirstChangeNotificationA
mov eax, dword [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push esi
call sub.user32.dll_OpenWindowStationA
lea eax, [esp + 0x198]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.gdi32.dll_GetTextMetricsA
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
call fcn.0042acc8
mov eax, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_ClearCommError
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push eax
call sub.user32.dll_ReleaseDC
lea eax, [esp + 0x1d0]
push eax
call sub.user32.dll_RegisterClassW
lea eax, [esp + 0x23c]
push eax
lea eax, [esp + 0x1fc]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
call sub.advapi32.dll_CreateProcessAsUserA
lea eax, [esp + 0x24c]
push eax
call sub.gdi32.dll_CreateColorSpaceA
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push eax
call sub.gdi32.dll_GetObjectW
lea eax, [esp + 0x394]
push eax
call sub.gdi32.dll_CreateFontIndirectA
add esp, 0x3d0
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00416cc0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4010d9
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x4010a5
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40107e
cmp word [esp + 0x118], 4
jb 0x4010d9
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004148db
add esp, 0x120
ret
cmp eax, 2
jae 0x401088
cmp eax, 1
jne 0x4010d9
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004148db
add esp, 0x120
ret
cmp eax, 6
jne 0x4010d9
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4010cf
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004148db
add esp, 0x120
ret
cmp eax, 1
jne 0x4010d9
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004148db
add esp, 0x120
ret
Function at 0x401cc0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00416cc0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x401d8f
mov eax, 0x42c894
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401d05
sub eax, edx
sar eax, 1
je 0x401d8f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42c894
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.004148ea
push 0x42c8b0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00414e3b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401d8f
push eax
push 1
push 0x200
push esi
call fcn.0041512e
mov eax, dword [esp + 0x14]
push eax
call fcn.004151c2
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004148db
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004148db
add esp, 0x214
ret

Function at 0x401db0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00416cc0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x401eb5
mov eax, 0x42c7e0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401df5
sub eax, edx
sar eax, 1
je 0x401eb5
cmp dword [0x433fbc], 3
jne 0x401e3c
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42c8b8
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.004148ea
add esp, 0xc
jmp 0x401e4c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42c7e0
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.004148ea
push 0x42c8b0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00414e3b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401eb5
push eax
push 1
push 0x200
push esi
call fcn.0041512e
mov edx, dword [esp + 0x14]
push edx
call fcn.004151c2
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004148db
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004148db
add esp, 0x214
ret
Function at 0x401ed0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00416cc0
add esp, 0xc
cmp dword [0x433fbc], 3
jne 0x401f30
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42c8b8
lea eax, [esp + 4]
push 0x104
push eax
call fcn.004148ea
add esp, 0xc
jmp 0x401f3f
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x42c8bc
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.004148db
add esp, 0x20c
ret

Function at 0x402120
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00416cc0
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.00402370
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00402480
cmp eax, 0xffffffff
jne 0x4021a2
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004148db
add esp, 0x218
ret
push esi
call fcn.00402050
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.004148db
add esp, 0x218
ret
Function at 0x4021d0
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
je 0x4022ee
push 0xb69
call fcn.0040a4ac
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xb69
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4022e1
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
test eax, eax
jl 0x402249
jg 0x40223d
test ecx, ecx
jbe 0x402249
mov ebx, dword [esi + 0x38]
mov ebp, dword [esi + 0x3c]
mov edx, ecx
mov edi, eax
jmp 0x40224d
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xbd]
cmp eax, edi
mov ecx, dword [esi + 0xb9]
jl 0x402277
jg 0x402263
cmp ecx, edx
jbe 0x402277
mov ebx, dword [esi + 0xc1]
mov ebp, dword [esi + 0xc5]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x146]
cmp eax, edi
mov ecx, dword [esi + 0x142]
jl 0x4022a1
jg 0x40228d
cmp ecx, edx
jbe 0x4022a1
mov ebx, dword [esi + 0x14a]
mov ebp, dword [esi + 0x14e]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1cf]
cmp eax, edi
mov ecx, dword [esi + 0x1cb]
jl 0x4022cb
jg 0x4022b7
cmp ecx, edx
jbe 0x4022cb
mov ebx, dword [esi + 0x1d3]
mov ebp, dword [esi + 0x1d7]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.00418ad0
mov dword [esp + 0x10], eax
test esi, esi
je 0x4022ee
push esi
call fcn.0040a4a1
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x402310
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
cmp esi, 0xffffffff
je 0x402361
mov eax, dword [esp + 0x1c]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
ret
Function at 0x4025c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.004149e8
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x42e4b0]
fadd qword [0x42e4c8]
call fcn.004189e0
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x4026e0
call fcn.004149e8
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x42e4b0]
fmul qword [0x42e4c0]
fadd qword [0x42e4b8]
call fcn.004189e0
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x4026c8
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x4026b9
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x4026b0
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x402677
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

Function at 0x402780
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.00416cc0
add esp, 0xc
cmp edi, esi
je 0x402868
mov eax, 0x42c790
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4027c5
sub eax, edx
sar eax, 1
je 0x4027ef
push 0x42c924
lea edx, [esp + 8]
push 0x42c790
push edx
call fcn.00414e3b
add esp, 0xc
jmp 0x40282a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42c894
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.004148ea
push 0x42c924
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00414e3b
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x40284d
push eax
push 1
push 0x200
push edi
call fcn.00415401
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004151c2
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004148db
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004148db
add esp, 0x214
ret
Function at 0x402880
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x42c8b0
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00414e3b
add esp, 0xc
test eax, eax
je 0x4028a4
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.0041550d
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041572f
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.0041550d
lea ebp, [esi + 0x32]
push ebp
call fcn.004157ec
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.0041512e
mov eax, dword [esp + 0x40]
push eax
call fcn.004151c2
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.00402950
mov ecx, dword [esp + 0x4c]
push 0x42c924
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00414e3b
add esp, 0x40
test eax, eax
je 0x402922
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.00415401
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004151c2
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4029a0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x314
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x310], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x42c92c
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.00416114
add esp, 0xc
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
call fcn.004158b6
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.00415920
add esp, 0x14
test eax, eax
je 0x402a2b
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b27
mov eax, 0x434048
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402a60
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402a77
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402a90
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.0040a4ac
push edi
mov esi, eax
push 0
push esi
call fcn.00416cc0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push 0x434048
push edi
push esi
call fcn.0041594d
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402ae0
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x42c938
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x402b25
push esi
call fcn.0040a4a1
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.004148db
add esp, 0x314
ret