joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e4d0
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xffffffffffffffff
push 0x473c28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x484008]
xor eax, ebp
mov dword [ebp + 0x414], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x4862c9]
test eax, eax
jne 0x46e585
mov ecx, dword [ebp + 0x420]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00443740
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
push 0x4010
push 0x160
lea ecx, [ebp + 0x2b4]
push ecx
mov edx, dword [ebp + 0x424]
or edx, 0x80
push edx
mov ecx, dword [ebp - 0x14]
call fcn.004012b0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004011d0
mov eax, dword [ebp + 0x428]
mov ecx, dword [ebp + 0x2b8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
jmp 0x46e5bc
push 0x4010
push 0x2b4
lea edx, [ebp]
push edx
mov eax, dword [ebp + 0x424]
or eax, 0x80
push eax
mov ecx, dword [ebp + 0x420]
push ecx
call fcn.0046e430
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp + 0x428]
mov eax, dword [ebp + 4]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.004259b9
add ebp, 0x418
mov esp, ebp
pop ebp
ret 0xc

Function at 0x46e800
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473c88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x484008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0xd66
mov ecx, dword [ebp - 0x10]
call fcn.004102b0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x30], al
lea ecx, [ebp - 0x1c]
call fcn.00444e60
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.0044c210
lea ecx, [ebp - 0x1c]
call fcn.00401370
lea eax, [ebp - 0x1c]
push eax
call fcn.0044ac70
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00444fa0
mov ecx, dword [ebp - 0x10]
call fcn.0040ee50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004011d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x46f070
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x46f0a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46f0a2
xor al, al
jmp 0x46f0bf
xor edx, edx
mov eax, dword [ebp - 4]
mov cl, 0x20
call fcn.00433260
xor ecx, ecx
add eax, dword [ebp - 8]
adc edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4053ea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp byte [0x43d989], 0
mov eax, dword [esp + 4]
push esi
movzx eax, ax
je 0x405477
push ebx
push ebp
push edi
push 5
push eax
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov edi, eax
push ebx
push edi
call fcn.00416f60
or dword [edi + 8], 0x400000
add esp, 0xc
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
push edi
push 0
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebp
pop ebx
jmp 0x40548e
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
push 0
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov esi, eax
mov eax, esi
pop esi
ret
Function at 0x405781
Capabilities:
Set registry value

Disassembly:
sub esp, 0x820
mov eax, dword [0x43c580]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x834]
lea eax, [esp + 0x2c]
push 0x400
push eax
push 0x3f1
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
xor eax, eax
mov dword [esp + 0x28], 7
xor ebx, ebx
mov word [esp + 0x14], ax
mov dword [esp + 0x24], ebx
cmp word [esp + 0x2c], ax
je 0x4057dd
lea eax, [esp + 0x2c]
push eax
call fcn.00418136
pop ecx
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040bc4c
cmp dword [0x43c0a8], 8
mov esi, 0x43c094
mov eax, dword [0x43c094]
jae 0x405801
mov eax, esi
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40584e
cmp dword [esp + 0x28], 8
mov ecx, dword [esp + 0x14]
jae 0x405825
lea ecx, [esp + 0x14]
mov eax, dword [esp + 0x24]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push ebx
push str.Email
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea ecx, [esp + 0x1c]
call fcn.0040b62d
cmp dword [0x43c0a8], 8
mov ebx, dword [0x43c094]
jae 0x40586b
mov ebx, esi
mov ebp, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x3f2
push edi
call ebp
test eax, eax
setne al
movzx eax, al
push eax
push str.IncludeURL
push ebx
call fcn.00407f43
mov ebx, dword [0x43c094]
add esp, 0xc
cmp dword [0x43c0a8], 8
jae 0x4058a1
mov ebx, esi
push 0x3f0
push edi
call ebp
test eax, eax
setne al
movzx eax, al
push eax
push str.EmailMe
push ebx
call fcn.00407f43
add esp, 0xc
cmp dword [0x43c0a8], 8
jb 0x4058cf
mov esi, dword [0x43c094]
push 0x3ef
push edi
call ebp
test eax, eax
setne al
movzx eax, al
push eax
push str.SubmitCrashReport
push esi
call fcn.00407f43
add esp, 0xc
push dword [esp + 0x838]
push edi
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004189a5
add esp, 0x820
ret
Function at 0x405b6e
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x54
mov eax, dword [0x43c580]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
push ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x6c]
push edi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x405bb8
mov eax, 0x200
jmp 0x405d48
mov eax, dword [esp + 0x24]
mov edx, eax
push esi
xor esi, esi
and edx, 1
je 0x405bc7
inc esi
test al, 2
je 0x405bce
or esi, 2
test al, 4
je 0x405bd5
or esi, 4
mov ecx, eax
and ecx, 0x10
je 0x405bdf
or esi, 0x10
test al, 0x20
je 0x405be6
or esi, 0x20
test ecx, ecx
je 0x405bf2
or esi, 0x40000000
jmp 0x405bf8
or esi, 0x80000000
or esi, 0x1000000
test edx, edx
jne 0x405c08
or esi, 0x800000
push ebp
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0x28
jbe 0x405cbe
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [esp + 0x10], ax
jne 0x405cbe
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 0x34]
cmp ebp, eax
jbe 0x405cbe
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a4d
je 0x405cb8
cmp eax, 0x454e
je 0x405cb8
cmp eax, 0x454c
je 0x405cb8
cmp eax, 0x4550
jne 0x405cbe
or esi, 0x400000
mov eax, dword [esp + 0x28]
test eax, eax
je 0x405cc8
mov dword [eax], esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x405cd2
mov dword [eax], ebp
pop ebp
test edi, edi
je 0x405d12
push dword [esp + 0x38]
push dword [esp + 0x38]
call fcn.0040e278
push dword [esp + 0x48]
mov dword [edi], eax
push dword [esp + 0x48]
mov dword [edi + 4], edx
call fcn.0040e278
push dword [esp + 0x40]
mov dword [edi + 8], eax
push dword [esp + 0x40]
mov dword [edi + 0xc], edx
call fcn.0040e278
add esp, 0x18
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov esi, dword [esp + 0x20]
test esi, esi
je 0x405d45
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
call fcn.0040e205
movzx ecx, word [esp + 0x1c]
add esp, 0x10
movzx eax, word [esp + 0x10]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x58]
pop edi
pop ebx
xor ecx, esp
call fcn.004189a5
add esp, 0x54
ret
Function at 0x406437
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x844
mov eax, dword [0x43c580]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x858]
push 0x3f6
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetDC]
xor ebp, ebp
mov ebx, eax
push ebp
push ebp
push 0x31
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x406486
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x40]
push eax
push edi
push esi
call fcn.00405dfd
add esp, 0xc
lea eax, [esp + 0x50]
push 0x400
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.00418136
pop ecx
push eax
lea eax, [esp + 0x58]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x4065ca
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], eax
jl 0x4065ca
fild dword [esp + 0x14]
push ecx
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fdiv dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.00412437
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
pop ecx
call fcn.00418aa0
imul eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x44]
sub ebx, dword [esp + 0x4c]
add ebx, eax
test ebx, ebx
jle 0x4065ca
push 1
push eax
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
push eax
push dword [esp + 0x50]
push dword [esp + 0x50]
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
mov esi, 0x43d9b0
mov ecx, esi
call fcn.0040c0af
movzx eax, byte [0x43d9bc]
mov ecx, esi
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x3ed
push eax
push ebp
lea eax, [esp + 0x34]
push eax
call fcn.00402169
movzx eax, byte [0x43d9bc]
mov ecx, esi
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x3f4
push eax
push ebp
lea eax, [esp + 0x44]
push eax
call fcn.00402169
push ebx
push edi
call fcn.004083de
pop ecx
pop ecx
push 0xa
mov esi, 0x431544
pop edi
movzx eax, byte [0x43d9bc]
mov ecx, 0x43d9b0
push eax
push esi
push ebp
lea eax, [esp + 0x3c]
push eax
call fcn.00402169
add esi, 4
dec edi
jne 0x4065ab
mov ecx, dword [esp + 0x850]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004189a5
add esp, 0x844
ret
Function at 0x4065e3
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
mov eax, dword [0x43c580]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov edi, dword [esp + 0x28]
mov esi, 0x3ef
push esi
push edi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
jne 0x406616
push eax
push edi
call fcn.00405781
pop ecx
pop ecx
jmp 0x40671a
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
xor ebp, ebp
push ebp
push esi
push edi
call ebx
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push ebp
push 0x3ee
push edi
call ebx
push eax
call esi
push ebp
push 0x3f3
push edi
call ebx
push eax
call esi
push ebp
push 0x3f2
push edi
call ebx
push eax
call esi
push ebp
push 0x3f0
push edi
call ebx
push eax
call esi
push ebp
push 0x3f1
push edi
call ebx
push eax
call esi
push ebp
push 0x3ed
push edi
call ebx
push eax
call esi
push ebp
push 0x3f4
push edi
call ebx
push eax
call esi
lea eax, [esp + 0x10]
push str.ReportDuringSubmit2
push eax
call fcn.004082d4
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40669b
mov eax, dword [eax]
push eax
push 0x3f6
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push ebp
push 1
lea ecx, [esp + 0x18]
call fcn.0040b62d
push edi
call fcn.00406437
pop ecx
push 0xffff0000
push 0xffffffffffffffff
push 0x465
mov esi, 0x3f7
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push edi
call ebx
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x43da04
mov ecx, 0x43d9c4
mov dword [0x43da0c], ebp
mov dword [0x43d9c0], edi
call fcn.00403041
push ebp
push ebp
push 0x43d9c0
push 0x407d60
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
mov dword [0x43da0c], eax
pop ebx
mov ecx, dword [esp + 0x20]
pop edi
pop esi
xor ecx, esp
call fcn.004189a5
add esp, 0x1c
ret
Function at 0x406979
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x7e4
mov eax, dword [0x43c580]
xor eax, esp
mov dword [esp + 0x7e0], eax
push ebx
mov ebx, dword [esp + 0x7f0]
lea eax, [esp + 0x3f8]
push ebp
push esi
mov esi, dword [esp + 0x7f4]
push edi
push 0x1f5
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0xb0
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x14]
xor ebp, ebp
mov ecx, dword [esp + 0x10]
mov edi, ebp
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub eax, ecx
je 0x406a2b
push eax
lea eax, [esp + 0x408]
lea eax, [eax + ecx*2]
push eax
lea eax, [esp + 0x20]
push 0x1f5
push eax
call fcn.0041816e
mov eax, dword [esp + 0x24]
add esp, 0x10
sub eax, dword [esp + 0x10]
add eax, eax
cmp eax, 0x3ea
jae 0x406a68
push ebp
push ebp
push ebp
push ebp
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + eax + 0x2c], cx
lea eax, [esp + 0x2c]
push eax
push ebp
push 0xfde9
call esi
lea edi, [eax - 1]
push ebp
push ebp
push ebp
push ebp
push 0xffffffffffffffff
lea eax, [esp + 0x418]
push eax
push ebp
push 0xfde9
call esi
push ebx
lea esi, [eax - 1]
call fcn.004041e4
pop ecx
mov ecx, dword [esp + 0x7f0]
sub esi, edi
pop edi
add eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004189a5
add esp, 0x7e4
ret
call fcn.00413ef2
int3
Function at 0x407429
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x814
mov eax, dword [0x43c580]
xor eax, esp
mov dword [esp + 0x810], eax
push ebx
mov ebx, dword [esp + 0x81c]
push ebp
push esi
mov esi, dword [esp + 0x828]
push edi
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
push ebx
mov ebp, eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x407471
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x400
lea eax, [esp + 0x24]
xor edi, edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [esp + 0x844], 8
mov eax, dword [esp + 0x830]
jae 0x40749c
lea eax, [esp + 0x830]
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 0x844]
push eax
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x407526
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00418136
pop ecx
push eax
lea eax, [esp + 0x28]
push eax
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x407526
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
jns 0x4074e3
xor edi, edi
jmp 0x407526
mov eax, dword [esp + 0x84c]
test eax, eax
jne 0x4074f7
mov eax, dword [esi + 8]
sub eax, dword [esi]
sub eax, dword [esp + 0x10]
cmp byte [esp + 0x848], 0
lea edi, [eax + ecx]
je 0x407508
sub dword [esi], edi
jmp 0x40750b
add dword [esi + 8], edi
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push 1
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
push 0
push 1
lea ecx, [esp + 0x838]
call fcn.0040b62d
mov ecx, dword [esp + 0x820]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004189a5
add esp, 0x814
ret
Function at 0x407551
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xb8
mov eax, dword [0x43c580]
xor eax, esp
mov dword [esp + 0xb4], eax
mov ecx, dword [0x43d99c]
xor eax, eax
push ebx
push ebp
push esi
mov word [esp + 0x60], ax
xor ebp, ebp
mov eax, dword [0x43d9a0]
mov ebx, ebp
push edi
sub eax, ecx
mov dword [esp + 0x78], 7
push 0x18
cdq
xor edi, edi
pop esi
idiv esi
inc edi
mov dword [esp + 0x74], ebp
test eax, eax
je 0x407650
mov edi, ebp
lea eax, [edi + ecx]
push ebp
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.00409151
push eax
lea eax, [esp + 0xbc]
push 0x43221c
push eax
call fcn.004015d2
push 0x432214
mov esi, eax
call fcn.00418136
add esp, 0x1c
mov ecx, esi
push eax
push 0x432214
call fcn.0040b991
push eax
lea ecx, [esp + 0x80]
call fcn.0040299e
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x70]
call fcn.0040b8d2
push ebp
push 1
lea ecx, [esp + 0x84]
call fcn.0040b62d
push ebp
push 1
lea ecx, [esp + 0xb4]
call fcn.0040b62d
push ebp
push 1
lea ecx, [esp + 0x9c]
call fcn.0040b62d
mov eax, dword [0x43d9a0]
inc ebx
mov ecx, dword [0x43d99c]
sub eax, ecx
push 0x18
pop esi
cdq
add edi, esi
idiv esi
cmp ebx, eax
jb 0x4075a0
xor edi, edi
inc edi
push 0x44
pop esi
push esi
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.00417630
push 0x10
lea eax, [esp + 0x20]
mov dword [esp + 0x30], esi
push ebp
push eax
mov dword [esp + 0x64], edi
mov word [esp + 0x68], di
call fcn.00417630
mov eax, dword [esp + 0x7c]
add esp, 0x18
cmp dword [esp + 0x78], 8
jae 0x40768b
lea eax, [esp + 0x64]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
push ecx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4076b9
push dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x14]
call esi
push ebp
push edi
lea ecx, [esp + 0x6c]
call fcn.0040b62d
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004189a5
add esp, 0xb8
ret
Function at 0x407f43
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x407f7c
push str.SubmitReport
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call esi
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407fa9
push str.SubmitReport
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x407fe3
cmp byte [ebp + 0x10], al
push 4
setne al
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4084e2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43c580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00409151
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40850c
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.0040b62d
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004189a5
mov esp, ebp
pop ebp
ret

Function at 0x40853a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43c580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00409151
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x408564
mov eax, dword [eax]
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
lea ecx, [ebp - 0x1c]
push 0
neg ebx
push 1
sbb bl, bl
call fcn.0040b62d
inc bl
pop ebx
je 0x408596
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x408596
xor al, al
jmp 0x408598
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004189a5
mov esp, ebp
pop ebp
ret

Function at 0x408758
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43c580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00409151
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x408782
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push 1
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.0040b62d
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, 0xffffffff
pop esi
setne al
xor ecx, ebp
call fcn.004189a5
mov esp, ebp
pop ebp
ret
Function at 0x40887f
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x248
mov eax, dword [0x43c580]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
mov ebx, dword [esp + 0x254]
lea eax, [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x25c]
push esi
push edi
mov edi, dword [esp + 0x25c]
xor esi, esi
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40892b
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4088e8
xor al, al
jmp 0x408a0c
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push str.AppData
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4088e1
cmp dword [esp + 0x18], 1
jne 0x4088e1
cmp dword [esp + 0x14], esi
je 0x4088e1
test byte [esp + 0x14], 1
jne 0x4088e1
cmp dword [edi + 0x10], esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
je 0x408966
push 0
lea eax, [esp + 0x20]
push edi
push eax
call fcn.00409151
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40894e
mov eax, dword [eax]
push eax
lea eax, [esp + 0x50]
push eax
call esi
xor edi, edi
lea ecx, [esp + 0x1c]
push edi
push 1
call fcn.0040b62d
jmp 0x408968
xor edi, edi
push edi
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.00409151
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40897f
mov eax, dword [eax]
push eax
lea eax, [esp + 0x50]
push eax
call esi
push edi
push 1
lea ecx, [esp + 0x24]
call fcn.0040b62d
push str.Crash_Reports
lea eax, [esp + 0x50]
push eax
call esi
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], ax
cmp word [esp + 0x4c], ax
jne 0x4089bd
mov eax, edi
jmp 0x4089c8
lea eax, [esp + 0x4c]
push eax
call fcn.00418136
pop ecx
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x24]
call fcn.0040bc4c
push edi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00409cc2
add esp, 0xc
mov ecx, ebp
push eax
call fcn.0040ba26
push edi
push 1
lea ecx, [esp + 0x3c]
call fcn.0040b5eb
push edi
push 1
lea ecx, [esp + 0x24]
call fcn.0040b62d
mov al, 1
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004189a5
add esp, 0x248
ret