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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x50c3e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00444990
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x474a43
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x474a43
test al, 0x10
je 0x474a43
mov bl, 1
jmp 0x474a45
xor bl, bl
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x474a7b
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x474a71
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x474a8c
push edx
push ecx
call fcn.0048d1e5
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0048d444
mov esp, ebp
pop ebp
ret
call fcn.00498b39
int3

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

Disassembly:
cmp dword [ecx + 0x10], 0
je 0x4754e1
cmp dword [ecx + 0x14], 8
jb 0x4754ce
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4754e1
test al, 0x10
je 0x4754e1
mov al, 1
ret
xor al, al
ret
Function at 0x475e60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf118
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x50c3e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], 0
jl 0x476001
mov esi, dword [ebp + 0xc]
jg 0x475ebd
test esi, esi
je 0x476001
cmp dword [ebx], 0xffffffff
je 0x476001
push esi
lea ecx, [ebp - 0x1c]
call fcn.00476080
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push 0
push eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
mov esi, dword [ebp - 0x10]
sub ecx, edi
mov byte [ebp + 0x13], 0
cmp esi, ecx
jae 0x475f00
lea ebx, [edi + esi]
jmp 0x475f30
jbe 0x475f33
mov eax, dword [ebp - 0x14]
sub eax, edi
cmp esi, eax
jbe 0x475f20
lea eax, [ebp + 0x13]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.0041ce20
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
jmp 0x475f33
sub esi, ecx
push esi
push 0
push ebx
call fcn.0048f8b0
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
cmp edi, ebx
je 0x475fbe
mov ecx, ebx
sub ecx, edi
mov dword [ebp + 0x10], ecx
cmp ecx, 0x1000
jb 0x475f89
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x47602c
push eax
call fcn.0048d1b5
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x476031
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp + 0x10]
jmp 0x475f9d
test ecx, ecx
je 0x475f9b
push ecx
call fcn.0048d1b5
mov ecx, dword [ebp + 0x10]
add esp, 4
jmp 0x475f9d
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
add eax, ecx
push ecx
mov dword [esi + 8], eax
mov esi, dword [esi]
push edi
push esi
call fcn.0048f330
sub ebx, edi
add esp, 0xc
add ebx, esi
mov esi, dword [ebp + 8]
mov dword [esi + 4], ebx
test edi, edi
je 0x475feb
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x475fe1
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476031
push ecx
push edi
call fcn.0048d1e5
add esp, 8
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
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
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
call fcn.004023d0
call fcn.00498b39
int3
Function at 0x476e10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf26d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x50c3e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ebx, [edi + 0x18]
mov dword [ebp - 4], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea esi, [edi + 0x30]
mov byte [ebp - 4], 1
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0048d1b5
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 2
cmp edi, esi
je 0x476eac
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x476ea1
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.004025c0
push 1
push 0x4d6984
mov ecx, edi
call fcn.00404930
push 0x10
push str.cfgsproduct.dat
mov ecx, eax
call fcn.00404930
cmp ebx, esi
je 0x476ee1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x476ed6
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, ebx
push eax
call fcn.004025c0
push 1
push 0x4d6984
mov ecx, ebx
call fcn.00404930
push 0xc
push str.cfgsoem.ini
mov ecx, eax
call fcn.00404930
push 0x24
call fcn.0048d1b5
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x476f1f
push esi
mov ecx, eax
call fcn.00440080
mov dword [edi + 0x38], eax
jmp 0x476f26
mov dword [edi + 0x38], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4773c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x50c3e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, edx
push esi
mov esi, dword [ebp + 0x10]
mov word [ebp - 0x1c], ax
lea eax, [ecx + 2]
mov dword [ebp - 0xc], 0
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 8], 7
mov dword [ebp - 0x20], eax
jmp 0x477400
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477400
sub ecx, dword [ebp - 0x20]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.004025c0
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x24]
push ecx
push 0x20219
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x477483
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
add eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push 0
push esi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x24]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x477483
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x47747f
cmp eax, 2
jne 0x477483
xor esi, esi
jmp 0x477488
mov esi, 0x80004005
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x4774be
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4774b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4774d1
push edx
push ecx
call fcn.0048d1e5
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048d444
mov esp, ebp
pop ebp
ret
call fcn.00498b39
int3

Function at 0x477710
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x477744
xor al, al
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x477754
mov ecx, dword [esi]
mov esi, ecx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x47b980
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c76d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x50c3e4]
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 eax, dword [0x5156d0]
mov ebx, dword [ebp + 8]
test al, 1
jne 0x47b9e8
or eax, 1
mov dword [0x5156c8], 0
mov dword [0x5156d0], eax
xor eax, eax
push 0x4d3f90
mov dword [0x5156cc], 7
mov word [0x5156b8], ax
call fcn.0048d42f
add esp, 4
cmp dword [0x5156c8], 0
jne 0x47bb15
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
sub eax, dword [0x50b5fc]
mov dword [ebp - 4], ecx
js 0x47ba9c
test eax, eax
jne 0x47ba3e
mov edx, dword [0x50b5f8]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ba31
jmp 0x47ba8b
xor esi, esi
mov edi, 0x112
lea eax, [edi + esi]
cdq
sub eax, edx
mov edx, dword [ebp - 0x2c]
sar eax, 1
lea ecx, [eax + eax*2]
sub edx, dword [ecx*4 + 0x50b5fc]
jns 0x47ba60
mov edi, eax
jmp 0x47ba66
test edx, edx
jle 0x47ba71
mov esi, eax
mov eax, edi
sub eax, esi
cmp eax, 1
jg 0x47ba45
jmp 0x47ba99
lea eax, [eax + eax*2]
mov edx, dword [eax*4 + 0x50b5f8]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ba80
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004025c0
mov esi, dword [ebp - 0x18]
mov edx, dword [0x5156cc]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x47bae3
mov ecx, dword [0x5156b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47bad9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47bb69
push edx
push ecx
call fcn.0048d1e5
add esp, 8
mov eax, dword [ebp - 0x28]
mov dword [0x5156b8], eax
mov eax, dword [ebp - 0x24]
mov dword [0x5156bc], eax
mov eax, dword [ebp - 0x20]
mov dword [0x5156c0], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x5156c4], eax
mov eax, dword [ebp - 0x14]
mov dword [0x5156c8], esi
mov dword [0x5156cc], eax
test esi, esi
je 0x47bb37
mov eax, dword [ebx + 4]
push 0x5156b8
cmp eax, dword [ebx + 8]
je 0x47bb2f
mov ecx, eax
call fcn.004035b0
add dword [ebx + 4], 0x18
jmp 0x47bb37
push eax
mov ecx, ebx
call fcn.0040f0b0
mov ecx, dword [ebx + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
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.0048d444
mov esp, ebp
pop ebp
ret
call fcn.00498b39
int3
Function at 0x47bee0
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi - 1]
add eax, ecx
cmp byte [eax], 0x3d
jne 0x47bf01
lea eax, [eax - 1]
dec esi
cmp byte [eax], 0x3d
je 0x47bef5
mov dword [ebp + 0xc], esi
xor eax, eax
test esi, esi
je 0x47bfb8
push ebx
mov edx, 1
mov dword [ebp + 8], 2
lea ebx, [esi - 1]
sub edx, ecx
shr ebx, 2
push edi
lea edi, [ecx + 2]
mov dword [ebp - 4], edx
inc ebx
jmp 0x47bf30
movsx ecx, byte [edi - 1]
mov dh, byte [ecx + 0x4e47c0]
movsx ecx, byte [edi - 2]
mov dl, byte [ecx + 0x4e47c0]
mov cl, dh
sar cl, 4
and cl, 3
shl dl, 2
or dl, cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], dl
inc eax
mov ecx, dword [ebp + 8]
cmp ecx, esi
jae 0x47bfa4
movsx ecx, byte [edi]
mov esi, dword [ebp + 0x10]
shl dh, 4
mov dl, byte [ecx + 0x4e47c0]
mov cl, dl
sar cl, 2
and cl, 0xf
or cl, dh
mov byte [eax + esi], cl
inc eax
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
add ecx, edi
cmp ecx, esi
jae 0x47bfa1
movsx ecx, byte [edi + 1]
shl dl, 6
mov cl, byte [ecx + 0x4e47c0]
and cl, 0x3f
or cl, dl
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], cl
inc eax
mov ecx, dword [ebp + 8]
add ecx, 4
add edi, 4
mov dword [ebp + 8], ecx
sub ebx, 1
jne 0x47bf30
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47c710
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x47c8e2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3f0
jne 0x47c8e2
push edi
mov ecx, esi
call fcn.0047d290
mov edi, eax
cmp edi, 0xffffffff
je 0x47c8d9
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0xffffffff
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47c8c5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x47c8bb
test eax, eax
je 0x47c8bb
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x47c7c6
call ebx
cmp eax, 0x7a
jne 0x47c8bb
push dword [ebp - 4]
call fcn.0048d478
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp - 4]
push ebx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x47c8b2
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x47c8b2
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47c8b2
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x47c838
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x47c8bb
push dword [ebp - 4]
call fcn.0048d478
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x47c89f
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x47c89f
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47c89f
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x18]
cmp eax, 1
sete bl
call fcn.0048d481
push dword [ebp - 8]
call fcn.0048d481
add esp, 8
test bl, bl
jne 0x47c8c5
jmp 0x47c8bb
push ebx
call fcn.0048d481
push dword [ebp - 8]
call fcn.0048d481
add esp, 8
jmp 0x47c8bb
push ebx
call fcn.0048d481
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov byte [esi], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x47c8d9
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47d290
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfc8b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x50c3e4]
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
lea eax, [ebp - 0x248]
mov dword [ebp - 0x244], 0xffffffff
push eax
mov dword [ebp - 0x248], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x47d4a0
cmp dword [ebp - 0x248], 0xffffffff
je 0x47d4a0
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
je 0x47d469
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x22c
push ebx
push eax
call fcn.0048f8b0
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x47d3e0
jmp 0x47d370
lea eax, [ebp - 0x218]
push str.explorer.exe
push eax
call fcn.0049e8f5
add esp, 8
test eax, eax
jne 0x47d3be
cmp edi, ebx
je 0x47d39f
mov eax, dword [ebp - 0x234]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x258], edi
jmp 0x47d3be
lea eax, [ebp - 0x234]
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.00407390
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x258]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47d370
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 0x24c], esi
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x47d469
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0xffffffff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x47d454
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x248]
jne 0x47d454
push dword [esi]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x47d454
lea ecx, [ebp - 0x244]
push ecx
push 0xf
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x250]
test eax, eax
jne 0x47d45d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, edi
jne 0x47d3f0
jmp 0x47d463
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x244]
test esi, esi
je 0x47d49c
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x47d492
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d4c2
push ebx
push esi
call fcn.0048d1e5
add esp, 8
mov eax, edi
jmp 0x47d4a6
mov eax, dword [ebp - 0x244]
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.0048d444
mov esp, ebp
pop ebp
ret
call fcn.00498b39
int3
Function at 0x47d510
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfd99
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x50c3e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00472820
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
call fcn.00472820
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.00472820
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
call fcn.00472820
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 3
call fcn.00472820
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 4
call fcn.00472820
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 5
call fcn.00472820
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 6
call fcn.00472820
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 7
call fcn.00472820
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 8
call fcn.00472820
lea ecx, [esi + 0xf0]
mov byte [ebp - 4], 9
call fcn.00472820
lea ecx, [esi + 0x108]
mov byte [ebp - 4], 0xa
call fcn.00472820
lea ecx, [esi + 0x120]
mov byte [ebp - 4], 0xb
call fcn.00472820
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 0xc
call fcn.00472820
lea ecx, [esi + 0x150]
mov byte [ebp - 4], 0xd
call fcn.00472820
lea ecx, [esi + 0x168]
mov byte [ebp - 4], 0xe
call fcn.00472820
lea ecx, [esi + 0x180]
mov byte [ebp - 4], 0xf
call fcn.00472820
lea ecx, [esi + 0x198]
mov byte [ebp - 4], 0x10
call fcn.00472820
mov dword [esi + 0x1b0], 0
mov eax, esi
mov dword [esi + 0x1b4], 0
mov dword [esi + 0x1b8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x486350
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0eb7
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x50c3e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
call fcn.00487150
test al, al
jne 0x486398
or ebx, 0xffffffff
jmp 0x4864fe
cmp dword [edi + 0xc], 0
jne 0x4863e1
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 0
push 1
push 0
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi], eax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push 0x4876b0
push 0
push 0
mov dword [ebp - 0x10], 0
call fcn.0049ca94
add esp, 0x18
mov dword [edi + 0xc], eax
lea ecx, [edi + 0x10]
call fcn.00487f90
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x20
mov byte [ebp - 4], 1
call fcn.0048d1b5
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x48641f
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
call fcn.004854a0
mov ebx, eax
jmp 0x486421
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push 0x10
mov byte [ebp - 4], 3
call fcn.0048d1b5
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
test esi, esi
je 0x486454
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_struct_KIC::Event_.0
mov dword [esi + 0xc], ebx
jmp 0x486456
xor esi, esi
cmp dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
je 0x48648d
push 4
call fcn.0048d1b5
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
mov dword [eax], ecx
jmp 0x486490
mov ecx, dword [ebp - 0x14]
mov edx, dword [edi + 0x20]
cmp edx, dword [edi + 0x24]
je 0x4864b2
mov dword [edx + 4], esi
xor esi, esi
mov dword [edx], ebx
mov dword [edx + 8], ecx
add dword [edi + 0x20], 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], esi
jmp 0x4864c2
lea ecx, [ebp - 0x1c]
push ecx
push edx
lea ecx, [edi + 0x1c]
call fcn.00485ae0
mov esi, dword [ebp - 0x18]
lea ecx, [edi + 0x10]
call fcn.00487fa0
push 0
push 1
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
xor ebx, ebx
test esi, esi
je 0x4864fe
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4864fe
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4864fe
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
lea ecx, [ebp + 8]
call fcn.0043adf0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24