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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41968b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4196af
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4196ca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x41cb1c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41cb54
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041ee36
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041ee0e
jmp 0x41cb60
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x41cb64
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x43b4f0
mov ecx, edi
call fcn.0041ec66
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x41cbb7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x41cbca
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0041ee36
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0041ee0e
jmp 0x41cbca
mov ecx, esi
call fcn.0041eea3
test eax, eax
je 0x41cbca
push edi
mov ecx, eax
call fcn.0041cb1c
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x41e166
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41e1a8
call fcn.00424677
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41e1a8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41e19f
xor eax, eax
jmp 0x41e1b0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041e1b6
pop edi
pop esi
pop ebx
ret 4

Function at 0x422dda
Capabilities:
Create http request

Disassembly:
mov eax, 0x427f30
call fcn.0040bd08
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x422e12
call fcn.00424677
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x422e37
push eax
push dword [esi + 4]
call fcn.00423a1a
jmp 0x422e43
push esi
push eax
mov ecx, 0x43b6b8
call fcn.00422e54
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x423105
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x427f8f
call fcn.0040bd08
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0041fbd9
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x434794]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.0041ec66
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0041ec66
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x424ea5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x424ed3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x424ef1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00424e0b
jmp 0x424ef1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x424ef1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00424e0b
test edi, edi
mov eax, edi
jne 0x424edb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41e4a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov al, byte [esp + 0x40]
push ebx
push ebp
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x10]
mov byte [0x43a994], 1
mov byte [esp + 0x10], al
call fcn.0040f880
mov ebp, dword [esp + 0x4c]
push 0x42242c
push 1
lea ecx, [esp + 0x34]
push ebp
push ecx
mov dword [esp + 0x54], ebx
mov edi, 2
call fcn.00410c00
add esp, 0x10
mov edx, dword [0x41f17c]
lea ecx, [esp + 0xc]
push edx
push ebx
push eax
mov byte [esp + 0x50], 1
call fcn.0040f570
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], bl
call fcn.0040f880
cmp dword [esp + 0x14], ebx
je 0x4061e8
push esi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00410d90
add esp, 8
mov edx, dword [0x41f17c]
lea ecx, [esp + 0x10]
push edx
push ebx
push eax
mov byte [esp + 0x54], 2
call fcn.0040f570
mov eax, dword [esp + 0x24]
mov byte [esp + 0x48], bl
cmp eax, ebx
je 0x40612b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x406122
cmp al, 0xff
je 0x406122
dec al
mov byte [ecx], al
jmp 0x40612b
push ecx
call fcn.004150e0
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], ebx
cmp eax, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
je 0x406178
mov esi, dword [0x42643c]
mov ecx, 0x426438
mov eax, dword [esi + 4]
push eax
push esi
call fcn.0040f9c0
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x10]
add eax, 8
push ecx
push eax
call fcn.00410090
mov eax, dword [0x426440]
add esp, 8
inc eax
mov dword [0x426440], eax
mov eax, edi
push 0x42242c
push eax
lea edx, [esp + 0x38]
push ebp
push edx
inc edi
call fcn.00410c00
add esp, 0x10
mov ecx, dword [0x41f17c]
mov byte [esp + 0x48], 3
push ecx
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040f570
mov eax, dword [esp + 0x34]
mov byte [esp + 0x48], bl
cmp eax, ebx
je 0x4061cf
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4061c6
cmp al, 0xff
je 0x4061c6
dec al
mov byte [ecx], al
jmp 0x4061cf
push ecx
call fcn.004150e0
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], ebx
cmp eax, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
jne 0x4060d9
pop esi
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x40621c
mov al, byte [ecx - 1]
cmp al, bl
je 0x406212
cmp al, 0xff
je 0x406212
dec al
pop edi
pop ebp
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
dec ecx
push ecx
call fcn.004150e0
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x403ce0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4233a0], ecx
inc edx
cmp edx, 0x100
jb 0x403ce3
cmp edx, 0x800
jae 0x403db9
lea ecx, [ecx]
mov eax, dword [edx*4 + 0x422fa0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4233a0]
inc edx
mov dword [edx*4 + 0x42339c], eax
cmp edx, 0x800
jb 0x403d90
mov dword [0x4253a0], 0x403de0
call fcn.004050b0
test eax, eax
jne 0x403dd6
mov dword [0x4253a0], 0x403e90
pop ecx
ret

Function at 0x404960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [edi]
test esi, esi
je 0x4049bf
mov dword [edi], 0
jmp 0x404980
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40498f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x4049c7
test ecx, ecx
je 0x4049bf
test esi, esi
jne 0x404980
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404ea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
sub esp, 8
push esi
mov esi, dword [ecx]
push edi
xor edi, edi
and esi, 7
cmp eax, 5
jae 0x404ebf
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [ebp + 0xc], 5
push ebx
mov ebx, dword [ebp + 8]
sub eax, 4
add ebx, eax
mov dword [ebp - 8], ebx
nop
mov eax, dword [ebp + 8]
lea edx, [edi + eax]
cmp edx, ebx
jae 0x404eef
lea ebx, [ebx]
mov cl, byte [edx]
and cl, 0xfe
cmp cl, 0xe8
je 0x404eef
inc edx
cmp edx, ebx
jb 0x404ee0
mov ecx, edx
sub ecx, edi
mov edi, edx
sub ecx, eax
sub edi, eax
cmp edx, ebx
jae 0x404fc5
cmp ecx, 2
jbe 0x404f43
xor esi, esi
movzx ecx, byte [edx + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x404f62
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or eax, ecx
mov ecx, dword [ebp + 0xc]
add ecx, edi
add edi, 5
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], ecx
je 0x404f6d
add eax, ecx
jmp 0x404f6f
shr esi, cl
test esi, esi
je 0x404f08
cmp esi, 4
ja 0x404f62
cmp esi, 3
je 0x404f62
mov eax, esi
shr eax, 1
movzx ecx, byte [eax + edx + 1]
inc ecx
test cl, 0xfe
jne 0x404f08
or esi, 8
shr esi, 1
inc edi
jmp 0x404ed0
sub eax, ecx
test esi, esi
je 0x404fa3
and esi, 6
add esi, esi
add esi, esi
mov ebx, eax
mov ecx, esi
shr ebx, cl
inc ebx
test bl, 0xfe
jne 0x404f9e
mov ebx, 0x100
shl ebx, cl
dec ebx
xor eax, ebx
cmp dword [ebp + 0x14], 0
je 0x404f9b
add eax, dword [ebp - 4]
jmp 0x404f9e
sub eax, dword [ebp - 4]
mov ebx, dword [ebp - 8]
xor esi, esi
mov ecx, eax
shr ecx, 8
mov byte [edx + 1], al
mov byte [edx + 2], cl
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
and al, 1
neg al
mov byte [edx + 3], cl
mov byte [edx + 4], al
jmp 0x404ed0
pop ebx
cmp ecx, 2
jbe 0x404fda
mov edx, dword [ebp + 0x10]
xor esi, esi
mov eax, edi
pop edi
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
shr esi, cl
mov eax, edi
pop edi
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4072a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416f24
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], ebx
mov dword [0x42222c], ebx
xor esi, esi
mov dword [ebp - 4], esi
lea edi, [ebx + 0x38]
lea eax, [edi + 4]
mov dword [ebx], str.ybjc
mov dword [ebx + 4], str.ybjc.exe
mov dword [ebx + 8], str.YySRV.exe
mov dword [ebx + 0xc], 0x41bbd0
mov dword [ebx + 0x10], str.PlayerUpdate.exe
mov byte [ebx + 0x14], 1
mov dword [ebx + 0x30], 0xa
mov word [ebx + 0x34], si
mov byte [ebx + 0x36], 0
mov dword [edi], eax
mov byte [eax], 0
lea eax, [ebx + 0x84]
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x80], eax
mov byte [eax], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24]
push eax
mov dword [ebx + 0xc4], 0x1010101
mov dword [ebx + 0xc8], esi
mov dword [ebx + 0xcc], esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x1a]
movzx edx, word [ebp - 0x1c]
movzx eax, word [ebp - 0x1e]
push ecx
movzx ecx, word [ebp - 0x22]
push edx
movzx edx, word [ebp - 0x24]
push eax
push ecx
push edx
push str.__d_02d_02d_02d_02d
call fcn.00408390
push 0xa0
call fcn.0040c1ca
add esp, 0x1c
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 3
cmp eax, esi
je 0x407398
push eax
call fcn.0040a270
jmp 0x40739a
xor eax, eax
mov byte [ebp - 4], 2
push ebx
lea esi, [ebp - 0x6c]
mov dword [ebx + 0x7c], eax
call fcn.004074d0
mov byte [ebp - 4], 4
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea esi, [ebx + 0x80]
call fcn.00407e90
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x68]
cmp eax, ecx
je 0x4073d5
push eax
call fcn.0040bbcf
add esp, 4
xor eax, eax
push eax
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
push edx
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 0x7c], 1
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040bbc0
mov esp, ebp
pop ebp
ret 4
Function at 0x4074d0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416d22
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x103
lea ecx, [ebp - 0x113]
push ebx
mov dword [ebp - 0x120], ebx
push ecx
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x124], esi
mov byte [ebp - 0x114], bl
call fcn.0040f650
add esp, 0xc
lea edx, [ebp - 0x118]
push edx
push 0x26
push ebx
mov dword [ebp - 0x118], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40756a
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x114]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], bl
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407580
sub eax, edx
mov edi, eax
cmp edi, 0x3f
jl 0x4075a1
lea eax, [edi + 1]
push eax
push ebx
mov dword [esi], ebx
call fcn.0040caf1
add esp, 8
mov dword [esi], eax
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x114]
push ecx
push eax
call fcn.0040c8d5
mov edx, dword [esi]
add esp, 0xc
mov byte [edi + edx], bl
mov dword [ebp - 4], ebx
push 0x41bc04
mov eax, esi
mov dword [ebp - 0x120], 1
call fcn.00407d90
push str.ybjc
mov eax, esi
call fcn.00407d90
mov eax, dword [ebp - 0x11c]
cmp byte [eax + 0x14], bl
je 0x4075f4
mov eax, dword [eax + 0x38]
push eax
mov eax, esi
call fcn.00407d90
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.0040bbc0
mov esp, ebp
pop ebp
ret 4
Function at 0x407aa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4170b8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00407ca0
mov eax, dword [0x42222c]
mov ecx, dword [eax + 8]
push ecx
call fcn.00407b90
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push 0
push 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x407af9
push 0
push eax
call edi
mov edx, dword [0x42222c]
mov eax, dword [edx + 4]
push eax
call fcn.00407b90
push eax
push 0
push 1
call esi
test eax, eax
je 0x407b18
push 0
push eax
call edi
mov ecx, dword [0x42222c]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00407b90
push eax
push 0
push 1
call esi
test eax, eax
je 0x407b37
push 0
push eax
call edi
lea ecx, [ebp - 0x58]
call fcn.0040a130
push 0x41bc36
mov ecx, str.Unins.exe
lea edi, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.00408070
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
cmp eax, ecx
je 0x407b72
push eax
call fcn.0040bbcf
add esp, 4
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.0040bbc0
mov esp, ebp
pop ebp
ret

Function at 0x407b90
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2114
call fcn.004122b0
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x110c]
push ecx
push 0x1000
lea edx, [ebp - 0x1108]
push edx
mov dword [ebp - 0x1110], eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x407bdd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bbc0
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x110c]
push ebx
push esi
push edi
shr eax, 2
xor edi, edi
test eax, eax
jle 0x407c64
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + edi*4 - 0x1108]
push ecx
push 0
push 0x410
call ebx
lea edx, [ebp - 0x1114]
push edx
mov esi, eax
push 0x1000
lea eax, [ebp - 0x2114]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov edx, dword [ebp - 0x2114]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push edx
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
mov eax, dword [ebp - 0x1110]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040c010
add esp, 8
test eax, eax
jne 0x407c79
mov edx, dword [ebp - 0x110c]
inc edi
shr edx, 2
cmp edi, edx
jl 0x407bf5
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bbc0
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + edi*4 - 0x1108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbc0
mov esp, ebp
pop ebp
ret 4
Function at 0x407ca0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407ce6
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x407cf6
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bbc0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x407d44
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bbc0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0040bbc0
mov esp, ebp
pop ebp
ret