joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40907a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], 0x40
cmp dword [esi + 4], ebx
jne 0x4091d9
push edi
push 0x100
push ebx
push dword [0x4134c8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
push ebx
push 4
pop edi
push edi
push dword [esi]
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp + 8], edi
cmp dword [esi + 0x14], 0x706c7a31
push ebx
lea eax, [ebp - 4]
push eax
jne 0x409109
push 0x18
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0x18
jne 0x4091d8
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov ax, word [ebp - 0x24]
mov word [ebp - 0xc], ax
jmp 0x409121
push 0x12
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0x12
jne 0x4091d8
mov eax, dword [ebp - 8]
cmp dword [esi + 0xc], eax
jl 0x409147
add eax, 0x40
mov dword [ebp - 8], eax
shl eax, 2
push eax
push dword [esi + 4]
push 8
push dword [0x4134c8]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi + 4], eax
movsx eax, word [ebp - 0xc]
add eax, 0x19
push eax
push ebx
push dword [0x4134c8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0xc], eax
push ebx
lea eax, [ebp - 4]
push eax
movsx eax, word [ebp - 0xc]
push eax
lea eax, [edi + 0x14]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, word [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov byte [eax + edi + 0x14], bl
cmp dword [esi + 0x14], 0x706c7a31
movsx eax, word [ebp - 0xc]
jne 0x4091a9
lea eax, [ecx + eax + 0x18]
jmp 0x4091b0
lea eax, [ecx + eax + 0x12]
mov dword [ebp + 8], eax
mov dword [edi + 0x10], eax
add eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
push 1
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + eax*4], edi
inc dword [esi + 0xc]
push ebx
push dword [ebp - 0x14]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4090c1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a784
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x413b80]
call fcn.0040ea7a
mov edi, eax
test edi, edi
je 0x40a7e6
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40a7ad
push dword [esp + 0xc]
push edi
call eax
jmp 0x40a7e6
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.0040f7a0
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.0040f8c0
pop esi
pop ebx
pop edi
ret 8

Function at 0x40ab0f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0xc8
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x40abf8
mov eax, dword [ebp - 0xc]
dec eax
je 0x40abdb
dec eax
jne 0x40abf8
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x40ab6e
cmp byte [ebp - 0x1e], 1
jne 0x40ab6e
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x40abd7
dec eax
je 0x40abd3
dec eax
je 0x40abb1
dec eax
jne 0x40abf8
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40aba5
dec eax
je 0x40ab99
dec eax
jne 0x40abf8
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x40abf8
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x40abf8
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x40abf8
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40abcf
dec eax
je 0x40abcb
dec eax
jne 0x40abf8
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x40abf8
push 0x3c
jmp 0x40abf7
push 0x32
jmp 0x40abf7
push 0x14
jmp 0x40abf7
push 5
jmp 0x40abf7
cmp dword [ebp - 0x14], 0
je 0x40abf5
cmp dword [ebp - 0x14], 0xa
je 0x40abf1
cmp dword [ebp - 0x14], 0x5a
jne 0x40abf8
push 0x28
jmp 0x40abf7
push 0x1e
jmp 0x40abf7
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret
Function at 0x40bb40
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x40bbbc
push 9
call esi
test bl, al
je 0x40bbbc
push 0x11
call esi
test bl, al
jne 0x40bbbc
push 0x10
call esi
test bl, al
jne 0x40bbbc
push 0x12
call esi
test bl, al
jne 0x40bbbc
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40bbbc
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40bbbc
xor eax, eax
jmp 0x40bc3e
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40bbe5
push 0x11
call esi
test bl, al
jne 0x40bbdd
push 0x10
call esi
test bl, al
jne 0x40bbdd
push 0x12
call esi
test bl, al
je 0x40bbe5
push 1
push ebp
call fcn.0040baf9
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40bbfb
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40bc3b
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40bc3b
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40bc3b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40bc3b
dec esi
push esi
push dword [0x413b88]
call fcn.0040ea7a
test eax, eax
je 0x40bc3b
mov eax, dword [eax + 8]
jmp 0x40bc3d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40bd00
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x413a5c], eax
cmp eax, edi
je 0x40bd33
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x413a60], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x413a58], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40bd71
cmp dword [ebp - 0xc], 1
je 0x40bd82
cmp dword [ebp - 0xc], 2
jne 0x40bd71
cmp dword [ebp - 0x18], 5
jb 0x40bd82
jne 0x40bd71
cmp dword [ebp - 0x14], edi
jne 0x40bd71
mov dword [0x413a58], edi
cmp dword [0x413a58], edi
je 0x40bd88
call fcn.0040bc47
test eax, eax
jne 0x40bd88
mov dword [0x413a58], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40c917
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40c987
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x40c969
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x40c968
cmp dl, 0x5c
je 0x40c968
cmp dl, 0x2f
jne 0x40c973
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x40c956
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40c989
xor eax, eax
leave
ret 4
Function at 0x40c9ee
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40ca17
test byte [esp + 8], 2
je 0x40ca0b
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40ca19
xor eax, eax
ret 8

Function at 0x40cbb0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x40cbe5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x40cf90
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x40cfe9
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40cfe8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x413c28]
push eax
push ecx
call fcn.0040ea7a
test eax, eax
je 0x40cfe4
cmp dword [eax + 4], 0
je 0x40cfd2
push esi
push edi
push eax
call fcn.0040d150
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc

Function at 0x40cff0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test esi, esi
je 0x40d037
cmp byte [esi], al
je 0x40d037
mov eax, dword [esp + 0xc]
mov ecx, dword [0x413c28]
push eax
push ecx
call fcn.0040ea7a
test eax, eax
je 0x40d065
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x40d040
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40d025
sub ecx, edi
push ecx
push esi
push eax
call fcn.0040d150
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40d040
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
sub ecx, edi
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8
Function at 0x40d070
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x413c28]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.0040ea7a
mov esi, eax
test esi, esi
je 0x40d137
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
test ecx, ecx
je 0x40d0ef
cmp byte [ecx], 0
je 0x40d0ef
cmp dword [esi + 4], 0
mov eax, ecx
push edi
lea edi, [eax + 1]
je 0x40d0d7
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40d0c0
sub eax, edi
push eax
push ecx
push esi
call fcn.0040d150
mov dword [esp + 0xc], eax
jmp 0x40d0ee
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40d0d7
push 0
lea edx, [esp + 0x10]
push edx
sub eax, edi
push eax
mov eax, dword [esi]
push ecx
push eax
call ebp
pop edi
cmp dword [esi + 4], 0
je 0x40d112
push 2
push 0x41150c
push esi
call fcn.0040d150
mov ecx, eax
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 2
push 0x41150c
push edx
call ebp
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8

Function at 0x40d150
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x40d185
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x40d1fa
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x40d1e7
dec ecx
je 0x40d1d2
sub ecx, 2
je 0x40d1bf
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.0040cbb0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40d227
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x40de70
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
push esi
or esi, 0xffffffff
xor ebx, ebx
mov dword [esp + 8], 0x80000
test eax, eax
je 0x40e07e
push edi
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
je 0x40e07d
mov eax, dword [0x4134c8]
push ebp
push 0x80000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x40e075
cmp dword [esp + 0x30], ebx
jl 0x40def1
mov eax, dword [esp + 0x2c]
jg 0x40dee2
test eax, eax
je 0x40def1
push 0
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x34]
add edx, 0x80000
mov dword [esp + 0x28], edx
jmp 0x40df05
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x28], 0x80000
add ebx, 0x80000
and eax, ecx
mov dword [esp + 0x14], ebx
cmp eax, 0xffffffff
je 0x40df3d
mov eax, ebx
cdq
cmp edx, ecx
jl 0x40df3d
jg 0x40df35
cmp eax, dword [esp + 0x34]
jbe 0x40df3d
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [esp + 0x18]
mov eax, ebp
mov edx, ebx
cmp ebx, 8
jb 0x40e03c
mov edi, ebx
shr edi, 3
jmp 0x40df70
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
mov dword [esp + 0x1c], ecx
mov ecx, esi
mov esi, dword [esp + 0x1c]
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 1]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 2]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 3]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 4]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 5]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 6]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 7]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
add eax, 8
sub edx, 8
dec edi
mov esi, ecx
jne 0x40df70
mov edi, dword [esp + 0x20]
test edx, edx
je 0x40e059
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x411558]
inc eax
dec edx
jne 0x40e040
cmp ebx, 0x80000
je 0x40df01
mov edx, dword [0x4134c8]
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
mov eax, esi
pop esi
not eax
pop ebx
add esp, 0x14
ret 0x14

Function at 0x40e0b0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x401270
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
mov dword [esp + 8], edi
cmp esi, edi
je 0x401401
cmp dword [esp + 0x1c], edi
je 0x401401
cmp dword [esp + 0x20], edi
je 0x401401
cmp byte [esi], 0xe9
push ebx
push ebp
mov ebx, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov ebp, esi
jne 0x4012c3
mov ebp, dword [esi + 1]
mov dword [esp + 0x18], 5
add ebp, esi
mov dword [esp + 0x14], 1
push 0
push ebx
call fcn.00402f3c
add edi, eax
add ebx, eax
cmp edi, 5
jb 0x4012c3
cmp dword [esp + 0x14], 0
jne 0x4012e4
lea ebx, [edi + 5]
mov dword [esp + 0x20], ebx
jmp 0x4012f0
mov dword [esp + 0x20], 5
mov ebx, dword [esp + 0x20]
push ebx
call fcn.0040dfe9
mov ecx, dword [esp + 0x2c]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x40130b
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret
lea edx, [esp + 0x10]
push edx
push 0x40
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
call ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
push eax
push 0x90
push edx
call fcn.0040e430
add esp, 0xc
cmp dword [esp + 0x14], 0
push edi
push esi
jne 0x4013a3
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp]
push eax
call fcn.0040e0c0
mov edx, dword [ebp]
add esp, 0xc
add edx, edi
push edx
lea eax, [esi + 5]
push eax
call fcn.00401230
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push 0x40
lea ebp, [edi + 5]
push ebp
push esi
call ebx
push edi
push 0x90
push esi
call fcn.0040e430
mov edx, dword [esp + 0x30]
push esi
push edx
call fcn.00401230
mov ecx, dword [esp + 0x24]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push ecx
push ebp
push esi
call ebx
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x30]
mov ecx, dword [edi]
push ecx
call fcn.0040e0c0
mov eax, dword [edi]
mov edx, dword [esp + 0x24]
add esp, 0xc
sub ebp, eax
lea ecx, [edx + ebp - 5]
lea edx, [esp + 0x10]
push edx
push 0x40
push 5
push esi
mov dword [eax + 1], ecx
call ebx
mov eax, 0x90909090
mov dword [esi], eax
mov byte [esi + 4], al
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.00401230
mov edx, dword [esp + 0x18]
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push edx
push 5
push esi
call ebx
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x4029c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
cmp ebp, 1
push edi
mov edi, ecx
jl 0x402aab
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
push ebp
push eax
push esi
call fcn.0040e4b0
add esp, 0xc
cmp ebp, 1
jne 0x402a0a
movzx ecx, byte [esi]
movzx edx, byte [edi + 0x20020]
add ecx, 0x100
shl ecx, 8
add ecx, edi
mov al, byte [edx + ecx]
mov byte [esi], al
pop esi
pop edi
pop ebp
ret 0xc
lea ecx, [ebp - 1]
xor eax, eax
test ecx, ecx
jle 0x402a40
push ebx
jmp 0x402a20
movzx edx, byte [eax + esi]
movzx ebx, byte [eax + esi + 1]
add edx, 0x100
shl edx, 8
add edx, edi
mov dl, byte [ebx + edx]
mov byte [eax + esi], dl
inc eax
cmp eax, ecx
jl 0x402a20
pop ebx
movzx eax, byte [edi + 0x20020]
movzx edx, byte [esi + ebp - 1]
xor eax, 0x55
add edx, 0x100
add eax, edi
shl edx, 8
mov al, byte [edx + eax]
mov byte [esi + ebp - 1], al
mov eax, ecx
cmp eax, 1
jl 0x402a90
jmp 0x402a70
movzx edx, byte [eax + esi]
movzx ecx, byte [eax + esi - 1]
add edx, 0x100
shl edx, 8
add ecx, edi
mov cl, byte [edx + ecx]
mov byte [eax + esi], cl
dec eax
cmp eax, 1
jge 0x402a70
movzx edx, byte [esi]
movzx eax, byte [edi + 0x20020]
add edx, 0x100
shl edx, 8
add edx, edi
mov cl, byte [eax + edx]
mov byte [esi], cl
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x4051e0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
push ebp
push edi
mov edi, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
xor ebp, ebp
lea ecx, [ecx + eax + 0x18]
cmp dx, word [eax + 6]
jae 0x40526c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
lea esi, [ecx + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x405234
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x38]
test eax, eax
jle 0x405258
mov ecx, dword [esi - 4]
push eax
push 0
push 4
push 0x1000
push eax
add ecx, edi
push ecx
call ebx
push eax
call fcn.0040e430
jmp 0x405255
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, edi
push edx
call ebx
mov edx, dword [esi + 4]
mov ecx, dword [esi]
add edx, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.0040e0c0
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
inc ebp
add esi, 0x28
cmp ebp, edx
jl 0x405208
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x405270
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [eax]
movzx edx, word [ebx + 0x14]
mov dword [esp + 4], ecx
push ebp
xor ecx, ecx
xor ebp, ebp
lea eax, [edx + ebx + 0x18]
cmp cx, word [ebx + 6]
jae 0x405337
push esi
push edi
lea edi, [eax + 0x24]
lea ecx, [ecx]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4052d3
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40531f
lea ecx, [edx + ecx*2]
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + section..data]
test eax, 0x4000000
je 0x4052ed
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x405308
test al, 0x40
je 0x4052ff
mov ecx, dword [ebx + 0x20]
jmp 0x405306
test al, al
jns 0x40531f
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x40531f
mov ecx, dword [edi - 0x18]
add ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x1c]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
inc ebp
add edi, 0x28
cmp ebp, eax
jl 0x4052a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x405550
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, 0x5a4d
cmp word [ebp], ax
je 0x405564
xor eax, eax
pop ebp
ret
push edi
mov edi, dword [ebp + 0x3c]
add edi, ebp
cmp dword [edi], 0x4550
je 0x405577
pop edi
xor eax, eax
pop ebp
ret
mov ecx, dword [edi + 0x50]
mov edx, dword [edi + 0x34]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push ecx
push edx
call esi
mov ebx, eax
test ebx, ebx
jne 0x4055ae
mov eax, dword [edi + 0x50]
push 4
push 0x2000
push eax
push ebx
call esi
mov ebx, eax
test ebx, ebx
je 0x40564b
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x50]
push 0x1000
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [edi + 0x54]
push 4
push 0x1000
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 0x3c]
add ecx, dword [edi + 0x54]
mov dword [esp + 0x14], eax
push ecx
push ebp
push eax
call fcn.0040e0c0
mov edx, dword [ebp + 0x3c]
mov eax, dword [esp + 0x20]
push esi
add eax, edx
push edi
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], ebx
call fcn.004051e0
mov eax, ebx
add esp, 0x18
sub eax, dword [edi + 0x34]
je 0x405630
push eax
mov eax, esi
call fcn.00405340
add esp, 4
push esi
call fcn.004053c0
add esp, 4
push esi
test eax, eax
jne 0x405652
call fcn.004054e0
add esp, 4
call fcn.0040ed5f
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
ret
call fcn.00405270
mov ecx, dword [esi]
add esp, 4
cmp dword [ecx + 0x28], 0
je 0x405669
mov dword [esi + 0x10], 1
pop esi
mov eax, ebx
pop ebx
pop edi
pop ebp
ret