joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413305
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
push esi
push edi
push 0x58
lea eax, [esp + 0xc]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.005e26d0
push dword [ebp + 8]
and dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
and dword [esp + 0x28], 0
mov edx, esi
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.0041336e
add esp, 0x10
lea ecx, [esp + 8]
mov edx, edi
call fcn.0041340f
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x414b5c
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x60e31f
call fcn.0060cc48
push ecx
push ecx
push esi
push edi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d8
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.00414a44
mov edi, eax
test edi, edi
je 0x414c21
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
call fcn.00406173
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x10]
push ecx
mov edi, esp
mov dword [ebp + 8], edi
lea eax, [esi - 0x10]
push eax
call fcn.004067cf
add eax, 0x10
mov dword [edi], eax
pop ecx
mov byte [ebp - 4], 0
call fcn.0041417f
mov edi, eax
test edi, edi
je 0x414c24
mov eax, dword [0x6caa84]
mov ecx, dword [esi - 0xc]
cmp ecx, dword [eax - 0xc]
jl 0x414c24
lea eax, [ebp - 0x10]
mov ecx, 0x6caa84
push eax
call fcn.00406123
push str.product_tag_cmpc_ch.tag
lea ecx, [ebp - 0x10]
call fcn.004154f8
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414c15
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x414c15
mov dword [0x6caa80], 0x12
jmp 0x414c24
mov dword [0x6caa80], 0x65
jmp 0x414c24
mov esi, dword [ebp - 0x10]
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x415af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
mov dword [ebp - 4], 4
cmp dword [ecx], esi
je 0x415b2f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415b2f
cmp dword [ebp - 8], 4
jne 0x415b2f
mov ecx, dword [ebp + 0xc]
inc esi
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x415b38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi], esi
je 0x415bbe
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push str.KAV7NEEDREBOOT
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
je 0x415b6e
cmp dword [ebp - 8], 2
jne 0x415bbe
mov ecx, dword [ebp + 0xc]
call fcn.00406271
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shr eax, 1
inc eax
push eax
call fcn.0040682a
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.KAV7NEEDREBOOT
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415bb4
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0xc]
xor esi, esi
shr eax, 1
inc esi
mov word [ecx + eax*2], dx
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
call fcn.00408f1c
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x416d24
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x60e50c
call fcn.0060cc48
sub esp, 0xc
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x416d62
push dword [ebp + 8]
call fcn.005f0fb8
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x416d66
mov eax, edi
jmp 0x416d7c
lea esi, [eax + eax]
mov eax, esi
call fcn.0060c120
mov edx, dword [ebp + 8]
mov ecx, esp
push ecx
push esi
call fcn.00404a71
push eax
lea ecx, [ebp - 0x14]
call fcn.00405d0b
mov esi, dword [ebp - 0x14]
movzx eax, word [esi - 0xc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x416d9c
xor byte [edi + esi], 0x88
inc edi
cmp edi, eax
jl 0x416d93
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [edi + 4]
call fcn.00416b68
movzx eax, word [ebp - 0x10]
lea ecx, [edi + 4]
push eax
push esi
call fcn.00416b68
lea ecx, [esi - 0x10]
call fcn.00404ea9
lea esp, [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x416ed4
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x60e531
call fcn.0060cc48
sub esp, 0x90
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x10], edi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00406173
mov byte [ebp - 4], 1
lea eax, [ebp - 0x98]
push 0xfde9
push dword [ebp - 0x18]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], eax
call fcn.00408f48
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push dword [ebp - 0x9c]
call fcn.00405d0b
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x9c], eax
je 0x416f5d
push dword [ebp - 0x9c]
call fcn.005f0fb3
pop ecx
mov esi, dword [ebp - 0x14]
movzx eax, word [esi - 0xc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x416f74
xor byte [edi + esi], 0x88
inc edi
cmp edi, eax
jl 0x416f6b
push 2
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 4]
call fcn.00416b68
movzx eax, word [ebp - 0x10]
lea ecx, [ebx + 4]
push eax
push esi
call fcn.00416b68
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x417e0f
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x60e624
call fcn.0060cc48
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov edi, ecx
call fcn.00404f47
push eax
lea ecx, [ebp - 0x20]
call fcn.004065d8
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00404f47
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d8
mov byte [ebp - 4], 1
call fcn.00404f47
push eax
lea ecx, [ebp - 0x1c]
call fcn.004065d8
mov byte [ebp - 4], 2
call fcn.00417d87
test eax, eax
je 0x417ece
lea ecx, [ebp - 0x14]
call fcn.00417de4
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00406123
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], ebx
je 0x417ed1
push str.binTimwp.exe
lea ecx, [ebp - 0x10]
call fcn.004062d3
mov esi, dword [ebp - 0x10]
push ebx
push esi
call fcn.005f2810
pop ecx
pop ecx
test eax, eax
jne 0x417ed1
test edi, edi
je 0x417ed1
push 1
push ebx
push edi
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg bl
test ebx, ebx
jne 0x417eec
jmp 0x417ed1
mov esi, dword [ebp - 0x10]
push 1
push ebx
push ebx
push dword [ebp - 0x18]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
cmp eax, 0x20
setg bl
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41808e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0x104
jb 0x4180af
xor al, al
jmp 0x418130
push 0x20a
xor ebx, ebx
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.005e26d0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4180cc
mov esi, dword [esi]
push esi
lea eax, [esp + 0x34]
push 0x105
push eax
call fcn.005f27ac
add esp, 0xc
mov dword [esp + 0x10], ebx
xor eax, eax
lea edi, [esp + 0x14]
push 6
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, 0x414
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [esp + 0x22], ebx
jne 0x4180a8
test eax, eax
je 0x41812b
cmp eax, 2
je 0x41812b
cmp eax, 0x402
jne 0x41812e
xor ebx, ebx
inc ebx
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418630
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x60e648
call fcn.0060cc48
sub esp, 0x30
push ebx
push esi
mov esi, ecx
or ebx, 0xffffffff
mov ecx, dword [ebp + 8]
cmp ecx, ebx
mov dword [ebp - 0x14], esi
sete al
test al, al
je 0x418651
xor eax, eax
cmp ecx, ebx
cmovne eax, ecx
jmp 0x4187b4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x418680
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x418680
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x4187b3
cmp dword [esi + 0x4c], 0
je 0x4187b1
mov ecx, esi
call fcn.004188d9
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x4186b0
push dword [esi + 0x4c]
mov esi, dword [ebp + 8]
push esi
call fcn.00418054
test al, al
pop ecx
pop ecx
cmovne ebx, esi
jmp 0x4187b1
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x3c], cl
lea ecx, [ebp - 0x3c]
push 8
mov byte [ebp - 0x10], al
mov dword [ebp - 0x28], 0xf
call fcn.0040984f
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x28]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
cmp edi, 0x10
lea edx, [ebp - 0x3c]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x3c]
cmovae edx, dword [ebp - 0x3c]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call dword [edi + 0x1c]
test eax, eax
js 0x4187a5
cmp eax, 1
jg 0x41878a
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x3c]
cmp edi, 0x10
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x20], edx
je 0x41875b
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x3c]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.005f3369
mov edx, dword [ebp - 0x20]
add esp, 0x10
cmp edx, eax
jne 0x4187a5
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x10]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x24], eax
jne 0x418785
test edx, edx
jne 0x4186db
cmp dword [ebp - 0x2c], 0x20
jae 0x4187a5
push edx
push 8
lea ecx, [ebp - 0x3c]
call fcn.0040a72d
jmp 0x4186d8
mov ebx, dword [ebp + 8]
jmp 0x4187a5
cmp eax, 3
jne 0x4187a5
mov eax, dword [ebp - 0x14]
push dword [eax + 0x4c]
push dword [ebp - 0x10]
call fcn.00418054
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004097fa
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x418927
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x60e65a
call fcn.0060cc48
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x418a2b
cmp byte [ebx + 0x3d], 0
je 0x418a2b
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x418965
xor al, al
jmp 0x418a2d
xor eax, eax
mov dword [ebp - 0x18], 0xf
push eax
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.0040984f
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
lea eax, [ebp - 0x14]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4189c3
sub eax, 1
je 0x4189c7
dec eax
sub eax, 1
je 0x418a19
xor bl, bl
jmp 0x418a1b
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
mov esi, dword [ebp - 0x14]
cmovae eax, edx
sub esi, eax
je 0x4189ff
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.005f3369
add esp, 0x10
cmp esi, eax
jne 0x4189bf
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp byte [ebx + 0x3d], 0
je 0x418a19
test esi, esi
jne 0x418989
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040a72d
jmp 0x418983
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004097fa
mov al, bl
jmp 0x418a2d
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418937
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x60e65a
call fcn.0060cc48
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x418a2b
cmp byte [ebx + 0x3d], 0
je 0x418a2b
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x418965
xor al, al
jmp 0x418a2d
xor eax, eax
mov dword [ebp - 0x18], 0xf
push eax
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.0040984f
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
lea eax, [ebp - 0x14]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4189c3
sub eax, 1
je 0x4189c7
dec eax
sub eax, 1
je 0x418a19
xor bl, bl
jmp 0x418a1b
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
mov esi, dword [ebp - 0x14]
cmovae eax, edx
sub esi, eax
je 0x4189ff
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.005f3369
add esp, 0x10
cmp esi, eax
jne 0x4189bf
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp byte [ebx + 0x3d], 0
je 0x418a19
test esi, esi
jne 0x418989
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040a72d
jmp 0x418983
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004097fa
mov al, bl
jmp 0x418a2d
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418cc7
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push esi
mov esi, ecx
push edi
and dword [esi], 0
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push 0x696368
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x418d05
xor al, al
jmp 0x418d1b
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push edi
call eax
test eax, eax
je 0x418d01
cmp dword [ebp - 4], 0
setne al
and dword [esi + 0x24], 0
push 0x118
mov byte [esi + 0x20], al
lea eax, [ebp - 0x14c]
push 0
push eax
mov dword [ebp - 0x150], 0x11c
call fcn.005e26d0
add esp, 0xc
lea edi, [ebp - 0x34]
xor eax, eax
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
push 9
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0xc], edx
push eax
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
mov eax, dword [ebp - 0x144]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push 6
pop edi
cmp edx, 5
jne 0x418d9b
test ecx, ecx
jle 0x418dbd
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x418dbd
cmp edx, edi
jne 0x418db9
sub ecx, 0
je 0x418db1
sub ecx, 1
jne 0x418dbd
mov dword [esi], 4
jmp 0x418dbd
mov dword [esi], 3
jmp 0x418dbd
jle 0x418dbd
mov dword [esi], edi
cmp dword [esi], 0
movzx eax, word [ebp - 0x3c]
mov dword [esi + 0x10], eax
movzx eax, word [ebp - 0x3a]
mov dword [esi + 0x14], eax
je 0x418dd4
cmp dword [esi], edi
jne 0x418e06
push ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418f0b
test eax, eax
jne 0x418e06
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
push eax
push ecx
push edx
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
call fcn.00418fae
mov dword [esi], eax
push str.GetNativeSystemInfo
push 0x696368
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x418e2d
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x418e33
lea ecx, [ebp - 0x34]
push ecx
call eax
movzx eax, word [ebp - 0x34]
test eax, eax
je 0x418e64
cmp eax, edi
je 0x418e5b
cmp eax, 9
je 0x418e52
cmp eax, 0xc
jne 0x418e68
mov dword [esi + 0x18], 4
jmp 0x418e68
mov dword [esi + 0x18], 1
jmp 0x418e68
mov dword [esi + 0x18], 2
jmp 0x418e68
and dword [esi + 0x18], 0
mov eax, dword [ebp - 0x20]
mov ecx, esi
mov dword [esi + 0x1c], eax
call fcn.004190a2
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0041913a
test eax, eax
jne 0x418e8a
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x24], eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41913a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
test edi, edi
jne 0x419160
push 0x57
pop esi
jmp 0x4191dc
cmp dword [ecx + 0x18], ebx
lea eax, [ebp - 4]
push eax
mov edx, 0x20019
mov eax, 0x20119
cmove eax, edx
push eax
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4191ce
cmp dword [ebp - 4], ebx
jne 0x419195
push 6
jmp 0x41915d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x697558
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4191ce
cmp dword [ebp - 8], 4
jne 0x4191cb
cmp dword [ebp - 0xc], 4
jne 0x4191cb
mov eax, dword [ebp - 0x10]
mov esi, ebx
mov dword [edi], eax
jmp 0x4191ce
push 0xd
pop esi
cmp dword [ebp - 4], ebx
je 0x4191dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x419b3c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 8], ecx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x419b67
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x419c25
push esi
push 0x228
lea eax, [ebp - 0x230]
mov dword [ebp - 4], ebx
push ebx
push eax
mov esi, 0x490
call fcn.005e26d0
add esp, 0xc
mov dword [ebp - 0x234], 0x22c
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x419bdf
lea eax, [ebp - 0x210]
push str.explorer.exe
push eax
call fcn.005f28e8
pop ecx
pop ecx
test eax, eax
je 0x419bd2
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x419ba7
jmp 0x419be3
mov eax, dword [ebp - 0x22c]
xor esi, esi
mov dword [ebp - 4], eax
jmp 0x419be3
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x419c04
call ebx
jmp 0x419c24
push dword [ebp - 8]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x419c1b
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419cc1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
mov esi, ecx
test esi, esi
jne 0x419cd6
or eax, 0xffffffff
jmp 0x419d2f
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.005e26d0
add esp, 0xc
mov dword [ebp - 0x114], 0x114
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x419d19
cmp dword [ebp - 0x110], 5
jne 0x419d19
cmp dword [ebp - 0x10c], 0
je 0x419d24
mov ecx, esi
call fcn.00419c2b
test eax, eax
je 0x419d2d
mov ecx, esi
call fcn.00419b3c
jmp 0x419d2f
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419d34
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
mov word [ebp - 0x10], 0x500
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov esi, ecx
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x419dea
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 2
push esi
call edi
test eax, eax
jne 0x419d91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x419de9
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x419dde
mov edi, ebx
cmp dword [esi], ebx
jbe 0x419dde
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x419ddc
mov eax, dword [ebp - 0xc]
inc edi
add eax, 8
mov dword [ebp - 0xc], eax
cmp edi, dword [esi]
jb 0x419dbd
jmp 0x419dde
mov bl, 1
test esi, esi
je 0x419de9
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
cmp dword [ebp - 4], 0
je 0x419df9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419e01
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 1
push ebx
push ebx
mov edi, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
jne 0x419e73
push 0x110
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.005e26d0
add esp, 0xc
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x419e6d
cmp dword [ebp - 0x118], 6
jne 0x419e6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x419ea9
mov dword [edi], ebx
xor eax, eax
jmp 0x419ea9
mov ecx, dword [ebp - 8]
mov eax, ebx
push esi
mov esi, 0x490
cmp dword [ebp - 4], eax
jbe 0x419e9f
lea edx, [ecx + 8]
cmp dword [edx], ebx
je 0x419e95
inc eax
add edx, 0xc
cmp eax, dword [ebp - 4]
jb 0x419e86
jmp 0x419e9f
imul eax, eax, 0xc
mov esi, ebx
mov eax, dword [eax + ecx]
mov dword [edi], eax
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret