joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001de80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d9980
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10114894]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x1001debb
mov eax, 1
jmp 0x1001df74
xor eax, eax
mov dword [ebp - 0x28], 0x2d002d
mov dword [ebp - 0x24], 0x70006f
mov dword [ebp - 0x20], 0x690074
mov dword [ebp - 0x1c], 0x69006d
mov dword [ebp - 0x18], 0x65007a
mov word [ebp - 0x14], ax
call fcn.100078b0
mov ecx, eax
test ecx, ecx
je 0x1001df8e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.10008820
test al, al
jne 0x1001df3c
lea eax, [ebp - 0x28]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001df20
sub eax, edx
lea ecx, [ebp - 0x2c]
sar eax, 1
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100070c0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.1001d8b0
mov edx, dword [ebp - 0x2c]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1001df72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005e6b8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10005050
int3
Function at 0x1001f350
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10114894]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0x30
push 0
push esi
call fcn.10066cd0
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.10066cd0
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1001f3b3
cmp dword [ebp - 0x114], 6
mov eax, 0x30
jae 0x1001f3b8
mov eax, 0x2c
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
test ecx, ecx
jne 0x1001f3d6
push edi
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov ecx, edi
jmp 0x1001f3d8
mov eax, edi
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x1001f3ec
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x10], xmm0
mov ecx, dword [0x101183bc]
mov eax, esi
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005e6b8
mov esp, ebp
pop ebp
ret 0x18

Function at 0x10020010
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d9d1b
mov eax, dword fs:[0]
push eax
mov eax, 0x2008
call fcn.1005eae0
mov eax, dword [0x10114894]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2010]
push 0x2000
push 0
push eax
mov dword [ebp - 0x2014], esi
call fcn.10066cd0
add esp, 0xc
push dword [edi + 0x7c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10020084
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push dword [edi + 0x7c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
call fcn.100078b0
mov ecx, eax
test ecx, ecx
je 0x10020100
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x2010]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x100200ba
movzx eax, ax
mov ecx, esi
push eax
call fcn.10008670
jmp 0x100200e1
lea ecx, [ebp - 0x2010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100200c3
sub ecx, edx
lea eax, [ebp - 0x2010]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.100070c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005e6b8
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10005050
int3
Function at 0x100246a0
Capabilities:
Create process on windows

Disassembly:
push 4
push 0x100e662c
push 0
call fcn.1002d320
cmp eax, 6
jne 0x100246cc
push 1
push 0
push 0
push dword [0x10113288]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret

Function at 0x10024d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100da276
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x10114894]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x10024e2c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x10024e2c
call fcn.1001aac0
mov edi, eax
jmp 0x10024f4b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10024e4f
call fcn.1001aac0
jmp 0x10024f3e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x10024e6d
call fcn.1001aac0
jmp 0x10024f3e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x10024e8e
mov edi, 0x8007000e
jmp 0x10024f40
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x10024f84
jb 0x10024eac
cmp eax, 0xffffffff
ja 0x10024f84
cmp eax, 0x400
jbe 0x10024ec1
push eax
lea ecx, [ebp - 0x418]
call fcn.10022d40
jmp 0x10024ee7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x10024ee7
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x10024efe
mov edi, 0x8007000e
jmp 0x10024f40
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x10024f1e
call fcn.1001aac0
jmp 0x10024f3e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.10024be0
mov edi, eax
test esi, esi
je 0x10024f4b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10024f64
lea ecx, [ebp - 0x418]
call fcn.100234a0
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 - 0x14]
xor ecx, ebp
call fcn.1005e6b8
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.10005050
int3
Function at 0x1002a6e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
test eax, eax
jne 0x1002a76b
call fcn.100239e0
mov ecx, eax
call fcn.1001e5a0
test eax, eax
je 0x1002a71c
mov eax, dword [esi + 0x90]
lea ecx, [esi + 0x90]
call dword [eax]
mov dword [esi + 0x178], 1
xor eax, eax
pop esi
pop ebp
ret 0x10
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x1002a75a
cmp dword [esi + 0x78], 0
je 0x1002a75a
mov eax, dword [ecx]
push 1
push 0
push ecx
call dword [eax + 0x20]
push 0
lea ecx, [esi + 0xa8]
call fcn.10020bd0
mov eax, dword [esi + 0x78]
push 1
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esi + 0x7c]
push 1
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov dword [esi + 0x178], 1
xor eax, eax
pop esi
pop ebp
ret 0x10
cmp eax, 1
jne 0x1002a7ee
call fcn.100239e0
mov ecx, eax
call fcn.1001e5a0
test eax, eax
je 0x1002a79f
mov eax, dword [esi + 0x9c]
lea ecx, [esi + 0x9c]
call dword [eax]
mov dword [esi + 0x178], 2
xor eax, eax
pop esi
pop ebp
ret 0x10
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x1002a7dd
cmp dword [esi + 0x78], 0
je 0x1002a7dd
mov eax, dword [ecx]
push 1
push 0
push ecx
call dword [eax + 0x20]
push 0
lea ecx, [esi + 0xa8]
call fcn.10020bd0
mov eax, dword [esi + 0x78]
push 1
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esi + 0x7c]
push 1
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov dword [esi + 0x178], 2
xor eax, eax
pop esi
pop ebp
ret 0x10
cmp eax, 2
jne 0x1002a853
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea ecx, [esi + 0xa8]
call fcn.10020bd0
push 0
push 0
push 1
push 0
push str.inst_suc
call fcn.10023af0
mov ecx, eax
call fcn.10053140
call fcn.10031630
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
je 0x1002a84c
push 0
push 0
push 1
push 0
push str.inst_cover_suc
call fcn.10023af0
mov ecx, eax
call fcn.10053140
mov ecx, esi
call fcn.1002ae40
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x1002ae40
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea ecx, [esi + 0xa8]
call fcn.10020bd0
mov ecx, 0x10117a80
call fcn.10017cf0
push str.quit
call fcn.10028360
add esp, 4
lea ecx, [esi + 0x8c]
call fcn.10027a20
test eax, eax
jne 0x1002ae97
push eax
push eax
push 1
push eax
push str.install_r_fail
call fcn.10023af0
mov ecx, eax
call fcn.10053140
xor esi, esi
call fcn.100239e0
mov ecx, eax
call fcn.1001e3d0
test eax, eax
mov ecx, 1
cmovne esi, ecx
call fcn.10031630
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
call fcn.10031630
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
ret
Function at 0x1002de20
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10114894]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10115290], 0
push ebx
mov ebx, 1
je 0x1002deba
push esi
push edi
push str.ntdll.dll
mov dword [ebp - 0x18], 0
xor edi, edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1002deae
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002de90
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
call eax
movzx eax, word [ebp - 0x14]
mov edi, ebx
mov dword [ebp - 0x14], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x1002deae
mov ecx, dword [0x10119e34]
cmp dword [ebp - 0x18], 6
cmovae ecx, ebx
mov dword [0x10119e34], ecx
pop edi
mov dword [0x10115290], 0
pop esi
cmp dword [0x10119e34], 0
jne 0x1002ded4
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e6b8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1002df2d
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x1c]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1005e6b8
mov esp, ebp
pop ebp
ret
Function at 0x1002fe50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x10114894]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 0x4c0], ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x1002ff2b
test ecx, ecx
je 0x1002ff2b
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1002ff2b
mov ax, word [ebp - 0x4bc]
xor esi, esi
test ax, ax
je 0x1002ff2b
xor ecx, ecx
movzx edx, ax
nop dword [eax + eax]
mov ax, word [ebp + ecx - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push 0x64
push eax
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], dx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1002ff16
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [ebp - 0xd4]
push ebx
push eax
push dword [ebp - 0x4c4]
call fcn.10085064
add esp, 0xc
test eax, eax
je 0x1002ff3e
add esi, 4
lea ecx, [esi + esi]
movzx eax, word [ebp + ecx - 0x4bc]
mov edx, eax
test ax, ax
jne 0x1002fec0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e6b8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 0x4c0]
call fcn.10030a70
xor ecx, ecx
test edi, edi
je 0x1002ff5c
cmp edi, 0x7fffffff
jbe 0x1002ff61
mov ecx, 0x80070057
test ecx, ecx
js 0x1002ff97
mov eax, dword [ebp - 0x4c0]
mov esi, edi
test edi, edi
je 0x1002ff7f
cmp word [eax], 0
je 0x1002ff7f
add eax, 2
sub esi, 1
jne 0x1002ff71
xor eax, eax
mov ecx, 0x80070057
test esi, esi
cmovne ecx, eax
mov eax, edi
sub eax, esi
neg esi
sbb esi, esi
and esi, eax
jmp 0x1002ff99
xor esi, esi
test ecx, ecx
js 0x1002ffea
mov eax, dword [ebp - 0x4c0]
mov edx, edi
lea ecx, [eax + esi*2]
sub edx, esi
je 0x1002ffdd
mov eax, edx
sub eax, edi
mov edi, dword [ebp - 0x4c4]
add eax, 0x7fffffff
add esi, eax
lea eax, [ebx + ebx]
sub eax, ecx
add edi, eax
test esi, esi
je 0x1002ffdd
movzx eax, word [edi + ecx]
test ax, ax
je 0x1002ffdd
mov word [ecx], ax
dec esi
add ecx, 2
sub edx, 1
jne 0x1002ffc4
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e6b8
mov esp, ebp
pop ebp
ret
Function at 0x10030130
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.1005eae0
mov eax, dword [0x10114894]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x1003026a
mov edi, dword [ebp + 0x10]
cmp edi, 0x64
jl 0x1003026a
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1003026a
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.10066cd0
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x1003023f
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.10066cd0
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.10068112
add esp, 0x14
test eax, eax
je 0x10030204
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x10030204
mov ecx, 1
jmp 0x10030206
xor ecx, ecx
test ecx, ecx
lea edx, [ebp - 0x1004]
lea eax, [ebp - 0x804]
cmovne eax, edx
push eax
push edi
push ebx
call fcn.10030a70
mov edi, dword [ebp - 0x1008]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e6b8
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x1003021f
push edi
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.1002fe50
add esp, 0xc
mov edi, eax
jmp 0x10030225
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e6b8
mov esp, ebp
pop ebp
ret
Function at 0x10030700
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10107430
push 0x10068780
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a14
call fcn.1005eae0
mov eax, dword [0x10114894]
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 esi, dword [ebp + 8]
mov dword [ebp - 0x2a2c], esi
test esi, esi
je 0x100308be
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030756
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x100308be
mov dword [ebp - 4], 0
call fcn.10030000
mov dword [ebp - 4], 0xfffffffe
jmp 0x1003079c
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.10066cd0
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.10066cd0
add esp, 0x18
lea eax, [ebp - 0x2a28]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x100308be
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.100825ca
lea eax, [ebp - 0x224]
push eax
call fcn.10082fdf
add esp, 0x10
xor edi, edi
cmp dword [ebp - 0x2a28], edi
jbe 0x100308be
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + edi*4 - 0x2a24]
call fcn.10030130
add esp, 0xc
test eax, eax
je 0x100308b1
lea eax, [ebp - 0xa24]
push eax
call fcn.10082fdf
add esp, 4
lea ecx, [ebp - 0xa24]
lea eax, [ebp - 0x224]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10030886
test dx, dx
je 0x10030882
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10030886
add eax, 4
add ecx, 4
test dx, dx
jne 0x10030860
xor eax, eax
jmp 0x1003088b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100308b1
push dword [ebp + edi*4 - 0x2a24]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100308b1
push 0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x2a28]
jb 0x10030824
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.1005e6b8
mov esp, ebp
pop ebp
ret 4
Function at 0x100308e0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10107470
push 0x10068780
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x10114894]
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 esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 4], 0
test esi, esi
je 0x10030a41
cmp word [esi], 0
je 0x10030a41
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030940
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x10030a41
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10030a41
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.10066cd0
push esi
push str.__s_
push 0x3ff
lea eax, [ebp - 0x81c]
push eax
call fcn.10016660
push 0x3c
push 0
lea eax, [ebp - 0x858]
push eax
call fcn.10066cd0
add esp, 0x28
mov dword [ebp - 0x858], 0x3c
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x84c], str.open
mov dword [ebp - 0x844], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x854], 0x440
lea eax, [ebp - 0x858]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x10030a08
cmp dword [ebp + 0x18], 0
je 0x10030a08
push dword [ebp + 0x20]
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x10030a1d
test esi, esi
je 0x10030a2d
push edi
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x10030a2d
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x10030a4a
mov dword [ebp - 4], 0xfffffffe
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.1005e6b8
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x10030ae0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x10030afc
pop edi
pop ebp
ret 4
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 4
Function at 0x10031510
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10114894]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x100315bf
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10066cd0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
push 0x104
push eax
call fcn.10031660
test eax, eax
jne 0x10031586
push 1
push 0x26
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [0x10113594]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [edi]
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [eax + 0x2c]
test eax, eax
je 0x100315ac
push dword [0x10113588]
call fcn.1003f120
add esp, 4
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push esi
call fcn.10081bef
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005e6b8
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10031660
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10114894]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10031712
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10066cd0
add esp, 0xc
mov dword [ebp - 0x214], 1
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push str.Setup_Path
push dword [0x10113598]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10031712
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10031712
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.10081bef
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e6b8
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.1005e6b8
mov esp, ebp
pop ebp
ret 8