joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ce50
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x47bf10
push 0x4462f0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x1068
call fcn.00444b00
mov eax, dword [0x4826d4]
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 ecx, dword [ebp + 8]
mov dword [ebp - 0x107c], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1080], eax
mov dword [ebp - 0x1070], 0
mov dword [ebp - 0x1068], 0x824
xor ebx, ebx
mov dword [ebp - 0x1074], ebx
mov edi, dword [ebp + 0x10]
mov eax, edi
and eax, 0x3e000000
mov dword [ebp - 0x1078], eax
and edi, 0xc0000000
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x1068]
push eax
lea eax, [ebp - 0x1064]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
mov dword [ebp - 0x106c], eax
test eax, eax
jne 0x40cf6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40cf61
xor ecx, ecx
mov eax, dword [ebp - 0x1068]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044437b
add esp, 4
mov esi, eax
mov dword [ebp - 0x1070], esi
mov ebx, 1
mov dword [ebp - 0x1074], ebx
push dword [ebp - 0x1078]
lea eax, [ebp - 0x1068]
push eax
push esi
push dword [ebp - 0x107c]
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
mov dword [ebp - 0x106c], eax
test eax, eax
jne 0x40cf78
push esi
call fcn.00444384
add esp, 4
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x40cfcc
lea esi, [ebp - 0x1064]
mov dword [ebp - 0x1070], esi
push dword [ebp - 0x1080]
push edi
push 0
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov edi, eax
mov dword [ebp - 0x106c], edi
mov dword [ebp - 4], 0xfffffffe
jmp 0x40cfbd
test ebx, ebx
je 0x40cfca
push esi
call fcn.00444384
add esp, 4
mov eax, edi
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.00444abb
mov esp, ebp
pop ebp
ret
Function at 0x40d340
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4627f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4826d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
call fcn.00403330
mov ecx, eax
test ecx, ecx
je 0x40d4be
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x2000
mov dword [ebp - 4], 0
call fcn.0044437b
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40d475
lea ecx, [ebp - 0x10]
push ecx
push 0x2000
push eax
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40d46a
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x40d46a
mov eax, dword [esi - 0xc]
xor ecx, ecx
test eax, eax
cmovns ecx, eax
mov dword [ebp + 0xc], ecx
lea edi, [ecx + edx]
test edi, edi
js 0x40d4b4
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40d407
push edi
lea ecx, [ebp - 0x14]
call fcn.0040cff0
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, esi
test edx, edx
je 0x40d433
test eax, eax
jne 0x40d426
call fcn.00449b62
mov dword [eax], 0x16
call fcn.00449a89
jmp 0x40d433
push edx
push dword [ebp - 0x18]
push eax
call fcn.00446450
add esp, 0xc
cmp edi, dword [esi - 8]
jg 0x40d4b4
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
test ebx, ebx
jle 0x40d44a
sub ebx, dword [ebp - 0x10]
test ebx, ebx
jle 0x40d46a
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push 0x2000
push dword [ebp - 0x18]
push dword [eax + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40d3c4
push dword [ebp - 0x18]
call fcn.00444384
add esp, 4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0040c680
or eax, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40d49e
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
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.004024f0
push 0x80004005
call fcn.004024f0
int3

Function at 0x40d670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d6c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d6c9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40d6ba
cmp esi, edx
jae 0x40d6c9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40d6a8
cmp esi, edx
jae 0x40d6c9
cmp word [esi], 0
je 0x40d6c9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40d9a0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462870
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4826d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.0040f660
add esp, 8
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x18]
call fcn.0040f4d0
mov edi, dword [eax]
mov dword [ebp - 0x1c], 0
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040d6d0
push 0x467f38
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040d8c0
push str.FEATURE_BROWSER_EMULATION
lea ecx, [ebp - 0x10]
call fcn.0040d8c0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x20006
push 0
push dword [ebp - 0x10]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40da86
mov esi, dword [ebp - 0x14]
push edi
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0x10]
test eax, eax
mov byte [ebp - 4], 2
sete bl
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40da79
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x40daa9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40daa9
mov edx, dword [ebp - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40daa7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
mov edx, dword [ebp - 0x20]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dac7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40dae6
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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 0x40dcb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4628b8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4826d4]
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, dword [ebp + 8]
test edi, edi
jne 0x40dd24
lea ecx, [ebp - 0x50]
call fcn.00410b30
push str.ieframe.dll
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], edi
call fcn.00410ba0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
test eax, eax
je 0x40dd15
mov esi, dword [ebp - 0x3c]
shr esi, 0x10
call fcn.00410b40
jmp 0x40dd1c
call fcn.00410b40
xor esi, esi
imul edi, esi, 0x3e8
test edi, edi
jle 0x40de63
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.0040f660
add esp, 8
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040f4d0
mov ebx, dword [eax]
mov dword [ebp - 0x60], 0
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.0040d6d0
push 0x467f38
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.0040d8c0
push str.FEATURE_BROWSER_EMULATION
lea ecx, [ebp - 0x54]
call fcn.0040d8c0
lea eax, [ebp - 0x68]
mov dword [ebp - 0x58], 0
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp - 0x54]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ddff
mov esi, dword [ebp - 0x58]
lea eax, [ebp - 0x58]
push 4
push eax
push 4
push 0
push ebx
push esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x58], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x54]
test eax, eax
mov byte [ebp - 4], 3
sete bl
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ddf2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x40de22
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40de22
mov edx, dword [ebp - 0x54]
or edi, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40de20
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
mov edx, dword [ebp - 0x64]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40de40
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40de5f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
jmp 0x40de65
xor al, al
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.00444abb
mov esp, ebp
pop ebp
ret
Function at 0x40f990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462b38
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4826d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00403330
mov ecx, eax
test ecx, ecx
je 0x40fb04
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x103
or eax, ecx
mov dword [ebp - 4], 0
jge 0x40f9fa
push 0x103
lea ecx, [ebp - 0x10]
call fcn.00404230
mov esi, dword [ebp - 0x10]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
cmp edi, 0x103
jbe 0x40fab1
cmp dword [esi - 8], 0
jl 0x40fb0e
xor eax, eax
mov dword [esi - 0xc], 0
lea ecx, [edi - 1]
mov word [esi], ax
test ecx, ecx
js 0x40fb0e
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x40fa52
push ecx
lea ecx, [ebp - 0x10]
call fcn.00404230
mov esi, dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [edi - 1]
cmp eax, ecx
jbe 0x40faaf
call fcn.00403330
mov ecx, eax
test ecx, ecx
je 0x40fb18
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40fa9c
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 esp, ebp
pop ebp
ret
mov edi, eax
test edi, edi
jne 0x40facf
cmp dword [esi - 8], edi
jl 0x40fb0e
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi], ax
call fcn.00403330
mov ecx, eax
test ecx, ecx
je 0x40fb22
jmp 0x40fa70
cmp edi, 0xffffffff
jne 0x40fae2
push dword [esi - 8]
push esi
call fcn.0044c2df
add esp, 8
mov edi, eax
test edi, edi
js 0x40fb0e
cmp edi, dword [esi - 8]
jg 0x40fb0e
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.0040f1f0
jmp 0x40fa7d
push 0x80004005
call fcn.004024f0
push 0x80070057
call fcn.004024f0
push 0x80004005
call fcn.004024f0
push 0x80004005
call fcn.004024f0
int3

Function at 0x40fb30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x40fb4b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40fb4b
test al, 0x10
jne 0x40fb4b
mov al, 1
ret
xor al, al
ret
Function at 0x410ba0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0x4e4
push ebx
push esi
push edi
mov esi, ecx
push 0x34
push 0
lea edi, [esi + 4]
mov word [esi + 0x3e], ax
push edi
call fcn.00446f50
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x410c69
push ebx
call fcn.0044437b
add esp, 4
mov dword [esi + 0x38], eax
push eax
push ebx
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x410c69
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x467f38
push dword [esi + 0x38]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x410c69
mov eax, dword [ebp - 4]
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [eax + 0x30]
mov dword [edi + 0x30], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4683e4
push dword [esi + 0x38]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x410c55
cmp dword [ebp - 8], 4
jb 0x410c55
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [esi + 0x3c], eax
xor eax, eax
cmp dword [edi], 0xfeef04bd
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x414420
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
mov dword [ebp + 8], eax
jb 0x41443a
mov ebx, dword [ebx]
cmp eax, 8
jae 0x414453
movups xmm0, xmmword [ebx]
mov edi, 7
movups xmmword [ebp - 0x1c], xmm0
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], esi
jmp 0x41448e
mov edi, eax
lea ecx, [ebp - 0x1c]
mov eax, SysReAllocString
or edi, 7
cmp edi, eax
cmova edi, eax
lea eax, [edi + 1]
push eax
call fcn.0041a8d0
mov ecx, dword [ebp + 8]
mov esi, eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
lea eax, [ecx*2 + 2]
push eax
push ebx
push esi
call fcn.00446450
mov eax, dword [ebp + 8]
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], ebx
je 0x4144d7
nop dword [eax + eax]
cmp edi, 8
lea eax, [ebp - 0x1c]
cmovae eax, esi
movzx eax, word [eax + ebx*2]
push eax
call fcn.0044cfaf
movzx ecx, ax
add esp, 4
cmp edi, 8
lea eax, [ebp - 0x1c]
cmovae eax, esi
mov word [eax + ebx*2], cx
inc ebx
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x1c]
cmp ebx, eax
jb 0x4144a0
mov dword [ebp - 4], esi
cmp edi, 8
lea edx, [ebp - 0x1c]
mov ebx, 0x811c9dc5
cmovae edx, esi
xor ecx, ecx
add eax, eax
mov dword [ebp + 8], eax
je 0x414504
mov esi, eax
movzx eax, byte [ecx + edx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, esi
jb 0x4144f0
mov esi, dword [ebp - 4]
cmp edi, 8
jb 0x414534
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x41452a
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41453f
push edi
push esi
call fcn.0044436d
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00449a99
int3

Function at 0x414ed0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20006
push 0
push str.SoftwareAutoOff
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414f21
push ebx
push esi
push dword [ebp + 8]
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete bl
test esi, esi
je 0x414f19
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x416860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4633c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4826d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00403330
mov ecx, eax
test ecx, ecx
je 0x4169bf
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x18], 0
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416961
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x4168e4
cmp eax, 2
jne 0x416961
mov edx, dword [ebp - 0x18]
test dl, 1
jne 0x416961
shr edx, 1
mov dword [ebp - 0x1c], edx
je 0x41699e
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x416914
push edx
lea ecx, [ebp - 0x10]
call fcn.00404230
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
push esi
push dword [ebp + 0xc]
call fcn.00417e60
test al, al
je 0x41694f
push dword [esi - 8]
push esi
call fcn.0044c2df
add esp, 8
test eax, eax
js 0x4169c9
cmp eax, dword [esi - 8]
jg 0x4169c9
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
jmp 0x4169a9
cmp dword [esi - 8], 0
jl 0x4169c9
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
push dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0040d6d0
add esi, 0xfffffff0
or eax, 0xffffffff
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x416989
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 esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x10]
call fcn.004030b0
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
push esi
call fcn.00402c90
mov edi, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [edi], eax
jmp 0x416971
push 0x80004005
call fcn.004024f0
push 0x80070057
call fcn.004024f0
int3
Function at 0x416f90
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463468
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4826d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41703e
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
push eax
push 0x467db0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esi
push eax
call fcn.00416860
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
lea edi, [eax - 0x10]
setne bl
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41701f
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
test esi, esi
je 0x41702a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
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 0x417e60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0x10], 0
mov eax, dword [edi]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417eea
mov eax, dword [ebp + 0x10]
cmp eax, 1
je 0x417ea1
cmp eax, 2
jne 0x417eea
mov eax, dword [ebp - 4]
test al, 1
jne 0x417eea
test esi, esi
je 0x417edc
test eax, eax
jne 0x417ec5
cmp dword [edi], eax
jbe 0x417eb7
mov word [esi], ax
xor eax, eax
mov dword [edi], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
shr eax, 1
cmp word [esi + eax*2 - 2], 0
jne 0x417eea
dec eax
mov dword [edi], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
shr eax, 1
mov dword [edi], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x417f00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SoftwareAutoOff
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417f59
push ebx
push esi
push dword [ebp + 0x10]
mov esi, dword [ebp - 4]
push dword [ebp + 0xc]
push eax
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
test esi, esi
je 0x417f51
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret