joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401aed
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40820c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
lea edi, [esi + 8]
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0xc]
mov dword [esp + 0x230], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x128]
mov byte [esp + 0x230], 1
push eax
push 0xff
mov dword [esi], 0x40973c
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1a]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x18]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push edx
mov edx, dword [esp + 0x26]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x44]
push str._02d_02d_04d__02d_02d_02d_03d.BMP
push eax
call ebp
add esp, 0x24
lea ecx, [esp + 0x128]
push ecx
mov ecx, edi
call fcn.004078ee
lea edx, [esp + 0x28]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x1e]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1a]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x18]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1e]
push eax
mov eax, dword [esp + 0x26]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push str._02d_02d_04d__02d_02d_02d_03d.JPG
lea ecx, [esp + 0x48]
push ecx
call ebp
add esp, 0x24
lea edx, [esp + 0x128]
mov ecx, ebx
push edx
call fcn.004078ee
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x1f2c
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x22c]
add esp, 4
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret

Function at 0x401c80
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40822b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x40973c
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [esi + 8]
push eax
mov dword [esp + 0x1c], 0
call ebx
mov eax, dword [esi + 0xc]
add esi, 0xc
push eax
call ebx
mov ecx, esi
call sub.MFC42.DLL_CString::CString
mov ecx, edi
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402690
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov edx, dword [0x409591]
push ebx
mov eax, dword [0x409589]
push esi
mov esi, ecx
push edi
mov ecx, dword [0x40958d]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
mov dword [esp + 0x19], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1d], edx
push ecx
mov dword [esp + 0x19], eax
mov eax, dword [0x409595]
push 1
lea edx, [esp + 0x18]
push 0x15
push edx
mov word [esp + 0x20], 0xc4ff
mov word [esp + 0x22], 0x1f00
mov byte [esp + 0x24], 0
mov dword [esp + 0x31], eax
call edi
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 4]
mov al, byte [ebx + 0x40959c]
push ecx
push 1
lea edx, [esp + 0x17]
push 1
push edx
mov byte [esp + 0x1f], al
call edi
add esp, 0x10
inc ebx
cmp ebx, 0xb
jbe 0x4026eb
mov ecx, dword [0x4095ad]
mov edx, dword [0x4095b1]
mov eax, dword [0x4095a9]
mov dword [esp + 0x19], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1d], edx
push ecx
mov dword [esp + 0x19], eax
mov eax, dword [0x4095b5]
push 1
lea edx, [esp + 0x18]
push 0x15
push edx
mov byte [esp + 0x24], 1
mov dword [esp + 0x31], eax
call edi
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 4]
mov al, byte [ebx + 0x4095bc]
push ecx
push 1
lea edx, [esp + 0x17]
push 1
push edx
mov byte [esp + 0x1f], al
call edi
add esp, 0x10
inc ebx
cmp ebx, 0xb
jbe 0x40274c
mov ecx, dword [0x4095cd]
mov edx, dword [0x4095d1]
mov eax, dword [0x4095c9]
mov dword [esp + 0x19], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1d], edx
push ecx
mov dword [esp + 0x19], eax
mov eax, dword [0x4095d5]
push 1
lea edx, [esp + 0x18]
push 0x15
push edx
mov word [esp + 0x22], 0xb500
mov byte [esp + 0x24], 0x10
mov dword [esp + 0x31], eax
call edi
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 4]
mov al, byte [ebx + 0x4095dc]
push ecx
push 1
lea edx, [esp + 0x17]
push 1
push edx
mov byte [esp + 0x1f], al
call edi
add esp, 0x10
inc ebx
cmp ebx, 0xa1
jbe 0x4027b4
mov ecx, dword [0x409685]
mov edx, dword [0x409689]
mov eax, dword [0x409681]
mov dword [esp + 0x19], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1d], edx
push ecx
mov dword [esp + 0x19], eax
mov eax, dword [0x40968d]
push 1
lea edx, [esp + 0x18]
push 0x15
push edx
mov byte [esp + 0x24], 0x11
mov dword [esp + 0x31], eax
call edi
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 4]
mov al, byte [ebx + 0x409694]
push ecx
push 1
lea edx, [esp + 0x17]
push 1
push edx
mov byte [esp + 0x1f], al
call edi
add esp, 0x10
inc ebx
cmp ebx, 0xa1
jbe 0x402818
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x402850
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
xor al, al
mov dl, 0x11
mov byte [esp + 6], al
mov byte [esp + 0xb], al
mov byte [esp + 0xd], al
mov eax, dword [ecx + 4]
push eax
push 1
lea ecx, [esp + 8]
push 0xe
push ecx
mov word [esp + 0x10], 0xdaff
mov word [esp + 0x12], 0xc00
mov byte [esp + 0x14], 3
mov byte [esp + 0x15], 1
mov byte [esp + 0x17], 2
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], 3
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1c], 0x3f
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
ret
Function at 0x403580
Capabilities:
Write file on windows

Disassembly:
push ecx
mov al, byte [esp + 0xc]
push esi
dec al
mov esi, ecx
js 0x403634
movsx eax, al
push ebp
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
lea ebp, [eax*2 + 0x409468]
inc eax
mov dword [esp + 0xc], eax
mov ax, word [ebp]
mov edx, dword [esp + 0x14]
and eax, edx
test ax, ax
je 0x4035c7
movsx ecx, byte [esi + 1]
mov al, byte [esi]
mov dl, byte [ecx*2 + 0x409468]
or al, dl
mov byte [esi], al
mov al, byte [esi + 1]
sub ebp, 2
dec al
mov byte [esi + 1], al
jns 0x403623
mov al, byte [esi]
cmp al, 0xff
jne 0x403606
mov byte [esp + 0x18], al
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esp + 0x20]
push 1
push ecx
call edi
mov edx, dword [esi + 4]
lea eax, [esp + 0x28]
push edx
push 1
push 1
push eax
mov byte [esp + 0x38], 0
call edi
add esp, 0x20
jmp 0x40361c
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
push ecx
push 1
push 1
push edx
mov byte [esp + 0x28], al
call edi
add esp, 0x10
mov byte [esi + 1], 7
mov byte [esi], 0
mov eax, dword [esp + 0xc]
dec eax
mov dword [esp + 0xc], eax
jne 0x4035a7
pop edi
pop ebp
pop esi
pop ecx
ret 8
Function at 0x403d40
Capabilities:
Capture webcam image

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, ecx
push 0
push 0
push ebx
push 0x403e50
mov dword [ebx + 0x10], 0
call sub.MFC42.DLL_AfxBeginThread
push 0
push 0
push 0xc8
push 0xc8
push 0
push 0
push 0x20000000
push str.Explorer
call sub.AVICAP32.dll_capCreateCaptureWindowA
mov edi, eax
xor eax, eax
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test edi, edi
setne al
mov esi, eax
test esi, esi
je 0x403db3
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403db1
push 0
push 0
push 0x40a
push edi
call ebp
mov esi, eax
jmp 0x403db3
xor esi, esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x403e03
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403e01
push 0
push 0
push 0x43d
push edi
call ebp
mov esi, eax
test esi, esi
je 0x403e03
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403e01
lea ecx, [ebx + 8]
call sub.MFC42.DLL_CString::LockBuffer
push eax
push 0
push 0x419
push edi
call ebp
mov esi, eax
jmp 0x403e03
xor esi, esi
lea ecx, [ebx + 8]
call sub.MFC42.DLL_CString::UnlockBuffer
test esi, esi
je 0x403e40
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403e32
push 0
push 0
push 0x40b
push edi
call ebp
pop edi
pop esi
mov dword [ebx + 0x10], 1
pop ebp
pop ebx
ret
pop edi
pop esi
mov dword [ebx + 0x10], 1
pop ebp
xor eax, eax
pop ebx
ret
mov eax, esi
pop edi
pop esi
mov dword [ebx + 0x10], 1
pop ebp
pop ebx
ret
Function at 0x403ec0
Capabilities:
Accept command line arguments
Create process on windows
Get common file path

Disassembly:
sub esp, 0x304
push ebx
push ebp
push esi
mov esi, dword [esp + 0x314]
mov ebx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx], 0x4097d0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
call sub.MFC42.DLL_operatornew
mov edi, dword [esp + 0x320]
mov dword [0x40d8a8], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
call sub.MFC42.DLL_operatornew
mov dword [0x40d8ac], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.MSVCRT.dll__strlwr]
mov eax, ecx
mov esi, edi
mov edi, dword [0x40d8a8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x40d8a8]
push ecx
call ebp
mov edi, dword [esp + 0x328]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [0x40d8ac]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x40d8ac]
push eax
call ebp
mov ecx, dword [esp + 0x330]
add esp, 0x10
lea edx, [esp + 0x214]
mov dword [0x40b2e8], ecx
push 0xff
push edx
push 0
mov dword [ebx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x14]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x17], al
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x11c]
lea edi, [edx + 1]
mov dword [esp + 0x18], esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
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 + 0x11c]
mov byte [edx], 0
push ecx
call ebp
add esp, 0xc
push str.flash
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov edi, dword [0x40d8ac]
mov esi, eax
add esp, 8
lea eax, [esp + 0x114]
neg esi
sbb esi, esi
neg esi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x404059
test cl, cl
je 0x404055
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x404059
add eax, 2
add edi, 2
test cl, cl
jne 0x404035
xor edi, edi
jmp 0x40405e
sbb edi, edi
sbb edi, 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.00404950
test eax, eax
je 0x4040bb
test esi, esi
je 0x40409a
push 5
push 0
lea ecx, [esp + 0x21c]
push 0
push ecx
push 0x40b2ec
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x304
ret 0xc
test edi, edi
je 0x4040c9
push 5
push 0x521
mov ecx, ebx
call fcn.00404fa0
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x304
ret 0xc
mov ecx, ebx
mov dword [ebx + 0xc], 1
call fcn.00404290
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x304
ret 0xc
Function at 0x404290
Capabilities:
Get common file path

Disassembly:
sub esp, 0x38
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x404200
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], str.AStuckWnd
mov dword [esp + 0x44], esi
call dword [sym.imp.USER32.dll_RegisterClassExA]
push esi
push ebx
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x40b32c
push str.AStuckWnd
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, esi
mov dword [edi + 4], eax
jne 0x404314
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 1
push ecx
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40436d
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
je 0x40436d
push str.SHChangeNotifyRegister
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [edi + 4]
lea edx, [esp + 0xc]
push edx
push 1
push 0x458
push 0x100
push 2
push ecx
call eax
push ebx
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [edi + 8]
xor eax, eax
cmp ecx, esi
pop edi
pop esi
pop ebx
setne al
add esp, 0x38
ret
Function at 0x404d20
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1000
call fcn.00407b70
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push 0x64
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push 0x40b480
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
mov ebp, eax
push 2
push 0xffffffffffffffce
push ebp
call ebx
push ebp
push 0x32
lea edx, [esp + 0x82c]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x24
push 1
push 0xffffffffffffff9c
push ebp
call ebx
push ebp
push 0x32
lea eax, [esp + 0x24]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov al, byte [esp + 0x5d]
add esp, 0x1c
cmp al, 0xaa
jne 0x404e1f
or ecx, 0xffffffff
mov edi, 0x40b478
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x810]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x810]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
jmp 0x404d72
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
lea edi, [esp + 0x814]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1014]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x810]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x1000
ret 4

Function at 0x404e70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
lea eax, [esp]
push esi
push edi
push 0x64
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push 0x40b480
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
push 2
push 0xffffffffffffffce
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 0x32
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x70]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov eax, ecx
pop esi
add esp, 0x64
ret 4
Function at 0x404f00
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push edi
push 0x40b144
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x404f20
pop edi
pop esi
pop ebp
ret
mov ecx, dword [esp + 0x14]
push 0x40b484
and ecx, 0xffff
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x404f42
pop edi
pop esi
pop ebp
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x404f55
pop edi
pop esi
pop ebp
ret
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404f7c
push ebp
push 1
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
test esi, esi
pop ebx
pop edi
pop esi
pop ebp
setne al
ret

Function at 0x404fa0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x200
lea eax, [esp]
push ebx
push esi
push edi
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0x214]
lea ecx, [esp + 0x10c]
push 0xff
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x10c]
push eax
call fcn.00404130
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x214]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.00404f00
add esp, 0xc
lea edx, [esp + 0xc]
push 5
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
cmp eax, 0x20
pop ebx
jae 0x405055
push 5
push 0
lea eax, [esp + 8]
push 0
push eax
push 0x40b2ec
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, 1
add esp, 0x200
ret 8
Function at 0x405240
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push esi
lea eax, [esp + 0x24]
push edi
xor esi, esi
push eax
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x28]
push edx
push esi
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
je 0x40537a
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.VirtualAllocEx
push str.KERNEL32.DLL
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
push str.VirtualFreeEx
push str.KERNEL32.DLL
mov ebx, eax
call esi
push eax
call ebp
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x40537a
test eax, eax
je 0x40537a
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
push 0x40
push 0x3000
lea ecx, [esi + eax + 3]
push ecx
push 0
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40537a
mov eax, dword [esp + 0x2c]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea edx, [esp + 0x10]
push edx
push esi
push eax
push ebx
push edi
call ebp
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
add esi, 4
lea ecx, [esp + 0x10]
and esi, 0xfffffffc
push ecx
add esi, ebx
push edx
push eax
push esi
push edi
call ebp
lea ecx, [esp + 0x14]
push ecx
push 0
push esi
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebp, eax
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea edx, [esp + 0x20]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push 0x8000
push 0
push ebx
push edi
call dword [esp + 0x2c]
push edi
call esi
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x405390
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x19c
push ebx
push ebp
push esi
push edi
push str.User32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov ecx, 0x67
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, 0x4055b0
push str.SendMessageTimeoutA
push ebx
sub ebp, 0x405540
call edi
mov esi, dword [esp + 0x1b0]
mov dword [esp + 0x1c], eax
push esi
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x40540b
push str.GetWindowLongW
push ebx
call edi
push str.GetClassInfoExW
push ebx
mov dword [esp + 0x1c], eax
call edi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
push 0x40
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
jmp 0x405434
push str.GetWindowLongA
push ebx
call edi
push str.GetClassInfoExA
push ebx
mov dword [esp + 0x1c], eax
call edi
lea ecx, [esp + 0x2c]
push 0x80
push ecx
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 0xffffffffffffffe0
push esi
mov dword [esp + 0x28], esi
call dword [sym.imp.USER32.dll_GetClassLongA]
push 0xfffffffffffffffa
push esi
mov word [esp + 0x2c], ax
call dword [sym.imp.USER32.dll_GetWindowLongA]
xor ebx, ebx
mov dword [esp + 0x28], eax
push ebx
push esi
mov dword [esp + 0xe4], ebx
mov dword [esp + 0x1b0], 0xc8
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
jne 0x40547f
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x10]
push 0x19c
push edx
push ebp
push 0x405540
push esi
call fcn.00405240
add esp, 0x14
test eax, eax
jne 0x4054d3
mov eax, dword [esp + 0x1b8]
cmp eax, ebx
je 0x4054a9
mov dword [eax], ebx
mov edi, dword [esp + 0x1b4]
cmp edi, ebx
je 0x4054bd
mov ecx, 0xc
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1bc]
pop edi
pop esi
pop ebp
mov byte [eax], bl
xor eax, eax
pop ebx
add esp, 0x19c
ret
mov edx, dword [esp + 0x1b8]
mov eax, dword [esp + 0x1b4]
cmp edx, ebx
je 0x4054f5
mov ecx, 0xc
lea esi, [esp + 0xac]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
cmp eax, ebx
je 0x405502
mov ecx, dword [esp + 0xdc]
mov dword [edx], ecx
mov esi, dword [esp + 0x1bc]
lea edx, [esp + 0xe0]
push 0xc8
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov byte [esi + 0xc8], bl
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x19c
ret