joyce8/EMBER2024-capa huggingface dataset:
Function at 0x522b20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.00523130
add esp, 8
test al, al
je 0x522b45
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x522b45
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x523130
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x5245e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x52460b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x52460b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x5461eb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x412910
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x412932
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412939
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412928
mov eax, 1
add ebx, ebx
jne 0x41294b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412940
jne 0x41295c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412940
xor ecx, ecx
sub eax, 3
jb 0x412970
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4129e2
mov ebp, eax
add ebx, ebx
jne 0x41297b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412988
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4129ac
inc ecx
add ebx, ebx
jne 0x412998
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41298d
jne 0x4129a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41298d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4129cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4129bd
jmp 0x41292e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4129cc
add edi, ecx
jmp 0x41292e
pop esi
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x412a34
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4129e9
mov ecx, edi
jns 0x412a18
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12068]
or eax, eax
je 0x412a2e
mov dword [ebx], eax
add ebx, 4
jmp 0x412a06
call dword [esi + 0x12070]
mov ebp, dword [esi + 0x1206c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x412a68
sub esp, 0xffffff80
jmp 0x40fcec
Function at 0x27005bcf
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
xor ecx, ecx
cmp dword [ebp + 0xc], esi
jbe 0x27005c50
push 3
xor edx, edx
mov eax, esi
pop ebx
div ebx
sub edx, 0
je 0x27005c36
dec edx
je 0x27005c18
dec edx
jne 0x27005c4a
mov edx, dword [ebp + 8]
lea eax, [esi + edx]
movzx ebx, byte [eax]
movzx edx, byte [esi + edx - 1]
and edx, 0xf
shr ebx, 6
mov dl, byte [ebx + edx*4 + 0x270a04e0]
mov byte [ecx + edi], dl
movzx eax, byte [eax]
inc ecx
and eax, 0x3f
jmp 0x27005c40
mov eax, dword [ebp + 8]
movzx edx, byte [esi + eax - 1]
movzx eax, byte [esi + eax]
and edx, 3
shl edx, 4
shr eax, 4
mov al, byte [edx + eax + 0x270a04e0]
jmp 0x27005c46
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
shr eax, 2
mov al, byte [eax + 0x270a04e0]
mov byte [ecx + edi], al
inc ecx
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x27005bdd
dec esi
push 3
xor edx, edx
mov eax, esi
pop ebx
div ebx
test edx, edx
jne 0x27005c7c
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
and eax, ebx
shl eax, 4
mov al, byte [eax + 0x270a04e0]
mov byte [ecx + edi], al
lea eax, [ecx + edi + 1]
mov byte [eax], 0x3d
jmp 0x27005c97
cmp edx, 1
jne 0x27005c9b
lea eax, [ecx + edi]
mov ecx, dword [ebp + 8]
movzx ecx, byte [esi + ecx]
and ecx, 0xf
mov cl, byte [ecx*4 + 0x270a04e0]
mov byte [eax], cl
mov byte [eax + 1], 0x3d
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x27005ca1
Capabilities:
Encode data using xor

Disassembly:
or eax, 0xffffffff
xor ecx, ecx
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x270c44d0]
inc ecx
cmp ecx, 2
jb 0x27005ca6
not eax
ret

Function at 0x27005cc9
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
or eax, 0xffffffff
cmp dword [esp + 8], ecx
jbe 0x27005cf7
push esi
mov esi, dword [esp + 8]
movzx esi, byte [ecx + esi]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x270c44d0]
inc ecx
cmp ecx, dword [esp + 0xc]
jb 0x27005cd5
pop esi
not eax
mov ecx, eax
shr ecx, 8
mov byte [edx + 1], cl
mov ecx, eax
mov byte [edx], al
shr ecx, 0x10
shr eax, 0x18
mov byte [edx + 2], cl
mov byte [edx + 3], al
ret

Function at 0x27005d12
Capabilities:
Encode data using xor

Disassembly:
or eax, 0xffffffff
sub dword [esp + 4], 4
push 0
pop edx
je 0x27005d3e
push esi
movzx esi, byte [edx + ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x270c44d0]
inc edx
cmp edx, dword [esp + 8]
jb 0x27005d20
pop esi
add ecx, dword [esp + 4]
mov edx, eax
shr edx, 8
mov byte [ecx + 1], dl
mov edx, eax
mov byte [ecx], al
shr edx, 0x10
shr eax, 0x18
mov byte [ecx + 2], dl
mov byte [ecx + 3], al
ret
Function at 0x2700b5bd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call sub.KERNEL32.dll_LoadResource
test eax, eax
jne 0x2700b5d3
pop esi
ret
push edi
push eax
call sub.KERNEL32.dll_LockResource
mov edi, eax
test edi, edi
je 0x2700b606
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.dll_SizeofResource
add eax, edi
and esi, 0xf
jbe 0x2700b602
cmp edi, eax
jae 0x2700b606
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x2700b5f4
cmp edi, eax
jb 0x2700b60a
xor eax, eax
jmp 0x2700b613
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x2700fd2a
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [esp + 0xc]
push dword [eax]
call sub.KERNEL32.dll_TlsGetValue
push esi
mov edi, eax
call sub.KERNEL32.dll_SetLastError
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x270122b1
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x270ada48
call fcn.2708a1a4
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_VirtualQuery
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov edx, dword [ebp - 0x30]
cmp word [edx], ax
jne 0x27012328
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x27012328
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x27012328
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x27012328
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x27012331
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.2708a1e9
ret

Function at 0x270126b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
movzx ecx, ax
push esi
push edi
mov esi, 0x10000
test ecx, ecx
je 0x270126c9
sub eax, ecx
add eax, esi
mov ebx, eax
cmp eax, dword [ebp + 8]
jae 0x27012746
lea eax, [ebx - 0x70000000]
cmp eax, 0x10000000
ja 0x270126e5
add ebx, 0x8000000
jmp 0x27012741
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x27012746
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], esi
jne 0x2701272d
cmp eax, esi
jb 0x2701272d
push 0x40
push 0x3000
push esi
push ebx
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x27012748
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x27012746
add ebx, esi
jmp 0x27012741
mov ecx, dword [ebp - 0x1c]
add eax, ecx
movzx ecx, ax
test ecx, ecx
je 0x2701273f
mov edx, esi
sub edx, ecx
add eax, edx
mov ebx, eax
cmp ebx, dword [ebp + 8]
jb 0x270126d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2701274d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add eax, 0xffff0000
movzx ecx, ax
sub esp, 0x1c
test ecx, ecx
je 0x27012761
sub eax, ecx
push ebx
push esi
push edi
mov ebx, eax
cmp eax, dword [ebp + 8]
jbe 0x270127e3
mov esi, 0x10000
lea eax, [ebx - 0x70000000]
cmp eax, 0x10000000
ja 0x27012785
sub ebx, 0x8000000
jmp 0x270127de
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x270127e3
cmp dword [ebp - 0xc], esi
jne 0x270127cb
cmp dword [ebp - 0x10], esi
jb 0x270127cb
push 0x40
push 0x3000
push esi
push ebx
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x270127e5
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x270127e3
sub ebx, esi
jmp 0x270127de
mov eax, dword [ebp - 0x18]
add eax, 0xffff0000
movzx ecx, ax
test ecx, ecx
je 0x270127dc
sub eax, ecx
mov ebx, eax
cmp ebx, dword [ebp + 8]
ja 0x27012770
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x2701280b
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.27012414
mov eax, dword [0x270c48d4]
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 8]
pop ecx
pop ecx
mov ecx, dword [0x270c48d0]
test eax, eax
jne 0x27012846
test ecx, ecx
je 0x27012855
mov eax, ecx
mov dword [0x270c48d4], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x27012855
cmp edx, edi
jb 0x27012855
cmp edx, ebx
jbe 0x270128c9
mov eax, ecx
test ecx, ecx
jmp 0x27012873
test eax, eax
je 0x2701286e
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x2701286e
cmp ecx, edi
jb 0x2701286e
cmp ecx, ebx
jbe 0x270128c9
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x270c48d4], eax
jne 0x2701285b
mov eax, esi
push ebx
and eax, 0xffff
sub esi, eax
push edi
push esi
call fcn.270127ea
xor edx, edx
add esp, 0xc
cmp eax, edx
je 0x270128ee
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov ecx, dword [0x270c48d0]
mov dword [eax + 4], ecx
mov dword [0x270c48d4], eax
mov dword [0x270c48d0], eax
lea ecx, [eax + 0xffa8]
mov esi, 0x38b
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
dec esi
jne 0x270128bb
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, edi
jb 0x270128ee
cmp esi, ebx
ja 0x270128ee
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x270128f0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x27012916
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov eax, dword [0x270c48d0]
push esi
mov esi, 0x270c48d0
test eax, eax
je 0x2701297d
push ebx
push edi
cmp dword [eax], 0x52727464
jne 0x27012972
lea edi, [eax + 0x10000]
xor ebx, ebx
lea ecx, [eax + 0x88]
mov edx, dword [ecx]
test edx, edx
je 0x2701294b
cmp edx, eax
jb 0x27012972
cmp edx, edi
jae 0x27012972
inc ebx
add ecx, 0x48
cmp ebx, 0x38d
jb 0x2701293d
mov ecx, dword [eax + 4]
push 0x8000
push 0
push eax
mov dword [esi], ecx
call sub.KERNEL32.dll_VirtualFree
and dword [0x270c48d4], 0
jmp 0x27012975
lea esi, [eax + 4]
mov eax, dword [esi]
test eax, eax
jne 0x27012927
pop edi
pop ebx
pop esi
ret

Function at 0x2701297f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [0x270c48e0], edi
je 0x2701299b
cmp dword [ebp + 8], edi
je 0x270129f7
push 0xa
call sub.KERNEL32.dll_Sleep
jmp 0x27012985
push edi
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
push 0x270c48e0
call sub.KERNEL32.dll_InterlockedCompareExchange
test eax, eax
jne 0x2701298d
mov eax, dword [0x270c48d0]
push esi
mov dword [0x270c48f0], edi
mov dword [0x270c48ec], edi
mov dword [0x270c48e8], edi
mov esi, eax
cmp eax, edi
je 0x270129ea
lea eax, [ebp + 8]
push eax
push 0x40
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x270129fe
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x270129ce
xor eax, eax
mov dword [0x270c48e4], eax
pop esi
pop edi
pop ebp
ret 4
mov eax, 0x10dd
jmp 0x270129f2
call sub.KERNEL32.dll_GetLastError
jmp 0x270129ec

Function at 0x27012a05
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x270c48e0], eax
je 0x27012a1e
mov eax, 0x10dd
leave
ret
push ebx
push esi
mov esi, dword [0x270c48f0]
xor ebx, ebx
push edi
cmp esi, ebx
jmp 0x27012a67
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [esi + 0xc]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [esi + 4], ebx
jne 0x27012a59
cmp dword [esi + 0x10], ebx
je 0x27012a59
mov edi, dword [esi + 0x10]
call fcn.270128f5
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
lea esi, [ebp - 4]
call fcn.27014f00
mov esi, edi
cmp edi, ebx
mov dword [ebp - 4], esi
jne 0x27012a2d
mov dword [0x270c48f0], ebx
call fcn.27012674
mov eax, dword [0x270c48ec]
mov esi, eax
cmp eax, ebx
je 0x27012a95
push dword [esi + 4]
call sub.KERNEL32.dll_ResumeThread
mov esi, dword [esi]
cmp esi, ebx
jne 0x27012a82
mov eax, dword [0x270c48ec]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x27012ab0
mov eax, dword [ebp - 4]
mov esi, dword [eax]
lea edi, [ebp - 4]
call fcn.27014f1c
mov dword [ebp - 4], esi
cmp esi, ebx
jne 0x27012a9c
pop edi
pop esi
mov dword [0x270c48ec], ebx
mov dword [0x270c48e0], ebx
xor eax, eax
pop ebx
leave
ret
Function at 0x27012d33
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, eax
mov eax, dword [0x270c48e4]
test eax, eax
jne 0x27012dc8
call sub.KERNEL32.dll_GetCurrentThread
cmp edi, eax
jne 0x27012d54
xor eax, eax
jmp 0x27012dc8
push esi
push 0xc
pop esi
call fcn.27012272
mov esi, eax
test esi, esi
je 0x27012d77
and dword [esi], 0
and dword [esi + 4], 0
and dword [esi + 8], 0
lea eax, [esi - 8]
test eax, eax
jne 0x27012d77
xor esi, esi
mov dword [ebp - 4], esi
test esi, esi
jne 0x27012d83
push 8
pop esi
jmp 0x27012d9d
push edi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x27012dae
call sub.KERNEL32.dll_GetLastError
lea edi, [ebp - 4]
mov esi, eax
call fcn.27014f1c
and dword [0x270c48e8], 0
mov dword [0x270c48e4], esi
mov eax, esi
jmp 0x27012dc7
mov eax, dword [0x270c48ec]
mov dword [esi + 4], edi
mov dword [esi + 8], 1
mov dword [esi], eax
mov dword [0x270c48ec], esi
xor eax, eax
pop esi
pop edi
leave
ret
Function at 0x2701313b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x270c48e0], eax
je 0x27013157
mov eax, 0x10dd
jmp 0x27013249
mov eax, dword [0x270c48e4]
test eax, eax
jne 0x27013249
cmp dword [ebp + 0xc], eax
jne 0x27013171
push 0x57
pop eax
jmp 0x27013249
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x27013181
push 6
pop eax
jmp 0x27013248
cmp dword [esi], 0
jne 0x27013199
push 6
pop eax
mov dword [0x270c48e4], eax
mov dword [0x270c48e8], esi
jmp 0x27013248
push ebx
push edi
call fcn.27014f7c
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x270131ae
push 8
pop edi
jmp 0x2701322a
mov eax, dword [esi]
call fcn.27012359
mov edi, eax
mov eax, dword [ebp + 0xc]
call fcn.27012359
movzx ecx, byte [edi + 0x36]
mov esi, dword [edi + 0x40]
xor edx, edx
sub esi, ecx
cmp ecx, edx
je 0x2701321f
cmp ecx, 0x1e
ja 0x2701321f
cmp dword [edi + 0x44], eax
jne 0x2701321f
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push esi
mov dword [ebp - 4], edx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x270131f5
call sub.KERNEL32.dll_GetLastError
mov edi, eax
jmp 0x2701322a
mov eax, dword [ebp + 8]
mov dword [ebx + 4], 1
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edi
mov dword [ebx + 0xc], esi
mov eax, dword [ebp - 4]
mov dword [ebx + 0x14], eax
mov eax, dword [0x270c48f0]
mov dword [ebx], eax
mov dword [0x270c48f0], ebx
xor eax, eax
jmp 0x27013246
push 9
pop edi
cmp dword [0x270c48d8], edx
jne 0x27013230
mov dword [0x270c48e4], edi
test ebx, ebx
je 0x2701323c
lea esi, [ebp - 8]
call fcn.27014f00
mov eax, dword [ebp + 8]
mov dword [0x270c48e8], eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 8

Function at 0x27013954
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x270ada28
call fcn.2708a1a4
mov esi, ecx
add esi, 0x10000
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
push 0xfffffffffffffffe
pop edi
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
ja 0x2701398d
xor eax, eax
call fcn.2708a1e9
ret
cmp dword [ebp - 0x24], 0x1000
jne 0x270139f5
cmp byte [ebp - 0x20], 1
je 0x270139f5
test dword [ebp - 0x20], 0x100
jne 0x270139f5
and dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x270139f2
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x28]
ja 0x270139f2
cmp eax, 0x40
jb 0x270139f2
add eax, esi
cmp dword [eax], 0x4550
jne 0x270139f2
push 0
call sub.KERNEL32.dll_SetLastError
mov dword [ebp - 4], edi
mov eax, esi
jmp 0x27013987
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
lea esi, [ecx + eax]
jmp 0x27013975
Function at 0x27013a03
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x270ada08
call fcn.2708a1a4
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp - 4], edi
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
ja 0x27013a37
push 0xc1
jmp 0x27013aa5
cmp dword [ebp - 0x24], 0x1000
jne 0x27013a30
cmp byte [ebp - 0x20], 1
je 0x27013a30
test dword [ebp - 0x20], 0x100
jne 0x27013a30
mov ecx, dword [ebp - 0x30]
mov esi, ecx
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x27013a30
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x27013aa0
cmp word [eax + 0x14], di
jne 0x27013a78
push 0xc0
jmp 0x27013aa5
push edi
call sub.KERNEL32.dll_SetLastError
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x27013ab3
push 0xbf
call sub.KERNEL32.dll_SetLastError
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.2708a1e9
ret 4

Function at 0x27013abb
Capabilities:
Parse pe header

Disassembly:
push 0x10
push 0x270ad9e8
call fcn.2708a1a4
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
xor esi, esi
cmp eax, esi
jne 0x27013adc
push esi
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [ebp + 8], eax
mov dword [ebp - 4], esi
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x27013af3
push 0xc1
jmp 0x27013ba5
mov edx, dword [eax + 0x3c]
add edx, eax
cmp dword [edx], 0x4550
je 0x27013b0a
push 0xbf
jmp 0x27013ba5
movzx eax, word [edx + 0x14]
cmp ax, si
je 0x27013ba0
movzx eax, ax
lea eax, [eax + edx + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
movzx eax, word [edx + 6]
cmp dword [ebp - 0x1c], eax
jae 0x27013ba0
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
add eax, ecx
mov edi, 0x270a1e54
mov esi, eax
push 8
pop ecx
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x27013b84
mov esi, dword [eax + 0xc]
xor ecx, ecx
cmp esi, ecx
je 0x27013ba0
cmp dword [eax + 0x10], ecx
je 0x27013ba0
mov eax, dword [ebp + 8]
add esi, eax
mov eax, dword [esi]
cmp eax, 0x40
jb 0x27013ba0
cmp dword [esi + 4], 0x727444
jne 0x27013ba0
cmp dword [esi + 8], ecx
jne 0x27013b73
mov dword [esi + 8], eax
push ecx
call sub.KERNEL32.dll_SetLastError
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x27013bb3
inc dword [ebp - 0x1c]
jmp 0x27013b24
push 0xc0
call sub.KERNEL32.dll_SetLastError
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.2708a1e9
ret 4
Function at 0x27013db6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x270b313c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, 0xf8
push esi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
push 0
push eax
mov dword [ebp - 0x54], eax
call sub.msvcrt.dll_memset
add esp, 0xc
test ebx, ebx
jne 0x27013df1
push 0x57
jmp 0x27013e65
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x70]
push 0x1c
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 0x50]
call sub.KERNEL32.dll_VirtualQueryEx
test eax, eax
je 0x27013e6a
push 0
push 0x40
lea eax, [ebp - 0x4c]
push eax
push ebx
push dword [ebp - 0x50]
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x27013e6a
mov eax, 0x5a4d
cmp word [ebp - 0x4c], ax
jne 0x27013e60
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x64]
ja 0x27013e60
cmp eax, 0x40
jb 0x27013e60
push 0
push esi
mov esi, dword [ebp - 0x54]
push esi
add eax, ebx
push eax
push dword [ebp - 0x50]
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x27013e6a
cmp dword [esi], 0x4550
jne 0x27013e60
mov eax, dword [ebp - 0x10]
add eax, ebx
jmp 0x27013e6c
push 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.27088f70
leave
ret