joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4171d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4a3110]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.004138c0
test eax, eax
je 0x417338
push ebx
mov ebx, 1
push edi
test byte [0x4a9ab0], bl
jne 0x417218
or dword [0x4a9ab0], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [0x4a9aac], eax
mov eax, dword [0x4a9aac]
push 0xa
push 0x10
push 0x4a9a8c
push eax
call fcn.0042c92b
push 0xa
push 0x10
push 0x4a9a6c
push esi
call fcn.0042c92b
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xa
push 0x10
push 0x4a9a4c
push eax
call fcn.0042c92b
mov ecx, 8
mov esi, str.kcrashdumper.exe
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x28]
add esp, 0x10
push ecx
mov dword [0x4a9a48], ebx
mov dword [0x4a9a44], 0
mov dword [0x4a9a40], 0xc
movsw word es:[edi], word [esi]
call fcn.004138c0
push eax
push 0x481234
push 0x4a9240
call fcn.00417190
call fcn.004138d0
push eax
push 0x4a9a6c
push 0x4a9a4c
push 0x4a9a8c
push 0x4a9240
push str._s__pid_s__tid_s__exp_s__callfrom1__module_s
push 0x4a8140
call fcn.004171b0
add esp, 0x2c
push 0x4a812c
push 0x4a80e8
push 0
push 0
push 0
push ebx
push 0
push 0
push 0x4a8140
mov edx, 0xa
push 0x4a9240
mov dword [0x4a80e8], 0x44
mov dword [0x4a8114], ebx
mov word [0x4a8118], dx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
mov dword [0x4a80e0], eax
pop ebx
test eax, eax
je 0x417338
mov eax, dword [0x4a812c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x4a8130]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [0x4a812c]
push edx
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042b571
mov esp, ebp
pop ebp
ret

Function at 0x417a30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x417a4b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x417a82
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x417a7e
jmp 0x417a70
cmp esi, eax
jae 0x417a82
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x417a70
cmp esi, eax
jb 0x417a89
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x417bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417c42
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x417c11
cmp eax, 2
jne 0x417c2c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x417c3c
test eax, eax
je 0x417c37
test al, 1
jne 0x417c2c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x417c3c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x418200
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479148
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4a3110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004180e0
push str.wps.exe
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], 0
call fcn.00401880
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x418253
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
sete bl
cmp dword [ebp - 0x18], 8
jb 0x418271
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042a9e1
add esp, 4
xor eax, eax
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jb 0x418297
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0042a9e1
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
Function at 0x41c310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4a3110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov word [ebp - 0x20], ax
mov eax, edx
push esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c350
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x20]
call fcn.00401f10
mov eax, dword [ebp - 0x20]
mov esi, 8
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0xc], esi
jae 0x41c380
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
push ecx
push 0x20219
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41c39f
cmp dword [ebp - 0xc], esi
jmp 0x41c40d
mov ecx, dword [ebp + 0x18]
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x24]
push ecx
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x28]
push edx
push 0
push ebx
push eax
mov dword [ebp - 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x24]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41c409
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x41c3e5
cmp eax, 2
jne 0x41c409
cmp dword [ebp - 0xc], 8
jb 0x41c3f7
mov edx, dword [ebp - 0x20]
push edx
call fcn.0042a9e1
add esp, 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc], 8
jb 0x41c41b
mov eax, dword [ebp - 0x20]
push eax
call fcn.0042a9e1
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 0x80004005
pop ebx
call fcn.0042b571
mov esp, ebp
pop ebp
ret
Function at 0x41c560
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47900b
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4a3110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x234]
xor ebx, ebx
push eax
mov dword [ebp - 0x254], ebx
call fcn.0041c430
push str.ksolite.dll
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x250]
push edx
mov dword [ebp - 4], ebx
call fcn.00401790
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x41c5cb
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [ebp - 0x23c], 8
mov esi, eax
jb 0x41c5ec
mov eax, dword [ebp - 0x250]
push eax
call fcn.0042a9e1
add esp, 4
xor ecx, ecx
cmp esi, ebx
je 0x41c626
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
lea edx, [ebp - 0x234]
mov word [edi], cx
push edx
mov ecx, edi
call fcn.00401710
cmp dword [ebp - 0x220], 8
jb 0x41c7a9
mov eax, dword [ebp - 0x234]
push eax
jmp 0x41c7a1
push 0x206
lea edx, [ebp - 0x216]
push ebx
push edx
mov word [ebp - 0x218], cx
call fcn.0042b970
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.InstallRoot
push str.SoftwareKingsoftOffice6.0Common
call fcn.004242d0
push eax
call fcn.0041c310
add esp, 0x14
cmp eax, ebx
je 0x41c691
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str.InstallRoot
push str.SoftwareKingsoftOffice6.0Common
push 0x80000002
call fcn.0041c310
add esp, 0x14
cmp eax, ebx
jne 0x41c6d4
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41c6a0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00401f10
push 8
push str.office6
lea ecx, [ebp - 0x234]
call fcn.004015f0
cmp dword [ebp - 0x224], ebx
jne 0x41c774
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
call fcn.004242d0
push eax
call fcn.0041c310
add esp, 0x14
cmp eax, ebx
je 0x41c72f
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push 0x80000002
call fcn.0041c310
add esp, 0x14
cmp eax, ebx
jne 0x41c774
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x41c740
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41c740
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00401f10
push 8
push str.office6
lea ecx, [ebp - 0x234]
call fcn.004015f0
lea ecx, [ebp - 0x234]
xor eax, eax
push ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov ecx, edi
mov word [edi], ax
call fcn.00401710
cmp dword [ebp - 0x220], 8
jb 0x41c7a9
mov edx, dword [ebp - 0x234]
push edx
call fcn.0042a9e1
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
Function at 0x41c870
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47906c
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4a3110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x26c]
xor esi, esi
push eax
mov dword [ebp - 0x270], esi
call fcn.0041c560
push str.cfgs_setup.cfg
push eax
lea ecx, [ebp - 0x250]
push ecx
mov dword [ebp - 4], esi
call fcn.00401880
add esp, 0x10
mov ebx, 8
cmp dword [ebp - 0x258], ebx
jb 0x41c8e9
mov edx, dword [ebp - 0x26c]
push edx
call fcn.0042a9e1
add esp, 4
mov ecx, dword [0x485b78]
mov eax, dword [str.0.0.0.0]
mov edx, dword [0x485b7c]
push 0x1f8
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x218], eax
mov eax, dword [0x485b80]
lea ecx, [ebp - 0x208]
push esi
push ecx
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x20c], eax
call fcn.0042b970
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.004014f0
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x220], ebx
jae 0x41c976
lea eax, [ebp - 0x234]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.MajorVersion
push str.Version
call esi
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x41c9a4
lea eax, [ebp - 0x234]
push eax
push 0
push str.FirstVersion
push str.Version
call esi
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x41c9cd
lea eax, [ebp - 0x234]
push eax
push 0
push str.SecondVersion
push str.Version
call esi
cmp dword [ebp - 0x220], 8
mov ebx, eax
mov eax, dword [ebp - 0x234]
jae 0x41c9f3
lea eax, [ebp - 0x234]
push eax
push 0
push str.Version
push str.Version
call esi
mov ecx, dword [ebp - 0x274]
mov edx, dword [ebp - 0x270]
push eax
push ebx
push ecx
push edx
push str._u._u._u._u
lea eax, [ebp - 0x218]
push 0x103
push eax
call fcn.0042d283
xor ebx, ebx
add esp, 0x1c
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41ca45
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
mov ecx, edi
call fcn.00401f10
mov esi, 8
cmp dword [ebp - 0x220], esi
jb 0x41ca7f
mov eax, dword [ebp - 0x234]
push eax
call fcn.0042a9e1
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
cmp dword [ebp - 0x23c], esi
jb 0x41caaf
mov edx, dword [ebp - 0x250]
push edx
call fcn.0042a9e1
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
Function at 0x41d9f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x10], 0
jne 0x41d9f9
xor al, al
ret
cmp dword [ecx + 0x14], 8
jb 0x41da01
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41da17
test al, 0x10
je 0x41da17
mov eax, 1
ret
xor eax, eax
ret

Function at 0x41ed00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479338
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4a3110]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], ebx
jl 0x41ed99
mov esi, dword [ebp + 0xc]
jg 0x41ed49
cmp esi, ebx
jbe 0x41ed99
cmp dword [edi], 0xffffffff
je 0x41ed99
push esi
lea ecx, [ebp - 0x20]
call fcn.0041e710
mov ecx, dword [ebp - 0x20]
mov edx, dword [edi]
push ebx
lea eax, [ebp + 0x10]
push eax
push esi
push ecx
push edx
mov dword [ebp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0041e710
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
call fcn.0041ea30
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x41eda7
push eax
call fcn.0042a9e1
add esp, 4
jmp 0x41eda7
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x20]
push edx
mov ecx, esi
call fcn.0041ea30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41ee30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4a3110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.00414a70
add esp, 8
cmp dword [ebp - 0x10], 0
je 0x41ee74
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x41ee60
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ee74
test al, 0x10
je 0x41ee74
mov bl, 1
jmp 0x41ee76
xor bl, bl
cmp dword [ebp - 0xc], 8
jb 0x41ee88
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0042a9e1
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042b571
mov esp, ebp
pop ebp
ret
Function at 0x41ffb0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479618
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a3110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x41ffeb
mov eax, dword [esi]
jmp 0x41ffed
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4200a3
cmp dword [esi + 0x14], edi
jb 0x420006
mov eax, dword [esi]
jmp 0x420008
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call edi
test eax, eax
jne 0x4200a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4200a3
xor eax, eax
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.004014f0
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], 0
call fcn.0041ff00
add esp, 4
cmp dword [esi + 0x10], 0
jne 0x42006d
lea ecx, [ebp - 0x2c]
call fcn.0041e180
xor eax, eax
jmp 0x4200a8
lea edx, [ebp - 0x2c]
push edx
call fcn.0041ffb0
add esp, 4
test eax, eax
je 0x420061
cmp dword [esi + 0x14], 8
jb 0x420085
mov esi, dword [esi]
push 0
push esi
call edi
test eax, eax
jne 0x42009b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x420061
lea ecx, [ebp - 0x2c]
call fcn.0041e180
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
Function at 0x423e80
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x423fc2
cmp dword [ebp + 0xc], 0
je 0x423fc2
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push 0
push 0
push 1
push esi
mov dword [ebp + 8], 0
call ebx
test eax, eax
jne 0x423ece
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x423ece
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push edi
push ecx
call fcn.00429911
add esp, 4
mov edi, eax
mov eax, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push eax
push edi
push 1
push esi
call ebx
test eax, eax
je 0x423fae
mov eax, dword [edi]
mov dword [ebp - 4], eax
test eax, eax
je 0x423fae
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x423fae
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0
push 0
push 1
push edx
mov dword [ebp + 8], 0
call ebx
test eax, eax
jne 0x423f35
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x423fa3
mov eax, dword [ebp + 8]
push eax
call fcn.00429911
mov edx, dword [ebp + 8]
add esp, 4
lea ecx, [ebp + 8]
push ecx
push edx
mov esi, eax
mov eax, dword [ebp + 0xc]
push esi
push 1
push eax
call ebx
test eax, eax
je 0x423f94
mov ebx, dword [esi]
test ebx, ebx
je 0x423f94
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x423f94
mov ecx, dword [ebp - 4]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, 1
push edi
sete bl
call fcn.0042a754
push esi
call fcn.0042a754
add esp, 8
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.0042a754
push esi
call fcn.0042a754
add esp, 8
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.0042a754
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x423fd0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4a3110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x4240b7
cmp word [ebx], 0
je 0x4240b7
test edi, edi
je 0x4240b7
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x42402b
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret 8
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.0042b970
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x424093
lea esp, [esp]
lea edx, [ebp - 0x20c]
push ebx
push edx
call fcn.0042bb95
add esp, 8
test eax, eax
jne 0x424082
lea eax, [ebp - 0x228]
push eax
mov ecx, edi
call fcn.00402210
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x424060
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi]
xor eax, eax
cmp edx, dword [edi + 4]
pop esi
pop edi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0042b571
mov esp, ebp
pop ebp
ret 8
Function at 0x424310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479ef5
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x4a3110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [ebp - 0x2ba]
mov dword [ebp - 0x2c4], esi
mov dword [ebp - 0x2c0], ebx
call fcn.00424220
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov dword [ebp - 4], 1
mov word [ebp - 0x218], ax
call fcn.0042b970
lea edx, [ebp - 0x250]
push edx
call fcn.0041c560
add esp, 0x10
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 2
call fcn.00416600
mov edi, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x23c], edi
jb 0x4243b7
mov eax, dword [ebp - 0x250]
push eax
call fcn.0042a9e1
add esp, 4
xor ecx, ecx
xor edx, edx
mov eax, 7
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], ecx
mov word [ebp - 0x250], dx
cmp byte [0x4a9c68], cl
jne 0x424480
mov dword [ebp - 0x220], eax
push 0x23
mov dword [ebp - 0x224], ecx
xor eax, eax
push str.Support_GetWinSpecialFoldersFromReg
lea ecx, [ebp - 0x234]
mov word [ebp - 0x234], ax
call fcn.00401f10
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x26c]
mov ebx, 1
push edx
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 5
mov dword [ebp - 0x2c0], ebx
call fcn.00415c20
mov eax, dword [ebp - 0x26c]
cmp dword [ebp - 0x258], edi
jae 0x424442
lea eax, [ebp - 0x26c]
push str.true
push eax
call fcn.0042bb95
add esp, 8
test eax, eax
sete byte [ebp - 0x2b9]
cmp dword [ebp - 0x258], edi
jb 0x424470
mov eax, dword [ebp - 0x26c]
push eax
call fcn.0042a9e1
add esp, 4
cmp byte [ebp - 0x2b9], 0
mov byte [ebp - 0x2b9], 0
je 0x424487
mov byte [ebp - 0x2b9], 1
mov dword [ebp - 4], 4
test bl, 1
je 0x4244b3
and ebx, 0xfffffffe
mov dword [ebp - 0x2c0], ebx
cmp dword [ebp - 0x220], edi
jb 0x4244b3
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0042a9e1
add esp, 4
cmp byte [ebp - 0x2b9], 0
je 0x4244db
push 0xa
push 0xffffffffffffffff
lea edx, [ebp - 0x218]
push 0x104
push edx
mov edx, dword [ebp + 8]
xor ecx, ecx
call fcn.00423b60
add esp, 0x10
jmp 0x4244f0
mov eax, dword [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x218]
mov word [esi], dx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424510
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00401f10
or ebx, 2
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x2c0], ebx
mov byte [ebp - 4], 1
call fcn.00416ad0
cmp byte [ebp - 0x2ba], 0
je 0x424555
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret