joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058cc
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 0x40598d
cmp dword [ebp + 8], 0
jne 0x4058f1
cmp dword [ebp + 0x10], 2
jg 0x40598d
call fcn.004013c2
push eax
lea ecx, [ebp - 4]
call fcn.004016ad
call fcn.004013c2
push eax
lea ecx, [ebp + 0x14]
call fcn.004016ad
xor edi, edi
lea eax, [ebx + 0x60]
inc edi
push 0
mov ecx, eax
call fcn.004065ce
test al, al
jne 0x405933
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x60]
cmp edi, 0x14
jle 0x405913
jmp 0x405957
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.004057f4
lea ecx, [ebx + 0x60]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x405977
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 0x439080
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.004019cb
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004019cb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x405c1d
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.00405dce
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.004013c2
push eax
lea ecx, [ebx + 0xc]
call fcn.004016ad
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.004047ee
mov dword [ebx + 0x18], edi
call fcn.004013c2
push eax
lea ecx, [ebx + 0x1c]
call fcn.004016ad
movzx eax, byte [0x440d98]
neg eax
sbb eax, eax
and eax, 0x441080
mov dword [ebp + 8], eax
je 0x405cef
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.00405baa
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x405ccd
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 0x405cd8
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.0040165f
lea ecx, [esi - 0x10]
call fcn.004019cb
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x405d47
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x405dcc
mov byte [esi + 8], 1
call fcn.00405dfa
cmp dword [esi + 0x10], 0
je 0x405dcc
test al, al
je 0x405d67
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.0040636e
test al, al
jne 0x405d8e
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00408640
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.00405ec1
cmp dword [esi + 0x18], 0
jne 0x405db9
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.00408640
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 0x405dcc
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret

Function at 0x405ec1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x43f014]
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.00407cbd
mov eax, dword [ebp - 0x6c]
cmp eax, dword [esi + 4]
jbe 0x405ef8
mov ecx, esi
call fcn.0040602f
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 0x405f31
mov dword [esi + 0x18], edi
xor al, al
jmp 0x405fc3
lea ecx, [ebp - 0x8c]
call fcn.004044d2
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x438944
push eax
call fcn.00403cc4
add esp, 0x14
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x8c]
push edi
push 0xc0010000
push eax
call fcn.00403efd
lea ecx, [ebp - 0x68]
mov bl, al
call fcn.00404450
test bl, bl
je 0x405f8b
push ecx
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x8c]
push eax
call fcn.00402c6b
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405fb6
cmp byte [esi + 0xb], 0
je 0x405fb6
push edi
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], edi
push eax
push 2
push 0x4381ec
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x8c]
call fcn.00403f79
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041687e
mov esp, ebp
pop ebp
ret

Function at 0x405fd4
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 0x406004
xor al, al
jmp 0x406028
cmp byte [esi + 0xb], bl
je 0x40601f
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x4381ec
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 0x4060b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x43f014]
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 0x4061d4
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 0x4061d4
cmp dword [ebp - 0x78], esi
jne 0x4061d4
push dword [ebp - 0x6c]
call fcn.00427b8a
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.004169c0
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 0x4061c9
mov edi, dword [ebp - 0x6c]
shr edi, 1
mov dword [ebp - 0x7c], edi
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x4061c9
cmp word [esi + edi*2 - 4], bx
jne 0x4061c9
cmp word [esi + edi*2 - 2], bx
jne 0x4061c9
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
add eax, 0x14
mov edx, str.___
push eax
call fcn.004063dc
test edi, edi
mov edi, dword [ebp - 0x74]
pop ecx
je 0x4061b8
lea eax, [esi + ebx*2]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4061bb
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 0x406197
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [edi - 0x10]
setne bl
call fcn.004019cb
push esi
call fcn.0041631d
pop ecx
mov al, bl
jmp 0x4061d6
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041687e
mov esp, ebp
pop ebp
ret

Function at 0x40636e
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x40637b
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4063b4
cmp eax, 0x80
je 0x4063b4
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00408640
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x406377
mov al, 1
pop esi
ret
Function at 0x4065ce
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 0x40660f
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 0x40660f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x4065ea
xor al, al
jmp 0x406611
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x406a06
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 0x406a3e
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x406aa0
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.00427b8a
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x406a9b
cmp dword [ebp - 4], 0
je 0x406a94
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 0x406aa0
movzx esi, si
or esi, 0x80070000
jmp 0x406aa0
xor eax, eax
mov word [ecx], ax
jmp 0x406aa0
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x406dc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x43f014]
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], 0x438b38
push 0xf003f
push ebx
lea ecx, [ebp - 0x214]
push dword [edi + 4]
call fcn.0040677e
mov esi, eax
cmp esi, 0x80070002
je 0x406e12
cmp esi, 0x80070003
jne 0x406e25
xor esi, esi
inc esi
jmp 0x406e25
lea eax, [ebp - 0x20c]
push eax
call fcn.00406dc0
mov esi, eax
test esi, esi
jne 0x406e73
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 0x406e17
call fcn.004066ae
push ebx
mov ecx, edi
call fcn.0040664e
mov esi, eax
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], 0x438b38
call fcn.004066ae
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041687e
mov esp, ebp
pop ebp
ret 4
Function at 0x40725c
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 0x40736b
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 0x40726e
sub ebx, 1
je 0x407330
sub ebx, 1
jne 0x407364
sub esi, ecx
js 0x40736b
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 0x40736b
mov byte [edx + 3], 0x3d
jmp 0x407361
sub esi, 2
js 0x40736b
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 0x40736b
mov word [edx + 2], 0x3d3d
add edx, 4
sub edx, dword [ebp + 8]
mov eax, edx
jmp 0x40736d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407d87
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 0x58]
mov edi, edx
push ebx
push eax
call fcn.004169c0
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 0x407dc3
push ebx
push ebx
jmp 0x407dcb
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 0x407de3
call fcn.00407b4d
jmp 0x407e26
movzx ecx, byte [0x440d98]
neg ecx
sbb ecx, ecx
and ecx, 0x441080
je 0x407e24
xor edi, edi
mov dword [ebp - 0x14], ecx
inc edi
push edi
push ecx
call fcn.00405732
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.004019ed
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407f11
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43f014]
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 0x407f77
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.0041687e
mov esp, ebp
pop ebp
ret

Function at 0x408711
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x43f014]
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.004169c0
mov esi, dword [0x44106c]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.004049c2
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.004019cb
lea ecx, [ebp - 0x808]
call fcn.00408e8d
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 0x4087c7
sub eax, 1
jne 0x4087b6
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.0041687e
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x408e8d
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 0x408efc
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 0x408ed8
push ebx
push edi
push eax
call fcn.00429530
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 0x408ef3
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 0x40a063
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 0x40a197
mov ecx, dword [esi + 0x14]
sub ecx, 0x10
call fcn.0040160c
lea edx, [ebp - 0x20]
lea edi, [eax + 0x10]
xor eax, eax
push eax
push ecx
mov ecx, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.00407c5b
pop ecx
pop ecx
test eax, eax
jns 0x40a0c2
lea ecx, [ebp - 8]
call fcn.00402389
push esi
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0040a44f
jmp 0x40a184
call fcn.00407944
xor ecx, ecx
mov dword [ebp - 0xc], eax
or ecx, dword [ebp - 0x20]
sub dword [ebp - 0xc], ecx
sbb edx, dword [ebp - 0x1c]
cmp edx, 0xc9
jb 0x40a17c
ja 0x40a0f0
cmp dword [ebp - 0xc], 0x2a69c000
jb 0x40a17c
call fcn.004013c2
push eax
lea ecx, [ebp - 4]
call fcn.004016ad
lea edx, [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.00411aec
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 8]
call fcn.00402389
push esi
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0040a44f
movzx ecx, byte [0x440d98]
neg ecx
sbb ecx, ecx
and ecx, 0x441080
je 0x40a16f
xor esi, esi
mov dword [ebp - 0x30], ecx
inc esi
push esi
push ecx
call fcn.00405732
push dword [ebp - 4]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push edi
push str._CrashHandler__Deleted_Stale_Crash__filename__s__custom_data__s_
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 8
call fcn.004019ed
add esp, 0x10
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004019cb
jmp 0x40a184
lea ecx, [ebp - 8]
call fcn.00402389
lea ecx, [edi - 0x10]
call fcn.004019cb
mov esi, dword [ebp - 8]
cmp esi, dword [ebx]
jne 0x40a07e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bf1f
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 0x40bf70
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea ecx, [esi + 0xc]
call fcn.0040cb03
cmp eax, dword [esi + 0xc]
je 0x40bf64
cmp ebx, dword [eax + 0x10]
jae 0x40bf67
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0xc]
jne 0x40bf7b
sub ebx, edi
jne 0x40bf4b
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 - 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
add ecx, ebx
cmp ecx, dword [ebp + 8]
jbe 0x40bf70
mov eax, ebx
jmp 0x40bf72
Function at 0x40c28e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov ebx, ecx
lea edi, [ebp - 0x4c]
push 9
pop ecx
xor eax, eax
mov dword [ebp - 8], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
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 0x40c361
cmp dword [ebp - 0x18], 0x1000
jne 0x40c352
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 4]
add ebx, 0xc
mov dword [ebp - 4], edi
push eax
mov ecx, ebx
call fcn.0040cb03
mov esi, eax
cmp esi, dword [ebx]
je 0x40c2f6
cmp edi, dword [esi + 0x10]
jae 0x40c32f
mov ecx, ebx
call fcn.0040d002
mov edx, eax
lea edi, [edx + 0x10]
mov word [edx + 0xc], 0
test edi, edi
je 0x40c31e
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [edi], ecx
add edi, 4
push 7
pop ecx
rep stosd dword es:[edi], eax
lea edi, [edx + 0x10]
push edx
push edi
push esi
lea eax, [ebp - 0xc]
mov ecx, ebx
push eax
call fcn.0040ce95
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
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 0x40c352
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov eax, ecx
div dword [ebp - 0x48]
add dword [ebx + 8], eax
jmp 0x40c355
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 0x40c2ce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40f570
Capabilities:
Create pipe

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