joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bc40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f5b5
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b6798]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [edi + 8]
lea esi, [eax + 4]
mov dword [edi], vtable.Cabinet::CExtract.0
xor ebx, ebx
push 0x12c
mov dword [ebp - 0x10], eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00409ee0
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x10]
add esi, 0xc
push 0x12c
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00409ee0
mov edx, dword [esi]
xor eax, eax
mov word [edx], ax
mov dword [ebp - 4], 1
lea esi, [edi + 0x48]
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], 0xc8
call fcn.0040f180
lea esi, [edi + 0x58]
mov byte [ebp - 4], 2
push 0x12c
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00409ee0
mov ecx, dword [esi]
xor edx, edx
mov word [ecx], dx
lea esi, [edi + 0x60]
mov byte [ebp - 4], 3
push 0x12c
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00409ee0
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 0x74], ebx
mov dword [edi + 0x70], 0xffffffff
mov dword [edi + 0x10c0], ebx
mov dword [edi + 0x10c4], ebx
mov dword [edi + 0x10c8], ebx
lea esi, [edi + 0x10dc]
mov byte [ebp - 4], 5
push 0x12c
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00409ee0
mov edx, dword [esi]
xor eax, eax
mov word [edx], ax
mov dword [edi + 0x10d8], 1
mov dword [edi + 0x10e4], ebx
mov dword [edi + 0x10e8], ebx
mov dword [edi + 0x10ec], ebx
mov dword [edi + 0x10cc], ebx
mov dword [edi + 0x10d0], ebx
mov dword [edi + 0x10d4], ebx
mov dword [edi + 0x10f0], ebx
mov dword [edi + 0x110c], ebx
mov dword [edi + 0x10fc], ebx
mov dword [edi + 0x1100], 0x4e4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi + 0x1108], eax
mov eax, edi
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 0x40bdc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, eax
mov dword [esi], vtable.Cabinet::CExtract.0
call fcn.0040c060
test eax, eax
je 0x40bdf5
mov eax, dword [0x4e1300]
cmp eax, 0xffffffff
je 0x40bdf5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40bdf5
mov eax, dword [0x4e1300]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [esi + 0x110c]
test eax, eax
je 0x40be06
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x10fc]
test eax, eax
je 0x40be19
push eax
call fcn.004736d0
add esp, 4
mov ecx, dword [esi + 0x10dc]
push ecx
call fcn.00473f95
mov eax, dword [esi + 0x10c0]
add esp, 4
test eax, eax
je 0x40be3b
push eax
call fcn.00473f95
add esp, 4
mov dword [esi + 0x10c0], 0
mov dword [esi + 0x10c4], 0
mov edx, dword [esi + 0x60]
push edx
call fcn.00473f95
mov eax, dword [esi + 0x58]
push eax
call fcn.00473f95
mov ecx, dword [esi + 0x50]
push ecx
call fcn.004736d0
mov edx, dword [esi + 0x54]
push edx
call fcn.004736d0
mov eax, dword [esi + 0x14]
push eax
call fcn.00473f95
mov ecx, dword [esi + 0xc]
push ecx
call fcn.00473f95
add esp, 0x18
pop esi
ret
Function at 0x40bea0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x1108], eax
je 0x40bec7
xor eax, eax
mov dword [esi + 0x10e4], 0x3f3
mov dword [esi + 0x10e8], eax
mov dword [esi + 0x10ec], eax
ret
mov eax, dword [0x4e1300]
push ebx
push edi
cmp eax, 0xffffffff
je 0x40bff7
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
xor ebx, ebx
cmp eax, ebx
je 0x40bf01
pop edi
mov dword [esi + 0x10e8], ebx
mov dword [esi + 0x10ec], ebx
mov dword [esi + 0x10e4], 0x3f4
xor eax, eax
pop ebx
ret
mov eax, dword [0x4e1300]
cmp eax, 0xffffffff
je 0x40bff9
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40bff9
mov eax, dword [0x4e1300]
push eax
call edi
cmp eax, ebx
je 0x40bff9
lea edi, [esi + 0x10cc]
xor eax, eax
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
cmp dword [esi + 0x10f0], ebx
jne 0x40bff2
cmp dword [esi + 0x110c], ebx
jne 0x40c016
push 0x49c0d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [esi + 0x110c], eax
call ebx
mov ecx, dword [esi + 0x110c]
push str.FDICopy
push ecx
mov dword [esi + 0x1110], eax
call ebx
mov edx, dword [esi + 0x110c]
push str.FDIIsCabinet
push edx
mov dword [esi + 0x1114], eax
call ebx
mov dword [esi + 0x1118], eax
mov eax, dword [esi + 0x110c]
push str.FDIDestroy
push eax
call ebx
xor ecx, ecx
mov dword [esi + 0x111c], eax
cmp dword [esi + 0x1110], ecx
je 0x40bfdf
cmp dword [esi + 0x1114], ecx
je 0x40bfdf
cmp dword [esi + 0x1118], ecx
je 0x40bfdf
cmp eax, ecx
jne 0x40c014
mov dword [esi + 0x110c], ecx
mov dword [edi + 0x18], 0x3e8
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
pop edi
xor eax, eax
pop ebx
ret
xor ebx, ebx
pop edi
mov dword [esi + 0x10e4], ebx
mov dword [esi + 0x10ec], ebx
mov dword [esi + 0x10e8], 0xe
xor eax, eax
pop ebx
ret
xor ebx, ebx
mov ecx, dword [esi + 0x1110]
push edi
push 1
push 0x40c650
push 0x40c5e0
push 0x40c5a0
push 0x40c570
push 0x40c530
push 0x40c520
push 0x40c510
call ecx
add esp, 0x24
xor edx, edx
cmp eax, ebx
setne dl
pop edi
mov dword [esi + 0x10f0], eax
pop ebx
mov eax, edx
ret
Function at 0x40d160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.004749fc
add esp, 0xc
pop ebp
ret 0xc

Function at 0x40d1e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, 0x100
je 0x40d1ff
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.0047556c
add esp, 0xc
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40d220
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d2a8
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x40d296
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
test edi, 0x100
ja 0x40d286
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and edi, 0x27
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40d310
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
test bl, bl
jns 0x40d349
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, 0x100
je 0x40d337
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push esi
push edi
call fcn.0047556c
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
push ebx
push edx
mov edx, dword [ebp + 8]
push edx
call eax
pop ebx
pop ebp
ret 0xc

Function at 0x40d360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0x4c]
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
test edx, edx
jle 0x40d380
mov esi, dword [ecx + 0x50]
cmp dword [esi], edi
je 0x40d397
inc eax
add esi, 4
cmp eax, edx
jl 0x40d374
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push edi
call fcn.004749fc
add esp, 0xc
pop edi
pop esi
pop ebp
ret 0xc
test eax, eax
js 0x40d380
mov edx, dword [ebp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
push edx
mov edx, dword [ebp + 0xc]
push edx
push edi
call eax
test eax, eax
jle 0x40d391
add dword [edi + 4], eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40d780
Capabilities:
Delete file
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, eax
push edi
lea edi, [esi + 0x11b8]
mov eax, edi
call fcn.0040b3b0
mov eax, dword [edi + 0x1668]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [edi + 0x1668], ebx
add edi, 0x1460
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
xor ecx, ecx
push ebx
push str._c_c
lea edx, [esi + 0x1198]
mov word [edi], cx
call fcn.0040f5a0
add esp, 0xc
mov dword [esi + 0x11b0], ebx
cmp dword [esi + 0x11a4], ebx
je 0x40d7fb
mov eax, dword [esi + 0x11a0]
mov dword [esi + 0x11a4], ebx
cmp eax, ebx
je 0x40d7f5
push eax
call fcn.004736d0
add esp, 4
mov dword [esi + 0x11a0], ebx
push 0x41
push ebx
push str._c_c
lea edx, [esi + 0x1128]
call fcn.0040f5a0
add esp, 0xc
mov dword [esi + 0x1140], ebx
cmp dword [esi + 0x1134], ebx
je 0x40d83e
mov eax, dword [esi + 0x1130]
mov dword [esi + 0x1134], ebx
cmp eax, ebx
je 0x40d838
push eax
call fcn.004736d0
add esp, 4
mov dword [esi + 0x1130], ebx
push 0x42
push ebx
push str._c_c
lea edx, [esi + 0x1144]
call fcn.0040f5a0
add esp, 0xc
mov dword [esi + 0x115c], ebx
cmp dword [esi + 0x1150], ebx
je 0x40d881
mov eax, dword [esi + 0x114c]
mov dword [esi + 0x1150], ebx
cmp eax, ebx
je 0x40d87b
push eax
call fcn.004736d0
add esp, 4
mov dword [esi + 0x114c], ebx
push 0x41
push ebx
push str._c_c
lea edx, [esi + 0x1160]
call fcn.0040f5a0
add esp, 0xc
mov dword [esi + 0x1178], ebx
cmp dword [esi + 0x116c], ebx
je 0x40d8c4
mov eax, dword [esi + 0x1168]
mov dword [esi + 0x116c], ebx
cmp eax, ebx
je 0x40d8be
push eax
call fcn.004736d0
add esp, 4
mov dword [esi + 0x1168], ebx
push 0x42
push ebx
push str._c_c
lea edx, [esi + 0x117c]
call fcn.0040f5a0
add esp, 0xc
mov dword [esi + 0x1194], ebx
cmp dword [esi + 0x1188], ebx
je 0x40d907
mov eax, dword [esi + 0x1184]
mov dword [esi + 0x1188], ebx
cmp eax, ebx
je 0x40d901
push eax
call fcn.004736d0
add esp, 4
mov dword [esi + 0x1184], ebx
call fcn.0040c060
test eax, eax
jne 0x40d914
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x4e1300]
cmp eax, 0xffffffff
je 0x40d937
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40d937
mov edx, dword [0x4e1300]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x40dc20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1120]
test ecx, ecx
je 0x40dc7c
mov edx, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
lea ebx, [eax + edx]
push edx
cmp ebx, ecx
jae 0x40dc59
mov ecx, dword [ebp + 0xc]
push ecx
add esi, 0x1198
call fcn.0040d520
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
mov ecx, dword [edi]
mov edx, dword [ebp + 0xc]
push eax
lea eax, [ecx*8]
sub eax, ecx
push edx
lea edx, [esi + eax*8 + 0x1128]
call fcn.0040d5c0
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov eax, dword [esi + 0x2820]
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0x10]
mov eax, dword [esi + 0x2820]
push 0
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40dcdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x10e8], eax
mov dword [esi + 0x10e4], 0x3eb
mov dword [esi + 0x10ec], 0
or eax, 0xffffffff
pop esi
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret 0xc
Function at 0x40e640
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493646
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4b6798]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x258], eax
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x254], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e6a0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x254]
call fcn.00409bc0
mov dword [ebp - 4], ebx
mov esi, 7
xor edx, edx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], dx
push 1
push 0x1c
lea eax, [ebp - 0x21c]
push eax
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40e746
mov edi, 8
cmp dword [ebp - 0x224], edi
jb 0x40e710
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.004736d0
add esp, 4
xor edx, edx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], dx
cmp dword [ebp - 0x240], edi
jb 0x40e73c
mov eax, dword [ebp - 0x254]
push eax
call fcn.004736d0
add esp, 4
mov eax, 0x80004005
jmp 0x40e808
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e750
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea esi, [ebp - 0x238]
call fcn.00409bc0
push 0x35
push str.MicrosoftInternet_ExplorerDownloaded_Program_Files
mov eax, esi
call fcn.004046f0
call fcn.0040e4f0
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x40e795
mov eax, esi
mov ecx, dword [ebp - 0x258]
push eax
push edi
call fcn.0040e0e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOverridePredefKey]
push ebx
push SysReAllocString
mov edi, eax
call esi
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov esi, 8
cmp dword [ebp - 0x224], esi
jb 0x40e7d6
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.004736d0
add esp, 4
xor edx, edx
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], dx
cmp dword [ebp - 0x240], esi
jb 0x40e806
mov eax, dword [ebp - 0x254]
push eax
call fcn.004736d0
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004736db
mov esp, ebp
pop ebp
ret 4
Function at 0x40e830
Capabilities:
Download url
Get common file path
Get startup folder
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49154b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4b6798]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], cx
push 1
push 0x1c
lea edx, [ebp - 0x218]
push edx
push ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40e8a8
mov esi, 0x80004005
jmp 0x40e955
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e8b1
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.00409bc0
push 0x36
push str.MicrosoftInternet_ExplorerDownloaded_Program_Files_
mov eax, esi
call fcn.004046f0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e8e5
sub eax, edx
sar eax, 1
push eax
push edi
lea eax, [ebp - 0x234]
call fcn.004046f0
mov eax, dword [ebp - 0x234]
mov edi, 8
cmp dword [ebp - 0x220], edi
jae 0x40e91a
lea eax, [ebp - 0x234]
push 0
push 0
push eax
mov eax, dword [ebp - 0x238]
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov esi, eax
test esi, esi
js 0x40e955
call fcn.0040e4f0
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x40e94d
lea eax, [ebp - 0x234]
push eax
call fcn.0040e050
mov esi, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOverridePredefKey]
push 0
push SysReAllocString
call edi
push 0
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp dword [ebp - 0x220], 8
jb 0x40e985
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004736d0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004736db
mov esp, ebp
pop ebp
ret 4
Function at 0x40ec20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492788
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4b6798]
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]
xor edi, edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], edi
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ecx, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x40ec71
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.00409bc0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov esi, edx
cmp eax, 8
jae 0x40ed5f
lea esi, [ebp - 0x2c]
mov ecx, esi
mov ebx, dword [ebp - 0x1c]
lea ecx, [ecx + ebx*2]
mov ebx, 8
cmp eax, ebx
mov eax, edx
jae 0x40ecb3
lea eax, [ebp - 0x2c]
cmp eax, ecx
je 0x40ecc5
push esi
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.0046bf10
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
push 0x49c3cc
push SysReAllocString
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x40ed66
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov esi, ecx
cmp dword [ebp - 0x18], ebx
jae 0x40ecfd
lea eax, [ebp - 0x2c]
push 4
lea edx, [ebp - 0x30]
push edx
push 4
push edi
push eax
push ecx
mov dword [ebp - 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x18], ebx
jb 0x40ed26
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004736d0
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
cmp esi, edi
je 0x40ed41
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.004736db
mov esp, ebp
pop ebp
ret 4
mov ecx, edx
jmp 0x40ec9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x3c]
jmp 0x40ed15
Function at 0x412a80
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x412a83
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
pushal
pushal
jmp 0x412aa1
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x412aff
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x412ae6
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x412aef
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x412af9
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x412adb
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x412a65
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x412b4c
dec eax
je 0x412b43
sub eax, 3
je 0x412b3a
mov dword [ebp - 4], 0x40
jmp 0x412b69
mov dword [ebp - 4], 4
jmp 0x412b4f
mov dword [ebp - 4], 0x20
jmp 0x412b4f
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x412b9b
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x412b1b
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004123ac
mov ebx, 0xffbe7f48
jne 0x412ba6
push 1
push esi
call edi
mov eax, esi
jmp 0x412ba7
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418df0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4914ce
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4b6798]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x4b6798]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
cmp byte [0x4e19e0], 0
mov dword [esp + 0x18], esi
je 0x418e49
xor eax, eax
jmp 0x418fa3
lea eax, [esp + 0x2c]
push eax
mov byte [0x4e19e0], 1
call fcn.004192c0
push ebx
push ecx
lea ecx, [esp + 0x44]
push str.SoftwareIE_TabFeatureControlFEATURE_BROWSER_EMULATION_
push ecx
mov dword [esp + 0x110], esi
call fcn.0041b810
add esp, 0xc
push eax
call fcn.004190f0
lea esi, [esp + 0xd4]
lea eax, [esp + 0x2c]
call fcn.004193f0
mov edi, eax
mov esi, 0x4de634
mov byte [esp + 0x100], 1
call fcn.004030e0
mov esi, 8
cmp dword [esp + 0xe8], esi
jb 0x418ebd
mov edx, dword [esp + 0xd4]
push edx
call fcn.004736d0
add esp, 4
xor edi, edi
mov dword [0x4e1644], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov byte [esp + 0x100], 2
mov eax, dword [0x4de634]
cmp dword [0x4de648], esi
jae 0x418eeb
mov eax, 0x4de634
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x18]
push edx
push edi
push 0x20006
push edi
push edi
push edi
push eax
push SysReAllocString
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x418f46
mov esi, dword [esp + 0x14]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push edi
push 0x49d06c
push esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
je 0x418f50
mov dword [esp + 0x18], 0x80004005
jmp 0x418f62
mov dword [esp + 0x18], 0x80004005
jmp 0x418f6d
push 0x418d50
push 0x4e17b4
call fcn.004579e0
add esp, 8
cmp esi, edi
je 0x418f6d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x100], 0xffffffff
call fcn.00419360
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.00472ea4
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.004736db
mov esp, ebp
pop ebp
ret