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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.10056740
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10012c70
push ebx
call fcn.10055db6
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x10104251
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.100063a1
add esp, 8
cmp eax, 0
jne 0x10012ceb
call fcn.1000e6b8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [0x10105bfe]
test ebx, ebx
je 0x10012cae
push ebx
call fcn.10055db6
add esp, 4
pop eax
mov dword [0x10105bfe], eax
mov eax, dword [0x10105bfe]
test eax, eax
je 0x10012cd2
push eax
mov ebx, eax
call fcn.10002d7b
inc eax
push eax
call fcn.10055dbc
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10012ce5
push ebx
call fcn.10055db6
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
nop
nop
cmp dword [ebp - 8], esp
je 0x10012d26
push 0x202
push 0x40359f3
push 6
call fcn.10055dda
add esp, 0xc
push VariantClear
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10012d39
mov eax, 0x10104251
push eax
push 1
mov ebx, 0x170
call fcn.10056780
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x10012d57
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10012d68
push ebx
call fcn.10055db6
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10012d6f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.10056740
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10012db4
push ebx
call fcn.10055db6
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0xff
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop
nop
cmp dword [ebp - 8], esp
je 0x10012de9
push 0x36
push 0x40359f4
push 6
call fcn.10055dda
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x10012e05
push eax
mov ebx, eax
call fcn.10002d7b
inc eax
push eax
call fcn.10055dbc
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10012e0a
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10012e1b
push ebx
call fcn.10055db6
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x10013183
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.100131e5
test eax, eax
je 0x100131c6
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x100131c6
cmp word [eax], 0x5a4d
jne 0x100131c6
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x100131c6
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.100132b7
mov eax, dword [ebp + 8]
jmp 0x100131df
mov esp, ebp
pop ebp
ret 4

Function at 0x100131e5
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x10013298
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x100134a7
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x100134c9
mov eax, 0xfffffffd
jmp 0x100135a9
mov ebx, dword [0x10105bfa]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x10013577
mov ebx, dword [0x10105bfa]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x10013518
mov ebx, dword [0x10105bfa]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x10013518
mov eax, 1
jmp 0x1001351d
mov eax, 0
test eax, eax
je 0x10013549
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x10013532
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x10105bfa]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x1001359f
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x100135a9
mov esp, ebp
pop ebp
ret 4

Function at 0x1001725b
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ebx, dword [0x10105c26]
push ebx
call fcn.10055db6
add esp, 4
mov eax, 0x10104252
mov dword [0x10105c26], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
push ebx
call fcn.10055db6
add esp, 4
mov eax, 0x10104252
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebp - 4], esp
push 0
push 0x100173b6
xor eax, eax
call dword [sym.imp.USER32.dll_EnumWindows]
nop
nop
cmp dword [ebp - 4], esp
je 0x100172c8
push 0x34
push 0x4035a14
push 6
call fcn.10055dda
add esp, 0xc
mov eax, dword [0x10105c26]
push eax
push eax
mov ebx, eax
call fcn.10001104
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.10055dbc
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
push ebx
call fcn.10055db6
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov ebx, dword [0x10105c26]
call fcn.10001b1f
jmp 0x1001730f
mov esp, ebp
pop ebp
ret 8
Function at 0x100174d2
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
lea eax, [ebp + 8]
push eax
push 0x100175e8
xor eax, eax
call dword [sym.imp.USER32.dll_EnumWindows]
nop
nop
cmp dword [ebp - 4], esp
je 0x1001750d
push 0
push 0x4035a16
push 6
call fcn.10055dda
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x10017515
mov esp, ebp
pop ebp
ret 4

Function at 0x10022dd7
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
nop
nop
cmp dword [ebp - 4], esp
je 0x10022e0c
push 0x25
push 0x4035e56
push 6
call fcn.10055dda
add esp, 0xc
jmp 0x10022e11
mov esp, ebp
pop ebp
ret 4

Function at 0x10022f9c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
push 0x18
call fcn.10055dbc
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 6
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 1
mov eax, 0x1010427c
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.1000643e
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10022ffd
push ebx
call fcn.10055db6
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
cmp dword [0x10105c9a], 0
jne 0x10023021
cmp dword [ebp - 4], 0
je 0x10023021
mov eax, 1
jmp 0x10023026
mov eax, 0
test eax, eax
je 0x1002309c
mov eax, 0x1010497f
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.1000bafd
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10023052
push ebx
call fcn.10055db6
add esp, 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call fcn.1000bd78
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10023071
push ebx
call fcn.10055db6
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [0x10105c9a], eax
push reloc.oleaut32.dll_SysStringLen
push 0
push 0x10024c3d
push 1
mov ebx, 0x9dc
call fcn.100567f0
add esp, 0x10
mov dword [0x10105c9e], eax
push 1
lea eax, [ebp - 8]
push eax
push 1
push 0
push 1
push 0
push dword [0x10105c9e]
push dword [0x10105c9a]
call fcn.10023184
mov dword [ebp - 0x14], esp
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10023106
push 0x22e
push 0x4035e59
push 6
call fcn.10055dda
add esp, 0xc
mov dword [ebp - 0xc], eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.100249f4
cmp dword [ebp - 0xc], 0
je 0x1002315f
push 2
push dword [ebp - 0xc]
call fcn.100205c2
cmp dword [ebp + 0x1c], 0
mov eax, 0
sete al
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10023156
push 1
push 0xffffffff
push dword [ebp + 0x18]
push dword [ebp - 0xc]
call fcn.10024a81
lea eax, [ebp - 0xc]
push eax
call fcn.10021709
cmp dword [ebp - 0x10], 0
mov eax, 0
setne al
jmp 0x10023170
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.10055db6
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1002489a
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x10105bb6], 1
jne 0x10024901
cmp dword [0x10105bc6], 1
jne 0x100248bd
mov dword [ebp - 4], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
nop
nop
cmp dword [ebp - 4], esp
je 0x100248e9
push 0xbc
push 0x4035e36
push 6
call fcn.10055dda
add esp, 0xc
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp + 0xc]
cmp dword [ebx], 0
mov eax, 0
setne al
jmp 0x10024975
cmp dword [0x10105ca6], 0
jne 0x10024956
mov eax, 0x101049bd
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.100026fa
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10024932
push ebx
call fcn.10055db6
add esp, 4
lea eax, [ebp - 8]
push eax
call fcn.100029f1
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1002494e
push ebx
call fcn.10055db6
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x10105ca6], eax
push dword [0x10105ca6]
call fcn.10006c8c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
mov eax, 0
sete al
jmp 0x10024975
mov esp, ebp
pop ebp
ret 8

Function at 0x10056f90
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10056ff9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.10056460
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x100579c0
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x114
test eax, eax
push esi
jne 0x100579e5
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x10057a4f
jmp 0x10057a05
mov esi, dword [esp + 0x120]
push esi
call dword [0x10106324]
add esp, 4
test eax, eax
je 0x10057a4f
mov cl, byte [esi]
mov byte [esp + 0x15], 0x3a
mov byte [esp + 0x14], cl
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov byte [esp + 0x2a], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x10057a4f
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
imul edx, dword [esp + 4]
push 0x400
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
pop esi
add esp, 0x114
ret
or eax, 0xffffffff
pop esi
add esp, 0x114
ret

Function at 0x10057a60
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x10057a7e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10057a73
pop esi
ret
Function at 0x10058d40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x10058d61
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x10058dbb
inc edi
cmp edi, esi
jl 0x10058d55
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x10058df0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x10058daa
cmp byte [eax], bl
je 0x10058dc5
cmp byte [eax + 1], bl
je 0x10058dce
cmp byte [eax + 2], bl
je 0x10058dd8
cmp byte [eax + 3], bl
je 0x10058de4
add eax, 4
cmp eax, edi
jb 0x10058d81
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x1005b3cc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], esp
mov eax, dword [0x1027214f]
push eax
push 0x24
call fcn.100da659
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call dword [sym.imp.kernel32.dll_GetNativeSystemInfo]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x1005b481
push 0
push 0x4010cd5
push 6
call fcn.100da665
add esp, 0xc
mov ebx, dword [ebp - 8]
push ebx
mov edi, dword [ebp - 0xc]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.100da65f
add esp, 4
mov ebx, dword [0x1027214f]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp word [ebx], 6
je 0x1005b53c
mov ebx, dword [0x1027214f]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp word [ebx], 9
je 0x1005b53c
mov ebx, dword [0x1027214f]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp word [ebx], 0xa
je 0x1005b53c
xor eax, eax
jmp 0x1005b541
mov eax, 1
mov dword [0x10272153], eax
mov eax, dword [0x10272153]
jmp 0x1005b550
mov esp, ebp
pop ebp
ret

Function at 0x1005c2d7
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x1005c2e1
add dword [esp], 5
retf

Function at 0x1005ca6e
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x1005ca78
add dword [esp], 5
retf
Function at 0x1005cb03
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor eax, eax
cmp word [ecx], 0x5a4d
jne 0x1005cb83
dec esp
arpl word [ecx + 0x3c], ax
dec ecx
add eax, ecx
inc ecx
cmp dword [eax], 0x4550
jne 0x1005cb83
inc ebp
mov eax, dword [eax + 0x88]
inc ebp
test eax, eax
je 0x1005cb83
dec edx
lea edi, [ecx + eax]
inc esp
mov eax, dword [edi + 0x20]
mov esi, dword [edi + 0x14]
test esi, esi
dec esi
lea edx, [ecx + eax]
je 0x1005cb83
movzx ebx, byte [edx]
inc ebp
xor ebx, ebx
inc ebp
mov ecx, dword [edx]
dec ecx
add ecx, ecx
inc ecx
cmp byte [ecx], bl
jne 0x1005cb74
test bl, bl
je 0x1005cb87
dec eax
mov eax, edx
jmp 0x1005cb60
inc ebp
test al, al
je 0x1005cb87
dec eax
add eax, 1
dec ecx
mov eax, eax
dec ecx
sub eax, edx
inc edi
movzx eax, byte [eax + ecx]
inc esp
cmp al, byte [eax]
je 0x1005cb5b
inc ecx
add ebx, 1
dec ecx
add edx, 4
inc ecx
cmp ebx, esi
jne 0x1005cb47
xor eax, eax
pop ebx
pop esi
pop edi
ret
inc esp
cmp esi, ebx
je 0x1005cb81
mov edx, dword [edi + 0x24]
dec esi
lea eax, [ecx + ebx*2]
mov eax, dword [edi + 0x1c]
inc ecx
movzx edx, word [eax + edx]
dec eax
lea edx, [ecx + edx*4]
mov eax, dword [edx + eax]
dec eax
add eax, ecx
pop ebx
pop esi
pop edi
ret

Function at 0x1005cbf4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x1005cc2c
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x1005cc1a
mov al, 1
jmp 0x1005cc8b
cmp dword [ebx + 0x54], ecx
jne 0x1005cc23
mov al, 2
jmp 0x1005cc8b
cmp dword [ebx + 0x7c], ecx
jne 0x1005cc8b
mov al, 3
jmp 0x1005cc8b
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x1005cc41
mov al, 4
jmp 0x1005cc8b
cmp ecx, 5
jne 0x1005cc61
cmp ebx, 0
jne 0x1005cc4f
mov al, 5
jmp 0x1005cc8b
cmp ebx, 1
jne 0x1005cc58
mov al, 6
jmp 0x1005cc8b
cmp ebx, 2
jne 0x1005cc61
mov al, 7
jmp 0x1005cc8b
cmp ecx, 6
jne 0x1005cc89
cmp ebx, 0
jne 0x1005cc6f
mov al, 8
jmp 0x1005cc8b
cmp ebx, 1
jne 0x1005cc76
mov al, 9
cmp ebx, 2
jne 0x1005cc7d
mov al, 0xa
cmp ebx, 3
jne 0x1005cc84
mov al, 0xb
cmp ebx, 4
jne 0x1005cc8b
mov al, 0xc
pop ebx
leave
ret

Function at 0x1005cc9c
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x1005ccc8
add dword [esp], 5
retf

Function at 0x1005cd5b
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x1005cd65
add dword [esp], 5
retf

Function at 0x1005d328
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x1005d332
add dword [esp], 5
retf

Function at 0x1005df94
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x1005df9e
add dword [esp], 5
retf
Function at 0x1005f344
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x1005f37c
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x1005f36a
mov al, 1
jmp 0x1005f3db
cmp dword [ebx + 0x54], ecx
jne 0x1005f373
mov al, 2
jmp 0x1005f3db
cmp dword [ebx + 0x7c], ecx
jne 0x1005f3db
mov al, 3
jmp 0x1005f3db
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x1005f391
mov al, 4
jmp 0x1005f3db
cmp ecx, 5
jne 0x1005f3b1
cmp ebx, 0
jne 0x1005f39f
mov al, 5
jmp 0x1005f3db
cmp ebx, 1
jne 0x1005f3a8
mov al, 6
jmp 0x1005f3db
cmp ebx, 2
jne 0x1005f3b1
mov al, 7
jmp 0x1005f3db
cmp ecx, 6
jne 0x1005f3d9
cmp ebx, 0
jne 0x1005f3bf
mov al, 8
jmp 0x1005f3db
cmp ebx, 1
jne 0x1005f3c6
mov al, 9
cmp ebx, 2
jne 0x1005f3cd
mov al, 0xa
cmp ebx, 3
jne 0x1005f3d4
mov al, 0xb
cmp ebx, 4
jne 0x1005f3db
mov al, 0xc
pop ebx
leave
ret
Function at 0x100689a7
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x100689c9
mov eax, 0xfffffffd
jmp 0x10068aa9
mov ebx, dword [0x102721a7]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x10068a77
mov ebx, dword [0x102721a7]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x10068a18
mov ebx, dword [0x102721a7]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x10068a18
mov eax, 1
jmp 0x10068a1d
mov eax, 0
test eax, eax
je 0x10068a49
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x10068a32
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x102721a7]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x10068a9f
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x10068aa9
mov esp, ebp
pop ebp
ret 4

Function at 0x10068c26
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x10068cd9
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x10069244
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.100db440
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10069289
push ebx
call fcn.100da65f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x10106579
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.1005d537
add esp, 8
cmp eax, 0
jne 0x10069304
call fcn.10069388
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [0x102721af]
test ebx, ebx
je 0x100692c7
push ebx
call fcn.100da65f
add esp, 4
pop eax
mov dword [0x102721af], eax
mov eax, dword [0x102721af]
test eax, eax
je 0x100692eb
push eax
mov ebx, eax
call fcn.1005a0c3
inc eax
push eax
call fcn.100da659
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x100692fe
push ebx
call fcn.100da65f
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.kernel32.dll_GetTempFileNameA_1]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x1006933f
push 0x202
push 0x40203f1
push 6
call fcn.100da665
add esp, 0xc
push VariantClear
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10069352
mov eax, 0x10106579
push eax
push 1
mov ebx, 0x170
call fcn.100dced0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x10069370
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10069381
push ebx
call fcn.100da65f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10069388
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.100db440
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100693cd
push ebx
call fcn.100da65f
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0xff
call dword [sym.imp.kernel32.dll_GetTempPathA_1]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x10069402
push 0x36
push 0x4020407
push 6
call fcn.100da665
add esp, 0xc
push VariantClear
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10069415
mov eax, 0x10106579
push eax
push 1
mov ebx, 0x170
call fcn.100dced0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x10069433
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10069444
push ebx
call fcn.100da65f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret