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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.004013ad
push eax
lea ecx, [ebp - 4]
call fcn.00401698
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 0x405160
push edx
lea ecx, [ebp - 4]
call fcn.004017a3
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 0x405196
mov ecx, dword [ebp + 8]
push 0x43c604
call fcn.004047d9
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.0040480b
lea ecx, [esi - 0x10]
call fcn.004019b6
mov eax, dword [ebp + 8]
jmp 0x4051cd
push str.CheckPointUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x405172
push edi
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.004015f7
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add eax, 0x10
push 0xffffffffffffffff
mov dword [esi], eax
call fcn.0040480b
mov ecx, edi
call fcn.004019b6
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4052b9
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 0x405384
cmp dword [ebx + 0xd4], 0
push esi
push edi
jne 0x405370
lea eax, [ebp - 4]
push eax
call fcn.004051d4
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x405318
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.004081f0
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.00407b76
test al, al
jne 0x405322
mov ecx, edi
call fcn.00401ef4
test eax, eax
jns 0x405322
lea ecx, [edi - 0x10]
call fcn.004019b6
lea ecx, [esi - 0x10]
call fcn.004019b6
jmp 0x405382
mov al, byte [ebx + 0x85]
push 0x20
mov byte [ebp - 8], al
call fcn.00426fed
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.00405c06
mov dword [ebx + 0xd4], eax
test eax, eax
jne 0x405360
push esi
push dword [ebx + 0x5c]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.0040862c
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.004019b6
lea ecx, [esi - 0x10]
call fcn.004019b6
mov eax, dword [ebx + 0xd4]
test eax, eax
je 0x405382
push eax
mov ecx, ebx
call fcn.00405b20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4058b5
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 0x405976
cmp dword [ebp + 8], 0
jne 0x4058da
cmp dword [ebp + 0x10], 2
jg 0x405976
call fcn.004013ad
push eax
lea ecx, [ebp - 4]
call fcn.00401698
call fcn.004013ad
push eax
lea ecx, [ebp + 0x14]
call fcn.00401698
xor edi, edi
lea eax, [ebx + 0x60]
inc edi
push 0
mov ecx, eax
call fcn.004065ba
test al, al
jne 0x40591c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x60]
cmp edi, 0x14
jle 0x4058fc
jmp 0x405940
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.004057dd
lea ecx, [ebx + 0x60]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x405960
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 0x439c88
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.004019b6
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004019b6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x405c06
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.00405db7
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.004013ad
push eax
lea ecx, [ebx + 0xc]
call fcn.00401698
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.004047d9
mov dword [ebx + 0x18], edi
call fcn.004013ad
push eax
lea ecx, [ebx + 0x1c]
call fcn.00401698
movzx eax, byte [0x440c48]
neg eax
sbb eax, eax
and eax, 0x440f30
mov dword [ebp + 8], eax
je 0x405cd8
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.00405b93
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x405cb6
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 0x405cc1
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.0040164a
lea ecx, [esi - 0x10]
call fcn.004019b6
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x405d30
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x405db5
mov byte [esi + 8], 1
call fcn.00405de3
cmp dword [esi + 0x10], 0
je 0x405db5
test al, al
je 0x405d50
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.0040635a
test al, al
jne 0x405d77
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.0040862c
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.00405eaa
cmp dword [esi + 0x18], 0
jne 0x405da2
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.0040862c
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 0x405db5
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret

Function at 0x405eaa
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.00407ca9
mov eax, dword [ebp - 0x6c]
cmp eax, dword [esi + 4]
jbe 0x405ee1
mov ecx, esi
call fcn.0040601b
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 0x405f1a
mov dword [esi + 0x18], edi
xor al, al
jmp 0x405fac
lea ecx, [ebp - 0x8c]
call fcn.004044bd
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x439594
push eax
call fcn.00403caf
add esp, 0x14
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x8c]
push edi
push 0xc0010000
push eax
call fcn.00403ee8
lea ecx, [ebp - 0x68]
mov bl, al
call fcn.0040443b
test bl, bl
je 0x405f74
push ecx
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x8c]
push eax
call fcn.00402c56
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405f9f
cmp byte [esi + 0xb], 0
je 0x405f9f
push edi
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], edi
push eax
push 2
push 0x43818c
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x8c]
call fcn.00403f64
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041686e
mov esp, ebp
pop ebp
ret

Function at 0x405fc0
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 0x405ff0
xor al, al
jmp 0x406014
cmp byte [esi + 0xb], bl
je 0x40600b
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x43818c
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 0x40609c
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 0x4061c0
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 0x4061c0
cmp dword [ebp - 0x78], esi
jne 0x4061c0
push dword [ebp - 0x6c]
call fcn.00427072
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.004169b0
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 0x4061b5
mov edi, dword [ebp - 0x6c]
shr edi, 1
mov dword [ebp - 0x7c], edi
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x4061b5
cmp word [esi + edi*2 - 4], bx
jne 0x4061b5
cmp word [esi + edi*2 - 2], bx
jne 0x4061b5
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
add eax, 0x14
mov edx, str.___
push eax
call fcn.004063c8
test edi, edi
mov edi, dword [ebp - 0x74]
pop ecx
je 0x4061a4
lea eax, [esi + ebx*2]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4061a7
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 0x406183
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [edi - 0x10]
setne bl
call fcn.004019b6
push esi
call fcn.00416307
pop ecx
mov al, bl
jmp 0x4061c2
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041686e
mov esp, ebp
pop ebp
ret

Function at 0x40635a
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x406367
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4063a0
cmp eax, 0x80
je 0x4063a0
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.0040862c
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x406363
mov al, 1
pop esi
ret
Function at 0x4065ba
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 0x4065fb
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 0x4065fb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x4065d6
xor al, al
jmp 0x4065fd
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4069f2
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 0x406a2a
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x406a8c
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.00427072
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x406a87
cmp dword [ebp - 4], 0
je 0x406a80
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 0x406a8c
movzx esi, si
or esi, 0x80070000
jmp 0x406a8c
xor eax, eax
mov word [ecx], ax
jmp 0x406a8c
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x406dac
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], 0x439760
push 0xf003f
push ebx
lea ecx, [ebp - 0x214]
push dword [edi + 4]
call fcn.0040676a
mov esi, eax
cmp esi, 0x80070002
je 0x406dfe
cmp esi, 0x80070003
jne 0x406e11
xor esi, esi
inc esi
jmp 0x406e11
lea eax, [ebp - 0x20c]
push eax
call fcn.00406dac
mov esi, eax
test esi, esi
jne 0x406e5f
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 0x406e03
call fcn.0040669a
push ebx
mov ecx, edi
call fcn.0040663a
mov esi, eax
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], 0x439760
call fcn.0040669a
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041686e
mov esp, ebp
pop ebp
ret 4
Function at 0x407248
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 0x407357
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 0x40725a
sub ebx, 1
je 0x40731c
sub ebx, 1
jne 0x407350
sub esi, ecx
js 0x407357
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 0x407357
mov byte [edx + 3], 0x3d
jmp 0x40734d
sub esi, 2
js 0x407357
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 0x407357
mov word [edx + 2], 0x3d3d
add edx, 4
sub edx, dword [ebp + 8]
mov eax, edx
jmp 0x407359
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407d73
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.004169b0
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 0x407daf
push ebx
push ebx
jmp 0x407db7
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 0x407dcf
call fcn.00407b39
jmp 0x407e12
movzx ecx, byte [0x440c48]
neg ecx
sbb ecx, ecx
and ecx, 0x440f30
je 0x407e10
xor edi, edi
mov dword [ebp - 0x14], ecx
inc edi
push edi
push ecx
call fcn.0040571b
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.004019d8
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407efd
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 0x407f63
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.0041686e
mov esp, ebp
pop ebp
ret

Function at 0x4086fd
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.004169b0
mov esi, dword [0x440f1c]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.004049ad
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.004019b6
lea ecx, [ebp - 0x808]
call fcn.00408e79
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 0x4087b3
sub eax, 1
jne 0x4087a2
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.0041686e
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x408e79
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 0x408ee8
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 0x408ec4
push ebx
push edi
push eax
call fcn.00428a20
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 0x408edf
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 0x40a04f
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 0x40a183
mov ecx, dword [esi + 0x14]
sub ecx, 0x10
call fcn.004015f7
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.00407c47
pop ecx
pop ecx
test eax, eax
jns 0x40a0ae
lea ecx, [ebp - 8]
call fcn.00402374
push esi
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0040a43b
jmp 0x40a170
call fcn.00407930
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 0x40a168
ja 0x40a0dc
cmp dword [ebp - 0xc], 0x2a69c000
jb 0x40a168
call fcn.004013ad
push eax
lea ecx, [ebp - 4]
call fcn.00401698
lea edx, [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.00411ad8
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.00402374
push esi
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0040a43b
movzx ecx, byte [0x440c48]
neg ecx
sbb ecx, ecx
and ecx, 0x440f30
je 0x40a15b
xor esi, esi
mov dword [ebp - 0x30], ecx
inc esi
push esi
push ecx
call fcn.0040571b
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.004019d8
add esp, 0x10
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004019b6
jmp 0x40a170
lea ecx, [ebp - 8]
call fcn.00402374
lea ecx, [edi - 0x10]
call fcn.004019b6
mov esi, dword [ebp - 8]
cmp esi, dword [ebx]
jne 0x40a06a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bf0b
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 0x40bf5c
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea ecx, [esi + 0xc]
call fcn.0040caef
cmp eax, dword [esi + 0xc]
je 0x40bf50
cmp ebx, dword [eax + 0x10]
jae 0x40bf53
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0xc]
jne 0x40bf67
sub ebx, edi
jne 0x40bf37
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 0x40bf5c
mov eax, ebx
jmp 0x40bf5e