joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402250
Capabilities:
Check mutex on windows
Create process on windows
Read .ini file

Disassembly:
sub esp, 0x1c
push ebp
push esi
push str.AmcapExeG
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [0x43da90], eax
jne 0x402275
pop esi
pop ebp
add esp, 0x1c
ret 0x10
call fcn.00419f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xb7
jne 0x4022e8
push esi
call fcn.004016a0
add esp, 4
push 0x43eb20
push 1
push str.Mutex
push str.annie
call ebp
test eax, eax
je 0x4022e8
push 0x43eb20
push 0
push str.MutaxWarn
push str.annie
call ebp
test eax, eax
je 0x4022d2
push 0x21
call fcn.00402240
add esp, 4
mov eax, dword [0x43da90]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 0x10
push str.Amcap.Log
call fcn.0040c5b0
call fcn.0040c4c0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push ecx
push edx
push esi
mov dword [0x43f520], eax
call fcn.004017f0
add esp, 0x10
test eax, eax
jne 0x402322
call fcn.0040c5c0
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 0x10
mov eax, dword [0x43f500]
push ebx
push edi
push esi
push eax
call fcn.00419750
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
add esp, 8
push 1
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
test eax, eax
je 0x4023ab
cmp dword [esp + 0x14], 0x12
je 0x40239e
mov eax, dword [0x43f4c0]
mov ecx, dword [0x43f500]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x402389
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call ebx
push 1
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
test eax, eax
jne 0x402358
jmp 0x4023ab
push str.Got_messsage_WM_QUIT__ap_will_exit_PeekMessage_n
call fcn.0040c540
add esp, 4
cmp dword [esp + 0x14], 0x12
je 0x4023ba
call dword [sym.imp.USER32.dll_WaitMessage]
jmp 0x402345
push str.Got_messsage_WM_QUIT__ap_will_exit_message_loop_n
call fcn.0040c540
push str.AP_is_going_to_close_n
call fcn.0040c540
add esp, 8
push 0x43ef20
push 0x438754
push str.RePreview
push str.Hot_Key
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x43eb20
push 0
push str.LunachGenePccMonIL
push str.coexecutor
call ebp
pop edi
pop ebx
test eax, eax
je 0x402411
push 0
push str.taskkill__F__IM_GenePccMonIL.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
call fcn.0040c5c0
call fcn.004197f0
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x43da90]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
mov eax, dword [esp + 8]
add esp, 0x1c
ret 0x10
Function at 0x4025d0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x43f504]
sub esp, 0x10
push edi
push str.Ready_to_Capture_...
push eax
call fcn.00415660
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 8
push 0x43eb20
push 0
push str.CaptureYUV
push str.annie
call edi
test eax, eax
je 0x402609
call fcn.004024e0
mov edx, dword [0x43f500]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
push str.hourglas.ani
call dword [sym.imp.USER32.dll_LoadCursorFromFileA]
test eax, eax
jne 0x402636
push 0x7f8a
push eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
add eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 4]
sar eax, 1
push eax
mov eax, dword [esp + 0x10]
add eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
call dword [sym.imp.USER32.dll_SetCursorPos]
mov eax, dword [0x43e7f0]
test eax, eax
je 0x402752
mov eax, dword [0x43e7ec]
test eax, eax
je 0x402752
mov eax, dword [0x43f53c]
push esi
mov esi, dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
je 0x4026d3
mov eax, dword [0x43e5fc]
test eax, eax
je 0x40269b
call fcn.00407e60
mov eax, dword [0x43e5f0]
test eax, eax
je 0x4026a9
call fcn.00404e10
call fcn.00406330
test eax, eax
je 0x4026b9
call fcn.00408230
jmp 0x40270c
mov eax, dword [0x43e678]
test eax, eax
je 0x40270c
call fcn.004075d0
push 0
call fcn.00407d70
add esp, 4
jmp 0x40270c
push 0x43eb20
push 0
push str.CaptureYUV
push str.annie
call edi
test eax, eax
push 0
je 0x4026fc
mov ecx, dword [0x43f500]
push 0x7d0
push 5
push ecx
jmp 0x40270a
mov edx, dword [0x43f500]
push 0xc8
push 5
push edx
call esi
push 3
push 0x43e4a0
push 0x43f324
call fcn.0041d0b0
add esp, 0xc
push 0x43eb20
push 0x14
push str.FreeSpace
push str.annie
call edi
shl eax, 0x14
mov dword [0x43f328], eax
mov eax, dword [0x43f500]
push 0
push 0x3e8
push 7
push eax
call esi
pop esi
pop edi
add esp, 0x10
ret
push 9
call fcn.004021b0
add esp, 4
pop edi
add esp, 0x10
ret
Function at 0x402880
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xa00
test eax, eax
push esi
mov esi, dword [esp + 0xa08]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
je 0x402904
lea eax, [esp + 8]
push esi
push eax
call edi
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
test eax, eax
je 0x4028bd
inc eax
push 0x438858
push eax
call edi
lea edx, [esp + 0x608]
push 0x200
push edx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 8]
lea ecx, [esp + 0x608]
push eax
push ecx
push str.image_jpeg
call fcn.004190c0
add esp, 0xc
test eax, eax
jne 0x402904
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 8]
push edx
push esi
call edi
mov eax, dword [esp + 0xa14]
test eax, eax
je 0x402955
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push esi
call ebx
push eax
lea eax, [esp + 0x410]
push eax
call edi
lea ecx, [esp + 0x20c]
push esi
push ecx
call edi
lea edx, [esp + 0x20c]
push edx
call ebx
mov byte [eax], 0
lea eax, [esp + 0x40c]
lea ecx, [esp + 0x20c]
push eax
push ecx
call fcn.00418b90
add esp, 8
pop ebx
pop edi
pop esi
add esp, 0xa00
ret
Function at 0x402960
Capabilities:
Create process on windows
Read .ini file

Disassembly:
mov eax, dword [0x43f344]
sub esp, 0x400
test eax, eax
je 0x402b6e
cmp eax, 4
jne 0x402abb
mov ecx, 0x43e868
call fcn.00410710
lea eax, [esp + 0x200]
mov ecx, 0x43e868
push eax
call fcn.00410740
lea ecx, [esp]
push ecx
mov ecx, 0x43e868
call fcn.00410770
push 0x43eb20
push 1
push str.ShowPicture
push str.annie
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x402a51
mov edx, dword [0x43e780]
mov eax, dword [0x43e784]
push edx
lea ecx, [esp + 4]
push eax
push ecx
call fcn.00402880
mov eax, dword [0x4405b8]
add esp, 0xc
test eax, eax
je 0x402a0b
mov ecx, dword [0x43e780]
test ecx, ecx
je 0x402a0b
lea edx, [esp]
push edx
push 0x3e8
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x402a26
push 1
push 0
lea eax, [esp + 0x208]
push 0
push eax
push 0x43885c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [0x43f520]
test eax, eax
je 0x402a38
mov eax, dword [0x43e780]
test eax, eax
jne 0x402a9f
mov ecx, dword [0x43f500]
push 0
push 0x19
push 3
mov dword [0x43eb14], 0x14
push ecx
jmp 0x402a99
mov edx, dword [0x43e784]
push 0
lea eax, [esp + 4]
push edx
push eax
call fcn.00402880
add esp, 0xc
lea ecx, [esp + 0x200]
push 1
push 0
push 0
push ecx
push 0x43885c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, dword [0x43f500]
push 0
push 0x19
push 3
mov dword [0x43eb14], 0x14
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [0x43e5f8]
test eax, eax
je 0x402b43
mov dword [0x43e5f8], 0
jmp 0x402b43
cmp eax, 2
jne 0x402ac7
call fcn.004061b0
jmp 0x402b43
mov eax, dword [0x43e5f8]
test eax, eax
je 0x402afc
push 0x43eb20
push 1
push str.ShowPicture
push str.annie
mov dword [0x43e5f8], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x402b3e
call fcn.0040c240
jmp 0x402b43
cmp dword [0x43f54c], 2
jne 0x402b1c
push 0x49
mov ecx, 0x43fedc
call fcn.00410ab0
test eax, eax
je 0x402b1c
call fcn.004025d0
jmp 0x402b43
push 0x43eb20
push 1
push str.ShowPicture
push str.annie
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x402b3e
call fcn.0040c240
jmp 0x402b43
call fcn.0040c300
mov eax, dword [0x43f368]
test eax, eax
je 0x402b6e
mov eax, dword [0x43e418]
push 0
push 0x19a
push eax
push 0xffff
mov dword [0x43f368], 0
call dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x400
ret

Function at 0x402b80
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
mov dword [0x43e5f8], 1
mov dword [0x43f36c], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x402baf
mov ecx, dword [0x43f4bc]
push 0x40007
push ecx
push 1
call dword [sym.imp.WINMM.dll_PlaySoundA]
mov eax, dword [0x43f344]
cmp eax, 4
jne 0x402bc3
mov ecx, 0x43e868
jmp fcn.004106f0
cmp eax, 2
jne 0x402bd3
mov dword [0x43e848], 1
ret
cmp eax, 3
jne 0x402bfc
mov edx, dword [0x43e418]
push 0
push 0xc8
push edx
push 0xffff
mov dword [0x43e5f8], 0
call dword [sym.imp.USER32.dll_SendMessageA]
ret
mov ecx, 0x43e0d0
jmp fcn.00416ca0
Function at 0x402d10
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
je 0x402d24
cmp eax, 4
jne 0x402d31
push str.PBT_APMSUSPEND_n
jmp 0x402d29
push str.PBT_APMQUERYSUSPEND_n
call fcn.0040c540
add esp, 4
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00404670
push 0
call fcn.0040c5f0
add esp, 8
push 0x43eb20
push 0
push str.Close_AP_BeforeSleep
push 0x4388a4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x402d75
push str.DestroyWindow_because_Close_AP_BeforeSleep_is_1_n
call fcn.0040c540
add esp, 4
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
pop esi
ret

Function at 0x4045e0
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
mov eax, dword [0x43f54c]
sub esp, 0x104
cmp eax, 2
je 0x404656
test eax, eax
je 0x404656
push esi
mov esi, dword [esp + 0x10c]
push 1
lea eax, [esp + 8]
push 0x26
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 4]
push str.Movie_Makermoviemk.exe
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 5
push 0
lea edx, [esp + 0xc]
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [0x43e7e8]
pop esi
push 1
push eax
call fcn.00402c10
add esp, 0x10c
ret
call fcn.004025d0
mov eax, dword [0x43e7e8]
push 1
push eax
call fcn.00402c10
add esp, 0x10c
ret

Function at 0x404670
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x43f500]
sub esp, 0x104
push 2
push eax
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.004082a0
mov eax, dword [0x43f53c]
test eax, eax
jne 0x4046ae
call fcn.00407e60
mov eax, dword [0x43e5ec]
test eax, eax
jne 0x4046a9
mov eax, dword [0x43e5f0]
test eax, eax
je 0x4046ae
call fcn.00404e10
mov eax, dword [0x43e678]
test eax, eax
je 0x4046c6
call fcn.004075d0
push 0
call fcn.00407d70
add esp, 4
mov eax, dword [0x43e7f0]
test eax, eax
je 0x40472c
mov eax, dword [0x43e7ec]
test eax, eax
je 0x40472c
push esi
push edi
mov edi, 0x43e4a0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call fcn.0041cfa0
add esp, 8
lea edx, [esp + 8]
mov byte [eax], 0
push 1
push 0
push 0
push edx
push 0x43885c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov eax, dword [0x43e418]
push 0
push 0x12d
push eax
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x43e7e8]
push 0
push ecx
call fcn.00402c10
mov edx, dword [0x43f504]
push 0
push edx
call fcn.00415660
add esp, 0x114
ret
Function at 0x4060f0
Capabilities:
Create directory
Get common file path
Read .ini file

Disassembly:
push ecx
push 0x43eb20
push 0
push str.PictureAtDesktop
push str.annie
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x406197
push ebx
push esi
lea eax, [esp + 8]
push edi
push eax
xor esi, esi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test eax, eax
jl 0x406169
lea ecx, [esp + 0x18]
push ecx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40615b
mov edx, dword [esp + 0x18]
push edi
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
jne 0x40617b
push 1
push 0
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, eax
test esi, esi
je 0x406190
push str.Picture
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 1
push 0x27
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
pop ecx
ret

Function at 0x4061b0
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [0x43f500]
sub esp, 0x310
lea eax, [esp + 0x108]
push esi
push edi
push eax
push ecx
call fcn.004060f0
lea edx, [esp + 0x10]
push edx
call fcn.0041d419
lea eax, [esp + 0x14]
push eax
call fcn.0041d2b9
push eax
call fcn.0041d1c7
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x3a
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call fcn.0041cfa0
add esp, 0x1c
test eax, eax
pop edi
pop esi
je 0x406240
lea edx, [esp + 4]
push 0x3a
push edx
call fcn.0041cfa0
mov byte [eax], 0x2d
lea eax, [esp + 0xc]
push 0x3a
push eax
call fcn.0041cfa0
add esp, 0x10
test eax, eax
jne 0x40621e
lea ecx, [esp + 4]
lea edx, [esp + 0x108]
push ecx
push edx
lea eax, [esp + 0x214]
push str._s_.19s.bmp
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x20c]
push ecx
mov ecx, 0x43e800
call fcn.0040fdc0
push 1
push 0
lea edx, [esp + 0x110]
push 0
push edx
push 0x43885c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esp, 0x310
ret
Function at 0x4062a0
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [0x43f500]
sub esp, 0x114
lea eax, [esp + 0x10]
push 1
push 0xe
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xa]
mov edx, dword [esp + 8]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0xa]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0xa]
push edx
mov edx, dword [esp + 0xc]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
lea eax, [esp + 0x24]
push edx
push eax
push str._sVideo__d__02d_02d__02d_02d_02d.wmv
push 0x43e4a0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x138
ret

Function at 0x408170
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc4
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push 0x43e4a0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408223
lea eax, [esp + 8]
push ebx
push eax
lea ecx, [esp + 0x14]
push 0xc0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0xc8], 0x7d
jne 0x40821c
cmp byte [esp + 0xc9], 0xeb
jne 0x40821c
cmp byte [esp + 0xca], 0x36
jne 0x40821c
cmp byte [esp + 0xcb], 0xe4
jne 0x40821c
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 8]
push ebx
push edx
lea eax, [esp + 0x14]
push 0xc0
push eax
push esi
mov byte [esp + 0xdf], bl
mov byte [esp + 0xde], bl
mov byte [esp + 0xdd], bl
mov byte [esp + 0xdc], bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
add esp, 0xc4
ret

Function at 0x408230
Capabilities:
Read .ini file

Disassembly:
mov dword [0x43f364], 0
call fcn.00407f20
test eax, eax
je 0x40829c
mov eax, dword [0x43f504]
push str.Ready_to_Capture_...
push eax
call fcn.00415660
add esp, 8
mov dword [0x43e5f4], 1
push 0
push 0x43eb20
push 0x1f4
push str.WaitCaptureTime
push str.annie
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [0x43f500]
push eax
push 2
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x43f364], 1
mov eax, 1
ret
xor eax, eax
ret
Function at 0x40b8e0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x130
mov edx, dword [esp + 0x134]
lea eax, [esp]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0x104
push edx
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov al, byte [esp + 0x2c]
mov dl, 0x5c
cmp al, dl
jne 0x40b942
cmp byte [esp + 0x2d], dl
jne 0x40b942
mov cl, byte [esp + 0x2e]
lea eax, [esp + 0x2e]
test cl, cl
mov dword [esp], eax
je 0x40b93a
cmp cl, dl
je 0x40b93a
inc eax
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
jne 0x40b92b
cmp byte [eax], 0
je 0x40b94a
inc eax
jmp 0x40b946
lea eax, [esp + 0x2c]
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
je 0x40b95f
cmp cl, dl
je 0x40b95f
inc eax
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
jne 0x40b950
cmp byte [eax], 0
je 0x40b96c
inc eax
mov dword [esp], eax
mov byte [eax], 0
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40b9d9
push str.GetDiskFreeSpaceExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x40b9d9
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call edi
test eax, eax
jne 0x40b9be
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x130
ret
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, 0xa
call fcn.0041d890
pop edi
pop esi
add esp, 0x130
ret
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x40ba08
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x130
ret
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
imul ecx, dword [esp + 0x10]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
pop edi
pop esi
add esp, 0x130
ret

Function at 0x40bd80
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40bdab
xor eax, eax
xor edx, edx
pop ebx
ret
push ebp
push esi
lea ecx, [esp + 0x10]
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x14]
push 1
push 0
push 0
push edx
mov ebp, eax
call fcn.0041d680
mov esi, eax
xor eax, eax
mov edi, edx
add esi, ebp
push ebx
adc edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40bde5
xor esi, esi
xor edi, edi
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40c300
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x43e784]
sub esp, 0x400
lea ecx, [esp + 0x200]
push 0
push eax
push ecx
mov ecx, 0x43e0d0
call fcn.00417160
lea edx, [esp]
mov ecx, 0x43e0d0
push edx
call fcn.004172a0
push 1
push 0
lea eax, [esp + 8]
push 0
push eax
push 0x43885c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [0x43f500]
push 0
push 0x19
push 3
push ecx
mov dword [0x43eb14], 0x14
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
add esp, 0x400
ret

Function at 0x40c4c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x40c501
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
je 0x40c534
mov eax, dword [esp + 0x18]
sub eax, 2
jne 0x40c534
cmp dword [esp + 0xc], 6
jne 0x40c534
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40c534
push str.Microsoft_Windows_Vista_or_Windows_Server:Longhorn_n
call fcn.0040c540
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x9c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret

Function at 0x40c540
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
mov dword [esp + 0x10], 0
call ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x438438]
cmp eax, 0xffffffff
je 0x40c5a7
lea ecx, [esp + 0xc]
push 0
push ecx
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call esi
cmp eax, 1
jne 0x40c5a7
push 0x4392c4
mov dword [esp + 0x10], 0
call ebx
lea edx, [esp + 0xc]
push 0
push edx
push eax
mov eax, dword [0x438438]
push 0x4392c4
push eax
call esi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40f550
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push eax
push 3
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f592
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
ret