joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d5638
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffed8
mov ebp, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x128
call fcn.004037d8
mov dword [esp], 0x128
xor edx, edx
mov eax, 0xf
call fcn.004b67f0
mov edi, eax
mov edx, esp
mov eax, edi
call fcn.004b6810
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4d56a9
cmp ebp, dword [esp + 0x18]
jne 0x4d569a
mov eax, dword [esp + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x4d569a
push 0
push esi
call sub.kernel32.dll_TerminateProcess
mov edx, esp
mov eax, edi
call fcn.004b6830
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4d5678
push ebp
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x4d56c5
push 0
push esi
call sub.kernel32.dll_TerminateProcess
push edi
call sub.kernel32.dll_CloseHandle
add esp, 0x128
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4d56d8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053a8
xor eax, eax
push ebp
push 0x4d580f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x12d]
xor ecx, ecx
mov edx, 0x128
call fcn.004037d8
mov dword [ebp - 0x12d], 0x128
xor edx, edx
mov eax, 0xf
call fcn.004b67f0
mov esi, eax
lea edx, [ebp - 0x12d]
mov eax, esi
call fcn.004b6810
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4d57db
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 4]
call fcn.004097f4
mov eax, dword [ebp - 0x134]
push eax
lea eax, [ebp - 0x13c]
lea edx, [ebp - 0x109]
mov ecx, 0x104
call fcn.00405198
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.004097f4
mov eax, dword [ebp - 0x138]
pop edx
call fcn.00409a00
test eax, eax
jne 0x4d57c8
call sub.kernel32.dll_GetCurrentProcessId
mov edi, dword [ebp - 0x125]
cmp eax, edi
je 0x4d57c8
push 0
push edi
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov byte [ebp - 5], 1
lea edx, [ebp - 0x12d]
mov eax, esi
call fcn.004b6830
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4d5757
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5816
lea eax, [ebp - 0x13c]
mov edx, 3
call fcn.00404f4c
lea eax, [ebp - 4]
call fcn.00404f28
ret
Function at 0x4d6334
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4d63fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov bl, 0x43
lea eax, [ebp - 0x2c]
mov edx, ebx
call fcn.00405110
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov ecx, 0x4d6414
call fcn.00405240
mov eax, dword [ebp - 4]
call fcn.004053b8
mov esi, eax
push esi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4d63d8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
mov eax, dword [0x552df0]
mov eax, dword [eax]
call eax
test eax, eax
je 0x4d63d8
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0xc]
jne 0x4d63c0
cmp eax, dword [ebp - 0x10]
jbe 0x4d63d8
jmp 0x4d63c2
jle 0x4d63d8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404f7c
inc ebx
cmp bl, 0x5b
jne 0x4d6365
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6403
lea eax, [ebp - 0x2c]
call fcn.00404f28
lea eax, [ebp - 4]
call fcn.00404f28
ret

Function at 0x4d6710
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4d6733
cmp dword [esp + 4], 5
jne 0x4d6733
mov bl, 1
mov eax, ebx
add esp, 0x94
pop ebx
ret

Function at 0x4d6d00
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x4d6d18
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4d6d11
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.004037d8
xor edx, edx
mov eax, 0x551534
movzx ebx, byte [eax]
mov ecx, ebx
and cl, 7
movzx ecx, cl
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
movzx ecx, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x4d6d7f
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x4d6d36
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x4d6fc8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x4d6fe1
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x4d6fda
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x4d6ff3
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4d6fec
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.004d6bb8
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x4d700d
movzx eax, byte [ebp - 0xa]
movzx edx, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 9]
movzx ecx, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
add edx, edx
add edx, edx
movzx eax, byte [ebp - 8]
movzx ecx, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 7]
movzx edx, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 6]
and al, 0xf
add eax, eax
add eax, eax
movzx edx, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
movzx eax, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
movzx edx, byte [esi]
call fcn.004d6cc8
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x4d7095
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x4d70b3
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.004d6c48
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x4d70dd
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d70f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x4d710d
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4d7106
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x4d7121
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004d6ab8
test bl, bl
jne 0x4d7201
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x559dd0
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4d7159
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4d716e
push 0x3e7
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004d6fc8
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
movzx ebx, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x4d71a4
add dword [ebp - 0x14], 0x3e8
dec dword [ebp - 8]
jne 0x4d714e
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x4d71cb
mov eax, 4
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x4d71dd
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x4d71f2
jmp 0x4d72c8
cmp bl, 1
jne 0x4d72c8
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x55d868
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4d7221
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4d7236
push 0x3e7
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004d6fc8
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x4d726c
sub ebx, 0x3e8
inc dword [ebp - 8]
jne 0x4d7216
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x4d7297
mov eax, 4
mov ebx, dword [ebp + 0xc]
movzx edx, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x4d72a9
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x4d72be
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004d6b38
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x4d7820
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x4d7838
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4d7831
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.004037d8
xor edx, edx
mov eax, str.80_
movzx ebx, byte [eax]
mov ecx, ebx
and cl, 7
movzx ecx, cl
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
movzx ecx, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x4d789f
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x4d7856
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x4d7ae8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x4d7b01
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x4d7afa
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x4d7b13
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4d7b0c
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.004d76d8
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x4d7b2d
movzx eax, byte [ebp - 0xa]
movzx edx, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 9]
movzx ecx, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
add edx, edx
add edx, edx
movzx eax, byte [ebp - 8]
movzx ecx, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 7]
movzx edx, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 6]
and al, 0xf
add eax, eax
add eax, eax
movzx edx, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
movzx eax, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
movzx edx, byte [esi]
call fcn.004d77e8
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x4d7bb5
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x4d7bd3
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.004d7768
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x4d7bfd
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4dabb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4dac0a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004daba0
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004d87f8
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004d8310
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dac11
lea eax, [ebp - 4]
call fcn.00404f28
ret
Function at 0x4e5a48
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4e5a76
mov eax, ebx
call fcn.004e64fc
cmp dword [ebx + 0x40], 0
je 0x4e5a6f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4e5ae7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4e5ad9
cmp dword [ebx + 8], 0
je 0x4e5a98
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4e5aaa
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4e5ad9
cmp dword [ebx + 8], 0
je 0x4e5a8b
cmp eax, 3
je 0x4e5abd
dec eax
jne 0x4e5a8b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4e5a8b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4e5a8b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4e5b05
cmp dword [ebx + 0x14], 0xcc
je 0x4e5b05
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004e5b10
pop ebx
ret

Function at 0x4f6170
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
jmp 0x4f6216
mov eax, dword [edi + 0xc]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
mov ebx, dword [edi + 0x10]
add ebx, dword [ebp + 8]
mov esi, ebx
cmp dword [edi + 4], 0xffffffff
jne 0x4f620e
mov ebx, dword [edi]
add ebx, dword [ebp + 8]
jmp 0x4f620e
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_VirtualProtectEx
test eax, eax
je 0x4f6208
test byte [ebx + 3], 0x80
je 0x4f61de
mov eax, dword [ebx]
and eax, 0xffff
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
jmp 0x4f61f2
mov eax, dword [ebp + 8]
add eax, dword [ebx]
add eax, 2
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_VirtualProtectEx
add ebx, 4
add esi, 4
cmp dword [ebx], 0
jne 0x4f61ab
add edi, 0x14
cmp dword [edi + 0x10], 0
je 0x4f6226
cmp dword [edi + 0xc], 0
jne 0x4f6181
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4f6230
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 4]
push 0x40
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4f639e
cmp word [edi], 0x5a4d
jne 0x4f639e
mov esi, dword [edi + 0x3c]
add esi, dword [ebp - 4]
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4f639e
cmp dword [esi], 0x4550
jne 0x4f639e
xor eax, eax
mov dword [ebp - 0x14], eax
mov ebx, esi
add ebx, 0xf8
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4f639e
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [edx], eax
push 0x40
push 0x3000
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4f639e
movzx eax, word [esi + 6]
mov dword [ebp - 0x10], eax
mov ecx, ebx
sub ecx, edi
mov eax, dword [ebp - 0x10]
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax + eax*4]
add ecx, eax
mov edx, edi
mov eax, dword [ebp - 0x1c]
call fcn.004084bc
mov ecx, dword [ebp - 0x14]
dec ecx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
xor edx, edx
call fcn.004084bc
mov edi, dword [ebp - 0x10]
dec edi
test edi, edi
jl 0x4f6327
inc edi
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
add edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 0x1c]
call fcn.004084bc
add ebx, 0x28
dec edi
jne 0x4f630d
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x4f6348
mov edx, dword [esi + 0xa4]
push edx
mov ecx, eax
add ecx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x34]
mov edx, dword [ebp - 0x1c]
call fcn.004f60fc
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4f635f
add eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004f6170
mov eax, dword [esi + 0x28]
mov edi, eax
mov ecx, dword [ebp - 0x1c]
add edi, ecx
mov edx, edi
test eax, eax
je 0x4f6398
xor eax, eax
push ebp
push 0x4f638e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 1
push ecx
call edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f6398
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f9228
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053a8
mov eax, dword [ebp - 8]
call fcn.004053a8
xor eax, eax
push ebp
push 0x4f92ff
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00403498
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x1c]
mov ecx, 1
mov eax, 0x4f9314
call fcn.0040b984
mov eax, dword [ebp - 0xc]
call fcn.004053b8
push eax
call sub.kernel32.dll_OutputDebugStringA
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x1c]
mov ecx, 1
mov eax, 0x4f9314
call fcn.0040b984
mov eax, dword [ebp - 0x24]
call fcn.004053b8
push eax
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9306
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404f4c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404f4c
ret

Function at 0x4f931c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053a8
mov eax, dword [ebp - 8]
call fcn.004053a8
xor eax, eax
push ebp
push 0x4f93c6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x3c
call fcn.004037d8
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 4]
call fcn.004053b8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
call fcn.004053b8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], 0x40
call fcn.004d6710
test al, al
je 0x4f9394
mov eax, 0x4f93d4
mov dword [ebp - 0x38], eax
jmp 0x4f939c
mov eax, 0x4f93dc
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x44]
push eax
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f93cd
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f4c
ret
Function at 0x4fca34
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4fcc38
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004034fc
xor eax, eax
mov dword [esi + 0x3f0], eax
push 0x4fcc48
call sub.kernel32.dll_OutputDebugStringA
mov eax, 0x20
call fcn.00403524
mov edi, eax
add di, 0xa37c
mov eax, dword [0x5625dc]
cmp dword [eax + 8], 0
jg 0x4fcc2e
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b1530]
call fcn.004b48e0
mov ebx, eax
mov edx, 0x4fcc6c
mov eax, ebx
call fcn.004b45ac
movzx edx, di
mov eax, ebx
call fcn.004b46ac
call fcn.004d3bf8
mov ecx, dword [ebx + 0xa0]
mov dword [ecx + 0xb0], eax
mov dword [ecx + 0xb4], edx
mov dword [ebx + 0x54], esi
mov dword [ebx + 0x50], 0x4fccc0
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x78], 0x4fcce4
mov edx, ebx
mov eax, dword [0x5625dc]
call fcn.0041fa58
mov eax, ebx
call fcn.004b4758
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b1530]
call fcn.004b48e0
mov ebx, eax
mov edx, 0x4fcc84
mov eax, ebx
call fcn.004b45ac
movzx edx, di
mov eax, ebx
call fcn.004b46ac
call fcn.004d3bf8
mov ecx, dword [ebx + 0xa0]
mov dword [ecx + 0xb0], eax
mov dword [ecx + 0xb4], edx
mov dword [ebx + 0x54], esi
mov dword [ebx + 0x50], 0x4fccc0
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x78], 0x4fcce4
mov edx, ebx
mov eax, dword [0x5625dc]
call fcn.0041fa58
mov eax, ebx
call fcn.004b4758
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b1530]
call fcn.004b48e0
mov ebx, eax
mov edx, 0x4fcc9c
mov eax, ebx
call fcn.004b45ac
movzx edx, di
mov eax, ebx
call fcn.004b46ac
call fcn.004d3bf8
mov ecx, dword [ebx + 0xa0]
mov dword [ecx + 0xb0], eax
mov dword [ecx + 0xb4], edx
mov dword [ebx + 0x54], esi
mov dword [ebx + 0x50], 0x4fccc0
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x78], 0x4fcce4
mov edx, ebx
mov eax, dword [0x5625dc]
call fcn.0041fa58
mov eax, ebx
call fcn.004b4758
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b1530]
call fcn.004b48e0
mov ebx, eax
mov edx, 0x4fccb4
mov eax, ebx
call fcn.004b45ac
movzx edx, di
mov eax, ebx
call fcn.004b46ac
call fcn.004d3bf8
mov ecx, dword [ebx + 0xa0]
mov dword [ecx + 0xb0], eax
mov dword [ecx + 0xb4], edx
mov dword [ebx + 0x54], esi
mov dword [ebx + 0x50], 0x4fccc0
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x78], 0x4fcce4
mov edx, ebx
mov eax, dword [0x5625dc]
call fcn.0041fa58
mov eax, ebx
call fcn.004b4758
mov eax, dword [esi + 0x3c4]
mov edx, 0x3e8
call fcn.0044f9a8
mov eax, dword [esi + 0x3c4]
mov dl, 1
call fcn.0044f998
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fcc42
pop edi
pop esi
pop ebx
pop ebp
ret