joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f58c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4ebcc8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46f5cf
cmp word [esi], dx
jne 0x46f5cf
or byte [edi + eax + 0x28], 4
jmp 0x46f5d4
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x46f727
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x46f707
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46f616
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46f64c
cmp eax, edx
jae 0x46f658
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x46f5ee
jmp 0x46f727
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46f703
cmp dword [ebp - 0x14], 0
je 0x46f703
mov eax, dword [ebx*4 + 0x4ebcc8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46f6db
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46f6a4
mov word [esi], cx
jmp 0x46f6d7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ebcc8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4ebcc8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ebcc8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46f727
pop ebx
cmp word [ebp - 4], bx
jne 0x46f6ec
cmp esi, dword [ebp + 0xc]
jne 0x46f6ec
mov word [esi], bx
jmp 0x46f724
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004702d5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46f727
push 0xd
jmp 0x46f720
mov ecx, dword [ebx*4 + 0x4ebcc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46f71e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46f727
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x440063
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x440087
cmp dword [edi + 0x54], 0
jne 0x440087
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00438e9f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call main
push ebx
mov esi, eax
call dword [sym.imp.kernel32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x445157
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x497d50]
jne 0x445161
repz ret
jmp fcn.0044cc7d

Function at 0x459e2f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x459e3e
pop dword [ebp - 0x20]
mov eax, 0xff0737d9
sub eax, 0xfec1999b
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x47067
push 0
mov eax, 0xa8d816d2
add eax, 0x576e0cc2
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x4dc3
xor edi, edi
add edi, eax
mov esi, 0x4ff800
add esi, dword [ebp - 0x20]
mov ebx, 0x5d99e75
mov dword [ebp - 4], 0xe1b82ca1
mov edx, dword [esi]
xor dword [ebp - 0x1c], ebx
add edx, ebx
add dword [ebp - 0x14], 0x4da9b264
mov dword [edi], edx
xor dword [ebp - 0x18], 0x6987448c
add edi, 4
add esi, 0xfb92a195
add esi, 0x46d5e6f
loop 0x459e8d
add eax, 0xf54d2350
sub eax, 0xf54bf971
xor ebx, ebx
add ebx, eax
add eax, 0xb4e988d9
add eax, 0x4b16772c
mov ecx, 0x2181cb72
sub ecx, 0x2141cb72
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x10017fa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x10018064
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100a72f2
add esp, 4
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax + 1]
shl eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10017ff2
xor eax, eax
jmp 0x10018067
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2 - 2]
cmp edx, 0x5c
je 0x10018028
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov word [ecx + eax*2], 0x5c
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 0
jmp 0x1001803a
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100a72f2
add esp, 4
cmp dword [ebp - 4], eax
jae 0x10018064
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov cx, word [esi + ecx*2]
mov word [eax + edx*2], cx
jmp 0x10018031
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10023280
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011c4f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov dword [edi], 0
push 0
mov dword [esi], 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
push edi
push 0x10125620
push 1
push 0
push 0x101256f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x10023396
mov edi, dword [edi]
test edi, edi
je 0x10023396
mov eax, dword [edi]
push ebx
push ecx
lea ecx, [ebp - 0x10]
mov ebx, dword [eax + 0xc]
call fcn.100222a0
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x10023313
mov eax, dword [eax]
jmp 0x10023315
xor eax, eax
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push edi
call ebx
mov edi, dword [ebp - 0x10]
mov ebx, eax
test edi, edi
je 0x10023376
lea ecx, [edi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10023376
test edi, edi
je 0x10023376
mov eax, dword [edi]
test eax, eax
je 0x10023354
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x1002336b
push eax
call fcn.1007307c
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.1007306e
add esp, 8
test ebx, ebx
pop ebx
js 0x10023396
mov eax, dword [esi]
test eax, eax
je 0x10023396
push 0
push 0
push 3
push 3
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x1003e230
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011d740
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.1003e9f0
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov word [esi + 0xc], 0
push dword [ecx]
lea ecx, [esi + 0x10]
call fcn.1001cdf0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003f390
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
mov dword [esi], vtable.KKRt::GMFileMappingEx.0
cmp eax, 0xffffffff
je 0x1003f3af
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0xffffffff
mov ecx, dword [esi + 0x2c]
cmp ecx, 0xffffffff
je 0x1003f3d1
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x1003f3c2
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esi + 0x2c], 0xffffffff
mov ecx, dword [esi + 0x24]
cmp ecx, 8
jb 0x1003f407
mov eax, dword [esi + 0x10]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1003f3fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f463
mov eax, edx
push ecx
push eax
call fcn.1007306e
add esp, 8
xor eax, eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 7
mov word [esi + 0x10], ax
mov eax, dword [esi + 8]
mov dword [esi], vtable.KKRt::GMFileMapping.0
test eax, eax
je 0x1003f436
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1003f44b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
test byte [esp + 8], 1
je 0x1003f45d
push 0x30
push esi
call fcn.1007306e
add esp, 8
mov eax, esi
pop esi
ret 4
call fcn.10080da8
int3

Function at 0x10042bd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011d7fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.100589c9
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x10042c5d
push eax
push esi
call fcn.1005948e
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
lea ecx, [ebp - 0x1c]
call fcn.10042ad0
push 0x1014c7e0
lea eax, [ebp - 0x1c]
push eax
call fcn.100768db
int3
Function at 0x1004cb10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1004cb3b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1004d4c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x1004cb5d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1004cb5f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x1004cbe3
jg 0x1004cb74
test esi, esi
je 0x1004cbe3
test ecx, ecx
jl 0x1004cbbd
jg 0x1004cb7e
test eax, eax
je 0x1004cbbd
cmp edi, ecx
jg 0x1004cb92
jl 0x1004cb88
cmp esi, eax
jae 0x1004cb92
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.10076950
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x1004cbc0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x1004cbe3
jg 0x1004cbca
test esi, esi
je 0x1004cbe3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1004cbe3
push eax
push esi
push 1
push edx
call fcn.100a633b
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004d180
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1004d19a
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1004d1cc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1004d1cc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x28
ret 4
cmp dword [esi + 0x4c], 0
je 0x1004d2a8
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1004d1f4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1004d21d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.100a5a79
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
add esp, 0x28
ret 4
mov byte [esp + 0xf], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x1004d2a8
cmp eax, 1
jle 0x1004d277
cmp eax, 3
jne 0x1004d2a8
mov edx, dword [esi + 0x4c]
mov cl, byte [esp + 0xf]
call fcn.1004bbf0
or ecx, 0xffffffff
test al, al
pop edi
cmovne ecx, ebx
pop esi
mov eax, ecx
pop ebx
add esp, 0x28
ret 4
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x14]
sub edi, eax
je 0x1004d296
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100a633b
add esp, 0x10
cmp edi, eax
jne 0x1004d2a8
lea eax, [esp + 0xf]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x10], eax
jne 0x1004d1c1
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x28
ret 4

Function at 0x1004deb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x1004df33
cmp byte [esi + 0x3d], 0
je 0x1004df33
push 0xffffffffffffffff
call fcn.1004d180
cmp eax, 0xffffffff
je 0x1004defb
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x1004df03
sub eax, 1
je 0x1004df07
sub eax, 2
je 0x1004df33
pop edi
xor al, al
pop esi
add esp, 0x24
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x1004df26
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100a633b
add esp, 0x10
cmp edi, eax
jne 0x1004defb
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
add esp, 0x24
ret
pop edi
mov al, 1
pop esi
add esp, 0x24
ret

Function at 0x100b54a0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b50a5
Function at 0x100b54ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b5226

Function at 0x100bc99c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100bc176

Function at 0x100bc9a7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100bc3b1

Function at 0x100c7b0a
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100c7891
Function at 0x100ca9f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
sub esp, 0x238
mov dword [0x101599d8], eax
mov eax, dword [ebp + 0x14]
mov dword [0x101599dc], eax
push ebx
push esi
test eax, eax
je 0x100caa37
mov esi, dword [eax]
test esi, esi
je 0x100caa37
lea eax, [esi + 4]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x101599dc]
mov ecx, dword [esi]
push esi
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
movzx ecx, al
shr ax, 8
shl cx, 8
or cx, ax
mov eax, 0x600
cmp cx, ax
jae 0x100caa5f
xor bl, bl
jmp 0x100caae6
xor eax, eax
mov dword [esp + 0x28], 0
push eax
push 0x20019
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 7
mov word [esp + 0x28], ax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.100e54e0
test al, al
je 0x100caadb
lea eax, [esp + 0x14]
mov dword [esp + 8], 4
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 4
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 0
push eax
push 0
push str.EnableLUA
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100cab07
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x18]
call fcn.100e56f0
mov bl, 1
call fcn.100f51b0
test bl, bl
jne 0x100cab1b
test al, al
jne 0x100cab1f
xor ecx, ecx
mov eax, 2
push ecx
push eax
call fcn.100d4a60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x10], 0
jne 0x100caadb
lea ecx, [esp + 0x18]
call fcn.100e56f0
xor bl, bl
jmp 0x100caae6
test al, al
je 0x100cab3d
xorps xmm0, xmm0
movlpd qword [esp + 8], xmm0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ecx
push eax
call fcn.100d4a60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov eax, 1
push ecx
push eax
call fcn.100d4a60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100cbf60
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, dword [ebp + 0xc]
sub esp, 0x26c
mov dword [0x101599d8], eax
mov eax, dword [ebp + 0x14]
mov dword [0x101599dc], eax
push esi
test eax, eax
je 0x100cbfa6
mov esi, dword [eax]
test esi, esi
je 0x100cbfa6
lea eax, [esi + 4]
push eax
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x101599dc]
mov ecx, dword [esi]
push esi
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call fcn.100d4b90
push 0x40
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0x44
xorps xmm0, xmm0
push 0
push eax
movaps xmmword [esp + 0x1c], xmm0
call fcn.10077450
add esp, 0xc
mov dword [esp + 0x4c], 1
xor eax, eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100cc026
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
mov dword [esp + 0x14], eax
call fcn.100d4a60
pop esi
mov esp, ebp
pop ebp
ret
push esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100cc054
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
push dword [esp + 0x10]
call fcn.100d4a60
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push dword [esp + 0x10]
call fcn.100d4a60
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100cc070
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, dword [ebp + 0xc]
sub esp, 0x26c
mov dword [0x101599d8], eax
mov eax, dword [ebp + 0x14]
mov dword [0x101599dc], eax
push esi
test eax, eax
je 0x100cc0b6
mov esi, dword [eax]
test esi, esi
je 0x100cc0b6
lea eax, [esi + 4]
push eax
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x101599dc]
mov ecx, dword [esi]
push esi
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call fcn.100d4b90
push 0x40
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0x44
xorps xmm0, xmm0
push 0
push eax
movaps xmmword [esp + 0x1c], xmm0
call fcn.10077450
add esp, 0xc
mov eax, 1
mov word [esp + 0x50], ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100cc131
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
mov dword [esp + 0x14], eax
call fcn.100d4a60
pop esi
mov esp, ebp
pop ebp
ret
push esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100cc15f
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
push dword [esp + 0x10]
call fcn.100d4a60
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push dword [esp + 0x10]
call fcn.100d4a60
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100d1db0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10120ed0
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
mov dword fs:[0], esp
call fcn.10074560
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2028]
mov edi, ecx
push 0
push eax
mov esi, edx
mov dword [ebp - 0x10], edi
call fcn.10077450
xor eax, eax
mov dword [ebp - 0x18], 0
add esp, 0xc
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], 8
jb 0x100d1e10
mov esi, dword [esi]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x100d1e1b
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x100d1e26
mov ecx, dword [ecx]
push esi
push 0xfff
lea edx, [ebp - 0x2028]
push edx
lea edx, [ebp - 0x28]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x2028]
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100d1e60
sub ecx, edx
lea eax, [ebp - 0x2028]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1001a860
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100d1eb4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100d1eaa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100d1ec6
push edx
push ecx
call fcn.1007306e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10080da8
int3