joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4088d0
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
push eax
call fcn.00412820
add esp, 4
test eax, eax
jne 0x4088f7
mov eax, dword [esi + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4088f7
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 4]
push eax
push 0x428068
push ecx
call fcn.00408270
add esp, 0xc
test eax, eax
jl 0x4088f3
mov eax, dword [esi + 0x1c]
mov esi, dword [esi + 4]
push 2
push str.uninstall
push eax
push 0x428068
push esi
call fcn.00408400
xor ecx, ecx
add esp, 0x14
test eax, eax
setge cl
pop esi
mov eax, ecx
ret

Function at 0x408940
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 4]
push eax
push 0x42753c
push ecx
call fcn.00408270
add esp, 0xc
test eax, eax
jge 0x408960
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x20]
push 0
push 0
push 0
push eax
push str.taskbarpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
pop esi
ret

Function at 0x408c40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x425a08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00403b70
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00403570
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x408cd2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x409820
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425b06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
mov eax, dword [0x4309b0]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x268], eax
push edi
xor eax, eax
xor esi, esi
mov dword [esp + 0x18], esi
mov ecx, 0x93
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [0x432844]
mov ecx, 0x432844
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
lea edi, [ebx + 0x10]
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x280], esi
call fcn.00404070
push 0x4285f4
call fcn.004195c1
add esp, 4
push eax
push 0x4285f4
lea ecx, [esp + 0x14]
call fcn.00403c80
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x4098f0
mov dword [esp + 0x27c], eax
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4098e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x4099d8
test byte [esp + 0x18], 0x10
jne 0x40997b
mov eax, dword [0x432844]
mov ecx, 0x432844
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 1
call fcn.00404070
lea ecx, [esp + 0x44]
push ecx
call fcn.004195c1
add esp, 4
push eax
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x18]
call fcn.00403c80
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x10]
push eax
push esi
call fcn.00419d5d
add esp, 8
test eax, eax
je 0x409959
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov byte [esp + 0x27c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40997b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x250
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4098f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x27c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4099d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x26c]
call fcn.0041931e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409a00
Capabilities:
Create process on windows
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x425b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
mov eax, dword [esi + 0x18]
push eax
call edi
mov eax, dword [esi + 0x1c]
push eax
call edi
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esi + 0x20]
push 0
push 0
push 0
push eax
push str.taskbarunpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esi + 0x20]
push eax
call edi
mov ecx, esi
call fcn.00409820
mov ebx, eax
mov eax, dword [0x432844]
mov ecx, 0x432844
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0xc], edi
mov eax, dword [edi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x18], 0
jge 0x409aa7
push 0x104
lea ecx, [esp + 0x10]
call fcn.00401f20
mov edi, dword [esp + 0xc]
push 0x104
push edi
call fcn.00412840
add esp, 8
test edi, edi
jne 0x409abd
xor eax, eax
jmp 0x409aca
push edi
call fcn.004195c1
add esp, 4
test eax, eax
jl 0x409b2d
cmp eax, dword [edi - 8]
jg 0x409b2d
mov dword [edi - 0xc], eax
push 0
mov word [edi + eax*2], 0
mov esi, dword [esi]
push edi
push esi
call fcn.00408140
test eax, eax
je 0x409af7
push str.selfdelete
push edi
call fcn.00412910
add esp, 8
mov ebx, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.00401220
int3
Function at 0x409eb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425b83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [0x4309b0]
push ebx
push esi
mov dword [esp + 0x10], ecx
push edi
lea ecx, [esp + 0xf0]
mov dword [esp + 0x154], eax
call fcn.0040b2c0
xor ebx, ebx
mov dword [esp + 0x164], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xf4]
mov byte [esp + 0x168], 1
call fcn.0040f3f0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x20]
je 0x409f9c
mov edi, edi
mov ecx, 0x32
mov esi, edx
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x6c], eax
je 0x409f53
mov ecx, dword [esp + 0x20]
add edx, 0xc8
cmp edx, ecx
jne 0x409f30
jmp 0x409f9c
mov ecx, dword [esp + 0x70]
push ecx
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x409f9c
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7d0
push edi
call ebx
test eax, eax
mov esi, 1
je 0x409f93
cmp esi, 3
jg 0x409f93
push 0x7d0
push edi
call ebx
inc esi
test eax, eax
jne 0x409f81
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
mov dword [esp + 0x14], ebx
call edi
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x409fe8
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 3
mov dword [esp + 0x10], eax
jg 0x409fe8
push 0x3e8
call edi
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x409fc3
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x409ff9
push eax
call fcn.00419648
add esp, 4
xor eax, eax
lea ecx, [esp + 0xf0]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x164], 0xffffffff
call fcn.0040b0c0
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x154]
mov eax, esi
call fcn.0041931e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a090
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
shl eax, 1
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a0fd
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x40a0d5
cmp eax, 2
jne 0x40a0ed
test esi, esi
mov eax, dword [esp + 0x14]
je 0x40a0f7
test al, 1
jne 0x40a0ed
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40a0f7
pop edi
mov eax, 0xd
pop esi
ret 0xc
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x40a360
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x40a39b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp word [ecx], 0x5a4d
jne 0x40a39b
cmp dword [eax], 0x4550
jne 0x40a39b
mov eax, dword [eax + 0xa8]
test eax, eax
je 0x40a39b
cmp dword [eax + ecx + 0xc], 2
jne 0x40a39b
mov eax, dword [eax + ecx + 0x14]
add eax, ecx
cmp dword [eax], 0x53445352
je 0x40a39d
xor eax, eax
ret

Function at 0x40a3a0
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test bl, 1
lea ecx, [ebx - 1]
jne 0x40a3bc
mov ecx, ebx
test ebx, ebx
je 0x40a42b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp word [ecx], 0x5a4d
jne 0x40a424
cmp dword [eax], 0x4550
jne 0x40a424
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [eax + 8]
mov dword [edx], esi
mov eax, dword [eax + 0x50]
push ecx
mov dword [edx + 4], eax
call fcn.0040a360
add esp, 4
test eax, eax
je 0x40a415
push edi
lea ecx, [eax + 4]
mov edi, dword [ecx]
lea esi, [edx + 8]
mov dword [esi], edi
mov edi, dword [ecx + 4]
mov dword [esi + 4], edi
mov edi, dword [ecx + 8]
mov dword [esi + 8], edi
mov ecx, dword [ecx + 0xc]
mov dword [esi + 0xc], ecx
mov eax, dword [eax + 0x14]
mov dword [edx + 0x18], eax
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, 1
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop ebx
ret

Function at 0x40a430
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
mov eax, dword [0x4309b0]
push esi
mov dword [esp + 0x8c], eax
lea eax, [esp + 4]
push eax
push 1
xor esi, esi
push esi
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a4cb
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push 0x4288d8
push eax
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a4c0
mov ax, word [esp + 0xc]
cmp ax, 0x36
jne 0x40a49b
mov esi, 1
jmp 0x40a4c0
cmp ax, 0x37
jne 0x40a4a8
mov esi, 2
jmp 0x40a4c0
cmp ax, 0x38
jne 0x40a4b5
mov esi, 3
jmp 0x40a4c0
cmp ax, 0x39
jne 0x40a4c0
mov esi, 4
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x8c]
mov eax, esi
pop esi
call fcn.0041931e
add esp, 0x8c
ret
Function at 0x40a4f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4309b0]
push esi
mov dword [esp + 0x120], eax
push 0x11c
lea eax, [esp + 8]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40a77a
cmp dword [esp + 0x14], 2
jne 0x40a77a
mov eax, dword [esp + 8]
cmp eax, 4
jbe 0x40a77a
cmp eax, 6
jne 0x40a672
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40a63b
cmp byte [esp + 0x11e], 1
mov ax, word [esp + 0x118]
jne 0x40a5d5
test ax, ax
jne 0x40a58f
mov esi, 0x6e
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
call fcn.0041931e
add esp, 0x120
ret
cmp ax, 1
jne 0x40a5b0
mov esi, 0x6f
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
call fcn.0041931e
add esp, 0x120
ret
cmp ax, 2
jne 0x40a77a
mov esi, 0x70
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
call fcn.0041931e
add esp, 0x120
ret
test ax, ax
jne 0x40a5f5
mov esi, 0x78
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
call fcn.0041931e
add esp, 0x120
ret
cmp ax, 1
jne 0x40a616
mov esi, 0x79
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
call fcn.0041931e
add esp, 0x120
ret
cmp ax, 2
jne 0x40a77a
mov esi, 0x7a
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
call fcn.0041931e
add esp, 0x120
ret
cmp eax, 1
jne 0x40a77a
mov dl, byte [esp + 0x11e]
dec dl
neg dl
sbb edx, edx
and edx, 0xfffffff9
add edx, 0x82
mov esi, edx
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
call fcn.0041931e
add esp, 0x120
ret
cmp eax, 5
jne 0x40a77a
mov eax, dword [esp + 0xc]
cmp eax, 2
jne 0x40a700
cmp byte [esp + 0x11e], 1
je 0x40a77a
mov ax, word [esp + 0x118]
test ax, ax
jne 0x40a6ba
mov esi, 0x68
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
call fcn.0041931e
add esp, 0x120
ret
cmp ax, 1
jne 0x40a6db
mov esi, 0x69
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
call fcn.0041931e
add esp, 0x120
ret
cmp ax, 2
jne 0x40a77a
mov esi, 0x6a
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
call fcn.0041931e
add esp, 0x120
ret
cmp eax, 1
jne 0x40a77a
mov ax, word [esp + 0x118]
test ax, ax
jne 0x40a72d
mov esi, 0x64
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
call fcn.0041931e
add esp, 0x120
ret
cmp ax, 1
jne 0x40a74e
mov esi, 0x65
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
call fcn.0041931e
add esp, 0x120
ret
cmp ax, 2
jne 0x40a76f
mov esi, 0x66
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
call fcn.0041931e
add esp, 0x120
ret
cmp ax, 3
jne 0x40a77a
mov esi, 0x67
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
call fcn.0041931e
add esp, 0x120
ret
Function at 0x40ae30
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push 0x428790
push SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40aedb
push ebx
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x18], 8
push esi
push edi
jb 0x40ae78
mov esi, dword [ebx + 4]
jmp 0x40ae7b
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [eax + eax + 2]
push edx
push esi
mov esi, dword [esp + 0x14]
push 1
push 0
push str.DefaultBrowser
push esi
call edi
push 8
lea eax, [ebx + 0x1c]
push eax
push 3
push 0
push str.DefaultBrowserFileTimeStamp
push esi
call edi
push 4
add ebx, 0x24
push ebx
push 3
push 0
push str.DefaultBrowserFlag
push esi
call edi
test esi, esi
je 0x40aecd
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 4
mov eax, 1
add esp, 8
ret 4

Function at 0x40b310
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x425b98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
xor edi, edi
mov dword [esp + 8], edi
mov eax, dword [0x432844]
mov ecx, 0x432844
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x14], edi
jge 0x40b36e
push 0x104
lea ecx, [esp + 0xc]
call fcn.00401f20
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x20]
push 0x104
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, edi
jne 0x40b387
xor eax, eax
jmp 0x40b394
push esi
call fcn.004195c1
add esp, 4
cmp eax, edi
jl 0x40b3e7
cmp eax, dword [esi - 8]
jg 0x40b3e7
mov dword [esi - 0xc], eax
mov word [esi + eax*2], di
add esi, 0xfffffff0
push esi
call fcn.00403570
mov edi, dword [esp + 0x20]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40b3d4
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.00401220
int3
Function at 0x40cae0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x425c60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x18], edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
push 0x428790
push SysReAllocString
mov dword [esp + 0x58], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x40ccb5
mov ebx, dword [esp + 0x10]
mov edx, dword [0x432844]
mov ecx, 0x432844
mov dword [esp + 0x28], ebx
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x34], 1
jge 0x40cb7f
push 0x104
lea ecx, [esp + 0x14]
call fcn.00401f20
mov esi, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
push edi
push str.DefaultBrowser
push ebx
mov dword [esp + 0x2c], 0x208
call ebp
cmp eax, edi
je 0x40cba9
mov edi, eax
jmp 0x40cbd1
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x40cbb7
cmp eax, 2
jne 0x40cbcc
cmp esi, edi
je 0x40cbd1
mov eax, dword [esp + 0x14]
test al, 1
jne 0x40cbcc
shr eax, 1
cmp word [esi + eax*2 - 2], di
je 0x40cbd1
mov edi, 0xd
test esi, esi
jne 0x40cbd9
xor eax, eax
jmp 0x40cbea
push esi
call fcn.004195c1
add esp, 4
test eax, eax
jl 0x40ccce
cmp eax, dword [esi - 8]
jg 0x40ccce
test edi, edi
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
jne 0x40cc6c
push esi
call fcn.004195c1
mov edi, dword [esp + 0x40]
add esp, 4
push eax
push esi
mov ecx, edi
call fcn.004023c0
lea eax, [esp + 0x20]
push eax
lea ecx, [edi + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
push 0
push str.DefaultBrowserFileTimeStamp
push ebx
mov dword [esp + 0x38], 8
call ebp
test eax, eax
jne 0x40cc8b
cmp dword [esp + 0x3c], 3
jne 0x40cc8b
lea eax, [esp + 0x24]
push eax
add edi, 0x24
push edi
lea ecx, [esp + 0x44]
push ecx
push 0
push str.DefaultBrowserFileTimeStamp
push ebx
mov dword [esp + 0x3c], 4
call ebp
test eax, eax
jne 0x40cc6c
cmp dword [esp + 0x3c], 3
je 0x40cc83
lea eax, [esi - 0x10]
mov byte [esp + 0x34], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40cca0
mov dword [esp + 0x18], 1
lea eax, [esi - 0x10]
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ccaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebx, ebx
je 0x40ccb5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4
push 0x80070057
call fcn.00401220
int3
Function at 0x4102c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x425fe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x4309b0]
push str.ntdll.dll
mov dword [esp + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4104d3
push edi
push str.NtQuerySystemInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4104d2
push ebx
push ebp
push esi
mov esi, 0x19000
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x410332
xor eax, eax
jmp 0x4104cf
push 0
push 0x19000
push ebp
push 5
call edi
cmp eax, 0xc0000004
jne 0x410376
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esi, esi
push esi
push 8
call ebp
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x41032b
push 0
push esi
push ebp
push 5
call edi
cmp eax, 0xc0000004
je 0x410345
mov ebx, dword [esp + 0x7c]
mov edi, ebp
lea esp, [esp]
cmp word [edi + 0x38], 0
je 0x4104a3
mov eax, dword [0x432844]
mov ecx, 0x432844
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x7c], esi
movzx ecx, word [edi + 0x38]
mov eax, dword [esi - 4]
shr ecx, 1
mov edx, 1
sub edx, eax
mov eax, dword [esi - 8]
inc ecx
sub eax, ecx
or eax, edx
mov dword [esp + 0x74], 0
jge 0x4103d2
push ecx
lea ecx, [esp + 0x80]
call fcn.00401f20
mov esi, dword [esp + 0x7c]
movzx eax, word [edi + 0x38]
mov ecx, dword [edi + 0x3c]
shr eax, 1
inc eax
push eax
push ecx
push esi
call fcn.00419b28
add esp, 0xc
test esi, esi
jne 0x4103ef
xor eax, eax
jmp 0x410400
push esi
call fcn.004195c1
add esp, 4
test eax, eax
jl 0x4104b0
cmp eax, dword [esi - 8]
jg 0x4104b0
mov dword [esi - 0xc], eax
lea ecx, [esp + 0x7c]
mov word [esi + eax*2], 0
call fcn.0040b610
lea ecx, [esp + 0x10]
call fcn.00405ab0
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x48]
mov esi, dword [esp + 0x7c]
push esi
mov byte [esp + 0x78], 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
call fcn.004195c1
add esp, 4
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.004023c0
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
lea edx, [esp + 0x10]
mov dword [esp + 0x18], eax
push edx
mov eax, edx
mov dword [esp + 0x20], ecx
push eax
mov ecx, ebx
call fcn.004062f0
mov ecx, eax
call fcn.0040f710
lea ecx, [esp + 0x10]
mov byte [esp + 0x74], 0
call fcn.00405910
lea eax, [esi - 0x10]
mov dword [esp + 0x74], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4104a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi]
test eax, eax
je 0x4104ba
add edi, eax
jmp 0x410380
push 0x80070057
call fcn.00401220
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x58]
call fcn.0041931e
add esp, 0x68
ret 4