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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10156ec6
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push 0x200
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.100ec480
add esp, 0xc
lea ecx, [ebp - 0x224]
push 0x20019
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001c690
mov esi, dword [ebp - 0x224]
test eax, eax
jne 0x1004141b
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x200
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.svcVersion
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10041395
mov eax, dword [ebp - 0x218]
cmp eax, 1
je 0x1004137a
cmp eax, 2
jne 0x10041395
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x100413f5
test al, 1
jne 0x10041395
shr eax, 1
cmp word [ebp + eax*2 - 0x212], 0
je 0x100413fe
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.100ec480
add esp, 0xc
mov dword [ebp - 0x214], 0x200
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.Version
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100413fe
mov eax, dword [ebp - 0x218]
cmp eax, 1
je 0x100413ec
cmp eax, 2
jne 0x100413fe
cmp dword [ebp - 0x214], 0
jne 0x100413fe
xor eax, eax
mov word [ebp - 0x210], ax
test esi, esi
je 0x10041411
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0
call fcn.1000c0e0
mov ecx, eax
test ecx, ecx
je 0x10041496
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.1001aad0
test al, al
jne 0x1004146e
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10041450
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000adf0
test esi, esi
je 0x10041479
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
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.100b4568
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10007270
int3
Function at 0x10041c80
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157091
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x244], edi
cmp dword [0x101c656c], 0
je 0x10041e5f
test eax, eax
jne 0x10041cd0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x23c], eax
test eax, eax
je 0x10041e5f
push 0
push 0x18
lea ecx, [ebp - 0x234]
xorps xmm0, xmm0
push ecx
push 0
push eax
movups xmmword [ebp - 0x234], xmm0
movq qword [ebp - 0x224], xmm0
call dword [0x101c656c]
push dword [ebp - 0x23c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x10041e5f
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10041e5f
push eax
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
lea ecx, [ebp - 0x238]
call fcn.100590a0
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 1
call fcn.10059310
test eax, eax
jne 0x10041db5
call fcn.1000c0e0
mov ecx, eax
test ecx, ecx
je 0x10041eb8
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push 0x10172dc0
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.1001aad0
test al, al
jne 0x10041e52
push esi
push 0x10172dc0
mov ecx, edi
call fcn.1000adf0
lea ecx, [ebp - 0x238]
call fcn.10059150
jmp 0x10041e9b
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.100ec480
add esp, 0xc
mov dword [ebp - 0x23c], 0
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x238]
push eax
push 4
lea eax, [ebp - 0x23c]
push eax
call fcn.10059310
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x10041e1d
push 0x10172dc0
mov ecx, edi
call fcn.1000b130
lea ecx, [ebp - 0x238]
call fcn.10059150
jmp 0x10041e9b
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x238]
call fcn.10059310
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x10041e04
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.1000b130
lea ecx, [ebp - 0x238]
call fcn.10059150
jmp 0x10041e9b
call fcn.1000c0e0
mov ecx, eax
test ecx, ecx
je 0x10041ec2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push 0x10172dc0
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.1001aad0
test al, al
jne 0x10041e9b
push 0
push 0x10172dc0
mov ecx, edi
call fcn.1000adf0
mov eax, edi
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.100b4568
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10007270
push 0x80004005
call fcn.10007270
int3
Function at 0x10043300
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5008
call fcn.100b4660
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.10033d90
push 0x5002
lea eax, [ebp - 0x5008]
push 0
push eax
call fcn.100ec480
add esp, 0xc
lea eax, [ebp - 0x5008]
push esi
push 0x5001
push eax
push 0x10172dc0
push 0x10179f30
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x5008]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10043367
sub eax, edx
mov ecx, edi
sar eax, 1
push eax
lea eax, [ebp - 0x5008]
push eax
call fcn.1000adf0
mov ecx, dword [edi]
xor eax, eax
pop edi
pop esi
cmp dword [ecx - 0xc], eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret
Function at 0x100434a0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157301
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov esi, dword [ebp + 0xc]
push 0x208
push 0
push eax
mov dword [ebp - 0x21c], edi
call fcn.100ec480
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1004354c
call fcn.1000c0e0
mov ecx, eax
test ecx, ecx
je 0x10043643
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x10172dc0
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.1001aad0
test al, al
jne 0x10043626
push 0
push 0x10172dc0
mov ecx, edi
call fcn.1000adf0
jmp 0x10043626
call fcn.1000c0e0
mov ecx, eax
test ecx, ecx
je 0x1004364d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x21c]
call fcn.1001aad0
test al, al
jne 0x100435b2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10043590
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.1000adf0
mov eax, dword [esi]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 2
push dword [eax - 0xc]
push eax
call fcn.10036ce0
cmp dword [ebp + 0x10], 0
mov esi, dword [ebp - 0x21c]
je 0x100435fd
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100435fd
push 0x10172dc0
mov ecx, edi
call fcn.1000b130
add esi, 0xfffffff0
jmp 0x1004360e
add esi, 0xfffffff0
push esi
call fcn.1000bc60
add esp, 4
add eax, 0x10
mov dword [edi], eax
or eax, 0xffffffff
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10043626
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.100b4568
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10007270
push 0x80004005
call fcn.10007270
int3
Function at 0x10043890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
push 0x20a
push 0
push eax
call fcn.100ec480
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x104
sub ecx, eax
cmp dword [esi + 0x14], 8
jb 0x100438e2
mov esi, dword [esi]
push esi
push ecx
lea eax, [ebp - 0x210]
push eax
call fcn.1010b780
lea edx, [ebp - 0x210]
add esp, 0xc
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10043900
sub edx, esi
lea eax, [ebp - 0x210]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.10011620
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100b4568
mov esp, ebp
pop ebp
ret

Function at 0x100449d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10044a41
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x10044a0f
cmp eax, 2
jne 0x10044a2b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x10044a3b
test ecx, ecx
je 0x10044a36
test cl, 1
jne 0x10044a2b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x10044a3b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10044cd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x10044cde
mov eax, dword [eax]
push edi
push 0x10179d20
push eax
call fcn.10108615
mov edi, eax
add esp, 8
test edi, edi
jne 0x10044cff
call fcn.101088bd
pop edi
mov eax, dword [eax]
neg eax
pop ebp
ret
push ebx
push 2
push 0
push edi
call fcn.1011e578
push edi
call fcn.1011eba0
push 0
push 0
push edi
mov ebx, eax
call fcn.1011e578
add esp, 0x1c
test ebx, ebx
jne 0x10044d32
push edi
call fcn.1010813d
add esp, 4
xor eax, eax
pop ebx
pop edi
pop ebp
ret
push esi
xor esi, esi
cmp ebx, 3
jl 0x10044d89
xor eax, eax
push edi
push 1
mov word [ebp + 8], ax
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
push 3
push eax
call fcn.1011e0fb
add esp, 0x10
cmp eax, 1
je 0x10044d70
push edi
call fcn.1010813d
add esp, 4
call fcn.101088bd
pop esi
pop ebx
pop edi
mov eax, dword [eax]
neg eax
pop ebp
ret
cmp byte [ebp + 8], 0xef
jne 0x10044d89
cmp byte [ebp + 9], 0xbb
jne 0x10044d89
cmp byte [ebp + 0xa], 0xbf
jne 0x10044d89
mov esi, 3
sub ebx, esi
push 0
push esi
push edi
call fcn.1011e578
mov esi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [esi + 0x10]
lea eax, [ecx + 1]
add eax, ebx
cmp eax, ecx
ja 0x10044db7
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x10044db1
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x10044dc3
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.10046f50
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10044dcd
mov eax, dword [esi]
push edi
push 1
push ebx
push eax
call fcn.1011e0fb
push edi
mov dword [ebp + 8], eax
call fcn.1010813d
mov edx, dword [esi + 0x10]
add esp, 0x14
lea ecx, [edx - 1]
cmp ecx, edx
ja 0x10044dfe
mov dword [esi + 0x10], ecx
cmp dword [esi + 0x14], 0x10
jb 0x10044df8
mov esi, dword [esi]
mov byte [esi + ecx], 0
jmp 0x10044e0a
sub ecx, edx
push 0
push ecx
mov ecx, esi
call fcn.10046f50
cmp dword [ebp + 8], 1
jne 0x10044d62
pop esi
mov eax, ebx
pop ebx
pop edi
pop ebp
ret

Function at 0x10044e80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x414], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x408], esi
mov dword [ebp - 0x408], ecx
push edi
mov edi, dword [ebp + 0x18]
test ecx, ecx
je 0x10044f21
test ebx, ebx
je 0x10044f21
test eax, eax
je 0x10044f21
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.100ec480
add esp, 0xc
mov dword [ebp - 0x410], 1
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0x400
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x414]
push ebx
push dword [ebp - 0x408]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10044f21
lea eax, [ebp - 0x404]
jmp 0x10044f2b
test edi, edi
mov eax, 0x10172dc0
cmovne eax, edi
push eax
mov ecx, esi
call fcn.1000b130
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b4568
mov esp, ebp
pop ebp
ret
Function at 0x100452a0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101a6940
push 0x100ecb90
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x101c0618]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x820], eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 4], 0
test esi, esi
je 0x1004541e
cmp word [esi], 0
je 0x1004541e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10045306
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x1004541e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004541e
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.100ec480
push esi
push 0x10179dec
push 0x3ff
lea eax, [ebp - 0x81c]
push eax
call fcn.10045bf0
push 0x3c
push 0
lea eax, [ebp - 0x85c]
push eax
call fcn.100ec480
add esp, 0x28
mov dword [ebp - 0x85c], 0x3c
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x84c], eax
mov dword [ebp - 0x850], 0x101750a4
mov eax, dword [ebp - 0x820]
mov dword [ebp - 0x848], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x840], eax
mov dword [ebp - 0x858], 0x440
cmp dword [ebp + 0x14], 0
je 0x100453bd
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004541e
lea eax, [ebp - 0x85c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x100453e5
cmp dword [ebp + 0x18], 0
je 0x100453e5
push dword [ebp + 0x20]
push dword [ebp - 0x824]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test ebx, ebx
je 0x100453fa
test esi, esi
je 0x1004540a
push ebx
push dword [ebp - 0x824]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x1004540a
push dword [ebp - 0x824]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x10045427
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret

Function at 0x10045450
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004547b
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x10045810
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157596
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x220], edi
call fcn.1000c0e0
mov ecx, eax
test ecx, ecx
je 0x1004596b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], edi
call fcn.1001aad0
test al, al
jne 0x1004588e
push 0x39
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
lea ecx, [ebp - 0x21c]
call fcn.1000adf0
mov eax, dword [esi]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 1
push dword [eax - 0xc]
push eax
call fcn.10036ce0
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1004591e
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100ec480
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x1004591e
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove edi, ecx
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x1004592f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1004594e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.100b4568
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10007270
int3

Function at 0x10046790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x1004679e
mov eax, dword [eax]
push edi
push 0x10179d54
push eax
call fcn.10108615
mov edi, eax
add esp, 8
test edi, edi
jne 0x100467bf
call fcn.101088bd
pop edi
mov eax, dword [eax]
neg eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
push ebx
push esi
cmp dword [eax + 0x14], 0x10
lea ebx, [eax + 0x10]
jb 0x100467cf
mov eax, dword [eax]
push edi
push dword [ebx]
push 1
push eax
call fcn.1011ee3b
push edi
mov esi, eax
call fcn.1010813d
add esp, 0x14
xor eax, eax
cmp esi, dword [ebx]
cmovne esi, eax
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x10046840
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov edx, 0x10172dc0
test eax, eax
cmovne edx, eax
cmp dword [ebp + 8], 0
je 0x1004689d
cmp dword [ebp + 0xc], 0
je 0x1004689d
cmp dword [ebp + 0x10], 0
je 0x1004689d
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x14], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10046870
sub ecx, dword [ebp + 0x14]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10046ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x10046b61
cmp byte [esi + 0x3d], 0
je 0x10046b61
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10046b17
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10046b29
sub eax, 1
je 0x10046b2d
sub eax, 2
je 0x10046b61
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10046b4a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1011ee3b
add esp, 0x10
cmp edi, eax
jne 0x10046b17
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.100b4568
mov esp, ebp
pop ebp
ret
Function at 0x10047740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10047770
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100477ac
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x100477ac
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10047891
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100477d4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10047807
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1010872a
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x10047891
cmp eax, 1
jle 0x10047864
cmp eax, 3
jne 0x10047891
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1003c390
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10047881
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1011ee3b
add esp, 0x10
cmp edi, eax
jne 0x10047891
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10047797
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b4568
mov esp, ebp
pop ebp
ret 4