joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3fe18ff2
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x3fe19014
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x3fe191b6
cmp edi, dword [ebp + 0x10]
jb 0x3fe191b6
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.3fe18ade
inc edi
jmp 0x3fe1909d
jmp 0x3fe190aa
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.3fe18ade
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.3fe18ade
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x3fe190fe
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x3fe190e2
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.3fe1912c
add dword [eax], 0x39
jle 0x3fe19108
sub al, 0xf5
mov ch, al
call fcn.3fe19141
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x3fe1ae19
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x3fe1ae2f
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x3fe1ae40
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.3fe1ae81
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx
Function at 0x3fe1d1ed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x3fe1d136
add ebx, 0
push ecx
call 0x3fe1d14b
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x72011197
sub ebx, dword [0x720309d6]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x720309c6
call fcn.3fe18c15
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.3fe18123
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x3fe1d2a9
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x3fe1d2a9
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x3fe1d260
mov eax, 1
lock xchg dword [0x720309d2], eax
push 0x3dd1fc71
call 0x3fe1d1ed
push esi
add esp, 8
cmp eax, 0
jne 0x3fe1d1d6
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x3fe1d1fc
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x3fe1d211
cmp ecx, edx
cmp eax, 0
je 0x3fe1d236
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x3fe1d220
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.3fe1d24f
dec eax
loope 0x3fe1d252
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x720309d2], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x3fe1d286
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x3fe1d29b
jmp 0x3fe1d2a6
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x3fe1d194
Function at 0x3fe2430e
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x3fe245e4
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x7201d64a
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x72014610
push 0xffffffffffffffff
call fcn.3fe1b50e
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x3fe24378
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.3fe24390
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x3fe245d8
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x3fe245ac
Function at 0x3fe33dde
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x3fe33e00
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x3fe33e00
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x3fe33e00
ret
cmp word [ebx + 4], 0x14c
jne 0x3fe33e00
test word [ebx + 0x16], 2
je 0x3fe33e00
test word [ebx + 0x16], 0x100
je 0x3fe33e00
cmp word [ebx + 0x18], 0x10b
jne 0x3fe33e00
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x3fe33e00
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x3fe33e8c
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x3fe33e20
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.3fe1ad6b
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x3fe33e00
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x3fe33e8c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x3fe33e00
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x3fe33e00
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x3fe33e00
ret
cmp word [ebx + 4], 0x14c
jne 0x3fe33e00
test word [ebx + 0x16], 2
je 0x3fe33e00
test word [ebx + 0x16], 0x100
je 0x3fe33e00
cmp word [ebx + 0x18], 0x10b
jne 0x3fe33e00
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x3fe33e00
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x3fe33e8c
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x3fe33e20
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.3fe1ad6b
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x3fe33e00
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x3fe33f43
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x3fe33f9c
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x3fe33f43
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x3fe33f52
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x40239bf5
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x3fe33fa3
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.3fe1ae19
cmp eax, dword [ebp + 0xc]
pop eax
je 0x3fe34042
add edi, 4
add eax, 2
dec ecx
jne 0x3fe33f88
call 0x3fe33fef
loope 0x3fe33fe5
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x3fe3403f
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x3fe34050
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x3fe34003
cmp eax, ecx
ja 0x3fe34003
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x3fe3408d
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x3fe34083
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.3fe1b2f8
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x3fe33f52
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x3fe33f9c
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x3fe33f43
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x3fe33f52
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x40239bf5
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x3fe33fa3
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.3fe1ae19
cmp eax, dword [ebp + 0xc]
pop eax
je 0x3fe34042
add edi, 4
add eax, 2
dec ecx
jne 0x3fe33f88
call 0x3fe33fef
loope 0x3fe33fe5
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x3fe3403f
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x3fe34050
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x3fe34003
cmp eax, ecx
ja 0x3fe34003
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x3fe3408d
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x3fe34083
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.3fe1b2f8
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x403958
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40b008], 0x8088405
inc edx
mov dword [ebx + 0x40b008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x401229
Capabilities:
Create service
Delete file
Extract resource via kernel32 functions
Get common file path
Start service
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
mov edi, ecx
push str.apple
lea ebx, [edi + 0xc4]
push ebx
call sub.MFC42.DLL_CString::Format
pop ecx
lea eax, [edi + 0xc8]
pop ecx
mov dword [ebp - 0xc], eax
push str.apple_equipment_management
push eax
call sub.MFC42.DLL_CString::Format
pop ecx
add edi, 0xcc
pop ecx
push 0x40bbec
push edi
call sub.MFC42.DLL_CString::Format
pop ecx
lea eax, [ebp - 0x118]
pop ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebx]
lea eax, [ebp - 0x118]
push eax
push str._s_s.sys
push edi
call sub.MFC42.DLL_CString::Format
add esp, 0x10
xor esi, esi
push 0x40b054
push 0x85
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 2
push 2
mov dword [ebp - 8], eax
mov eax, dword [edi]
push esi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x14]
push esi
push ecx
push dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401324
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push esi
push 0x40b050
call sub.MFC42.DLL_AfxMessageBox_1
push esi
call dword [sym.imp.MSVCRT.dll_exit]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x401354
push esi
push esi
push 0x40b040
call sub.MFC42.DLL_AfxMessageBox_1
push esi
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [edi]
mov ecx, dword [ebp - 0xc]
push esi
mov edx, dword [ebx]
mov ecx, dword [ecx]
push esi
push esi
push esi
push esi
push eax
push 1
push 3
push 1
push 0xf01ff
push ecx
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x40139d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x40139d
push esi
push esi
push 0x40b034
call sub.MFC42.DLL_AfxMessageBox_1
push esi
call dword [sym.imp.MSVCRT.dll_exit]
mov ebx, dword [ebx]
push 0xf01ff
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
push esi
cmp ebx, esi
push esi
jne 0x4013c7
push str.error_OpenService._n
call sub.MFC42.DLL_AfxMessageBox_1
push esi
call dword [sym.imp.MSVCRT.dll_exit]
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401cdb
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
push 0xb
pop ecx
mov esi, str.devicephysicalmemory
lea edi, [ebp - 0x78]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x4a]
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x78]
push str.ntdll.dll
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0xf0000
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], 0xffff
mov dword [ebp - 8], ebx
mov word [ebp - 0x1c], 0x2c
mov word [ebp - 0x1a], 0x2e
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.ZwOpenSection
push edi
call esi
push str.ZwMapViewOfSection
push edi
mov dword [ebp - 4], eax
call esi
push str.ZwUnmapViewOfSection
push edi
mov dword [ebp - 0x14], eax
call esi
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x10]
push 4
push eax
call dword [ebp - 4]
test eax, eax
jne 0x401e04
push 2
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
lea eax, [ebp - 0x24]
push eax
push 0xffff
lea eax, [ebp - 8]
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [ebp - 0x14]
test eax, eax
jne 0x401e04
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004017e9
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x401ddf
lea eax, [ebp - 4]
push eax
call fcn.0040185c
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x401ddf
lea eax, [ebp - 4]
push eax
call fcn.004018cf
mov esi, eax
pop ecx
cmp esi, ebx
je 0x401dfd
mov eax, dword [0x40cc88]
push esi
push dword [ebp - 4]
lea eax, [eax + 0x40bc88]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [0x40cc88], esi
push dword [ebp - 8]
push 0xffffffffffffffff
call edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402411
Capabilities:
Check if file exists
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, esi
mov dword [ebp - 8], eax
push esi
push 0x80
push 3
push esi
push esi
push 0xc0000000
push str..msn
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40246d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
push esi
push esi
jne 0x40245c
push 0x40b274
jmp 0x402461
push 0x40b264
call sub.MFC42.DLL_AfxMessageBox_1
push esi
call dword [sym.imp.MSVCRT.dll_exit]
push 0x40
lea eax, [ebp - 0x48]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x48]
push 0x40
push eax
lea eax, [ebp - 8]
push 4
push eax
push 0x222010
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x4024a7
Capabilities:
Check if file exists
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push esi
push 0xc0000000
push str..msn
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4024ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push esi
push 0x40b274
cmp eax, 2
call sub.MFC42.DLL_AfxMessageBox_1
push esi
call dword [sym.imp.MSVCRT.dll_exit]
lea eax, [ebp - 4]
push esi
push eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x222008
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
leave
ret 8
Function at 0x404785
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
push str.encrpt
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBegin]
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov ebx, dword [ebp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll_rand]
mov al, bl
add al, 8
mov byte [ebp - 8], al
call esi
mov edi, 0xff
cdq
mov ecx, edi
idiv ecx
mov byte [ebp - 7], dl
call esi
cdq
mov ecx, edi
idiv ecx
mov byte [ebp - 6], dl
call esi
cdq
mov ecx, edi
idiv ecx
mov byte [ebp - 5], dl
call esi
cdq
idiv edi
and byte [ebp - 0x10c], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
lea esi, [ebx - 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push esi
add eax, 4
push eax
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 4], dl
call sub.MSVCRT.dll_memcpy
add esp, 0x14
lea eax, [ebx - 4]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x1014
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [0x40bbe8]
lea ecx, [eax + 0x60]
call fcn.0040514e
xor eax, eax
test ebx, ebx
jle 0x404850
mov cl, byte [ebp - 8]
xor byte [ebp + eax - 0x10c], cl
inc eax
cmp eax, ebx
jl 0x404841
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 7]
push 4
push eax
push edi
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x10c]
push esi
add edi, 4
push eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0x18
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc

Function at 0x40495c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
push str.decrypt
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBegin]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov al, bl
push 4
add al, 8
push edi
mov byte [ebp - 8], al
lea eax, [ebp - 7]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebx - 4]
mov dword [ebp + 0x10], eax
push eax
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0xfc]
push eax
call sub.MSVCRT.dll_memcpy
lea esi, [ebx - 4]
add esp, 0x18
xor eax, eax
test esi, esi
jle 0x4049c1
mov cl, byte [ebp - 8]
xor byte [ebp + eax - 0xfc], cl
inc eax
cmp eax, esi
jl 0x4049b2
mov eax, dword [ebp - 0xc]
push esi
add eax, 0x1014
push eax
lea eax, [ebp - 0xfc]
push eax
mov eax, dword [0x40bbe8]
lea ecx, [eax + 0x60]
call fcn.00405183
push 4
push edi
mov edi, dword [ebp + 0xc]
push edi
call sub.MSVCRT.dll_memcpy
push dword [ebp + 0x10]
lea eax, [ebp - 0xfc]
add edi, 4
push eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0x18
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc