joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100dc383
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100e4a78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x218], eax
push ecx
mov esi, 0x104
mov dword [eax], edi
mov edx, esi
mov dword [eax + 4], edi
lea ecx, [ebp - 0x20c]
call fcn.100630cd
push 0x1003668c
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.1006304e
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
mov dword [ebp - 0x210], esi
test esi, esi
jne 0x100dc40c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100dc452
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.100dafc1
mov edi, eax
jmp 0x100dc437
lea edx, [ebp - 0x214]
mov dword [ebp - 0x214], edi
mov ecx, esi
call fcn.100d91d5
mov ebx, eax
test ebx, ebx
jns 0x100dc440
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.100dafd7
pop ecx
mov edi, ebx
mov esi, dword [ebp - 0x210]
pop ecx
jmp 0x100dc452
mov ecx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x214]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x100dc45c
push esi
call fcn.10040e53
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041550
leave
ret

Function at 0x100dec37
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push esi
push edi
xor edi, edi
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, di
jne 0x100dec47
sub edx, esi
sar edx, 1
jne 0x100dec5f
mov eax, 0x80004005
jmp 0x100dec74
cmp dword [ecx + 0x14], edi
je 0x100dec69
call fcn.100deaad
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x100deca0
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 4
push dword [ebp + 8]
lea ecx, [ebp - 8]
xor esi, esi
call fcn.100dde8b
push esi
lea ecx, [ebp - 8]
call fcn.1005b2b2
test eax, eax
jne 0x100deccb
mov esi, 0x80030103
jmp 0x100decfe
push esi
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__waccess]
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x100decfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100decfe
test eax, eax
jg 0x100decf5
mov esi, eax
jmp 0x100decfe
movzx esi, ax
or esi, 0x80070000
test byte [ebp - 4], 2
je 0x100ded0d
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
pop esi
leave
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x474004]
jne 0x40100a
repz ret
jmp fcn.004018f4

Function at 0x4067a8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040261d
and dword [ebp - 4], 0
cmp dword [0x475cdc], 0
mov ebx, eax
jne 0x406859
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40690a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40690a
push eax
call fcn.004025ab
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x475cdc], eax
call esi
push eax
call fcn.004025ab
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x475ce0], eax
call esi
push eax
call fcn.004025ab
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x475ce4], eax
call esi
push eax
call fcn.004025ab
pop ecx
mov dword [0x475cec], eax
test eax, eax
je 0x406859
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004025ab
pop ecx
mov dword [0x475ce8], eax
mov eax, dword [0x475ce8]
cmp eax, ebx
je 0x4068b1
cmp dword [0x475cec], ebx
je 0x4068b1
push eax
call fcn.00402626
push dword [0x475cec]
mov esi, eax
call fcn.00402626
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4068b1
test edi, edi
je 0x4068b1
call esi
test eax, eax
je 0x4068a8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4068a8
test byte [ebp - 0xc], 1
jne 0x4068b1
or dword [ebp + 0x10], 0x200000
jmp 0x4068ea
mov eax, dword [0x475ce0]
cmp eax, ebx
je 0x4068ea
push eax
call fcn.00402626
pop ecx
test eax, eax
je 0x4068ea
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4068ea
mov eax, dword [0x475ce4]
cmp eax, ebx
je 0x4068ea
push eax
call fcn.00402626
pop ecx
test eax, eax
je 0x4068ea
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x475cdc]
call fcn.00402626
pop ecx
test eax, eax
je 0x40690a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40690c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4705b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
cmp edi, 0x19f
jne 0x4705c9
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edx, edx
test edi, edi
jle 0x470611
nop
lea ecx, [esp + 8]
mov dword [esp], 5
mov dword [esp + 8], 0
call fcn.004705a0
mov eax, dword [esp + 8]
add eax, 0x46
mov dword [esp], eax
sub dword [esp], 0x46
movsx eax, byte [edx + esi]
mov dword [esp + 4], eax
mov eax, dword [esp]
xor dword [esp + 4], eax
mov cl, byte [esp + 4]
mov byte [edx + esi], cl
inc edx
cmp edx, edi
jl 0x4705d0
cmp edi, 0x2d
jne 0x47062a
mov dword [0x2b73ef8], 0xa62e7790
mov dword [0x2b73efc], 0xffffffff
add esp, 0xc
ret
Function at 0x4e9c10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa7000]
push edi
jmp 0x4e9c2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e9c31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9c20
mov eax, 1
add ebx, ebx
jne 0x4e9c43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e9c54
jne 0x4e9c73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9c73
dec eax
add ebx, ebx
jne 0x4e9c60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e9c38
add ebx, ebx
jne 0x4e9c6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e9cc5
xor ecx, ecx
sub eax, 3
jb 0x4e9c8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e9cfa
sar eax, 1
mov ebp, eax
jmp 0x4e9c96
add ebx, ebx
jne 0x4e9c96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9c64
inc ecx
add ebx, ebx
jne 0x4e9ca4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9c64
add ebx, ebx
jne 0x4e9cb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e9ca6
jne 0x4e9cc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e9ca6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e9ce4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e9cd6
jmp 0x4e9c26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e9ce4
add edi, ecx
jmp 0x4e9c26
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e9d02
cmp byte [edi], 0x11
jne 0x4e9d02
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4e9d07
lea edi, [esi + 0xe5000]
mov eax, dword [edi]
or eax, eax
je 0x4e9d7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x121544]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x121698]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e9d34
mov ecx, edi
jns 0x4e9d63
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12169c]
or eax, eax
je 0x4e9d79
mov dword [ebx], eax
add ebx, 4
jmp 0x4e9d51
call dword [esi + 0x1216ac]
mov ebp, dword [esi + 0x1216a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4e9db3
sub esp, 0xffffff80
jmp 0x416310
Function at 0x405c2f
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 0x405c46
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405c7b
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405c77
cmp edi, eax
jae 0x405c7b
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405c69
cmp edi, eax
jb 0x405c7f
xor eax, eax
jmp 0x405c89
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405dec
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 0x405e7a
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 0x405e23
cmp dword [ebp - 8], 2
jne 0x405e79
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405af9
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004059fa
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 0x405e61
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 0x405e71
push eax
call fcn.004efbf4
pop ecx
mov edx, esi
call fcn.004059c1
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

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

Disassembly:
mov eax, 0x510f97
call fcn.0050c8f8
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00405b39
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406056
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004058c9
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 0x406037
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x406037
lea ecx, [ebp - 0x10]
call fcn.00405fb9
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x40608d
xor esi, esi
jmp 0x40603a
push eax
call fcn.0040600b
test eax, eax
pop ecx
je 0x406089
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x406037
call edi
cmp eax, ebx
jne 0x406089
jmp 0x406037
Function at 0x406cca
Capabilities:
Get disk information

Disassembly:
mov eax, 0x50f307
call fcn.0050c8f8
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.004ef280
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x406d15
xor eax, eax
jmp 0x406dd9
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.004ef280
mov word [ebp - 0xf8], si
mov esi, dword [ebp + 8]
add esp, 0xc
add esi, 4
lea ebx, [ebp - 0xf0]
call fcn.004073b2
test edi, edi
jle 0x406dd6
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 0x406dce
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00405b39
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edi, esi
call fcn.00407357
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004058c9
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00405b39
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.00407357
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004058c9
add ebx, 8
dec dword [ebp - 0x10]
jne 0x406d5b
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 0x406e10
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x406e91
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x406e91
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 0x406e8c
cmp dword [esi + 4], ebx
je 0x406e8c
cmp dword [esi + 8], ebx
je 0x406e8c
cmp dword [esi + 0xc], ebx
je 0x406e8c
cmp eax, ebx
je 0x406e8c
xor eax, eax
inc eax
jmp 0x406e8e
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret
Function at 0x406fc0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x50e4c7
call fcn.0050c8f8
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.004ef280
xor ecx, ecx
add esp, 0xc
inc ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00406317
push 0x53c7ac
push eax
mov dword [ebp - 4], esi
call fcn.0040544f
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.004058c9
test bl, bl
je 0x407196
mov ebx, 0x53c8a0
push ebx
call fcn.004efbf4
mov esi, str.SystemRoot_
push esi
mov dword [ebp - 0x1c], eax
call fcn.004efbf4
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00406317
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.0040544f
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.004058c9
test bl, bl
je 0x4070af
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.004062c7
mov dword [ebp - 4], 2
call fcn.00404ebe
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x407165
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00406317
push esi
push eax
mov dword [ebp - 4], 3
call fcn.0040544f
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.004058c9
test bl, bl
je 0x40716d
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.004062c7
mov esi, eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 4
call fcn.00405b39
lea ecx, [ebp - 0x20]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00406353
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.00404ebe
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004058c9
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004058c9
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004058c9
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jg 0x407180
mov esi, edi
call fcn.00405af9
jmp 0x40719d
cmp ecx, 1
jge 0x40718f
push 0x80070057
call fcn.004059e2
cmp word [eax + 2], 0x3a
jne 0x407177
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 0x4071af
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 0x4071d9
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 0x407e0b
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x407e39
push dword [esp + 0xc]
call fcn.004efbf4
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 0x407e39
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x407e53
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 0x407edc
push ebx
call fcn.004ebefb
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 0x407ecd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x53c7ac
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 0x407ecd
cmp dword [ebp - 0xc], ebx
je 0x407ecd
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 0x407edc
push dword [ebp - 4]
call fcn.004ef275
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x407fac
Capabilities:
Get common file path

Disassembly:
mov eax, 0x50ea0c
call fcn.0050c8f8
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x55daac
mov dword [ebp - 0x10], edi
call fcn.00405b7c
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.004ef280
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.00405d54
push esi
call fcn.00407f18
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x408107
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.004ef280
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 0x408160
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x408216
mov eax, dword [ebp - 0x94]
dec eax
je 0x408202
dec eax
jne 0x408216
mov eax, dword [ebp - 0xa0]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x4081af
cmp dword [ebp - 0x9c], edx
jne 0x408199
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
add eax, 8
jmp 0x4081fe
cmp dword [ebp - 0x9c], edi
jne 0x4081e7
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x4081fe
cmp eax, 5
jne 0x4081d9
cmp dword [ebp - 0x9c], 2
jne 0x4081c0
push eax
jmp 0x4081e0
cmp dword [ebp - 0x9c], 1
jne 0x4081cd
mov edi, ecx
jmp 0x408216
cmp dword [ebp - 0x9c], edi
jne 0x408216
push 3
jmp 0x4081e0
cmp eax, 4
ja 0x4081e3
push 4
pop edi
jmp 0x408216
cmp eax, ecx
jb 0x408216
cmp dword [ebp - 0x9c], 2
jae 0x4081f4
cmp eax, ecx
jbe 0x408216
cmp byte [ebp + 0x76], dl
jne 0x408216
call fcn.0040802f
mov edi, eax
jmp 0x408216
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 0x409063
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 0x409088
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409149
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 4], 0x490
call fcn.004ef280
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 0x4090f8
lea eax, [ebp - 0x20c]
push 0x53c9a8
push eax
call fcn.004f0744
test eax, eax
pop ecx
pop ecx
je 0x4090ec
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4090c2
jmp 0x409101
mov edi, dword [ebp - 0x228]
and dword [ebp - 4], 0
jmp 0x409101
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 0x409126
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409148
push dword [ebp + 8]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x409142
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
Function at 0x40922e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test esi, esi
jne 0x409240
or eax, 0xffffffff
leave
ret
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004ef280
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409283
cmp dword [ebp - 0x110], 5
jne 0x409283
cmp dword [ebp - 0x10c], 0
je 0x409290
push esi
call fcn.0040914c
test eax, eax
pop ecx
jne 0x409290
leave
ret
push esi
call fcn.00409063
pop ecx
leave
ret

Function at 0x409299
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x409359
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 2
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4092ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x409358
push edi
push dword [ebp - 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push 2
push dword [ebp + 8]
call esi
test eax, eax
je 0x40934c
cmp dword [edi], ebx
mov dword [ebp - 0x10], ebx
jbe 0x40934c
lea esi, [edi + 4]
push dword [esi]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x409348
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add esi, 8
cmp eax, dword [edi]
jb 0x40932a
jmp 0x40934c
mov byte [ebp - 1], 1
cmp edi, ebx
je 0x409357
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
cmp dword [ebp - 8], ebx
pop ebx
je 0x409368
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, byte [ebp - 1]
leave
ret