joyce8/EMBER2024-capa huggingface dataset:
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.0042ba75
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.00417980
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.0041741b
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.00416dff
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.00409138
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.00417980
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.00416dff
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 0x408216
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 0x40824e
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x4082b0
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.0042ba75
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x4082ab
cmp dword [ebp - 4], 0
je 0x4082a4
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 0x4082b0
movzx esi, si
or esi, 0x80070000
jmp 0x4082b0
xor eax, eax
mov word [ecx], ax
jmp 0x4082b0
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x408620
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x21c], 0x43b6d8
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 8]
xor edi, edi
or eax, 0xf003f
mov dword [ebp - 0x220], ecx
push eax
push ecx
push dword [ebx + 4]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], 0x200
call fcn.00407f67
mov esi, eax
cmp esi, 0x80070002
je 0x408687
cmp esi, 0x80070003
jne 0x40868a
xor esi, esi
inc esi
test esi, esi
jne 0x40870c
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4086dc
lea eax, [ebp - 0x20c]
push eax
call fcn.00408620
mov esi, eax
test esi, esi
jne 0x40870c
lea eax, [ebp - 0x228]
xor ecx, ecx
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]
mov dword [ebp - 0x210], 0x100
call edi
lea ecx, [ebp - 0x21c]
test eax, eax
je 0x4086af
call fcn.00407e6f
push dword [ebp - 0x220]
mov ecx, ebx
call fcn.00407e0f
mov esi, eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x43b6d8
call fcn.00407e6f
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416dff
leave
ret 4
Function at 0x408c9a
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 0x408d00
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.00416dff
leave
ret

Function at 0x409213
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.00417980
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.0040995a
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 0x4092c7
sub eax, 1
jne 0x4092b8
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.00416dff
leave
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40995a
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 0x4099c9
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 0x4099a5
push ebx
push edi
push eax
call fcn.00418dd0
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 0x4099c0
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 0x40a9f2
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 0x40ab70
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 0x40aa5e
call fcn.00408f5b
jmp 0x40aa81
push eax
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x40aa77
call fcn.00408f5b
mov dword [ebp - 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
test eax, eax
jns 0x40aa9e
lea ecx, [ebp - 8]
call fcn.00403ff7
push esi
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0040b0e4
jmp 0x40ab5a
call fcn.004056e6
xor ecx, ecx
or ecx, dword [ebp - 0x20]
sub eax, ecx
sbb edx, dword [ebp - 0x1c]
cmp edx, 0xc9
jb 0x40ab52
ja 0x40aac6
cmp eax, 0x2a69c000
jb 0x40ab52
call fcn.00401371
push eax
lea ecx, [ebp - 0x10]
call fcn.00401791
lea edx, [ebp - 0x10]
lea ecx, [ebp - 4]
call fcn.00411ae5
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.0040b0e4
movzx ecx, byte [0x443f39]
neg ecx
sbb ecx, ecx
and ecx, 0x443f40
je 0x40ab48
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 0x40ab5a
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 0x40aa0d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c27f
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 0x40c2d0
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea ecx, [esi + 0xc]
call fcn.0040ccc1
cmp eax, dword [esi + 0xc]
je 0x40c2c4
cmp ebx, dword [eax + 0x10]
jae 0x40c2c7
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0xc]
jne 0x40c2d9
sub ebx, edi
jne 0x40c2ab
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 0x40c2d0
mov eax, ebx
jmp 0x40c2d2

Function at 0x40c5d8
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x78
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x74]
push 9
pop ecx
xor eax, eax
mov dword [ebp - 0xc], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
and dword [esi + 8], eax
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x30]
push eax
push 0
jmp 0x40c6de
cmp dword [ebp - 0x20], 0x1000
jne 0x40c6cf
mov eax, dword [ebp - 0xc]
lea esi, [ebp - 0x30]
push 7
pop ecx
lea edi, [ebp - 0x50]
add eax, 0xc
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 4]
push ecx
mov ecx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
call fcn.0040ccc1
mov esi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp esi, eax
je 0x40c66a
cmp edi, dword [esi + 0x10]
jae 0x40c6ac
push 0x30
call fcn.004045e1
mov edx, eax
xor eax, eax
pop ecx
mov ecx, dword [ebp - 4]
push 7
lea edi, [edx + 0x10]
mov dword [edi], ecx
add edi, 4
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
lea eax, [edx + 0x10]
push edx
push eax
push esi
lea eax, [ebp - 0x14]
mov word [edx + 0xc], 0
push eax
call fcn.0040d145
mov esi, dword [ebp - 0x14]
lea edi, [esi + 0x14]
push 7
pop ecx
lea esi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
test byte [ebp - 0x1c], 0x70
je 0x40c6cf
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov eax, ecx
div dword [ebp - 0x70]
mov edx, dword [ebp - 0xc]
add dword [edx + 8], eax
jmp 0x40c6d2
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
add eax, ecx
lea ecx, [ebp - 0x30]
push 0x1c
push ecx
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
je 0x40c625
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x40f8d6
Capabilities:
Create pipe

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

Function at 0x40fa85
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.00417980
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 0x40fad4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [ebp - 1]
mov ebx, eax
test cl, cl
jne 0x40faeb
cmp ebx, 0x3e5
je 0x40faeb
push 0xa
mov ecx, edi
call fcn.0040fd16
jmp 0x40faf5
mov dword [edi + 0x84], 5
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41171d
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 0x4117e3
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.00408a65
lea ecx, [esp + 0x24]
call fcn.00408e4f
mov bl, byte [esp + 0x23]
lea eax, [esp + 0x24]
mov dl, byte [edi]
mov cl, bl
push 0
push eax
call fcn.00411ccd
add esp, 0x18
cmp byte [edi + 1], 0
je 0x4117ce
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
push dword [ebp + 8]
push str._s_s_full.dmp
push eax
call fcn.00408a65
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.00408e4f
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.004030c1
test al, al
je 0x4117d2
mov dl, byte [edi]
lea eax, [esp + 0x14]
push 0
push eax
mov cl, bl
call fcn.00411ccd
pop ecx
pop ecx
jmp 0x4117d2
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 0x411b59
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 0x411ba3
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.00408e9b
push 0x43da28
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.0040eba1
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 0x411c8d
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040ebd2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov edi, dword [ebp - 0x1c]
cmp edi, dword [ebp - 0x18]
je 0x411c8d
push 0x40
lea eax, [ebp - 0x74]
mov dword [ebp - 0x78], 0x44
push ebx
push eax
call fcn.00417980
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 0x411c5a
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 0x411c8d
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x411c94
call fcn.00408f5b
mov ebx, eax
test edi, edi
je 0x411ca9
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.00408f08
push 0x18
push dword [ebp - 0x10]
call fcn.004045b5
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret