joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418277
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x210], 1
call fcn.004f18b0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360zip.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4182f2
lea eax, [ebp - 0x20c]
push eax
jmp 0x4182f7
push 0x53a3d8
mov eax, edi
call fcn.004043d1
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
call fcn.004f189b
leave
ret

Function at 0x4183a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x210], 1
call fcn.004f18b0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push str.UninstallString
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallVPNMaster
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x418423
lea eax, [ebp - 0x20c]
push eax
jmp 0x418428
push 0x53a3d8
mov eax, edi
call fcn.004043d1
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
call fcn.004f189b
leave
ret

Function at 0x4184b6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x210], 1
call fcn.004f18b0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push str.UninstallString
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push SysReAllocString
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x418531
lea eax, [ebp - 0x20c]
push eax
jmp 0x418536
push 0x53a3d8
mov eax, edi
call fcn.004043d1
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
call fcn.004f189b
leave
ret
Function at 0x418d46
Capabilities:
Get file size

Disassembly:
push 0xc
mov eax, 0x52ccae
call fcn.004fc6ce
mov edi, ecx
mov eax, dword [edi + 0x20]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [eax - 0xc], ebx
jne 0x418d68
xor eax, eax
jmp 0x418e05
mov dword [ebp - 0x10], ebx
push 4
push 3
push SysReAllocString
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call fcn.004102e1
test eax, eax
je 0x418d95
cmp dword [ebp - 0x10], ebx
je 0x418d61
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x418d61
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x14], ebx
jne 0x418dda
cmp eax, 0x64
jb 0x418dda
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0041037e
test eax, eax
jne 0x418dda
push 0x64
lea esi, [edi + 0x24]
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.00410316
test eax, eax
jne 0x418dda
mov esi, dword [esi]
cmp esi, 1
je 0x418df4
cmp esi, 2
je 0x418df4
call fcn.00418f2b
movzx esi, al
cmp dword [ebp - 0x10], ebx
je 0x418df0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x418e05
cmp dword [ebp - 0x10], ebx
je 0x418e02
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
call fcn.004fc7a6
ret

Function at 0x418e0b
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x51e818
call fcn.004fc6ce
and dword [ebp - 4], 0
push dword [ebp + 0xc]
mov byte [ebp - 0xd], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418e43
mov bl, 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00405521
mov al, bl
call fcn.004fc7a6
ret 8
mov esi, dword [ebp + 8]
push 0x64
lea ebx, [esi + 0x24]
push 0
push ebx
call fcn.004f18b0
add esp, 0xc
lea eax, [esi + 4]
push eax
mov dword [ebx], 2
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0x168]
call fcn.0041bac9
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jne 0x418e88
mov byte [ebp - 0xd], 0
and dword [ebp - 0x14], 0
push 4
push 1
push 0x40000000
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.004102e1
test eax, eax
jne 0x418f0d
mov esi, dword [ebp - 0x14]
or dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x18]
push eax
call fcn.00406138
xor edi, edi
test al, al
je 0x418eef
push edi
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.0041037e
test eax, eax
jne 0x418eef
push 0x64
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00410353
test eax, eax
jne 0x418eef
push edi
push 0x64
lea esi, [ebp - 0x14]
call fcn.004103b5
test eax, eax
jne 0x418eef
mov byte [ebp - 0xd], 1
cmp dword [ebp - 0x18], 0xffffffff
je 0x418f04
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp byte [ebp - 0xd], 0
jne 0x418f14
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.00419005
cmp dword [ebp - 0x14], 0
je 0x418f23
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 0xd]
jmp 0x418e2e
Function at 0x41a180
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x3f
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.004f18b0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push str.1F7BB2575E4D2D1B4F8FE32D1E6F53B87C981C61D3BFFA01
call fcn.0041a753
push 0x37
lea eax, [ebp - 0x3b]
push ebx
push eax
mov byte [ebp - 0x3c], bl
call fcn.004f18b0
add esp, 0xc
movsx eax, byte [ebx + str.91__]
mov al, byte [ebp + eax - 0x7d]
mov byte [ebp + ebx - 0x3c], al
inc ebx
cmp ebx, 0x38
jl 0x41a1c5
push esi
lea ecx, [ebp - 0x3c]
call fcn.0041a1f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004f189b
leave
ret
Function at 0x41a1f0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0xb0], eax
xor eax, eax
mov esi, ecx
push 6
pop edx
xor ebx, ebx
mov byte [ebp - 0x20], bl
mov ecx, edx
lea edi, [ebp - 0x1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x74], bl
mov ecx, edx
lea edi, [ebp - 0x73]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x58], bl
mov ecx, edx
lea edi, [ebp - 0x57]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x3c], bl
mov ecx, edx
lea edi, [ebp - 0x3b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x1c
stosb byte es:[edi], al
pop edi
push edi
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.004f4830
push edi
add esi, edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.004f4830
mov eax, dword [ebp - 0xb0]
add esp, 0x18
xor esi, esi
mov dword [ebp - 0xb0], eax
movsx eax, byte [esi + 0x545768]
mov ecx, edi
sub ecx, eax
push ecx
lea eax, [ebp + eax - 0x20]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004f4830
movsx eax, byte [esi + 0x545768]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x3c]
sub ecx, eax
push ecx
call fcn.004f4830
movsx eax, byte [esi + 0x545768]
mov ecx, edi
sub ecx, eax
push ecx
lea eax, [ebp + eax - 0x74]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004f4830
movsx eax, byte [esi + 0x545768]
push eax
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x20]
sub ecx, eax
push ecx
call fcn.004f4830
push 0x37
lea eax, [ebp - 0xab]
push ebx
push eax
mov byte [ebp - 0xac], bl
call fcn.004f18b0
push edi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.004f4830
add esp, 0x48
push edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004f4830
add esp, 0xc
xor eax, eax
movsx ecx, byte [eax + 0x545738]
mov cl, byte [ebp + ecx - 0xad]
mov edx, dword [ebp - 0xb0]
mov byte [edx + eax], cl
inc eax
cmp eax, 0x30
jl 0x41a31f
push edi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004f4830
push edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004f4830
add dword [ebp - 0xb0], 0x30
add esp, 0x18
inc esi
cmp esi, 0x10
jl 0x41a27e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f189b
leave
ret 4
Function at 0x41a37d
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
push 0x3f
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.004f18b0
push 0x3f
lea eax, [ebp - 0x83]
push ebx
push eax
mov byte [ebp - 0x84], bl
call fcn.004f18b0
push 7
xor eax, eax
pop ecx
mov byte [ebp - 0x44], bl
lea edi, [ebp - 0x43]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x24], bl
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x3f
stosb byte es:[edi], al
lea eax, [ebp - 0xc3]
push ebx
push eax
mov byte [ebp - 0xc4], bl
call fcn.004f18b0
add esp, 0x24
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call fcn.0041a753
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x84]
call fcn.0041a64c
push 0x20
pop edi
push edi
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004f4830
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004f4830
add esp, 0x18
mov dword [ebp - 0x108], ebx
push 0xf
pop ecx
sub ecx, dword [ebp - 0x108]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.0041a4d4
inc dword [ebp - 0x108]
cmp dword [ebp - 0x108], 0x10
jl 0x41a44e
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.004f4830
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.004f4830
add esp, 0x18
lea eax, [esi + 0x640]
movsx ecx, byte [ebx + 0x545a08]
mov cl, byte [ebp + ecx - 0xc5]
mov byte [eax + ebx], cl
inc ebx
cmp ebx, 0x40
jl 0x41a49f
push 0x40
push eax
lea edi, [esi + 0x688]
call fcn.0041a781
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004f189b
leave
ret 4
Function at 0x41a4d4
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push 0x2f
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0x93]
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x94], bl
call fcn.004f18b0
push 0x2f
lea eax, [ebp - 0xf3]
push ebx
push eax
mov byte [ebp - 0xf4], bl
call fcn.004f18b0
push 7
xor eax, eax
pop ecx
mov byte [ebp - 0x24], bl
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x64], bl
lea edi, [ebp - 0x63]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x2f
stosb byte es:[edi], al
lea eax, [ebp - 0xc3]
push ebx
push eax
mov byte [ebp - 0xc4], bl
call fcn.004f18b0
imul esi, esi, 0x30
add esi, dword [ebp - 0x100]
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x44], bl
lea edi, [ebp - 0x43]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x30
stosb byte es:[edi], al
lea eax, [ebp - 0xc4]
push esi
push eax
call fcn.004f4830
add esp, 0x30
xor eax, eax
movsx ecx, byte [eax + 0x5457b8]
mov edx, dword [ebp - 0xf8]
mov cl, byte [ecx + edx - 1]
mov byte [ebp + eax - 0x94], cl
inc eax
cmp eax, 0x30
jl 0x41a595
xor eax, eax
mov cl, byte [ebp + eax - 0xc4]
xor cl, byte [ebp + eax - 0x94]
inc eax
mov byte [ebp + eax - 0xf5], cl
cmp eax, 0x30
jb 0x41a5b5
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.0041a672
push 0x20
xor eax, eax
pop edi
movsx ecx, byte [eax + 0x5459e8]
mov cl, byte [ebp + ecx - 0x45]
mov byte [ebp + eax - 0x24], cl
inc eax
cmp eax, edi
jl 0x41a5e5
mov esi, dword [ebp - 0xfc]
lea eax, [ebp - 0x24]
sub esi, eax
lea eax, [ebp + ebx - 0x24]
mov cl, byte [esi + eax]
xor cl, byte [eax]
inc ebx
mov byte [ebp + ebx - 0x65], cl
cmp ebx, edi
jb 0x41a604
push edi
push dword [ebp - 0xf8]
push dword [ebp - 0xfc]
call fcn.004f4830
push edi
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0xf8]
call fcn.004f4830
mov ecx, dword [ebp - 4]
add esp, 0x18
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f189b
leave
ret 0xc

Function at 0x41a64c
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov ecx, str.:2_
push 0x40
sub ecx, eax
pop esi
movsx edx, byte [ecx + eax]
mov edi, dword [ebp + 8]
mov dl, byte [edx + edi - 1]
mov byte [eax], dl
inc eax
dec esi
jne 0x41a65b
pop edi
pop esi
pop ebp
ret 4
Function at 0x41e44a
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x51fb04
call fcn.004fc737
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x3c], 0
je 0x41e556
cmp byte [ebx + 0x41], 0
je 0x41e556
mov eax, dword [ebx]
push 0xffffffffffffffff
mov ecx, ebx
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x41e482
xor al, al
jmp 0x41e558
push 0
push 8
pop edi
lea esi, [ebp - 0x2c]
call fcn.00402324
and dword [ebp - 4], 0
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x2c]
call fcn.0040327b
mov esi, eax
call fcn.004017e9
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
call fcn.0040327b
mov esi, eax
call fcn.004017e9
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x30]
push esi
mov esi, dword [ebp - 0x34]
add edi, esi
push edi
push eax
lea eax, [ebx + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x41e4f2
dec eax
je 0x41e4f6
dec eax
dec eax
je 0x41e552
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004051a5
mov al, bl
jmp 0x41e558
mov byte [ebx + 0x41], 0
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
call fcn.0040327b
mov esi, eax
call fcn.004017e9
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x41e534
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0040327b
mov esi, eax
call fcn.004017e9
push dword [ebx + 0x4c]
push edi
push 1
push eax
call fcn.004f7459
add esp, 0x10
cmp edi, eax
jne 0x41e4e0
cmp byte [ebx + 0x41], 0
je 0x41e552
test edi, edi
jne 0x41e493
push edi
push 8
lea edi, [ebp - 0x2c]
call fcn.00403748
jmp 0x41e493
mov bl, 1
jmp 0x41e4e2
mov al, 1
call fcn.004fc7ba
ret 4
Function at 0x4265b0
Capabilities:
Check os version
Delete registry key

Disassembly:
push 0x10
mov eax, 0x523c51
call fcn.004fc6ce
mov ebx, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 5
je 0x4265fa
cmp byte [0x594d44], 0
jne 0x4265fa
push 0x5481d4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4265f3
push str.RegDeleteTreeW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x594d48], eax
mov byte [0x594d44], 1
xor edi, edi
cmp dword [0x594d48], edi
je 0x4266ee
mov eax, dword [0x590e04]
mov esi, 0x590e04
mov ecx, esi
mov dword [ebp - 0x14], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
mov eax, dword [0x590e04]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea esi, [ebx + 4]
mov byte [ebp - 4], 1
call fcn.004278f2
inc eax
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.00426d89
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00404477
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405521
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
sub ecx, eax
push 0
lea eax, [ebp - 0x1c]
push eax
dec ecx
mov eax, esi
call fcn.0042a1c6
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00404477
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405521
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0xc]
or eax, 2
push eax
xor esi, esi
push esi
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4266d7
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [0x594d48]
push dword [ebp - 0x14]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405521
lea eax, [edi - 0x10]
call fcn.00405521
mov eax, esi
jmp 0x4266f9
push dword [ebx + 4]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
call fcn.004fc7a6
ret

Function at 0x4272a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42730d
cmp dword [ebp + 0xc], 1
je 0x4272e5
cmp dword [ebp + 0xc], 2
je 0x4272e5
push 0xd
pop eax
jmp 0x42730d
mov eax, dword [ebp - 4]
test edi, edi
je 0x427307
test eax, eax
je 0x427302
test al, 1
jne 0x4272e0
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x427307
jmp 0x4272e0
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x42ba19
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, 0x208
mov dword [ebp - 0x628], eax
xor eax, eax
lea esi, [edi - 2]
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
mov dword [ebp - 0x620], edi
call fcn.004f18b0
xor eax, eax
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004f18b0
xor eax, eax
push esi
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.004f18b0
add esp, 0x24
push str.system
push edi
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x624], edi
mov dword [ebp - 0x62c], 0x104
call fcn.0042653b
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x42bb26
mov esi, dword [sym.imp.ADVAPI32.dll_IsValidSid]
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x42bb26
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x42bb26
push dword [ebp - 0x628]
lea eax, [ebp - 0x20c]
push eax
lea edi, [ebp - 0x620]
call fcn.0042b889
test eax, eax
je 0x42bb26
xor eax, eax
inc eax
jmp 0x42bb28
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f189b
leave
ret 4

Function at 0x42bb38
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, 0x208
mov dword [ebp - 0x630], eax
xor eax, eax
lea esi, [edi - 2]
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
mov dword [ebp - 0x620], edi
call fcn.004f18b0
xor eax, eax
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004f18b0
xor eax, eax
push esi
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.004f18b0
mov eax, 0x104
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x624], eax
add esp, 0x24
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x62c], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x42bc52
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x42bc52
mov esi, dword [sym.imp.ADVAPI32.dll_IsValidSid]
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x42bc52
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x42bc52
push dword [ebp - 0x630]
lea eax, [ebp - 0x20c]
push eax
lea edi, [ebp - 0x620]
call fcn.0042b889
test eax, eax
je 0x42bc52
xor eax, eax
inc eax
jmp 0x42bc54
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f189b
leave
ret 4
Function at 0x42d07c
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x52046f
call fcn.004fc737
mov ebx, dword [ebp + 8]
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
cmp ebx, edi
jne 0x42d0a5
call fcn.00404eb3
mov eax, esi
jmp 0x42d14b
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.0040526c
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x42d131
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 1
jbe 0x42d128
push 0x590f51
push ebx
call fcn.004f5946
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x42d128
push edi
lea eax, [ebp - 0x38]
push eax
push ebx
push esi
push dword [ebp - 0x34]
mov dword [ebp - 0x38], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42d121
cmp ebx, dword [ebp - 0x38]
jne 0x42d121
push dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
push esi
call fcn.0040528b
push esi
call fcn.004f2b13
pop ecx
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.00404e8a
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004051a5
mov eax, dword [ebp - 0x30]
call fcn.004fc7ba
ret

Function at 0x42d7fe
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5211e3
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x74]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [esp + 0x30], 0
mov eax, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x54]
mov dword [esp + 0x20], eax
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jmp 0x42d87c
lea esi, [esp + 0x14]
call fcn.0046bedd
mov eax, dword [eax + 4]
test eax, eax
je 0x42d873
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 8]
lea esi, [esp + 0x14]
call fcn.004551e0
lea edi, [esp + 0x1c]
lea esi, [esp + 0x14]
call fcn.004a65a0
test al, al
je 0x42d85a
lea edi, [ebx + 0x54]
call fcn.00488a20
or dword [ebx + 0xa8], 0xffffffff
xor esi, esi
lea eax, [ebx + 0x11c]
mov byte [ebx + 0x28], 0
mov dword [ebx + 0xac], 1
mov dword [ebx + 0x138], esi
call fcn.0041ae89
lea eax, [ebx + 0x90]
call fcn.0042e8de
push dword [ebx + 4]
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x50], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42d8ef
push 0x64
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4