joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055b5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.0040139e
push eax
lea ecx, [ebp - 4]
call fcn.00401b78
mov esi, dword [ebp - 4]
xor ecx, ecx
inc ecx
mov edx, 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x4055eb
push edx
lea ecx, [ebp - 4]
call fcn.00401c83
mov esi, dword [ebp - 4]
push esi
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x405621
mov ecx, dword [ebp + 8]
push 0x42f178
call fcn.00404cfa
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00404d2c
lea ecx, [esi - 0x10]
call fcn.00401df0
mov eax, dword [ebp + 8]
jmp 0x405658
push str.GoogleUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4055fd
push edi
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.00401aca
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add eax, 0x10
push 0xffffffffffffffff
mov dword [esi], eax
call fcn.00404d2c
mov ecx, edi
call fcn.00401df0
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x405743
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
cmp byte [ebx + 0x7f], 0
je 0x405816
push esi
push edi
xor edi, edi
cmp dword [ebx + 0xd4], edi
jne 0x405802
lea eax, [ebp - 4]
push eax
call fcn.0040565f
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], edi
je 0x4057a2
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00408710
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.00407e50
test al, al
jne 0x4057ac
mov ecx, edi
call fcn.0040233f
test eax, eax
jns 0x4057ac
lea ecx, [edi - 0x10]
call fcn.00401df0
lea ecx, [esi - 0x10]
call fcn.00401df0
jmp 0x405814
mov al, byte [ebx + 0x85]
push 0x20
mov byte [ebp - 8], al
call fcn.00416f82
pop ecx
test eax, eax
je 0x4057ce
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.004060b9
jmp 0x4057d0
xor eax, eax
mov dword [ebx + 0xd4], eax
test eax, eax
jne 0x4057f2
push esi
push dword [ebx + 0x5c]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.00408b32
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.00401df0
lea ecx, [esi - 0x10]
call fcn.00401df0
mov eax, dword [ebx + 0xd4]
test eax, eax
je 0x405814
push eax
mov ecx, ebx
call fcn.00405fd6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405d60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
test esi, esi
je 0x405e1e
cmp dword [ebp + 8], 0
jne 0x405d85
cmp dword [ebp + 0x10], 2
jg 0x405e1e
call fcn.0040139e
push eax
lea ecx, [ebp - 4]
call fcn.00401b78
call fcn.0040139e
push eax
lea ecx, [ebp + 0x14]
call fcn.00401b78
xor edi, edi
inc edi
mov eax, dword [ebx + 0x60]
lea ecx, [ebx + 0x60]
push 0
call dword [eax + 0xc]
test al, al
jne 0x405dc3
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x14
jle 0x405da4
jmp 0x405de8
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
mov ecx, ebx
push esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405c98
mov eax, dword [ebx + 0x60]
lea ecx, [ebx + 0x60]
call dword [eax + 8]
cmp edi, 0x14
jle 0x405e08
push str.LOG_SYSTEM:_Couldnt_acquire_lock__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x42f718
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401df0
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00401df0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4060b9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx], fcn.00406267
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.0040139e
push eax
lea ecx, [ebx + 0xc]
call fcn.00401b78
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.00404cfa
mov dword [ebx + 0x18], edi
call fcn.0040139e
push eax
lea ecx, [ebx + 0x1c]
call fcn.00401b78
movzx eax, byte [0x437b68]
neg eax
sbb eax, eax
and eax, 0x437e20
mov dword [ebp + 8], eax
je 0x40618b
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.00406049
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x406169
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x989680
push str.MaxLogFileSize
push str.LoggingSettings
call edi
push esi
push 1
push str.LogFileWide
push str.LoggingSettings
mov dword [ebx + 4], eax
call edi
test eax, eax
setne al
mov byte [ebx + 0xb], al
jmp 0x406174
mov dword [ebx + 4], 0x989680
mov byte [ebx + 0xb], 1
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x1c]
add eax, 0x5c
push eax
call fcn.00401b2a
lea ecx, [esi - 0x10]
call fcn.00401df0
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x4061e0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x406265
mov byte [esi + 8], 1
call fcn.00406293
cmp dword [esi + 0x10], 0
je 0x406265
test al, al
je 0x406200
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.00406807
test al, al
jne 0x406227
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00408b32
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.0040635a
cmp dword [esi + 0x18], 0
jne 0x406252
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.00408b32
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x406265
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret

Function at 0x40635a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x435980]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea edx, [ebp - 0x6c]
push edi
xor edi, edi
mov dword [ebp - 0x6c], edi
mov ecx, dword [esi + 0x14]
call fcn.00407f87
mov eax, dword [ebp - 0x6c]
cmp eax, dword [esi + 4]
jbe 0x406391
mov ecx, esi
call fcn.004064c8
xor eax, eax
cmp byte [esi + 0xa], al
push edi
setne al
push 0x80
lea eax, [eax*2 + 2]
push eax
push edi
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
jne 0x4063ca
mov dword [esi + 0x18], edi
xor al, al
jmp 0x40645c
lea ecx, [ebp - 0x8c]
call fcn.004049e3
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x42da6c
push eax
call fcn.004041f2
add esp, 0x14
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x8c]
push edi
push 0xc0010000
push eax
call fcn.0040442b
lea ecx, [ebp - 0x68]
mov bl, al
call fcn.00404961
test bl, bl
je 0x406424
push ecx
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x8c]
push eax
call fcn.00403189
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40644f
cmp byte [esi + 0xb], 0
je 0x40644f
push edi
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], edi
push eax
push 2
push 0x42da9c
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x8c]
call fcn.004044af
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a954
mov esp, ebp
pop ebp
ret

Function at 0x40646d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x40649d
xor al, al
jmp 0x4064c1
cmp byte [esi + 0xb], bl
je 0x4064b8
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x42da9c
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406549
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x435980]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x74], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40666d
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x6c]
push 7
pop esi
push eax
push ebx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
push eax
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x40666d
cmp dword [ebp - 0x78], esi
jne 0x40666d
push dword [ebp - 0x6c]
call fcn.00423836
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.00416e80
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push esi
push ebx
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x70]
call edi
test eax, eax
jne 0x406662
mov edi, dword [ebp - 0x6c]
shr edi, 1
mov dword [ebp - 0x7c], edi
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x406662
cmp word [esi + edi*2 - 4], bx
jne 0x406662
cmp word [esi + edi*2 - 2], bx
jne 0x406662
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
add eax, 0x14
mov edx, 0x42fa4c
push eax
call fcn.00406875
test edi, edi
mov edi, dword [ebp - 0x74]
pop ecx
je 0x406651
lea eax, [esi + ebx*2]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x406654
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add ebx, eax
cmp ebx, dword [ebp - 0x7c]
jb 0x406630
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [edi - 0x10]
setne bl
call fcn.00401df0
push esi
call fcn.00416f10
pop ecx
mov al, bl
jmp 0x40666f
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a954
mov esp, ebp
pop ebp

Function at 0x406807
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x406814
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40684d
cmp eax, 0x80
je 0x40684d
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00408b32
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x406810
mov al, 1
pop esi
ret
Function at 0x406ef8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [edi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x406f30
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x406f92
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00423836
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x406f8d
cmp dword [ebp - 4], 0
je 0x406f86
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x406f92
movzx esi, si
or esi, 0x80070000
jmp 0x406f92
xor eax, eax
mov word [ecx], ax
jmp 0x406f92
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4072bf
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x435980]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 0x210], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x214], 0x42f170
push 0xf003f
push ebx
lea ecx, [ebp - 0x214]
push dword [edi + 4]
call fcn.00406c76
mov esi, eax
cmp esi, 0x80070002
je 0x407311
cmp esi, 0x80070003
jne 0x407324
xor esi, esi
inc esi
jmp 0x407324
lea eax, [ebp - 0x20c]
push eax
call fcn.004072bf
mov esi, eax
test esi, esi
jne 0x407372
xor ecx, ecx
mov dword [ebp - 0x218], 0x100
lea eax, [ebp - 0x220]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x214]
test eax, eax
je 0x407316
call fcn.00406ba6
push ebx
mov ecx, edi
call fcn.00406b46
mov esi, eax
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], 0x42f170
call fcn.00406ba6
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a954
mov esp, ebp
pop ebp
ret 4
Function at 0x40775b
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x30
mov edi, ecx
pop ebx
sub esi, 4
js 0x407866
movzx eax, byte [edi]
shr eax, 2
push 3
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], al
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 2], al
movzx eax, byte [edi + 2]
and eax, 0x3f
pop ecx
sub ebx, ecx
add edi, ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 3], al
add edx, 4
cmp ebx, 2
jg 0x40776d
dec ebx
je 0x40782b
dec ebx
jne 0x40785f
sub esi, ecx
js 0x407866
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 2], al
lea eax, [esi - 1]
test eax, eax
js 0x407866
mov byte [edx + 3], 0x3d
jmp 0x40785c
sub esi, 2
js 0x407866
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
movzx eax, byte [edi]
and eax, ecx
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], al
lea eax, [esi - 2]
test eax, eax
js 0x407866
mov word [edx + 2], 0x3d3d
add edx, 4
sub edx, dword [ebp + 8]
mov eax, edx
jmp 0x407868
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
Function at 0x408044
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x5c], 0x44
push 0x3c
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], ebx
push ebx
push eax
mov edi, edx
call fcn.00416e80
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0x30], 0x80
push esi
push eax
push ebx
cmp dword [ebp + 8], ebx
jne 0x408083
push ebx
push ebx
jmp 0x40808b
push dword [ebp + 8]
push 0x400
push dword [ebp + 0xc]
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4080a3
call fcn.00407e13
jmp 0x4080e6
movzx ecx, byte [0x437b68]
neg ecx
sbb ecx, ecx
and ecx, 0x437e20
je 0x4080e4
xor edi, edi
mov dword [ebp - 0x14], ecx
inc edi
push edi
push ecx
call fcn.00405bda
push dword [esi + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push str._Started_process___u_
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 8
call fcn.00401e16
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408420
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x435980]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x408486
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 0x10]
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.0041a954
mov esp, ebp
pop ebp
ret

Function at 0x408c0f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x435980]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, edx
push 0x800
push eax
mov word [ebp - 0x808], ax
mov ebx, ecx
lea eax, [ebp - 0x806]
push eax
call fcn.00416e80
mov esi, dword [0x437e14]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.00404e52
push edi
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
lea eax, [ebp - 0x808]
push ebx
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x80c]
add esp, 0x2c
lea ecx, [ecx - 0x10]
call fcn.00401df0
lea ecx, [ebp - 0x808]
call fcn.004093bf
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
sub eax, 3
je 0x408ccb
dec eax
jne 0x408cba
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.0041a954
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4093bf
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40942b
push ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
inc esi
lea ebx, [esi + esi]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x409407
push ebx
push edi
push eax
call fcn.00415fe0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop ebx
test eax, eax
jne 0x409423
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
ret
Function at 0x40c445
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
and dword [ebp - 0x48], 0
xor eax, eax
push ebx
push esi
push edi
push 8
mov esi, ecx
lea edi, [ebp - 0x44]
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x44]
lea ebx, [edi - 1]
not ebx
and ebx, dword [ebp + 8]
je 0x40c494
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [esi + 0xc]
call fcn.0040cb5e
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0xc]
jne 0x40c49f
sub ebx, edi
jne 0x40c475
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 7
lea esi, [eax + 0x14]
pop ecx
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x18]
add ecx, ebx
cmp ecx, dword [ebp + 8]
jbe 0x40c494
mov eax, ebx
jmp 0x40c496

Function at 0x40c7da
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
and dword [ebp - 0x4c], 0
xor eax, eax
push ebx
push esi
push edi
mov ebx, ecx
lea edi, [ebp - 0x48]
push 8
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 6
xor edx, edx
lea edi, [ebp - 0x24]
pop ecx
xor eax, eax
mov dword [ebp - 0x28], edx
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x28]
mov dword [ebx + 8], edx
push eax
push edx
jmp 0x40c8c7
cmp dword [ebp - 0x18], 0x1000
jne 0x40c8b8
mov edx, dword [ebx + 0xc]
mov esi, edx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
mov eax, dword [edx + 4]
jmp 0x40c849
cmp dword [eax + 0x10], ecx
jae 0x40c845
mov eax, dword [eax + 8]
jmp 0x40c849
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x40c83b
cmp esi, edx
je 0x40c858
cmp ecx, dword [esi + 0x10]
jae 0x40c895
lea ecx, [ebx + 0xc]
call fcn.0040d48a
mov edx, eax
lea ebx, [edx + 0x10]
mov word [edx + 0xc], 0
test ebx, ebx
je 0x40c87e
mov ecx, dword [ebp - 8]
lea edi, [ebx + 4]
mov dword [ebx], ecx
xor eax, eax
push 7
pop ecx
rep stosd dword es:[edi], eax
push edx
push ebx
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push esi
push eax
lea ecx, [ebx + 0xc]
call fcn.0040d08a
mov esi, dword [ebp - 0xc]
jmp 0x40c898
mov ebx, dword [ebp - 4]
lea edi, [esi + 0x14]
push 7
pop ecx
lea esi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
test byte [ebp - 0x14], 0x70
je 0x40c8b8
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov eax, ecx
div dword [ebp - 0x48]
add dword [ebx + 8], eax
jmp 0x40c8bb
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
add eax, ecx
lea ecx, [ebp - 0x28]
push 0x1c
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
je 0x40c81e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40f85b
Capabilities:
Create pipe

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
je 0x40f870
xor al, al
jmp 0x40f902
push ebx
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40f8fb
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40f8fb
push 4
push 0xffffffffffffffff
push esi
push 0x40fff2
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40f8fb
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40f8c6
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40f8fb
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x40f8ff
mov dword [esi + 0x84], ebx
xor al, al
jmp 0x40f901
mov al, bl
pop ebx
pop edi
pop esi
ret

Function at 0x40f9ff
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x2c
push ebx
mov dword [ebp - 8], ebx
lea esi, [edi + 0xa0]
push esi
call fcn.00416e80
add esp, 0xc
lea eax, [edi + 0x8c]
push eax
lea eax, [ebp - 8]
push eax
push 0x2c
push esi
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
mov byte [ebp - 1], al
test al, al
jne 0x40fa65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov al, byte [ebp - 1]
test al, al
jne 0x40fa65
cmp ebx, 0x3e5
je 0x40fa65
push 0xa
mov ecx, edi
call fcn.0040fca2
jmp 0x40fa6f
mov dword [edi + 0x84], 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret