joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4069bc
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x406a3d
mov byte [esi + 8], 1
call fcn.00406a6b
cmp dword [esi + 0x10], 0
je 0x406a3d
test al, al
je 0x4069dc
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.00407097
test al, al
jne 0x406a03
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00409210
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.00406b30
cmp dword [esi + 0x18], 0
jne 0x406a2a
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.00409210
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x406a3d
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret
Function at 0x406b30
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
lea edx, [ebp - 0x8c]
push esi
xor eax, eax
mov dword [ebp - 0x94], ebx
push edi
lea esi, [ebx + 0x14]
mov dword [ebp - 0x98], eax
mov ecx, dword [esi]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x9c], esi
call fcn.00404d60
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebx + 4]
jbe 0x406b84
mov ecx, ebx
call fcn.00406d5a
xor eax, eax
cmp byte [ebx + 0xa], al
setne al
xor ecx, ecx
push ecx
push 0x80
lea eax, [eax*2 + 2]
push eax
push ecx
push 3
push 0x40000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x18], eax
cmp eax, 0xffffffff
jne 0x406bbd
xor edi, edi
xor al, al
mov dword [ebx + 0x18], edi
jmp 0x406c25
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.00408e89
mov esi, dword [ebp - 0x8c]
lea edi, [ebp - 0x28]
push 9
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
xor edi, edi
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x406c34
call fcn.00409033
push dword [ebx + 0x14]
push dword [ebx + 0x1c]
push str.LOG_SYSTEM:___s_:_ERROR___Log_path__s_has_a_reparse_point
call fcn.00409210
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], edi
lea ecx, [esi - 0x10]
call fcn.004015ce
mov al, byte [ebp - 0x98]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416f09
leave
ret
mov eax, dword [ebp - 0x28]
shr eax, 0xa
and al, 1
jne 0x406bf1
mov ecx, dword [ebx + 0x18]
call fcn.004057d2
test al, al
jne 0x406bf1
lea ecx, [ebp - 0xbc]
call fcn.004021a0
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x88]
push 0x43b518
push eax
call fcn.00401cff
add esp, 0x10
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0xbc]
push 0xc0010000
push eax
call fcn.0040221d
lea ecx, [ebp - 0x88]
mov bl, al
call fcn.00401de8
test bl, bl
je 0x406cb1
push ecx
lea eax, [ebp - 0xbc]
push eax
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax]
call fcn.00403064
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406cea
mov eax, dword [ebp - 0x94]
cmp byte [eax + 0xb], 0
je 0x406cea
xor ecx, ecx
push ecx
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0x94]
push ecx
push 2
push 0x43a418
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 0x98], 1
call fcn.004021e6
jmp 0x406c17
Function at 0x406d01
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 0x406d31
xor al, al
jmp 0x406d55
cmp byte [esi + 0xb], bl
je 0x406d4c
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x43a418
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
leave
ret

Function at 0x406dd9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x442008]
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 0x406f01
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 0x406f01
cmp dword [ebp - 0x78], esi
jne 0x406f01
push dword [ebp - 0x6c]
call fcn.0042bb65
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.00417a80
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 0x406ef2
mov edi, dword [ebp - 0x6c]
shr edi, 1
mov dword [ebp - 0x7c], edi
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x406ef2
cmp word [esi + edi*2 - 4], bx
jne 0x406ef2
cmp word [esi + edi*2 - 2], bx
jne 0x406ef2
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
add eax, 0x14
mov edx, str.___
push eax
call fcn.00407105
test edi, edi
mov edi, dword [ebp - 0x74]
pop ecx
je 0x406ee1
lea eax, [esi + ebx*2]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x406ee4
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 0x406ec0
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [edi - 0x10]
setne bl
call fcn.004015ce
test esi, esi
je 0x406efd
push esi
call fcn.00417525
pop ecx
mov al, bl
jmp 0x406f03
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416f09
leave
ret
Function at 0x407097
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x4070a4
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4070dd
cmp eax, 0x80
je 0x4070dd
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00409210
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x4070a0
mov al, 1
pop esi
ret

Function at 0x40752d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x124]
push 0x118
push ebx
mov dword [ebp - 0x12c], ebx
push eax
mov dword [ebp - 0x128], 0x11c
call fcn.00417a80
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x40768f.2
mov edi, dword [ebp - 0x124]
xor esi, esi
inc esi
cmp edi, 6
je 0x407620
cmp edi, 0xa
je 0x407620
cmp edi, 5
jne case.0x40768f.2
cmp dword [ebp - 0x120], 2
jne 0x40760a
cmp byte [ebp - 0xe], 1
jne 0x4075d0
lea ecx, [ebp - 0x130]
call fcn.004074a9
push 0x43c464
mov ecx, eax
mov dword [ebp - 0x12c], esi
call fcn.00404be0
test eax, eax
jne 0x4075d0
mov bl, 1
inc eax
jmp 0x4075d6
mov eax, dword [ebp - 0x12c]
test al, 1
je 0x4075e8
mov ecx, dword [ebp - 0x130]
lea ecx, [ecx - 0x10]
call fcn.004015ce
test bl, bl
jne case.0x40768f.1
test dword [ebp - 0x10], 0x8000
je case.0x40768f.7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416f09
leave
ret
cmp dword [ebp - 0x120], esi
jne case.0x40768f.2
test dword [ebp - 0x10], 0x200
jne case.0x40768f.2
xor eax, eax
inc eax
jmp 0x4075fb
mov eax, dword [ebp - 0x120]
mov ecx, str.kernel32.dll
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x130], eax
call fcn.00403bf0
mov esi, eax
test esi, esi
je case.0x40768f.2
push str.GetProductInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407666
lea ecx, [ebp - 0x12c]
push ecx
push ebx
push ebx
push dword [ebp - 0x130]
push edi
call eax
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je case.0x40768f.2
mov eax, dword [ebp - 0x12c]
cmp eax, 0x1b
ja 0x40769e
je case.0x40768f.4
dec eax
cmp eax, 0x18
ja case.0x40768f.2
movzx eax, byte [eax + 0x407701]
jmp dword [eax*4 + 0x4076f1]
push 2
pop eax
jmp 0x4075fb
cmp eax, 0x54
ja 0x4076be
je case.0x40768f.4
sub eax, 0x30
je case.0x40768f.1
sub eax, 0x16
je case.0x40768f.4
dec eax
sub eax, 1
je case.0x40768f.4
jmp case.0x40768f.2
cmp eax, 0x79
jb case.0x40768f.2
cmp eax, 0x7a
jbe 0x4076ec
cmp eax, 0x7c
jbe case.0x40768f.2
cmp eax, 0x7e
jbe case.0x40768f.4
add eax, 0xffffff7f
cmp eax, 1
ja case.0x40768f.2
push 3
jmp 0x407698
push 4
jmp 0x407698
Function at 0x407dba
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ecx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x407dfb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x407dfb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x407dd6
xor al, al
jmp 0x407dfd
mov al, 1
pop esi
leave
ret 4

Function at 0x407e0f
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov esi, ecx
push eax
call fcn.0040867b
cmp byte [ebp - 8], 0
je 0x407e2f
mov eax, dword [ebp - 0xc]
jmp 0x407e58
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jle 0x407e47
movzx eax, ax
or eax, 0x80070000
cmp eax, 0x80070002
je 0x407e55
cmp eax, 0x80070003
jne 0x407e58
xor eax, eax
inc eax
pop esi
leave
ret 4

Function at 0x40826c
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 0x4082a4
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x408306
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.0042bb65
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x408301
cmp dword [ebp - 4], 0
je 0x4082fa
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 0x408306
movzx esi, si
or esi, 0x80070000
jmp 0x408306
xor eax, eax
mov word [ecx], ax
jmp 0x408306
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x408700
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push esi
push edi
push ebx
push eax
mov edi, ecx
call fcn.0040867b
cmp byte [ebp - 0x220], 0
je 0x40873c
mov eax, dword [ebp - 0x224]
jmp 0x4087fb
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x21c]
and dword [ebp - 0x218], 0
or eax, 0xf003f
push 0
push eax
push ebx
push dword [edi + 4]
mov dword [ebp - 0x21c], 0x43b6d8
mov dword [ebp - 0x214], 0x200
call fcn.00407f85
mov esi, eax
cmp esi, 0x80070002
je 0x408783
cmp esi, 0x80070003
jne 0x408796
xor esi, esi
inc esi
jmp 0x408796
lea eax, [ebp - 0x20c]
push eax
call fcn.00408700
mov esi, eax
test esi, esi
jne 0x4087e4
xor ecx, ecx
mov dword [ebp - 0x210], 0x100
lea eax, [ebp - 0x22c]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x21c]
test eax, eax
je 0x408788
call fcn.00407e8d
push ebx
mov ecx, edi
call fcn.00407e0f
mov esi, eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x43b6d8
call fcn.00407e8d
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416f09
leave
ret 4

Function at 0x408d72
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x442008]
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 dword [ebp - 0x10], eax
test eax, eax
je 0x408dd8
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 eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.00416f09
leave
ret
Function at 0x4092eb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x802
lea eax, [ebp - 0x808]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.00417a80
mov esi, dword [0x443f34]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.0040497d
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.004015ce
lea ecx, [ebp - 0x808]
call fcn.00409a32
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 0x40939f
sub eax, 1
jne 0x409390
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.00416f09
leave
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x409a32
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x409aa1
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
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 0x409a7d
push ebx
push edi
push eax
call fcn.00418ed0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x409a98
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x40aaca
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
lea ebx, [ecx + 0x1c]
mov eax, dword [ebx]
push esi
push edi
mov esi, dword [eax]
mov dword [ebp - 8], esi
cmp esi, eax
je 0x40ac48
mov ecx, dword [esi + 0x14]
sub ecx, 0x10
call fcn.004017ba
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
lea edi, [eax + 0x10]
mov ecx, edi
mov dword [ebp - 4], edi
call fcn.004030fd
movzx eax, al
neg eax
push 0
sbb eax, eax
and eax, 0x2000000
push eax
push 3
push 0
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, 0xffffffff
jne 0x40ab36
call fcn.00409033
jmp 0x40ab59
push eax
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x40ab4f
call fcn.00409033
mov dword [ebp - 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
test eax, eax
jns 0x40ab76
lea ecx, [ebp - 8]
call fcn.00403ff7
push esi
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0040b1bc
jmp 0x40ac32
call fcn.004056e6
xor ecx, ecx
or ecx, dword [ebp - 0x20]
sub eax, ecx
sbb edx, dword [ebp - 0x1c]
cmp edx, 0xc9
jb 0x40ac2a
ja 0x40ab9e
cmp eax, 0x2a69c000
jb 0x40ac2a
call fcn.00401371
push eax
lea ecx, [ebp - 0x10]
call fcn.00401791
lea edx, [ebp - 0x10]
lea ecx, [ebp - 4]
call fcn.00411bbd
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 8]
call fcn.00403ff7
push esi
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0040b1bc
movzx ecx, byte [0x443f39]
neg ecx
sbb ecx, ecx
and ecx, 0x443f40
je 0x40ac20
xor eax, eax
mov dword [ebp - 0x30], ecx
inc eax
mov dword [ebp - 0x2c], 7
push eax
push ecx
mov dword [ebp - 0x28], eax
call fcn.00406320
push edi
push dword [ebp - 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push str._CrashHandler__Deleted_Stale_Crash__filename__s__custom_data__s_
push eax
call fcn.00403144
add esp, 0x10
lea ecx, [edi - 0x10]
call fcn.004015ce
jmp 0x40ac32
lea ecx, [ebp - 8]
call fcn.00403ff7
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov esi, dword [ebp - 8]
cmp esi, dword [ebx]
jne 0x40aae5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c357
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 9
mov esi, ecx
lea edi, [ebp - 0x44]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x40]
lea ebx, [edi - 1]
not ebx
and ebx, dword [ebp + 8]
je 0x40c3a8
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea ecx, [esi + 0xc]
call fcn.0040cd99
cmp eax, dword [esi + 0xc]
je 0x40c39c
cmp ebx, dword [eax + 0x10]
jae 0x40c39f
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0xc]
jne 0x40c3b1
sub ebx, edi
jne 0x40c383
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 7
lea esi, [eax + 0x14]
pop ecx
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
add ecx, ebx
cmp ecx, dword [ebp + 8]
jbe 0x40c3a8
mov eax, ebx
jmp 0x40c3aa

Function at 0x40f9af
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40fa4b
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 0x40fa4b
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40fa4b
push 4
push 0xffffffffffffffff
push esi
push 0x410165
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40fa4b
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40fa16
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 0x40fa4b
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x40fa51
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40fa4d

Function at 0x40fb5d
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.00417a80
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 cl
mov byte [ebp - 1], cl
test eax, eax
jne 0x40fbac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [ebp - 1]
mov ebx, eax
test cl, cl
jne 0x40fbc3
cmp ebx, 0x3e5
je 0x40fbc3
push 0xa
mov ecx, edi
call fcn.0040fdee
jmp 0x40fbcd
mov dword [edi + 0x84], 5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4117f5
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
push 0x4118bb
mov edi, ecx
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.00401371
push eax
lea ecx, [esp + 0x18]
call fcn.00401791
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
push dword [ebp + 8]
push str._s_s.dmp
push eax
call fcn.00408b3d
lea ecx, [esp + 0x24]
call fcn.00408f27
mov bl, byte [esp + 0x23]
lea eax, [esp + 0x24]
mov dl, byte [edi]
mov cl, bl
push 0
push eax
call fcn.00411da5
add esp, 0x18
cmp byte [edi + 1], 0
je 0x4118a6
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
push dword [ebp + 8]
push str._s_s_full.dmp
push eax
call fcn.00408b3d
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.00408f27
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.004030c1
test al, al
je 0x4118aa
mov dl, byte [edi]
lea eax, [esp + 0x14]
push 0
push eax
mov cl, bl
call fcn.00411da5
pop ecx
pop ecx
jmp 0x4118aa
mov esi, dword [esp + 0x14]
lea ecx, [esi - 0x10]
call fcn.004015ce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x411c31
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, ecx
movzx ecx, byte [0x443f39]
neg ecx
push edi
sbb ecx, ecx
and ecx, 0x443f40
je 0x411c7b
or dword [ebp - 0x18], 0xffffffff
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 7
call fcn.00406320
push dword [esi]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push str._StartProcessWithNoExceptionHandler___s_
push eax
call fcn.00403144
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00408f73
push 0x43da50
lea ecx, [ebp - 8]
call fcn.00403e34
push str.GOOGLE_UPDATE_NO_CRASH_HANDLER
lea ecx, [ebp - 4]
call fcn.00403e34
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040ec79
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004015ce
xor ebx, ebx
mov edi, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 8], eax
test eax, eax
je 0x411d65
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040ecaa
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov edi, dword [ebp - 0x1c]
cmp edi, dword [ebp - 0x18]
je 0x411d65
push 0x40
lea eax, [ebp - 0x74]
mov dword [ebp - 0x78], 0x44
push ebx
push eax
call fcn.00417a80
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x411d32
push dword [eax - 0xc]
mov ecx, esi
call fcn.00401910
mov eax, dword [esi]
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push ebx
push edi
push 0x400
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x411d65
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x411d6c
call fcn.00409033
mov ebx, eax
test edi, edi
je 0x411d81
mov ecx, dword [ebp - 0x14]
sub ecx, edi
and ecx, 0xfffffffe
push ecx
push edi
call fcn.004045b5
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
mov ecx, eax
call fcn.00408fe0
push 0x18
push dword [ebp - 0x10]
call fcn.004045b5
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret