joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42440a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x43eee4]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, pe_nt_image_headers32
cmp esi, eax
ja 0x424459
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x424459
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x424465
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040ef5a
leave
ret 8

Function at 0x424d29
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43eee4]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x424d76
push dword [ebp + 8]
call fcn.0042776b
mov esi, eax
test esi, esi
je 0x424d9e
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x424d9e
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x42d1e4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040ef5a
leave
ret 0xc

Function at 0x425624
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x43eee4]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x425682
push 0x42bfec
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00411150
add esp, 0x10
cmp eax, 0xffffffff
je 0x425696
cmp eax, esi
jae 0x425696
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x425698
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x42564d
jmp 0x425699
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.0040ef5a
leave
ret
Function at 0x4256b9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x43eee4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x42575b
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x42585d
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x42580b
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42585e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x425800
cmp dword [ebp - 0x24], 1
jne 0x425800
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x42bffc
push eax
call fcn.0040fa3b
add esp, 0xc
cmp eax, 1
jne 0x425800
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42585e
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x42585e
lea ecx, [ebp - 0x18]
push ecx
push 0x4256a3
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x42585e
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x425884
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.00425624
cmp eax, ebx
pop ecx
pop ecx
jne 0x425886
inc edi
cmp edi, esi
jl 0x42586d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040ef5a
leave
ret 4
Function at 0x425895
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x43e11c
je 0x425951
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x425939
mov esi, dword [ebx + 4]
jmp 0x425933
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x425923
cmp dword [ebp - 0xc], 4
jne 0x425923
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x42591b
or dword [eax + 0x9c], ecx
jmp 0x425923
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x4258e7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4258ca
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x425d3e
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x429a85
call fcn.00410a5c
sub esp, 0x11c
mov eax, dword [0x43eee4]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x425e37
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x425e0b
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00402d70
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00425d3e
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401b90
test bl, bl
jne 0x425e0b
or dword [ebp - 4], 0xffffffff
jmp 0x425d7c
cmp esi, 0x103
je 0x425e1b
cmp esi, 0x3f2
jne 0x425e2b
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040ef5a
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x426fb4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x426fe9
cmp edi, dword [esi + 0xc]
jge 0x426fe9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x426fe9
cmp edi, dword [eax + 8]
jge 0x426fe9
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x426feb
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4270ef
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x427123
jmp fcn.0041bfdd
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x427194
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x42728d
cmp eax, dword [edi + 0xc]
jge 0x42728d
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4271e5
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x427276
cmp dword [ebp + 0xc], ebx
je 0x427276
jmp 0x42720f
push 0x10
call fcn.00426e80
cmp eax, ebx
je 0x4271fb
mov ecx, eax
call fcn.004270e6
mov esi, eax
jmp 0x4271fd
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x427226
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x427236
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x427248
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041bfdd
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.004110f0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x427288
cmp ecx, dword [esi + 8]
jge 0x427288
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x42728e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42734d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42737b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x427399
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004272b7
jmp 0x427399
mov eax, dword [esi + 0x14]
test eax, eax
je 0x427399
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004272b7
test edi, edi
mov eax, edi
jne 0x427383
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x441bac]
test ecx, ecx
je 0x42744c
jmp 0x42734c
ret 8
Function at 0x402039
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x460
mov eax, 0x439faa
call fcn.004249d4
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x402057
mov eax, dword [edi]
jmp 0x402059
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40217b
test al, 0x10
jne 0x40217b
xor ebx, ebx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x46c], ebx
jb 0x402081
mov edi, dword [edi]
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push 7
xor eax, eax
mov dword [ebp - 0x244], ebx
pop edi
mov dword [ebp - 0x240], edi
mov word [ebp - 0x254], ax
cmp word [ebp - 0x224], ax
je 0x4020c9
lea eax, [ebp - 0x224]
push eax
call fcn.0041eb18
pop ecx
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x254]
call fcn.0040bfcb
mov dword [ebp - 4], ebx
xor ecx, ecx
mov eax, dword [ebp - 0x46c]
mov word [eax], cx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x464]
call fcn.00402686
xor eax, eax
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], ebx
mov word [ebp - 0x23c], ax
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x254]
mov ecx, esi
push eax
call fcn.00402299
test al, al
jne 0x402136
mov byte [ebp - 0x465], bl
jmp 0x40214c
push ebx
push ebx
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.00401a4a
mov byte [ebp - 0x465], al
push ebx
push 1
lea ecx, [ebp - 0x23c]
call fcn.0040c301
lea ecx, [ebp - 0x464]
call fcn.004026a8
push ebx
push 1
lea ecx, [ebp - 0x254]
call fcn.0040c301
mov al, byte [ebp - 0x465]
jmp 0x4021b2
xor ebx, ebx
add esi, 0xc
push ebx
push 0x443918
mov ecx, esi
call fcn.0040bfcb
push str.File_not_found:
call fcn.0041eb18
pop ecx
push eax
push str.File_not_found:
mov ecx, esi
call fcn.00404f14
push 0xffffffffffffffff
push ebx
push edi
mov ecx, esi
call fcn.00404e6e
xor al, al
call fcn.00424983
ret 4
Function at 0x40b80b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x43ab10
call fcn.00424a40
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40b888
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40b888
call fcn.0040a1dc
mov esi, eax
jmp 0x40b993
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40b8ab
call fcn.0040a1dc
jmp 0x40b986
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x40b8a1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
lea ecx, [ebx + 1]
cmp ecx, ebx
jae 0x40b8de
mov esi, 0x8007000e
jmp 0x40b988
xor eax, eax
mov byte [ebp - 4], 2
shld eax, ecx, 1
add ecx, ecx
cmp eax, esi
ja 0x40b917
cmp ecx, 0xffffffff
ja 0x40b917
cmp ecx, 0x400
jbe 0x40b909
push ecx
lea ecx, [ebp - 0x418]
call fcn.0040a1b7
jmp 0x40b935
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40b935
push 0x80070216
call fcn.0040abb8
mov eax, 0x40b927
ret
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x40b8d4
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x40b8a1
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040b6b4
mov esi, eax
test edi, edi
je 0x40b993
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40b9ac
lea ecx, [ebp - 0x418]
call fcn.0040a1a2
mov eax, esi
call fcn.00424992
ret 0x10
Function at 0x40c5de
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x43abdc
call fcn.004249a1
mov edi, ecx
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
lea ecx, [edi + 4]
mov dword [edi], vtable.BugsplatReport.0
call fcn.004098cb
push dword [ebp + 0xc]
xor ebx, ebx
lea ecx, [edi + 8]
mov dword [ebp - 4], ebx
call fcn.004098cb
push dword [ebp + 0x10]
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 1
call fcn.004098cb
push dword [ebp + 0x14]
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 2
call fcn.004098cb
mov eax, dword [0x44d5d0]
mov dword [edi + 0x14], eax
mov eax, dword [0x44d5d0]
mov dword [edi + 0x18], eax
mov eax, dword [0x44d5d0]
mov dword [edi + 0x1c], eax
mov eax, dword [0x44d5d0]
mov dword [edi + 0x20], eax
mov eax, dword [0x44d5d0]
mov dword [edi + 0x24], eax
mov eax, dword [0x44d5d0]
mov dword [edi + 0x28], eax
push str.0.0.0.0
lea ecx, [edi + 0x2c]
mov byte [ebp - 4], 9
call fcn.00411e09
mov eax, dword [0x44d5d0]
lea esi, [edi + 0x68]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov eax, dword [0x44d5d0]
mov dword [edi + 0x40], eax
mov eax, dword [0x44d5d0]
mov dword [edi + 0x44], eax
mov eax, dword [0x44d5d0]
mov dword [edi + 0x4c], eax
mov dword [edi + 0x54], ebx
mov byte [edi + 0x58], bl
mov word [edi + 0x5a], bx
mov byte [edi + 0x5c], bl
mov eax, dword [0x44d5d0]
mov dword [edi + 0x60], eax
mov eax, dword [0x44d5d0]
mov dword [edi + 0x64], eax
mov eax, dword [0x44d5d0]
push esi
mov dword [edi + 0x270], eax
push 0x104
mov byte [edi + 0x274], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.bugsplat.log
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x443988
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push esi
push eax
call fcn.0042149b
add esp, 0xc
cmp dword [ebp + 8], ebx
je 0x40c704
push dword [ebp + 8]
call fcn.00421616
pop ecx
mov eax, edi
call fcn.0042496f
ret 0x10
Function at 0x40d2ab
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43acee
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x44c4b8]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x44c4b8]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test edi, edi
jne 0x40d2fc
xor eax, eax
jmp 0x40d4cf
test esi, esi
je 0x40d309
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [edi + 0x40]
mov edx, edi
call fcn.0040e311
test al, al
jne 0x40d340
xor ebx, ebx
inc ebx
test esi, esi
je 0x40d328
push 0
push ebx
mov ecx, esi
call fcn.00414795
lea eax, [edi + 0x270]
push 0xbc0
push eax
call fcn.004118b5
pop ecx
pop ecx
jmp 0x40d406
cmp byte [edi + 0x58], 0
je 0x40d354
cmp byte [edi + 0x59], 0
je 0x40d354
xor eax, eax
inc eax
jmp 0x40d4cf
xor ebx, ebx
inc ebx
test esi, esi
je 0x40d364
push ebx
push ebx
mov ecx, esi
call fcn.00414795
and dword [esp + 0x14], 0
mov byte [edi + 0x274], bl
mov dword [esp + 0x18], 2
mov ecx, edi
call fcn.0040d631
cmp eax, ebx
jne 0x40d393
mov ecx, edi
call fcn.0040dd97
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp ecx, ebx
je 0x40d3d2
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
push 3
inc eax
pop ecx
mov dword [esp + 0x14], eax
cmp eax, ecx
jl 0x40d377
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x40d3d2
push 0
push ebx
push str.https:__www.bugsplat.com
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
mov ecx, dword [esp + 0x18]
cmp eax, ebx
push 3
pop eax
cmovne ecx, eax
jmp 0x40d3d5
push 3
pop eax
cmp ecx, eax
je 0x40d3e0
test esi, esi
je 0x40d406
push ebx
jmp 0x40d3fd
push dword [edi + 0x40]
lea eax, [edi + 0x270]
push 0xbc1
push eax
call fcn.004118b5
add esp, 0xc
test esi, esi
je 0x40d406
push 0
push 2
mov ecx, esi
call fcn.00414795
mov eax, dword [edi + 0x270]
cmp dword [eax - 8], 0
je 0x40d4c0
test esi, esi
je 0x40d4cd
cmp byte [edi + 0x274], 0
je 0x40d4b6
lea ecx, [esp + 0x1c]
call fcn.0040d4f3
and dword [esp + 0xc0], 0
lea ecx, [esp + 0x1c]
push dword [edi + 0x270]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
call fcn.00413dc9
call dword [sym.imp.USER32.dll_GetActiveWindow]
xor edi, edi
mov dword [esp + 0x14], eax
push edi
push edi
lea ecx, [esp + 0x2c]
call fcn.00411782
test eax, eax
jne 0x40d479
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40d4a3
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0041172b
push edi
push 0x40eb0c
push dword [esp + 0x1c]
push 0x3eb
push dword [0x44e4e4]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
or dword [esp + 0xc0], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0040d58c
jmp 0x40d4c0
push ecx
push ecx
push eax
mov ecx, edi
call fcn.0040dd68
test esi, esi
je 0x40d4cd
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0041da8c
mov esp, ebp
pop ebp
ret
Function at 0x40dd97
Capabilities:
Access the windows event log

Disassembly:
push 0x224
mov eax, 0x43ae1a
call fcn.004249d4
mov edi, ecx
mov eax, dword [edi + 0x40]
mov ebx, dword [edi + 0x4c]
mov dword [ebp - 0x230], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x22c], eax
mov eax, dword [edi + 8]
push 0x71aac
mov dword [ebp - 0x228], eax
call fcn.0041e244
pop ecx
test eax, eax
je 0x40dde0
mov ecx, eax
call fcn.00412622
mov esi, eax
jmp 0x40dde2
xor esi, esi
test esi, esi
je 0x40dfca
mov ecx, esi
call fcn.0041314e
xor eax, eax
inc eax
push eax
push dword [ebp - 0x230]
push str.minidumpZip
call fcn.00412e94
push ecx
push 5
push ebx
mov ecx, esi
call fcn.004128b1
test eax, eax
je 0x40dfbd
mov ecx, esi
call fcn.00413313
push eax
lea ecx, [ebp - 0x220]
call fcn.004098cb
push ebx
push str.HTTPS_PUT_response:
mov ecx, edi
call fcn.0040e721
push dword [ebp - 0x220]
xor ebx, ebx
mov ecx, edi
push ebx
call fcn.0040e721
push str._____________________________
push ebx
mov ecx, edi
call fcn.0040e721
lea ecx, [ebp - 0x220]
call fcn.004095d5
mov ecx, edi
call fcn.0040d892
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x40dfca
lea eax, [ebp - 0x224]
mov edx, str.EventLogging
push eax
mov ecx, 0x443918
call fcn.00414ebc
pop ecx
mov ecx, dword [ebp - 0x224]
test eax, eax
push 1
pop eax
cmove ecx, eax
cmp ecx, eax
jne 0x40dfa3
push str.BugSplat_
lea ecx, [ebp - 0x220]
call fcn.004098cb
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], ebx
call fcn.00411993
push 0x4445f4
lea ecx, [ebp - 0x224]
call fcn.00411e09
xor ecx, ecx
inc ecx
mov byte [ebp - 4], cl
mov eax, dword [ebp - 0x224]
cmp dword [eax - 8], ebx
je 0x40def3
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x220]
call fcn.0041192d
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], bl
call fcn.004095d5
push dword [ebp - 0x228]
lea ecx, [ebp - 0x220]
call fcn.00411993
mov ecx, dword [ebp - 0x220]
call fcn.0041507d
push dword [ebp - 0x220]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov ebx, eax
test ebx, ebx
je 0x40df94
push dword [edi + 0x50]
lea eax, [ebp - 0x210]
push 0x444a7c
push 0x100
push eax
call fcn.0041f68d
mov eax, dword [ebp - 0x22c]
add esp, 0x10
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x210]
push 0
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 3
push 0
xor eax, eax
inc eax
push eax
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.004095d5
push dword [ebp - 0x230]
call fcn.0041f6d7
mov edx, dword [esi]
xor ebx, ebx
pop ecx
inc ebx
mov ecx, esi
push ebx
call dword [edx]
mov eax, ebx
jmp 0x40dfcd
push ebx
push str.HTTPS_PUT_response_failed:
mov ecx, edi
call fcn.0040e721
push 2
pop eax
call fcn.00424983
ret