joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403eb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403ec9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403f04
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403f00
lea ebx, [ebx]
cmp esi, eax
jae 0x403f04
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403ef0
cmp esi, eax
jb 0x403f0a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40638b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4063d3
call fcn.0040fc0f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4063d3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x406416
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4063ff
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4063ff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x406413
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x407b2a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x437aeb
call fcn.004230c2
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x407b4f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x407b95
lea ecx, [ebp - 0x10]
call fcn.00401c00
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404741
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401be0
mov eax, esi
call fcn.0042319a
ret 8
Function at 0x409b92
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x409bb6
cmp dword [edi + 0x54], 0
jne 0x409bb6
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040fc0f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00409b53
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40f24b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40f292
call fcn.0040fc0f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40f292
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40f2ae
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040edc5
mov esi, eax
test edi, edi
je 0x40f2ac
test ebx, ebx
je 0x40f2ac
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x421c4b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44851c]
jne 0x421c55
repz ret
jmp fcn.00427f2e
Function at 0x432a0d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004280a6
and dword [ebp - 4], 0
cmp dword [0x44c27c], 0
mov ebx, eax
jne 0x432abe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x432b6f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43e108
push edi
call esi
test eax, eax
je 0x432b6f
push eax
call fcn.00428034
mov dword [esp], 0x43e0f8
push edi
mov dword [0x44c27c], eax
call esi
push eax
call fcn.00428034
mov dword [esp], 0x43e0e4
push edi
mov dword [0x44c280], eax
call esi
push eax
call fcn.00428034
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44c284], eax
call esi
push eax
call fcn.00428034
pop ecx
mov dword [0x44c28c], eax
test eax, eax
je 0x432abe
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00428034
pop ecx
mov dword [0x44c288], eax
mov eax, dword [0x44c288]
cmp eax, ebx
je 0x432b16
cmp dword [0x44c28c], ebx
je 0x432b16
push eax
call fcn.004280af
push dword [0x44c28c]
mov esi, eax
call fcn.004280af
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x432b16
test edi, edi
je 0x432b16
call esi
test eax, eax
je 0x432b0d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x432b0d
test byte [ebp - 0xc], 1
jne 0x432b16
or dword [ebp + 0x10], 0x200000
jmp 0x432b4f
mov eax, dword [0x44c280]
cmp eax, ebx
je 0x432b4f
push eax
call fcn.004280af
pop ecx
test eax, eax
je 0x432b4f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x432b4f
mov eax, dword [0x44c284]
cmp eax, ebx
je 0x432b4f
push eax
call fcn.004280af
pop ecx
test eax, eax
je 0x432b4f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44c27c]
call fcn.004280af
pop ecx
test eax, eax
je 0x432b6f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x432b71
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b1e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401b75
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b75
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401b66
cmp esi, ecx
jae 0x401b75
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401b54
cmp esi, ecx
jae 0x401b75
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x401b77
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401f61
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x401f97
lea esi, [edi + 4]
test esi, esi
je 0x401f97
call fcn.00401ec3
test al, al
je 0x401f97
mov ecx, edi
call fcn.00401ec3
test al, al
je 0x401f97
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x401f99
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x404a28
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
jne 0x404a4f
mov eax, 0x80070057
jmp 0x404aef
push edi
mov ecx, esi
call fcn.00401745
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00416c50
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x404ad0
movzx ecx, bl
cmp ecx, 0x26
jne 0x404a94
mov edx, 0x435500
jmp 0x404a9e
cmp ecx, 0x1c
jne 0x404abf
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.004049eb
push eax
mov ecx, esi
call fcn.004016c6
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.004016ae
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x404acc
xor eax, eax
inc eax
jmp 0x404aee
mov eax, edi
jmp 0x404aee
lea eax, [ebp - 0x20c]
push eax
call fcn.00422151
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004017dd
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00416022
leave
ret
Function at 0x404e04
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 4]
call fcn.0040171e
mov eax, dword [ebp - 4]
xor esi, esi
inc esi
mov ecx, 0x104
mov edx, dword [eax - 8]
sub esi, dword [eax - 4]
sub edx, ecx
or esi, edx
jge 0x404e38
push ecx
lea ecx, [ebp - 4]
call fcn.00401901
mov eax, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov esi, eax
call fcn.004040c6
test esi, esi
jne 0x404e5a
mov edi, 0x80004005
jmp 0x404f00
push ebx
push ecx
push ecx
lea ecx, [ebp - 4]
call fcn.00405049
push 0
push 0x5c
lea ecx, [ebp - 4]
call fcn.0040501a
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404e80
mov ecx, dword [ebp - 4]
mov eax, dword [ecx - 0xc]
jmp 0x404e82
mov eax, ebx
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.00403fd3
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.00403149
test al, al
jne 0x404ebf
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404ebf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x50
je 0x404ebf
cmp edi, 0xb7
jne 0x404ede
cmp ebx, 0xffffffff
je 0x404ef5
lea eax, [ebx + 1]
push eax
push 0x5c
lea ecx, [ebp - 4]
call fcn.0040501a
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.004016ae
jmp 0x404e73
test edi, edi
jle 0x404eeb
movzx edi, di
or edi, 0x80070000
lea ecx, [esi - 0x10]
call fcn.004016ae
jmp 0x404eff
lea ecx, [esi - 0x10]
call fcn.004016ae
xor edi, edi
pop ebx
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.004016ae
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x405213
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jle 0x40532b
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp edi, 2
jle 0x405293
sub edx, 4
js 0x40532b
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
sub edi, 3
jmp 0x40522b
sub edi, 1
je 0x4052ef
sub edi, 1
jne 0x405324
sub edx, 3
js 0x40532b
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
lea eax, [edx - 1]
test eax, eax
js 0x40532b
mov byte [esi + 3], 0x3d
jmp 0x405321
sub edx, 2
js 0x40532b
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx eax, byte [ebx]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
lea eax, [edx - 2]
test eax, eax
js 0x40532b
mov word [esi + 2], 0x3d3d
add esi, 4
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x40532d
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4058fc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
lea ecx, [ebp - 0x24]
mov ebx, edx
call fcn.004032be
xor esi, esi
mov dword [ebp - 0x6c], 0x44
push 0x3c
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], esi
push esi
push eax
call fcn.00416c50
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x6c]
add esp, 0xc
mov dword [ebp - 0x40], 0x80
push edi
push eax
push esi
cmp dword [ebp + 8], esi
jne 0x405943
push esi
push esi
jmp 0x40594b
push dword [ebp + 8]
push 0x400
push dword [ebp + 0xc]
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x405965
call fcn.00409315
mov esi, eax
jmp 0x4059a6
movzx ecx, byte [0x43deb9]
neg ecx
sbb ecx, ecx
and ecx, 0x43dec0
je 0x4059a6
xor eax, eax
mov dword [ebp - 0x14], ecx
inc eax
mov dword [ebp - 0x10], 7
push eax
push ecx
mov dword [ebp - 0xc], eax
call fcn.00406437
push dword [edi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push str._Started_process___u_
push eax
call fcn.004031cc
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00403318
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40807c
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.00408945
cmp byte [ebp - 8], 0
je 0x40809c
mov eax, dword [ebp - 0xc]
jmp 0x4080c5
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jle 0x4080b4

Function at 0x408503
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 0x40853b
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x408592
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.0042a8e1
cmp dword [ebp - 4], 0
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
je 0x40858d
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 0x408592
movzx esi, si
or esi, 0x80070000
jmp 0x408592
xor eax, eax
mov word [ecx], ax
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x40859a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, 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 [ebx + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x4085d2
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x408646
mov edx, dword [ebp - 4]
test edx, edx
je 0x40863e
shr edx, 1
add edx, 1
js 0x40864e
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
inc ecx
mov eax, dword [edi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x4085ff
push edx
mov ecx, edi
call fcn.00401901
cmp dword [edi], 0
jne 0x40860b
mov esi, 0x8007000e
jmp 0x408632
lea eax, [ebp - 4]
push eax
push dword [edi]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x408632
movzx esi, si
or esi, 0x80070000
push 0xffffffffffffffff
mov ecx, edi
call fcn.004040c6
pop edi
jmp 0x408646
mov ecx, dword [ebp + 0xc]
call fcn.00401745
mov eax, esi
pop esi
pop ebx
leave
ret 8
push 0x80070057
call fcn.004012b5
int3

Function at 0x4089ce
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43c040]
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.00408945
cmp byte [ebp - 0x220], 0
je 0x408a07
mov eax, dword [ebp - 0x224]
jmp 0x408a72
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x218]
and dword [ebp - 0x214], 0
or eax, 0xf003f
push 0
push eax
push ebx
push dword [edi + 4]
mov dword [ebp - 0x218], 0x43546c
mov dword [ebp - 0x210], 0x200
call fcn.004081f2
mov esi, eax
cmp esi, 0x80070002
je 0x408a4e
cmp esi, 0x80070003
jne 0x408a97
xor esi, esi
inc esi
cmp dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0x43546c
je 0x408a70
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416022
leave
ret 4
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.004089ce
mov esi, eax
test esi, esi
jne 0x408a51
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x21c], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x408a83
cmp dword [ebp - 0x214], esi
je 0x408af2
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], 0x200
push ebx
mov ecx, edi
call fcn.0040807c
mov esi, eax
jmp 0x408a51
Function at 0x40903a
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
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 - 0x10], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4090a0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x409092
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x14]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.00416022
leave
ret

Function at 0x409624
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp edi, 0x80000003
jne 0x409651
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00416022
leave
ret
push esi
push 0x802
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.00416c50
mov esi, dword [0x43deb4]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.00404b99
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
push edi
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.004016ae
lea ecx, [ebp - 0x808]
call fcn.00409d05
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
sub eax, 3
je 0x4096e5
sub eax, 1
jne 0x4096dd
int3
xor eax, eax
inc eax
jmp 0x409644
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x409d05
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 0x409d74
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 0x409d50
push ebx
push edi
push eax
call fcn.00416db0
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 0x409d6b
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 0x40ace5
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 0x40ae5d
mov ecx, dword [esi + 0x14]
sub ecx, 0x10
call fcn.004018a1
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
lea edi, [eax + 0x10]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.00403185
push 0
movzx eax, al
shl eax, 0x19
push eax
push 3
push 0
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
cmp eax, 0xffffffff
jne 0x40ad4c
call fcn.00409315
jmp 0x40ad71
push ecx
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x40ad65
call fcn.00409315
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
test eax, eax
jns 0x40ad8e
lea ecx, [ebp - 8]
call fcn.0040422f
push esi
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0040b24e
jmp 0x40ae4a
call fcn.004058cc
xor ecx, ecx
mov dword [ebp - 0xc], eax
or ecx, dword [ebp - 0x24]
sub dword [ebp - 0xc], ecx
sbb edx, dword [ebp - 0x20]
cmp edx, 0xc9
jb 0x40ae42
ja 0x40adbc
cmp dword [ebp - 0xc], 0x2a69c000
jb 0x40ae42
lea ecx, [ebp - 4]
call fcn.0040171e
lea edx, [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.00411078
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.0040422f
push esi
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.0040b24e
movzx ecx, byte [0x43deb9]
neg ecx
sbb ecx, ecx
and ecx, 0x43dec0
je 0x40ae35
xor eax, eax
mov dword [ebp - 0x34], ecx
inc eax
mov dword [ebp - 0x30], 7
push eax
push ecx
mov dword [ebp - 0x2c], eax
call fcn.00406437
push dword [ebp - 4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push edi
push str._CrashHandler__Deleted_Stale_Crash__filename__s__custom_data__s_
push eax
call fcn.004031cc
add esp, 0x10
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004016ae
jmp 0x40ae4a
lea ecx, [ebp - 8]
call fcn.0040422f
lea ecx, [edi - 0x10]
call fcn.004016ae
mov esi, dword [ebp - 8]
cmp esi, dword [ebx]
jne 0x40ad00
pop edi
pop esi
pop ebx
leave
ret