joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c6d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445380
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x455638]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
cmp eax, ecx
je 0x40c71e
mov edx, dword [ebp + 8]
push edx
push ecx
call fcn.00403b80
mov edi, dword [esi + 4]
add esp, 8
mov ebx, eax
call fcn.00402400
mov dword [esi + 4], ebx
xor ebx, ebx
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x18]
push eax
push 1
push ebx
push str.SoftwareMicrosoftInternet_ExplorerMain
mov dword [ebp - 4], ebx
push SysReAllocString
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40c819
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push ecx
push ebx
lea edx, [ebp - 0x20]
push edx
push ebx
push str.Secondary_Start_Pages
push esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x40c80e
cmp dword [ebp - 0x20], 7
jne 0x40c80e
mov eax, dword [ebp - 0x1c]
shr eax, 1
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x11], 1
cmp eax, 2
jbe 0x40c80e
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040d320
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x2c]
push eax
lea edi, [ebp - 0x1c]
call fcn.004157f0
test eax, eax
jne 0x40c7fe
mov eax, dword [ebp - 0x1c]
cmp eax, 2
jbe 0x40c7fe
add eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040d320
push 1
sub esp, 0x14
mov edi, esp
mov dword [ebp - 0x20], esp
push 0x44bd98
call fcn.004024a0
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
add esp, 4
push ecx
call fcn.0040ddd0
mov esi, dword [ebp - 0x3c]
add esp, 0x1c
xor ebx, ebx
cmp esi, ebx
je 0x40c80b
push esi
call fcn.0041d921
add esp, 4
mov esi, dword [ebp - 0x18]
cmp esi, ebx
je 0x40c819
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c830
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445710
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x455638]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], edi
mov ebx, dword [esi]
cmp ebx, dword [esi + 4]
je 0x40c8bd
lea esp, [esp]
lea ecx, [ebp - 0x48]
push ecx
call fcn.0040dea0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405ca0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], 8
jb 0x40c8b3
mov edx, dword [ebp - 0x48]
push edx
call fcn.0041d921
add esp, 4
add ebx, 0x1c
cmp ebx, dword [esi + 4]
jne 0x40c880
xor edi, edi
push edi
push 0x44bd9c
lea ecx, [ebp - 0x2c]
call fcn.00405db0
lea eax, [ebp - 0x50]
push eax
push 2
push edi
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocString
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x50], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40c94b
mov ecx, dword [ebp - 0x50]
xor eax, eax
mov dword [ebp - 0x5c], ecx
cmp eax, edi
jne 0x40c94b
cmp dword [ebp - 0x18], 8
jb 0x40c90f
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
cmp eax, edi
jne 0x40c915
mov eax, 0xd
jmp 0x40c949
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x4c], edx
mov esi, dword [ebp - 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ebx, ebx
push esi
call edi
inc eax
lea esi, [esi + eax*2]
lea ebx, [ebx + eax*2]
cmp eax, 1
jne 0x40c920
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x5c]
push ebx
push eax
push 7
push 0
push str.Secondary_Start_Pages
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edi, edi
cmp eax, edi
mov eax, dword [ebp - 0x5c]
sete bl
cmp eax, edi
je 0x40c95c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x40c96e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041d921
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d92c
mov esp, ebp
pop ebp
ret
Function at 0x40d7f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443efb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x455638]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0041978c
push 4
mov dword [ebp - 4], 0
call fcn.0041dfe7
mov edi, eax
add esp, 4
test edi, edi
je 0x40d86c
call fcn.00418ef8
mov dword [edi], eax
call fcn.00418cb7
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00418fe1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40d862
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00419009
jmp 0x40d86e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ea70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445088
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
mov eax, dword [0x455638]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x3c]
mov esi, dword [eax + 0x10]
mov ecx, dword [eax + 0x40]
mov dword [esi], edx
mov esi, dword [eax + 0x20]
mov dword [esi], edx
sub ecx, edx
mov edx, dword [eax + 0x30]
push eax
lea eax, [ebp - 0x68]
sar ecx, 1
push eax
mov dword [edx], ecx
call fcn.0040f1f0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + 4]
and dword [ebp + eax - 0x54], 0xfffffffe
mov edx, dword [ebp - 0x68]
lea eax, [ebp + eax - 0x68]
mov eax, dword [edx + 4]
lea eax, [ebp + eax - 0x68]
mov dword [eax + 0x18], 6
mov dword [eax + 0x1c], ebx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.0040f2a0
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
and al, 6
movsx edx, al
neg edx
sbb edx, edx
not edx
test ecx, edx
je 0x40eb20
lea eax, [ebp - 0x68]
push eax
call fcn.0040f480
mov ecx, 0xffff
cmp ax, cx
jne 0x40eb20
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x58]
mov dword [ebp + eax - 0x68], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
push ecx
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.00419656
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40efb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [edi], 0
je 0x40f00c
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftInternet_ExplorerTabbedBrowsing
push SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f00c
mov ecx, dword [edi + 4]
push esi
mov esi, dword [ebp - 4]
push 4
lea edx, [ebp - 8]
push edx
push 4
push eax
push str.WarnOnClose
push esi
mov dword [ebp - 8], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x40f00b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
push edi
call fcn.0041d921
add esp, 4
mov eax, edi
mov esp, ebp
pop ebp
ret

Function at 0x4149c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x444be8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x455638]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00414570
push eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x70], 0
call fcn.004144e0
add esp, 0x10
push 0x4514e0
lea eax, [esp + 0x30]
push eax
call fcn.0041eb3a
int3

Function at 0x4157f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test esi, esi
je 0x415808
cmp dword [edi], 2
jae 0x415808
mov eax, 0x7a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push esi
add eax, eax
lea edx, [ebp + 8]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push str.Secondary_Start_Pages
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415876
cmp dword [ebp + 8], 7
je 0x415846
mov eax, 0xd
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
test esi, esi
je 0x415870
test cl, 1
jne 0x41583b
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x41583b
cmp word [esi + eax*2 - 2], 0
jne 0x41583b
cmp eax, 1
jbe 0x415870
cmp word [esi + eax*2 - 4], 0
jne 0x41583b
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x415880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4158ee
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4158bd
cmp eax, 2
jne 0x4158d8
mov eax, dword [ebp - 4]
test esi, esi
je 0x4158e8
test eax, eax
je 0x4158e3
test al, 1
jne 0x4158d8
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4158e8
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x416140
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444b56
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x455638]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
cmp eax, ecx
je 0x41619f
mov edx, dword [ebp - 0x248]
push edx
push ecx
call fcn.0040e800
mov ebx, dword [edi + 4]
mov esi, eax
mov eax, dword [ebp - 0x248]
push eax
mov eax, esi
call fcn.00402ec0
add esp, 0xc
mov dword [edi + 4], esi
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
cmp eax, 0xffffffff
je 0x41621b
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push eax
lea edx, [ebp - 0x24c]
push edx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x248], ebx
call fcn.00402e00
push 0x228
lea eax, [ebp - 0x23c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0041eac0
mov edx, dword [ebp - 0x24c]
add esp, 0xc
lea ecx, [ebp - 0x240]
push ecx
push edx
mov dword [ebp - 0x240], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x416222
lea eax, [ebp - 0x24c]
mov dword [ebp - 4], 0xffffffff
call fcn.004021c0
xor al, al
jmp 0x4162fd
mov byte [ebp - 0x241], 1
lea eax, [ebp - 0x21c]
push str.firefox.exe
push eax
call fcn.0041dd60
add esp, 8
test eax, eax
jne 0x4162c9
mov ecx, dword [ebp - 0x238]
push ecx
push ebx
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
je 0x4162c3
mov edx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
push eax
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], ebx
call fcn.00402e00
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 1
call fcn.0040d190
mov byte [ebp - 4], bl
mov esi, dword [ebp - 0x250]
cmp esi, ebx
je 0x4162c9
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4162c9
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4162c9
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
jmp 0x4162c9
mov byte [ebp - 0x241], bl
mov edx, dword [ebp - 0x24c]
lea ecx, [ebp - 0x240]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x416229
lea eax, [ebp - 0x24c]
mov dword [ebp - 4], 0xffffffff
call fcn.004021c0
mov al, byte [ebp - 0x241]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d92c
mov esp, ebp
pop ebp
ret
Function at 0x4165e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444b18
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x455638]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
cmp esi, dword [ebp + 0x10]
je 0x41662f
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ecx]
mov eax, dword [esi]
push 0
push eax
call edi
add esi, 8
cmp esi, dword [ebp + 0x10]
jne 0x416620
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00416320
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
add esp, 4
mov byte [ebp - 0xd], al
test ecx, ecx
je 0x41666f
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
push edx
mov eax, ecx
call fcn.00402ec0
mov eax, dword [ebp + 0xc]
add esp, 4
push eax
call fcn.0041d921
mov al, byte [ebp - 0xd]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416810
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444a08
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x455638]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00416140
mov esi, dword [ebp - 0x24]
test al, al
je 0x4168c1
cmp esi, dword [ebp - 0x20]
je 0x4168bd
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x3a98
call fcn.00416320
add esp, 4
test al, al
jne 0x416896
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x14], esp
push ecx
lea ecx, [ebp - 0x24]
call fcn.00402100
push 0x2710
call fcn.004165e0
add esp, 0x14
mov byte [ebp - 0xd], bl
cmp al, bl
je 0x41689a
mov byte [ebp - 0xd], 1
push 0x44bca8
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
push eax
call esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call esi
mov esi, dword [ebp - 0x24]
jmp 0x4168c1
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4168e6
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x20]
push edx
mov eax, esi
call fcn.00402ec0
add esp, 4
push esi
call fcn.0041d921
add esp, 4
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417980
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445958
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x455638]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x240], ebx
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x21c], eax
mov word [esi], cx
mov dword [ebp - 4], ebx
mov eax, dword [0x459554]
mov dword [ebp - 0x240], 1
cmp eax, 6
ja 0x4179f3
jne 0x417b6b
call fcn.00418280
mov edx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
push edx
push edi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x234], edi
call fcn.00417cd0
push edi
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.0041d920
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x234]
cmp eax, ebx
jne 0x417a6c
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x21c], str.Shell32.dll_utility.cpp343_
call fcn.0041def9
push 0x451208
lea edx, [ebp - 0x22c]
push edx
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.std::runtime_error.0
call fcn.0041eb3a
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x417ab3
mov dword [ebp - 0x21c], str.Internal_error_KFP1_utility.cpp349_
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0041def9
push 0x451208
lea ecx, [ebp - 0x22c]
push ecx
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.std::runtime_error.0
call fcn.0041eb3a
mov ecx, dword [ebp - 0x21c]
lea edx, [ebp - 0x220]
push edx
push ebx
push ebx
push ecx
mov dword [ebp - 0x220], ebx
call eax
test eax, eax
js 0x417b34
mov eax, dword [ebp - 0x220]
cmp eax, ebx
je 0x417b34
mov edx, dword [sym.imp.ole32.dll_CoTaskMemFree]
push edx
push eax
lea ecx, [ebp - 0x238]
mov edi, eax
mov dword [ebp - 0x23c], eax
call fcn.00417d60
push edi
lea eax, [ebp - 0x23c]
push edi
push eax
call fcn.0041d920
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
mov byte [ebp - 4], 2
call fcn.00417bc0
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.00417940
lea eax, [ebp - 0x234]
mov byte [ebp - 4], bl
call fcn.00417940
jmp 0x417b9d
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x21c], str.Internal_error_KFP2_utility.cpp354_
call fcn.0041def9
push 0x451208
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.std::runtime_error.0
call fcn.0041eb3a
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x218]
push ecx
push ebx
push ebx
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x417b92
mov dword [ebp - 0x21c], str.Internal_error_GFP1_utility.cpp365_
jmp 0x417a86
lea edx, [ebp - 0x218]
call fcn.00417c10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d92c
mov esp, ebp
pop ebp
ret
Function at 0x418180
Capabilities:
Get file attributes

Disassembly:
push esi
xor esi, esi
push edi
cmp dword [0x459578], esi
jne 0x4181bb
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4181b1
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x459574], eax
mov dword [0x459578], 1
mov eax, dword [0x459574]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4181d4
push ebx
push eax
call edi
mov esi, eax
test esi, esi
jne 0x418212
mov eax, dword [0x459570]
test eax, eax
jne 0x41820b
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4181f5
mov eax, dword [0x44c2d4]
push eax
call dword [0x44c2d0]
jmp 0x418202
mov ecx, dword [str.Kernel32.dll]
push ecx
call dword [0x44c2c8]
test eax, eax
je 0x418212
mov dword [0x459570], eax
push ebx
push eax
call edi
pop edi
pop esi
ret
pop edi
mov eax, esi
pop esi
ret

Function at 0x41a490
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x442740
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x455638]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], 0
push 0x447440
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__int_.0
call fcn.00405890
mov byte [esp + 0x38], 1
call fcn.0041911a
lea ecx, [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov byte [esp + 0x38], 0
call fcn.00405960
mov dword [esi], vtable.windows_file_codecvt.0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret

Function at 0x41ace0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x442870
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x455638]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x455638]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esp + 0x40]
mov eax, 7
xor edx, edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 0
mov dword [esp + 0xc], esi
mov word [esi], dx
mov dword [esp + 0x24], eax
xor eax, eax
mov word [esp + 0x10], ax
mov eax, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], edx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x41ad46
sub eax, ebx
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00406690
mov byte [esp + 0x38], 1
call fcn.0041aba0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.0040a7c0
add esp, 0xc
cmp dword [esp + 0x24], 8
jb 0x41ad8f
mov edx, dword [esp + 0x10]
push edx
call fcn.0041d921
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041d92c
add esp, 0x30
ret 8