joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451e43
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x451f01
cmp dword [esi + 0x20], 0
je 0x451f01
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x451f01
cmp dword [ebp + 8], 0
je 0x451f01
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0045d3be
push 0x665c90
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x451ed2
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x451f01
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.00463041
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x451ef2
test edi, edi
je 0x451ef2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x451efd
mov ecx, esi
call fcn.00451be6
mov eax, ebx
jmp 0x451f03
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4567f4
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x64dbfd
call fcn.00584d52
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x45681a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x456879
call fcn.0044e558
push eax
lea ecx, [ebp - 0x10]
call fcn.00403d90
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.00584d15
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0058f6ed
push eax
call fcn.00403770
add esp, 0x14
test esi, esi
je 0x45686c
push esi
call fcn.00599bc8
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004028c0
mov eax, ebx
call fcn.00584d1b
ret 8
Function at 0x45b287
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x649620
call fcn.00584d52
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [ecx], edi
cmp dword [eax + 0x58], edi
je 0x45b331
push dword [ebp + 8]
mov ecx, eax
call fcn.0045b5bf
mov esi, eax
test esi, esi
je 0x45b3c4
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
test eax, eax
jne 0x45b31a
push edx
call fcn.0044e228
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45b31a
xor edi, edi
inc edi
jmp 0x45b324
push dword [ebx]
call fcn.0044e231
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.0040de20
jmp 0x45b3c2
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [esi + 0x84]
mov ecx, esi
push eax
call fcn.00584d15
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x45b3ba
mov ecx, dword [ebp + 0x14]
mov eax, esi
shr eax, 1
push eax
mov dword [ecx], eax
call fcn.0044e228
mov dword [ebx], eax
pop ecx
test esi, esi
jle 0x45b3b4
mov esi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.0049ea31
push edi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.0049ea31
add al, bl
mov edx, edi
test edx, edx
jns 0x45b3a5
add edx, 1
sar edx, 1
mov ecx, dword [esi]
add edi, 2
mov byte [edx + ecx], al
cmp edi, dword [ebp - 0x18]
jl 0x45b37c
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.004028c0
mov eax, edi
call fcn.00584d1b
ret 0x10

Function at 0x45b3cc
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x45b41f
push esi
push dword [ebp + 8]
call fcn.0045b5bf
mov edi, eax
test edi, edi
jne 0x45b3ef
mov eax, dword [ebp + 0x10]
jmp 0x45b431
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x45b3ea
mov eax, dword [ebp - 8]
jmp 0x45b431
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45d774
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0045d3be
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45d7ab
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0045d7cc
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45f284
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0045673e
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x45f2c0
call fcn.0045f4a6
mov dword [esi + 0xc], 1
jmp 0x45f2c5
call fcn.0045f4a6
cmp dword [esi], 0
je 0x45f30e
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x45f2e8
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0044f2f5
jmp 0x45f2f9
push 0xff
mov ecx, esi
call fcn.00403bc0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00406ad0
jmp 0x45f332
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x45f332
push dword [esi]
push dword [ebp - 4]
call fcn.0046415d
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45f3fb
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0045f4a6
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x45f443
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0044f2f5
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00406ad0
jmp 0x45f44e
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0046415d
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x466016
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x466030
mov edi, dword [esi + 0xc]
jmp 0x466070
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x466049
call fcn.00458304
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x46605e
call fcn.00458304
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x466070
call fcn.00458304
call fcn.0045d3be
cmp dword [eax + 0x3c], 0
je 0x466085
push edi
mov ecx, ebx
call fcn.004656aa
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00466262
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4660ae
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4660ba
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x475c1c
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.004b7907
call fcn.0045d412
cmp dword [eax + 0x14], 0
jne 0x475c37
mov ecx, esi
pop esi
jmp fcn.00474f3f
pop esi
ret

Function at 0x48438a
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401c50
call fcn.0045d412
cmp dword [eax + 0x14], 0
jne 0x4843a5
mov ecx, esi
pop esi
jmp fcn.00483c08
pop esi
ret
Function at 0x491175
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x49118e
call fcn.0045d3be
mov esi, dword [eax + 0xc]
push 0x66fd84
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4911e4
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4911e3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4911c4
xor esi, esi
jmp 0x4911da
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.004911ec
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5a2661
Capabilities:
Read file on windows

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

Function at 0x5a5a62
Capabilities:
Set environment variable

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

Function at 0x5aa4a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
sub esp, 0x10
xor ecx, ecx
test edx, edx
je 0x5aa575
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
cmp edx, 0x20
jb 0x5aa553
lea eax, [ebx - 1]
add eax, edx
cmp esi, eax
ja 0x5aa4da
lea eax, [esi - 1]
add eax, edx
cmp eax, ebx
jae 0x5aa553
lea eax, [edi - 1]
add eax, edx
cmp esi, eax
ja 0x5aa4ec
lea eax, [esi - 1]
add eax, edx
cmp eax, edi
jae 0x5aa553
mov eax, edx
mov edx, edi
sub edx, ebx
and eax, 0xffffffe0
mov dword [ebp - 4], edx
mov edx, esi
sub edx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
mov eax, ebx
mov ebx, dword [ebp - 8]
mov edx, edi
mov edi, dword [ebp - 4]
sub edx, esi
mov dword [ebp - 0xc], edx
lea edx, [esi + 0x10]
movups xmm0, xmmword [eax]
mov esi, dword [ebp - 0xc]
add ecx, 0x20
lea eax, [eax + 0x20]
lea edx, [edx + 0x20]
movups xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [ebx + eax - 0x20], xmm1
movups xmm1, xmmword [esi + edx - 0x20]
mov esi, dword [ebp + 0x10]
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
cmp ecx, dword [ebp - 0x10]
jb 0x5aa514
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp ecx, edx
jae 0x5aa572
sub edi, ebx
lea eax, [ecx + ebx]
sub esi, ebx
sub edx, ecx
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + esi - 1], cl
sub edx, 1
jne 0x5aa560
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5ab070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
xor edx, edx
mov eax, edi
div dword [ebx + 0xc]
imul eax, dword [ebx + 0xc]
push eax
mov dword [esi], eax
call fcn.0044e228
push edi
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
push eax
call fcn.00587150
push dword [esi]
call fcn.0044e228
push dword [ebx + 0xc]
mov dword [ebp - 4], eax
call fcn.0044e228
push dword [ebx + 0xc]
mov esi, eax
push dword [ebp + 0x14]
mov dword [ebp + 8], esi
push esi
call fcn.00587150
mov eax, dword [ebp + 0x18]
xor edi, edi
add esp, 0x24
cmp dword [eax], edi
jbe 0x5ab129
mov ecx, dword [ebx + 0xc]
xor eax, eax
test ecx, ecx
je 0x5ab0ea
mov ecx, dword [ebp + 0xc]
add ecx, edi
nop dword [eax]
xor byte [ecx + eax], 0xb6
inc eax
cmp eax, dword [ebx + 0xc]
jb 0x5ab0e0
push dword [ebx + 0xc]
mov eax, dword [ebp + 0xc]
push esi
add eax, edi
push eax
push esi
call fcn.005aa4a0
push dword [ebp + 0x10]
mov esi, dword [ebp - 4]
mov ecx, ebx
add esi, edi
push esi
push dword [ebp + 8]
call fcn.005aae20
push dword [ebx + 0xc]
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00587150
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov ecx, dword [ebx + 0xc]
add edi, ecx
cmp edi, dword [eax]
jb 0x5ab0d1
push esi
call fcn.0044e231
push dword [ebp + 0xc]
call fcn.0044e231
mov eax, dword [ebp - 4]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x5ac2c0
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1470
call fcn.00584760
mov eax, dword [0x6cd05c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x268]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x5ac39a
lea eax, [ebp - 0x268]
push eax
call fcn.005ac3b0
push 0x208
lea eax, [ebp - 0x470]
push 0
push eax
call fcn.00586ff0
push 0x1000
lea eax, [ebp - 0x1470]
push 0
push eax
call fcn.00586ff0
add esp, 0x18
lea eax, [ebp - 0x470]
push 0x104
push eax
push 0x6971ec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x5ac39a
push esi
push edi
mov ecx, 0x16
lea edi, [ebp - 0x60]
mov esi, str._d__c_timeout_5__cmd__d__c_rmdir__s__q___s_
lea eax, [ebp - 0x268]
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x1470]
movsw word es:[edi], word [esi]
push 0x800
push eax
call fcn.004052c0
add esp, 0x10
lea eax, [ebp - 0x1470]
push 0
push 0
push eax
lea eax, [ebp - 0x470]
push eax
push 0x6971fc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00583e60
mov esp, ebp
pop ebp
ret
Function at 0x5ad2e0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6cd05c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x5ad341
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5ad34f
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x14], eax
setne al
xor ecx, ebp
call fcn.00583e60
mov esp, ebp
pop ebp
ret
Function at 0x5b04b0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x6cd05c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 5
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
cmp esi, 0x20
ja 0x5b069f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x620]
push eax
push 1
push 0
push str..htm
push accept
call ebx
test eax, eax
jne 0x5b069d
lea eax, [ebp - 0x624]
mov dword [ebp - 0x624], 0x104
push eax
lea eax, [ebp - 0x61c]
push eax
push 0
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0x6979a0
lea ecx, [ebp - 0x624]
call fcn.00405a10
push dword [eax]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x624]
call fcn.00401e00
lea eax, [ebp - 0x620]
push eax
push 1
push 0
lea eax, [ebp - 0x414]
push eax
push accept
call ebx
test eax, eax
jne 0x5b069d
lea eax, [ebp - 0x624]
mov dword [ebp - 0x624], 0x104
push eax
lea eax, [ebp - 0x61c]
push eax
push 0
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x414]
push 0x6978e8
push eax
call fcn.00586bf2
mov esi, eax
add esp, 8
test esi, esi
jne 0x5b062e
lea eax, [ebp - 0x414]
push 0x6978f4
push eax
call fcn.00586bf2
mov esi, eax
add esp, 8
test esi, esi
jne 0x5b062e
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp + eax*2 - 0x416]
jmp 0x5b0633
xor eax, eax
mov word [esi], ax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x697978
push esi
call ebx
push edi
push esi
call ebx
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b0650
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x5b0677
xor eax, eax
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x5b069f
add esi, esi
mov eax, esi
call fcn.00584fd0
mov eax, esp
lea ecx, [ebp - 0x414]
push 3
push esi
push ecx
push eax
call fcn.00406a90
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x5b069f
mov eax, esi
lea esp, [ebp - 0x630]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00583e60
mov esp, ebp
pop ebp
ret 8
Function at 0x5b0740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x656790
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6cd05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
cmp dword [eax + 0xb0], 0
jne 0x5b08e1
call fcn.0044e558
mov ecx, eax
test ecx, ecx
jne 0x5b078f
push 0x80004005
call fcn.004028a0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b07a4
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x5b07a6
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x5b07d7
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00403b60
mov esi, dword [ebp - 0x10]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push dword [esi - 8]
push esi
call fcn.0058d218
add esp, 8
test eax, eax
js 0x5b0907
cmp eax, dword [esi - 8]
jg 0x5b0907
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov edx, 0x697980
lea ecx, [ebp - 0x14]
call fcn.00405a10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00404ee0
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x14]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b0870
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b086c
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b086c
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5b0870
mov ecx, edx
call esi
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x5b089d
push 0x6a
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
je 0x5b089d
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xb0], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x5b08e1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b08f3
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b08f3
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004028a0
int3
Function at 0x5b1570
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6568b3
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x6cd05c]
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
push 0
mov dword [ebp - 4], 0
push 2
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x23c], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
or ebx, 0xffffffff
cmp edi, ebx
je 0x5b16b8
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x5b16b1
nop word [eax + eax]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.00403910
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
test eax, eax
je 0x5b16fa
push eax
push dword [ebp - 0x240]
call fcn.0058d931
add esp, 8
test eax, eax
jne 0x5b1652
push dword [ebp - 0x234]
push eax
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x244], 1
mov byte [ebp - 4], 0
mov eax, ebx
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b169a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b1696
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b1696
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5b169a
mov ecx, edx
call esi
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x5b15f0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x5b1708
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b1704
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b1704
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5b1708
push 0x80004005
call fcn.004028a0
mov ecx, edx
call esi
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.00583e60
mov esp, ebp
pop ebp
ret 4