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

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

Function at 0x4135a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004133c7

Function at 0x41399b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407a30
mov eax, dword [0x428040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041242d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4139dd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413b39
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d0c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x482170]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00414b6b
mov ecx, dword [esi*4 + 0x482170]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x413b32
cmp eax, dword [edi + ecx + 0x24]
jne 0x413b32
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413b32
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414b6b
add esp, 0x14
test edx, edx
jl 0x413b32
jg 0x413aa8
test eax, eax
jb 0x413b32
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413b32
jl 0x413ac2
cmp dword [ebp - 0x1008], eax
ja 0x413b32
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413ae0
test ebx, ebx
je 0x413b19
cmp ecx, edi
jae 0x413b19
mov al, byte [ecx]
cmp al, 0xd
jne 0x413afa
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413b06
cmp byte [ecx + 1], 0xa
jne 0x413b06
inc ecx
jmp 0x413b06
movzx eax, al
movsx eax, byte [eax + 0x4282f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413ae0
cmp edx, ebx
jne 0x413ae0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413b37
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406c76
leave
ret
Function at 0x414009
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x482170]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x414049
cmp byte [ebx], 0xa
jne 0x414049
or byte [eax + edi + 0x28], 4
jmp 0x41404e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41414c
mov al, byte [edx]
cmp al, 0x1a
je 0x41412e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41407d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4140a2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4140ac
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41405f
jmp 0x41414c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414129
cmp dword [ebp - 0xc], 0
je 0x414129
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x482170]
test byte [eax + edi + 0x28], 0x48
je 0x414103
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4140ee
mov byte [esi], dl
jmp 0x4140ff
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x482170]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41414c
cmp byte [ebp - 1], 0xa
jne 0x414112
cmp esi, ebx
jne 0x414112
mov byte [esi], 0xa
jmp 0x41414b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414b89
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41414c
mov byte [esi], 0xd
jmp 0x41414b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x482170]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414148
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41414c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414155
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 + 0x482170]
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 0x414198
cmp word [esi], dx
jne 0x414198
or byte [edi + eax + 0x28], 4
jmp 0x41419d
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 0x4142f0
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 0x4142d0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4141df
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x414215
cmp eax, edx
jae 0x414221
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 0x4141b7
jmp 0x4142f0
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 0x4142cc
cmp dword [ebp - 0x14], 0
je 0x4142cc
mov eax, dword [ebx*4 + 0x482170]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4142a4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41426d
mov word [esi], cx
jmp 0x4142a0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x482170]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x482170]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x482170]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4142f0
pop ebx
cmp word [ebp - 4], bx
jne 0x4142b5
cmp esi, dword [ebp + 0xc]
jne 0x4142b5
mov word [esi], bx
jmp 0x4142ed
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414b89
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4142f0
push 0xd
jmp 0x4142e9
mov ecx, dword [ebx*4 + 0x482170]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4142e7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4142f0
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 0x405c41
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 0x405c58
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405c8d
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405c89
cmp edi, eax
jae 0x405c8d
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405c7b
cmp edi, eax
jb 0x405c91
xor eax, eax
jmp 0x405c9b
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405dfe
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 0x405e8c
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 0x405e35
cmp dword [ebp - 8], 2
jne 0x405e8b
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405b0b
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00405a0c
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 0x405e73
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 0x405e83
push eax
call fcn.004ef9f4
pop ecx
mov edx, esi
call fcn.004059d3
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

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

Disassembly:
mov eax, 0x50dd5f
call fcn.0050c6f8
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00405b4b
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406098
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004058db
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 0x406079
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x406079
lea ecx, [ebp - 0x10]
call fcn.00425a70
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x4060cf
xor esi, esi
jmp 0x40607c
push eax
call fcn.0040604d
test eax, eax
pop ecx
je 0x4060cb
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x406079
call edi
cmp eax, ebx
jne 0x4060cb
jmp 0x406079
Function at 0x406d16
Capabilities:
Get disk information

Disassembly:
mov eax, 0x50f1c0
call fcn.0050c6f8
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.004ef080
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x406d61
xor eax, eax
jmp 0x406e25
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.004ef080
mov word [ebp - 0xf8], si
mov esi, dword [ebp + 8]
add esp, 0xc
add esi, 4
lea ebx, [ebp - 0xf0]
call fcn.004073fe
test edi, edi
jle 0x406e22
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 0x406e1a
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00405b4b
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edi, esi
call fcn.004073a3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004058db
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00405b4b
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.004073a3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004058db
add ebx, 8
dec dword [ebp - 0x10]
jne 0x406da7
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 0x406e5c
Capabilities:
Link many functions at runtime

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

Disassembly:
mov eax, 0x50e326
call fcn.0050c6f8
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.004ef080
xor ecx, ecx
add esp, 0xc
inc ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00406359
push 0x53c79c
push eax
mov dword [ebp - 4], esi
call fcn.0040548b
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.004058db
test bl, bl
je 0x4071e2
mov ebx, 0x53c894
push ebx
call fcn.004ef9f4
mov esi, str.SystemRoot_
push esi
mov dword [ebp - 0x1c], eax
call fcn.004ef9f4
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00406359
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.0040548b
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.004058db
test bl, bl
je 0x4070fb
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.00406309
mov dword [ebp - 4], 2
call fcn.00404ebe
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x4071b1
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00406359
push esi
push eax
mov dword [ebp - 4], 3
call fcn.0040548b
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.004058db
test bl, bl
je 0x4071b9
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.00406309
mov esi, eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 4
call fcn.00405b4b
lea ecx, [ebp - 0x20]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00406395
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.00404ebe
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004058db
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004058db
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004058db
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jg 0x4071cc
mov esi, edi
call fcn.00405b0b
jmp 0x4071e9
cmp ecx, 1
jge 0x4071db
push 0x80070057
call fcn.004059f4
cmp word [eax + 2], 0x3a
jne 0x4071c3
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 0x4071fb
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 0x407225
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 0x407e69
Capabilities:
Set registry value

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

Function at 0x407eb1
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 0x407f3a
push ebx
call fcn.004ebcfb
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 0x407f2b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x53c79c
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 0x407f2b
cmp dword [ebp - 0xc], ebx
je 0x407f2b
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 0x407f3a
push dword [ebp - 4]
call fcn.004ef075
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x40800a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x50db38
call fcn.0050c6f8
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.00405b8e
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.004ef080
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.00405d66
push esi
call fcn.00407f76
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x408165
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.004ef080
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 0x4081be
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x408274
mov eax, dword [ebp - 0x94]
dec eax
je 0x408260
dec eax
jne 0x408274
mov eax, dword [ebp - 0xa0]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x40820d
cmp dword [ebp - 0x9c], edx
jne 0x4081f7
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
add eax, 8
jmp 0x40825c
cmp dword [ebp - 0x9c], edi
jne 0x408245
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x40825c
cmp eax, 5
jne 0x408237
cmp dword [ebp - 0x9c], 2
jne 0x40821e
push eax
jmp 0x40823e
cmp dword [ebp - 0x9c], 1
jne 0x40822b
mov edi, ecx
jmp 0x408274
cmp dword [ebp - 0x9c], edi
jne 0x408274
push 3
jmp 0x40823e
cmp eax, 4
ja 0x408241
push 4
pop edi
jmp 0x408274
cmp eax, ecx
jb 0x408274
cmp dword [ebp - 0x9c], 2
jae 0x408252
cmp eax, ecx
jbe 0x408274
cmp byte [ebp + 0x76], dl
jne 0x408274
call fcn.0040808d
mov edi, eax
jmp 0x408274
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 0x409052
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 0x409077
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409138
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 4], 0x490
call fcn.004ef080
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 0x4090e7
lea eax, [ebp - 0x20c]
push 0x53c99c
push eax
call fcn.004f04ef
test eax, eax
pop ecx
pop ecx
je 0x4090db
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4090b1
jmp 0x4090f0
mov edi, dword [ebp - 0x228]
and dword [ebp - 4], 0
jmp 0x4090f0
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 0x409115
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409137
push dword [ebp + 8]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x409131
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 0x40921d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test esi, esi
jne 0x40922f
or eax, 0xffffffff
leave
ret
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004ef080
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 0x409272
cmp dword [ebp - 0x110], 5
jne 0x409272
cmp dword [ebp - 0x10c], 0
je 0x40927f
push esi
call fcn.0040913b
test eax, eax
pop ecx
jne 0x40927f
leave
ret
push esi
call fcn.00409052
pop ecx
leave
ret

Function at 0x409288
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 0x409348
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 0x4092ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x409347
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 0x40933b
cmp dword [edi], ebx
mov dword [ebp - 0x10], ebx
jbe 0x40933b
lea esi, [edi + 4]
push dword [esi]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x409337
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add esi, 8
cmp eax, dword [edi]
jb 0x409319
jmp 0x40933b
mov byte [ebp - 1], 1
cmp edi, ebx
je 0x409346
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
cmp dword [ebp - 8], ebx
pop ebx
je 0x409357
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, byte [ebp - 1]
leave
ret