joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100118a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1004e274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100119c0
add esp, 8
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
add eax, 5
push eax
call fcn.10018875
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
add ecx, 5
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.100199b0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x10]
mov byte [eax + edx], 0xe9
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 4]
push ecx
call fcn.100119a0
add esp, 8
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx + 4]
mov edx, dword [ebp - 0x10]
mov dword [edx + ecx + 1], eax
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0xc], 0xe9
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.100119a0
add esp, 8
mov ecx, 1
shl ecx, 0
mov dword [ebp + ecx - 0xc], eax
push 5
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.100199b0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018809
mov esp, ebp
pop ebp
ret

Function at 0x100119c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push 5
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 4]
push edx
push 0x40
push 5
push 0x1004da3c
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push 0x1004da44
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 5
mov ecx, 1
imul edx, ecx, 0
add edx, 0x1004da3c
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1001af0d
add esp, 0xc
test eax, eax
jne 0x10011a24
mov eax, 0xb
jmp 0x10011a4f
push 5
mov ecx, 1
imul edx, ecx, 0
add edx, 0x1004da44
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1001af0d
add esp, 0xc
test eax, eax
jne 0x10011a4c
mov eax, 5
jmp 0x10011a4f
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10011e60
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x10], 0
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x10], 0
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax], 0x67452301
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0xefcdab89
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + ecx], 0x98badcfe
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp - 4]
mov dword [edx + ecx], 0x10325476
mov esp, ebp
pop ebp
ret

Function at 0x10013340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
movzx eax, byte [0x1004f844]
test eax, eax
jne 0x10013372
mov ecx, dword [ebp + 8]
mov dword [0x1004f840], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x1004f87c]
push eax
call fcn.10011690
add esp, 8
mov byte [0x1004f844], al
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 3
ja case.default.0x10013385
mov edx, dword [ebp - 4]
jmp dword [edx*4 + 0x10013584]
push 0
push 0
push 0
push 0x10011640
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
clc
jae 0x100133a6
mov edx, 0x6a9c6642
or dh, byte [ebx + 7]
pushf
push 0xa

Function at 0x10014470
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10014620
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1001453d
mov edx, dword [ebp - 4]
cmp edx, dword [0x1004e200]
jb 0x100144ba
mov eax, dword [ebp - 4]
cmp eax, dword [0x1004e204]
ja 0x100144ba
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1001448a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1001a4b0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100144e0
jmp 0x1001453d
cmp dword [ebp - 0x14], 0x10000
jne 0x10014523
cmp dword [ebp - 0x18], 0x10000
jb 0x10014523
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10014516
mov eax, dword [ebp - 8]
jmp 0x1001453f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10014538
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10014620
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001448a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10014550
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10014650
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10014615
mov edx, dword [ebp - 4]
cmp edx, dword [0x1004e200]
jb 0x10014595
mov eax, dword [ebp - 4]
cmp eax, dword [0x1004e204]
ja 0x10014595
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10014565
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1001a4b0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100145bb
jmp 0x10014615
cmp dword [ebp - 0x14], 0x10000
jne 0x100145fe
cmp dword [ebp - 0x18], 0x10000
jb 0x100145fe
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100145f1
mov eax, dword [ebp - 8]
jmp 0x10014617
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10014610
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10014650
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10014565
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10014680
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10014a70
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1004f96c], 0
jne 0x100146bd
cmp dword [0x1004f968], 0
je 0x100146bd
mov eax, dword [0x1004f968]
mov dword [0x1004f96c], eax
cmp dword [0x1004f96c], 0
je 0x1001473a
mov ecx, dword [0x1004f96c]
cmp dword [ecx + 8], 0
je 0x1001473a
mov edx, dword [0x1004f96c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1001473a
mov ecx, dword [0x1004f96c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1001473a
mov eax, dword [0x1004f96c]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10014709
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10014710
xor eax, eax
jmp 0x10014859
mov ecx, dword [0x1004f96c]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1001a4b0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10014859
mov edx, dword [0x1004f968]
mov dword [0x1004f96c], edx
jmp 0x10014756
mov eax, dword [0x1004f96c]
mov ecx, dword [eax + 4]
mov dword [0x1004f96c], ecx
cmp dword [0x1004f96c], 0
je 0x10014796
cmp dword [0x1004f96c], 0
je 0x10014794
mov edx, dword [0x1004f96c]
cmp dword [edx + 8], 0
je 0x10014794
mov eax, dword [0x1004f96c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10014794
mov edx, dword [0x1004f96c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10014794
jmp 0x100146ee
jmp 0x10014748
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10014860
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10014857
mov eax, dword [ebp - 0x18]
mov dword [0x1004f96c], eax
mov ecx, dword [0x1004f96c]
mov dword [ecx], 0x52727464
mov edx, dword [0x1004f96c]
mov dword [edx + 8], 0
mov eax, dword [0x1004f96c]
mov ecx, dword [0x1004f968]
mov dword [eax + 4], ecx
mov edx, dword [0x1004f96c]
mov dword [0x1004f968], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1004f96c]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10014827
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10014847
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1001481e
mov eax, dword [0x1004f96c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x100146ee
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10029e5a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10029cd0
Function at 0x40187c
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
cmp ebx, esi
push edi
mov edi, ecx
jne 0x40189c
push esi
push esi
push 2
xor ecx, ecx
pop eax
call fcn.004037e4
xor al, al
jmp 0x40191f
push ebp
call fcn.00401203
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
push 2
push esi
push ebx
call fcn.0048e205
push ebx
call fcn.0048e422
push esi
push esi
push ebx
mov ebp, eax
call fcn.0048e205
add esp, 0x1c
cmp ebp, esi
jne 0x4018d0
push esi
push esi
push 0xd
jmp 0x4018fd
lea eax, [ebp + 1]
push eax
call fcn.0048b405
push ebx
push 1
mov esi, eax
push ebp
push esi
mov byte [esi], 0
call fcn.0048e7ba
add esp, 0x14
cmp eax, 1
je 0x401909
push esi
call fcn.0048e7d5
pop ecx
push 0
push 0
push 2
xor ecx, ecx
pop eax
call fcn.004037e4
xor al, al
jmp 0x40191e
push edi
mov ecx, ebp
mov edx, esi
call fcn.00401923
push esi
mov bl, al
call fcn.0048e7d5
pop ecx
mov al, bl
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x405ede
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405ef5
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405f2a
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405f26
cmp edi, eax
jae 0x405f2a
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405f18
cmp edi, eax
jb 0x405f2e
xor eax, eax
jmp 0x405f38
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x40612f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x4061bd
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x406166
cmp dword [ebp - 8], 2
jne 0x4061bc
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405da8
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00405ca9
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x4061a4
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4061b4
push eax
call fcn.0048f085
pop ecx
mov edx, esi
call fcn.00405c70
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x406390
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4acb4d
call fcn.004ab348
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00405de8
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4063db
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405b78
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4063bc
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x4063bc
lea ecx, [ebp - 0x10]
call fcn.00428595
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x406412
xor esi, esi
jmp 0x4063bf
push eax
call fcn.00406390
test eax, eax
pop ecx
je 0x40640e
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4063bc
call edi
cmp eax, ebx
jne 0x40640e
jmp 0x4063bc

Function at 0x408647
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4ae187
call fcn.004ab348
sub esp, 0x2f4
push ebx
push esi
push edi
xor esi, esi
push 0xd2
lea eax, [ebp - 0xee]
push esi
push eax
mov word [ebp - 0xf0], si
call fcn.0048e7e0
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x408692
xor eax, eax
jmp 0x408756
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [ebp - 0x2fe]
push esi
push eax
sar edi, 2
mov word [ebp - 0x300], si
call fcn.0048e7e0
mov word [ebp - 0xf8], si
mov esi, dword [ebp + 8]
add esp, 0xc
add esi, 4
lea ebx, [ebp - 0xf0]
call fcn.00408d2f
test edi, edi
jle 0x408753
mov dword [ebp - 0x10], edi
and word [ebx + 4], 0
push 0x104
lea eax, [ebp - 0x300]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40874b
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00405de8
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edi, esi
call fcn.00408cd4
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405b78
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00405de8
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.00408cd4
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405b78
add ebx, 8
dec dword [ebp - 0x10]
jne 0x4086d8
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x40878d
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x40880e
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x40880e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
push str.EnumProcesses
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push str.GetModuleFileNameExW
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.GetProcessImageFileNameW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x10], eax
pop edi
je 0x408809
cmp dword [esi + 4], ebx
je 0x408809
cmp dword [esi + 8], ebx
je 0x408809
cmp dword [esi + 0xc], ebx
je 0x408809
cmp eax, ebx
je 0x408809
xor eax, eax
inc eax
jmp 0x40880b
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret
Function at 0x40893d
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4acf6c
call fcn.004ab348
sub esp, 0x224
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x22e]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x230], si
call fcn.0048e7e0
xor ecx, ecx
add esp, 0xc
inc ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.004065e5
push 0x4bcd1c
push eax
mov dword [ebp - 4], esi
call fcn.0040571a
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
inc bl
call fcn.00405b78
test bl, bl
je 0x408b13
mov ebx, str.___
push ebx
call fcn.0048f085
mov esi, str.SystemRoot_
push esi
mov dword [ebp - 0x1c], eax
call fcn.0048f085
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.004065e5
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.0040571a
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.00405b78
test bl, bl
je 0x408a2c
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.00406595
mov dword [ebp - 4], 2
call fcn.00405107
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x408ae2
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.004065e5
push esi
push eax
mov dword [ebp - 4], 3
call fcn.0040571a
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.00405b78
test bl, bl
je 0x408aea
push 0x104
lea eax, [ebp - 0x230]
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
inc ecx
mov eax, edi
call fcn.00406595
mov esi, eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 4
call fcn.00405de8
lea ecx, [ebp - 0x20]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00406621
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.00405107
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405b78
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00405b78
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00405b78
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jg 0x408afd
mov esi, edi
call fcn.00405da8
jmp 0x408b1a
cmp ecx, 1
jge 0x408b0c
push 0x80070057
call fcn.00405c91
cmp word [eax + 2], 0x3a
jne 0x408af4
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x408b2c
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x408b56
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x409482
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x4094b0
push dword [esp + 0xc]
call fcn.0048f085
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4094b0
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x4094ca
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x409553
push ebx
call fcn.0048b405
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x409544
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4bcd1c
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x409544
cmp dword [ebp - 0xc], ebx
je 0x409544
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x409553
push dword [ebp - 4]
call fcn.0048e7d5
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x40958f
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4acba2
call fcn.004ab348
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4de22c
mov dword [ebp - 0x10], edi
call fcn.00405e2b
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.0048e7e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00406003
push esi
call fcn.004062fc
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4096ea
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.0048e7e0
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x409743
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x4097f9
mov eax, dword [ebp - 0x94]
dec eax
je 0x4097e5
dec eax
jne 0x4097f9
mov eax, dword [ebp - 0xa0]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x409792
cmp dword [ebp - 0x9c], edx
jne 0x40977c
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
add eax, 8
jmp 0x4097e1
cmp dword [ebp - 0x9c], edi
jne 0x4097ca
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x4097e1
cmp eax, 5
jne 0x4097bc
cmp dword [ebp - 0x9c], 2
jne 0x4097a3
push eax
jmp 0x4097c3
cmp dword [ebp - 0x9c], 1
jne 0x4097b0
mov edi, ecx
jmp 0x4097f9
cmp dword [ebp - 0x9c], edi
jne 0x4097f9
push 3
jmp 0x4097c3
cmp eax, 4
ja 0x4097c6
push 4
pop edi
jmp 0x4097f9
cmp eax, ecx
jb 0x4097f9
cmp dword [ebp - 0x9c], 2
jae 0x4097d7
cmp eax, ecx
jbe 0x4097f9
cmp byte [ebp + 0x76], dl
jne 0x4097f9
call fcn.00409612
mov edi, eax
jmp 0x4097f9
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x40a50e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a533
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a5f4
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 4], 0x490
call fcn.0048e7e0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40a5a3
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.0048fd0b
test eax, eax
pop ecx
pop ecx
je 0x40a597
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a56d
jmp 0x40a5ac
mov edi, dword [ebp - 0x228]
and dword [ebp - 4], 0
jmp 0x40a5ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x40a5d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a5f3
push dword [ebp + 8]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40a5ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push edi
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret