joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10060b60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
jne 0x10060bef
cmp dword [esi + 4], 0xffffffff
jne 0x10060bef
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.10070c0b
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
pop ecx
je 0x10060bbc
cmp ax, 0x2f
je 0x10060bbc
push edi
call fcn.10070c0b
mov ecx, 0x103
sub ecx, eax
push ecx
push 0x100d4854
push edi
call fcn.10077d41
add esp, 0x10
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.1005fcfc
test eax, eax
pop ecx
pop ecx
pop edi
jne 0x10060bd4
mov eax, dword [ebp + 8]
jmp 0x10060bf4
push dword [ebp + 0xc]
call fcn.10060115
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x10060bf4
mov eax, 0x1000000
pop ebp
ret 8

Function at 0x10061151
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100e93e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
je 0x10061185
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10061185
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x10061247
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x100611a4
cmp cx, 0x5c
jne 0x100611a6
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x10061198
cmp eax, esi
push edi
je 0x100611e4
sub eax, esi
sar eax, 1
add eax, eax
mov edi, eax
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.10073920
and word [ebp + edi - 0x414], 0
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.10061151
add esp, 0x14
and word [ebp - 0x20c], 0
test ebx, ebx
mov edi, 0x103
je 0x10061206
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10073f13
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.10070c0b
sub edi, eax
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10077d41
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop edi
jne 0x10061247
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10070c21
leave
ret
Function at 0x10062f95
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0x14
mov eax, 0x100bf0e0
call fcn.10078d03
mov edi, ecx
and dword [ebp - 0x18], 0
lea esi, [ebp - 0x10]
call fcn.10062a95
and dword [ebp - 4], 0
mov eax, dword [0x10104298]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x100630d7
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
movzx eax, word [edi + eax*2 - 2]
cmp ax, 0x5c
mov esi, 0x100d4854
je 0x10062ff9
push esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x10]
call fcn.10062de6
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
test eax, eax
jl 0x1006300d
push esi
push edi
call fcn.100713c1
test eax, eax
pop ecx
pop ecx
jne 0x10063012
or eax, 0xffffffff
jmp 0x10063016
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x100630d7
lea ecx, [eax + 1]
lea eax, [ebp - 0x1c]
push eax
lea ebx, [ebp - 0x10]
mov dword [ebp - 0x20], ecx
call fcn.10062b21
mov byte [ebp - 4], 2
mov eax, dword [eax]
push eax
mov eax, dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.10062de6
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.10062ceb
mov ebx, dword [ebp - 0x20]
test ebx, ebx
mov esi, dword [edi - 8]
jle 0x10063091
test esi, esi
jle 0x10063091
cmp ebx, esi
jle 0x10063063
mov ebx, esi
lea eax, [ebp - 0x10]
call fcn.10062e6d
mov edi, dword [ebp - 0x10]
mov eax, esi
sub eax, ebx
lea eax, [eax + eax + 2]
push eax
lea eax, [edi + ebx*2]
push eax
mov eax, dword [edi - 4]
lea eax, [eax + eax + 2]
push eax
push edi
call fcn.100249fb
add esp, 0x10
sub esi, ebx
mov dword [edi - 8], esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
jne 0x100630b0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100630de
cmp dword [edi - 8], 0
jl 0x100630c7
push 0x100d4854
push edi
call fcn.100713c1
test eax, eax
pop ecx
pop ecx
jne 0x100630cb
mov eax, esi
jmp 0x100630cf
sub eax, edi
sar eax, 1
cmp eax, esi
jne 0x1006301f
mov dword [ebp - 0x18], 1
lea esi, [ebp - 0x14]
call fcn.10062ceb
lea esi, [ebp - 0x10]
call fcn.10062ceb
mov eax, dword [ebp - 0x18]
call fcn.10078da2
ret
Function at 0x10063512
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0x60
mov eax, 0x100c06c0
call fcn.10078d6c
mov esi, ecx
lea ebx, [ebp - 0x48]
mov dword [ebp - 0x50], esi
mov byte [ebp - 0x49], 0
call fcn.1006a57e
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.100016d3
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.100018a0
test al, al
je 0x10063570
mov eax, ebx
push eax
lea ecx, [ebp - 0x6c]
call fcn.1006a2c4
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.1000177f
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.1000176a
jmp 0x10063579
push esi
lea ecx, [ebp - 0x2c]
call fcn.1000177f
lea esi, [ebp - 0x2c]
call fcn.1006a377
push 0x100d6d5c
lea ecx, [ebp - 0x6c]
call fcn.100016fc
lea ebx, [ebp - 0x6c]
mov edi, esi
mov byte [ebp - 4], 3
call fcn.1006a48a
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1000176a
mov ecx, esi
call fcn.10004e3f
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x50]
je 0x100635c8
and dword [eax + 0x1c], 0
jmp 0x10063689
lea esi, [ebp - 0x48]
mov dword [eax + 0x1c], 1
call fcn.1006a1da
push 0x100d6d74
lea ecx, [ebp - 0x6c]
call fcn.100016fc
lea esi, [ebp - 0x6c]
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.1006a416
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.1000176a
mov ecx, edi
call fcn.10004e3f
push eax
call ebx
cmp eax, 0xffffffff
je 0x10063620
mov ecx, dword [ebp - 0x50]
mov eax, edi
push eax
add ecx, 0x80
call fcn.1000177f
jmp 0x10063685
push str.SKIN
push str.QMUIRES.dat
push dword [0x10105020]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10063689
push esi
push dword [0x10105020]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10063689
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10063689
push esi
push dword [0x10105020]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp - 0x50]
mov edi, eax
add esi, 0xb0
mov eax, esi
call fcn.10067067
push edi
push ebx
push dword [esi]
call fcn.10073920
add esp, 0xc
mov byte [ebp - 0x49], 1
lea ecx, [ebp - 0x2c]
call fcn.1000176a
lea ecx, [ebp - 0x48]
call fcn.1000176a
mov al, byte [ebp - 0x49]
call fcn.10078db6
ret
Function at 0x10063ac4
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x50
mov eax, 0x100c0673
call fcn.10078d6c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x2d], 0
call fcn.100018a0
test al, al
jne 0x10063be6
push esi
lea ecx, [ebp - 0x2c]
call fcn.10001732
and dword [ebp - 4], 0
lea esi, [ebp - 0x2c]
call fcn.1006a377
call fcn.10020929
mov ecx, edi
mov ebx, eax
call fcn.100014a7
mov edi, eax
test edi, edi
je 0x10063b2c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x10063b30
xor eax, eax
jmp 0x10063b43
lea eax, [esi + esi]
call fcn.10082da0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.10034966
push eax
lea ecx, [ebp - 0x5c]
call fcn.100016fc
lea ebx, [ebp - 0x5c]
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1006a48a
xor ebx, ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.1000176a
mov ecx, edi
call fcn.10004e3f
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x38], eax
je 0x10063bde
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x10063bd5
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x34], ebx
call fcn.1006ffa8
mov edi, dword [ebp - 0x3c]
pop ecx
push ebx
lea ecx, [ebp - 0x34]
push ecx
push esi
push eax
push dword [ebp - 0x38]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10063bd5
cmp dword [ebp - 0x34], esi
jne 0x10063bd5
mov eax, dword [ebp - 0x40]
mov dword [eax], esi
mov eax, dword [edi]
mov byte [esi + eax], bl
mov byte [ebp - 0x2d], 1
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.1000176a
mov al, byte [ebp - 0x2d]
lea esp, [ebp - 0x6c]
call fcn.10078db6
ret 8
Function at 0x10064aef
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x100e93e0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 8
mov eax, 0x100bfc8b
call fcn.10078d03
mov eax, dword [ebp + 0x41c]
mov esi, 0x206
xor edi, edi
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x20a]
push edi
push eax
mov word [ebp + 0x208], di
call fcn.100738a0
push esi
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call fcn.100738a0
add esp, 0x18
push edi
push 0x1a
lea eax, [ebp + 0x208]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.kingsoftkclear_temp
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [0x10104298]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x208]
shr eax, 0x10
test ax, ax
lea eax, [ebp + 0x208]
jne 0x10064b97
movzx eax, ax
push eax
lea ecx, [ebp - 0x10]
call fcn.10062b93
jmp 0x10064bcc
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, edi
je 0x10064bcc
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.10062d13
test eax, eax
je 0x10064bcc
lea eax, [esi + esi]
push eax
lea ecx, [ebp + 0x208]
push ecx
add eax, 2
push eax
push dword [ebp - 0x10]
call fcn.10020b38
add esp, 0x10
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.10062f95
lea esi, [ebp - 0x10]
mov ebx, eax
call fcn.10062ceb
cmp ebx, edi
je 0x10064c41
lea eax, [ebp]
push eax
push edi
push 0x100d6e7c
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp]
push 0x100d6e84
push eax
call fcn.10076478
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x10064c41
push esi
push dword [ebp + 0x420]
push 1
push dword [ebp - 0x14]
call fcn.1007663a
push esi
call fcn.100769f3
add esp, 0x14
push 0x10
push 0x20
push 0x20
push 1
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.10070c21
add ebp, 0x414
leave
ret

Function at 0x100690e2
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [esp + 4]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 4]
ret
Function at 0x1006c6f0
Capabilities:
Parse pe header

Disassembly:
cmp edi, 0x40
jae 0x1006c6f8
xor eax, eax
ret
cmp word [ecx], 0x5a4d
jne 0x1006c6f5
mov eax, dword [ecx + 0x3c]
lea edx, [eax + 0xf8]
cmp edi, edx
jb 0x1006c6f5
cmp dword [eax + ecx], 0x4550
jne 0x1006c6f5
test byte [eax + ecx + 0x16], 2
je 0x1006c6f5
cmp word [eax + ecx + 0x14], 0xe0
jne 0x1006c6f5
push esi
lea esi, [eax + ecx + 0xf8]
movzx eax, word [eax + ecx + 6]
xor edx, edx
test eax, eax
jle 0x1006c753
lea ecx, [esi + 0x10]
jmp 0x1006c740
mov esi, dword [ecx + 4]
add esi, dword [ecx]
cmp esi, edi
ja 0x1006c75a
add edx, 1
add ecx, 0x28
cmp edx, eax
jl 0x1006c740
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1006d7a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100dc580
push 0x10078280
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x100e93e0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov dword [ebp - 0x80], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], ecx
test eax, eax
mov esi, 0x10000
je 0x1006d7f0
lea esi, [eax + 0x10000]
xor eax, eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ecx, [ecx]
push 0x1c
lea edx, [ebp - 0x7c]
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x1006d83e
mov eax, dword [ebp - 0x70]
mov ecx, eax
and ecx, 0xfff
cmp ecx, 0xfff
je 0x1006d83e
mov edx, dword [ebp - 0x7c]
add eax, edx
cmp eax, esi
jae 0x1006d85e
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10070c21
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x6c], 0x1000
jne 0x1006d933
mov eax, dword [ebp - 0x68]
cmp al, 1
je 0x1006d933
test eax, 0x100
jne 0x1006d933
mov dword [ebp - 4], 0
push 0
push 0x40
lea eax, [ebp - 0x5c]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x1006d8ad
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006d810
cmp word [ebp - 0x5c], 0x5a4d
jne 0x1006d898
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x70]
ja 0x1006d898
cmp eax, 0x40
jb 0x1006d898
push 0
push 0xf8
mov ecx, dword [ebp - 0x60]
push ecx
add eax, esi
push eax
push edi
call ebx
test eax, eax
jne 0x1006d8ec
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006d810
mov edx, dword [ebp - 0x60]
cmp dword [edx], 0x4550
je 0x1006d90c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006d810
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x1006d840
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006d810
Function at 0x1006e5e0
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
mov ecx, dword [esp + 0x30]
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x34]
mov eax, ebx
or eax, 4
test ecx, ecx
jne 0x1006e5fb
mov ecx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
call ecx
test eax, eax
je 0x1006e663
mov ecx, dword [esp + 0x48]
xor eax, eax
test ecx, ecx
je 0x1006e642
mov dword [esp + 4], ecx
mov eax, 1
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push edx
call fcn.1006e290
test eax, eax
jne 0x1006e66c
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
pop ebx
add esp, 0x18
ret 0x30
mov eax, dword [esp + 0x44]
test eax, eax
mov ecx, dword [esp + 0x10]
je 0x1006e68f
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], edx
test bl, 4
jne 0x1006e69b
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop ebx
add esp, 0x18
ret 0x30

Function at 0x1006e6b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100dc5a0
push 0x10078280
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100e93e0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp word [ecx], 0x5a4d
jne 0x1006e74f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1006e74f
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x1006e74f
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x1006e74f
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1006e880
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x101042c8]
test esi, esi
je 0x1006e8aa
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x1006e893
pop edi
pop esi
pop ecx
ret
Function at 0x1006e930
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.1006e910
mov esi, eax
cmp esi, dword [esp + 0x2c]
jae 0x1006e9da
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x1006e967
mov esi, 0x80010000
jmp 0x1006e9d0
xor eax, eax
push 0x1c
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call ebx
test eax, eax
je 0x1006e9da
cmp dword [esp + 0x1c], 0x10000
mov eax, dword [esp + 0x18]
jne 0x1006e9c3
cmp eax, 0x10000
jb 0x1006e9c3
push 0x40
push 0x3000
push 0x10000
push esi
call edi
test eax, eax
jne 0x1006e9dc
add esi, 0x10000
jmp 0x1006e9d0
mov edx, dword [esp + 0xc]
add eax, edx
call fcn.1006e910
mov esi, eax
cmp esi, dword [esp + 0x2c]
jb 0x1006e953
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x1006eaa0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
lea edi, [esi - 0x7ff80000]
ja 0x1006eab8
mov edi, 0x10000
cmp esi, 0x80000000
lea ebx, [esi + 0x7ff80000]
jb 0x1006eacb
mov ebx, 0xfff80000
mov eax, dword [0x101042cc]
test eax, eax
mov edx, dword [0x101042c8]
jne 0x1006eae5
test edx, edx
je 0x1006eaf8
mov eax, edx
mov dword [0x101042cc], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1006eaf8
cmp ecx, edi
jb 0x1006eaf8
cmp ecx, ebx
jbe 0x1006ebfd
test edx, edx
mov eax, edx
mov dword [0x101042cc], eax
je 0x1006eb26
test eax, eax
je 0x1006eb1a
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1006eb1a
cmp ecx, edi
jb 0x1006eb1a
cmp ecx, ebx
jbe 0x1006ebf8
mov eax, dword [eax + 4]
test eax, eax
jne 0x1006eb07
mov dword [0x101042cc], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x1006eb50
lea eax, [esi - 0x40000000]
push edi
call fcn.1006e9f0
add esp, 4
test eax, eax
jne 0x1006ebb9
cmp esi, 0x40000000
jae 0x1006eb65
push ebx
lea eax, [esi + 0x40000000]
call fcn.1006e930
add esp, 4
test eax, eax
jne 0x1006ebb9
cmp esi, 0x40000000
jbe 0x1006eb86
push esi
lea eax, [esi - 0x40000000]
call fcn.1006e930
add esp, 4
test eax, eax
jne 0x1006ebb9
cmp esi, 0x40000000
jae 0x1006eb9b
lea eax, [esi + 0x40000000]
push esi
call fcn.1006e9f0
add esp, 4
test eax, eax
jne 0x1006ebb9
push edi
mov eax, esi
call fcn.1006e9f0
add esp, 4
test eax, eax
jne 0x1006ebb9
push ebx
mov eax, esi
call fcn.1006e930
add esp, 4
test eax, eax
je 0x1006ec24
mov dword [eax], 0x52727464
mov dword [eax + 8], 0
mov ecx, dword [0x101042c8]
mov dword [eax + 4], ecx
mov dword [0x101042cc], eax
mov dword [0x101042c8], eax
xor edx, edx
lea ecx, [eax + 0xffa8]
mov esi, 0x38b
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
sub esi, 1
jne 0x1006ebe6
mov dword [eax + 8], edx
jmp 0x1006ebfd
mov dword [0x101042cc], eax
mov esi, dword [eax + 8]
cmp esi, edi
jb 0x1006ec24
cmp esi, ebx
ja 0x1006ec24
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call fcn.100738a0
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x1006ec60
Capabilities:
Hook routines via microsoft detours

Disassembly:
cmp dword [esi], 0x52727464
je 0x1006ec6b
xor eax, eax
ret
push edi
lea edi, [esi + 0x10000]
xor ecx, ecx
lea edx, [esi + 0x88]
lea ebx, [ebx]
mov eax, dword [edx]
test eax, eax
je 0x1006ec8e
cmp eax, esi
jb 0x1006eca3
cmp eax, edi
jae 0x1006eca3
add ecx, 1
add edx, 0x48
cmp ecx, 0x38d
jb 0x1006ec80
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x1006ed70
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101042d8], eax
je 0x1006ed86
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x101042e8]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x1006eddc
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [esp]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x36]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
cmp dword [esi + 4], ebp
jne 0x1006edcb
mov edi, dword [esi + 0x10]
cmp edi, ebp
je 0x1006edcb
call fcn.1006ec30
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.10070c30
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1006eda0
mov dword [0x101042e8], ebp
call fcn.1006e8b0
mov esi, dword [0x101042e4]
cmp esi, ebp
je 0x1006ee0e
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call fcn.10070c30
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1006edf7
pop edi
pop esi
mov dword [0x101042e4], ebp
mov dword [0x101042d8], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1006f140
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x101042dc]
test eax, eax
jne 0x1006f1bc
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x1006f15e
xor eax, eax
pop edi
ret 4
push esi
push 8
call fcn.10070967
mov esi, eax
add esp, 4
test esi, esi
jne 0x1006f174
lea edi, [eax + 8]
jmp 0x1006f191
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1006f1a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.10070c30
add esp, 4
pop esi
mov dword [0x101042dc], edi
mov eax, edi
mov dword [0x101042e0], 0
pop edi
ret 4
mov eax, dword [0x101042e4]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x101042e4], esi
pop esi
xor eax, eax
pop edi
ret 4
Function at 0x10070c21
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100e93e0]
jne 0x10070c2b
repz ret
jmp fcn.1007caec