joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xf7d2ae5
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x377040b8
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x4011cd
push 3
pop esi
push esi
call fcn.00401730
test eax, eax
pop ecx
je 0x40102d
cmp esi, 0x1a
jg 0x40102d
inc esi
jmp 0x40101a
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x14c]
push 0x105
push eax
mov dword [0x407c28], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x14c]
push str._delis32.ini
push eax
push 0x407c40
call fcn.004016d5
lea eax, [ebp - 0x14c]
push str._INS33IS._MP
mov esi, 0x407b20
push eax
push esi
call fcn.004016d5
lea eax, [ebp - 0x14c]
push str._iserr31.ini
push eax
push 0x407d60
call fcn.004016d5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push str.ISDEL_MSG_DELDONE32
call esi
push str.ISDEL_MSG_DELENABLE32
mov dword [0x407710], eax
call esi
push str.ISDEL_MSG_DELEXISTS32
mov dword [0x407708], eax
call esi
mov dword [ebp - 0x18], ebx
mov ebx, str.isdelete
push ebx
mov dword [0x40770c], eax
push dword [ebp + 8]
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x24], sym._DELIS.EXE_WndProc
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0xc], 6
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x4011cd
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push dword [ebp + 8]
push edi
push edi
push 1
call esi
cdq
sub eax, edx
sar eax, 1
push eax
push edi
call esi
lea eax, [eax + eax*2]
push 4
cdq
pop ecx
idiv ecx
push eax
push 1
call esi
push 4
cdq
pop ecx
idiv ecx
push eax
push edi
call esi
push 8
cdq
pop ecx
idiv ecx
push eax
push 0x80c00000
push str.InstallSHIELD_Delete
push ebx
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, edi
je 0x4011cd
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
mov dword [0x407d48], eax
push edi
push edi
lea eax, [ebp - 0x44]
push edi
push eax
call esi
test eax, eax
je 0x401197
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
push edi
lea eax, [ebp - 0x44]
push edi
push eax
jmp 0x401174
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x407b20
call esi
push 0x407c40
call esi
push 0x407d60
call esi
push edi
push edi
push dword [0x407710]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x4011d6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
mov eax, ecx
push esi
dec eax
push edi
je 0x4012f8
sub eax, 0x10
je 0x4012f3
sub eax, 5
je 0x4012b2
sub eax, 0xfd
je 0x401289
cmp ecx, dword [0x407708]
jne 0x40122a
mov eax, dword [ebp + 0x10]
mov dword [0x405020], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x15f90
mov dword [0x407700], eax
jmp 0x401319
cmp ecx, dword [0x40770c]
jne 0x401274
cmp dword [ebp + 0x14], 0xa4d23f78
jne 0x401274
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401319
xor esi, esi
cmp dword [0x4076fc], esi
jne 0x401319
push 0x832fbc3
push esi
push dword [0x40770c]
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401319
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcA]
jmp 0x40131b
xor esi, esi
cmp dword [0x407704], esi
jne 0x401319
push dword [ebp + 8]
mov dword [0x407704], 1
call fcn.00401322
pop ecx
mov dword [0x407704], esi
jmp 0x401319
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x401319
push 1
mov edi, 0x407c40
pop ebx
push edi
call fcn.0040169e
test eax, eax
je 0x4012da
push esi
call fcn.004013e9
and ebx, eax
inc esi
cmp esi, 0x14
pop ecx
jl 0x4012cb
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x407b20
call esi
push edi
call esi
push 0x407d60
call esi
jmp 0x401319
push 1
pop eax
jmp 0x40131b
xor esi, esi
push esi
push 0xbb8
push 0x578
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x401319
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x401322
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 0x8001
call esi
push str.c:_stopthis.now
call fcn.0040169e
test eax, eax
je 0x401351
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 1
pop eax
jmp 0x4013e4
xor ebx, ebx
push ebx
call esi
cmp dword [0x405020], ebx
push 1
pop esi
jne 0x401375
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x407700]
jbe 0x401349
mov dword [0x405020], esi
push 0x407c40
call fcn.0040169e
test eax, eax
push ebx
jne 0x401392
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [0x4076fc], esi
jmp 0x4013e2
push 0x80
push 2
push ebx
push esi
mov edi, 0x407b20
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
mov dword [0x4076f0], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, esi
push ebx
call fcn.004013e9
and ebp, eax
inc ebx
cmp ebx, 0x14
pop ecx
jl 0x4013ba
test ebp, ebp
je 0x4013db
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [0x4076fc], esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4013e9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
lea eax, [ebp - 0x108]
push dword [ebp + 8]
push str.file_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ebx, 0x407c40
mov esi, 0x407e80
mov edi, str.NOT_POSSIBLE_VALUE
push ebx
push 0x105
push esi
push edi
lea eax, [ebp - 0x108]
push str.main
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401447
push 1
pop eax
jmp 0x4014a2
mov edi, 0xea
push ebx
push edi
lea eax, [ebp - 0x108]
push str.exeostype
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, edi
mov dword [0x407718], eax
jne 0x401473
mov dword [0x407718], 6
push esi
call fcn.0040169e
test eax, eax
je 0x40148f
push dword [0x407718]
push esi
call fcn.0040161e
pop ecx
test eax, eax
pop ecx
jne 0x4014a0
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004014a7
pop ecx
pop ecx
jmp 0x4014a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4014a7
Capabilities:
Delete file
Read .ini file

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
push 0x8000
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push dword [esp + 0x230]
call fcn.0040169e
test eax, eax
mov edi, 0x407c40
je 0x40150b
push dword [esp + 0x230]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
dec eax
cmp eax, 0xffffffff
je 0x40161a
push edi
push 0
push str.main
push dword [esp + 0x238]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
and dword [esp + 0x10], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov esi, str.NOT_POSSIBLE_VALUE
push dword [esp + 0x10]
lea eax, [esp + 0x124]
push str.alt_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x18]
push edi
push 0x105
push eax
lea eax, [esp + 0x12c]
push esi
push eax
push dword [esp + 0x240]
call ebx
lea eax, [esp + 0x18]
push esi
push eax
call ebp
test eax, eax
je 0x4015a8
lea eax, [esp + 0x18]
push eax
call fcn.0040169e
test eax, eax
je 0x4015a8
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
dec eax
cmp eax, 0xffffffff
je 0x4015a3
push edi
lea eax, [esp + 0x124]
push 0
push eax
push dword [esp + 0x238]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4015a8
and dword [esp + 0x14], 0
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 5
jl 0x401521
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [esp + 0x14], 0
je 0x40160b
push edi
lea eax, [esp + 0x1c]
push 0x105
push eax
push esi
push 0x405100
push dword [esp + 0x240]
call ebx
lea eax, [esp + 0x18]
push esi
push eax
call ebp
test eax, eax
je 0x40160b
lea eax, [esp + 0x18]
push eax
call fcn.00401790
test eax, eax
pop ecx
jne 0x40160b
push edi
push eax
push eax
push dword [esp + 0x238]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
xor eax, eax
jmp 0x40160f
Function at 0x40161e
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.0040169e
test eax, eax
je 0x40169a
cmp dword [esp + 0x14], 6
jne 0x401643
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x401675
jmp 0x40169a
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x4076f0], eax
jne 0x40167c
push ebx
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
push ebx
neg esi
sbb esi, esi
neg esi
dec esi
call edi
cmp esi, ebx
jl 0x401675
xor eax, eax
jmp 0x401678

Function at 0x401730
Capabilities:
Set current directory

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 1
jl 0x401773
cmp eax, 0x1f
jg 0x401773
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x401760
xor eax, eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401b00
add esp, 4
or eax, 0xffffffff
ret
mov dword [0x407734], 0xd
mov dword [0x407738], 0xf
or eax, 0xffffffff
ret

Function at 0x401790
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4017a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4017a9
xor eax, eax
test eax, eax
je 0x4017ba
push eax
call fcn.00401b00
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4017c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404118
push 0x402a88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40774c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x407748], ecx
shl ecx, 8
add ecx, edx
mov dword [0x407744], ecx
shr eax, 0x10
mov dword [0x407740], eax
call fcn.00402950
test eax, eax
jne 0x40182a
push 0x1c
call fcn.00496000
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402750
call fcn.00402740
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4080b4], eax
call fcn.00402100
mov dword [0x407728], eax
test eax, eax
je 0x40185d
mov eax, dword [0x4080b4]
test eax, eax
jne 0x401867
push 0xffffffffffffffff
call fcn.004019f0
add esp, 4
call fcn.00401e50
call fcn.00401d60
call fcn.004019c0
mov esi, dword [0x4080b4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401946
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4018ae
test al, al
je 0x4018ae
and eax, 0xff
push eax
call fcn.00401d00
add esp, 4
test eax, eax
je 0x401888
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401888
cmp byte [esi], 0x22
jne 0x4018b7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4018c7
cmp al, 0x20
ja 0x4018c7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4018b7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4018e8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4018ed
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004019f0
jmp 0x40192b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4018b7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401946

Function at 0x401a30
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40777c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x401a4f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x407778], 1
mov byte [0x407774], bl
jne 0x401aa9
mov ecx, dword [0x4080ac]
test ecx, ecx
je 0x401a97
mov esi, dword [0x4080a8]
sub esi, 4
cmp esi, ecx
jb 0x401a97
mov eax, dword [esi]
test eax, eax
je 0x401a90
call eax
mov ecx, dword [0x4080ac]
sub esi, 4
cmp esi, ecx
jae 0x401a82
push 0x405014
push 0x405010
call fcn.00401ae0
add esp, 8
push 0x40501c
push 0x405018
call fcn.00401ae0
add esp, 8
test ebx, ebx
jne 0x401ad0
push ebp
mov dword [0x40777c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x402100
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x407890]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402142
call edi
mov esi, eax
test esi, esi
je 0x40212c
mov eax, 1
jmp 0x40213d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40224f
mov eax, 2
mov dword [0x407890], eax
cmp eax, 1
jne 0x4021e2
test esi, esi
jne 0x40215b
call edi
mov esi, eax
test esi, esi
je 0x40224f
cmp word [esi], 0
mov eax, esi
je 0x402175
add eax, 2
cmp word [eax], 0
jne 0x402163
add eax, 2
cmp word [eax], 0
jne 0x402163
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4021d4
push edi
call fcn.00403030
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4021d4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4021c6
push ebx
call fcn.00402fe0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40224f
test ebx, ebx
jne 0x4021f3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40224f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40220b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4021fb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4021fb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00403030
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40222d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x402ba0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x405420
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x402bc4
add eax, 8
inc ebp
cmp eax, 0x4054b0
jb 0x402bb5
cmp ecx, dword [ebp*8 + 0x405420]
jne 0x402d6b
mov eax, dword [0x407730]
cmp eax, 1
je 0x402d2d
test eax, eax
jne 0x402bf0
cmp dword [0x405110], 1
je 0x402d2d
cmp ecx, 0xfc
je 0x402d6b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402c2b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x402c74
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4043f8
add ebx, ecx
push ebx
call fcn.004039d0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4043d8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
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 ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x405424]
or ecx, 0xffffffff
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 ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403940
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x407fa0]
test eax, eax
je 0x402d3e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x402d48
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x405424]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x10004260
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10053f75
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x24
mov eax, dword [0x10087040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], edx
mov esi, ecx
lea eax, [ebp - 0x18]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10004317
push 0x22
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
push str.Failed_to_change_memory_protection
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
movups xmmword [ebp - 0x30], xmm0
call fcn.10008fe0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.1003a470
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x10004310
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004306
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004381
push ecx
push edx
call fcn.10052765
add esp, 8
xor al, al
jmp 0x10004399
mov eax, dword [ebp - 0x34]
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10004387
push 0x23
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
push str.Failed_to_restore_memory_protection
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
movups xmmword [ebp - 0x30], xmm0
call fcn.10008fe0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 2
call fcn.1003a470
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x10004310
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004306
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004306
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10052757
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x100043c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10053fa0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10087040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
sub edx, esi
push 5
push esi
lea ebx, [edx - 5]
call edi
test eax, eax
je 0x10004431
lea eax, [ebp - 0x14]
mov byte [esi], 0xe9
push eax
mov dword [esi + 1], ebx
push dword [ebp - 0x14]
push 5
push esi
call edi
test eax, eax
je 0x10004431
push 5
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, 1
jmp 0x10004433
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10052757
mov esp, ebp
pop ebp
ret