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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [eax]
mov dword [ebp - 0x10], eax
cmp edi, eax
je 0x40797b
lea esp, [esp]
mov ecx, dword [0x460228]
mov dword [ebp - 0xc], ecx
lea ecx, [edi + 0xc]
mov eax, 0x460224
call fcn.004074f0
mov ebx, dword [0x460228]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x4078b7
mov eax, dword [eax + 0xc]
test eax, eax
je 0x407984
mov ecx, eax
mov eax, dword [edi + 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4078a9
test dx, dx
je 0x4078a5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4078a9
add eax, 4
add ecx, 4
test dx, dx
jne 0x407883
xor eax, eax
jmp 0x4078ae
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
js 0x4078b7
lea eax, [ebp - 4]
jmp 0x4078bd
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp dword [eax], edx
je 0x4078d1
push 0x460224
lea ecx, [edi + 0xc]
call fcn.00406f50
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov esi, 4
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
lea esi, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 4]
push eax
push 0
push ecx
mov ecx, dword [edx + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x407930
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
cmp dword [esi - 0xc], 0
je 0x407930
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x26
push str._anonymous_namespace::_lambda0_::operator___
mov edx, str...Commonprotocol.cpp
mov ecx, esi
call fcn.00403b40
add esp, 0xc
cmp byte [edi + 0x15], 0
jne 0x407972
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x15], 0
jne 0x407955
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x407951
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x407947
mov edi, ecx
jmp 0x407972
mov eax, dword [edi + 4]
cmp byte [eax + 0x15], 0
jne 0x407970
mov edi, edi
cmp edi, dword [eax + 8]
jne 0x407970
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x407960
mov edi, eax
cmp edi, dword [ebp - 0x10]
jne 0x407850
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004036a0
int3
Function at 0x407990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [eax]
mov dword [ebp - 0x10], eax
cmp edi, eax
je 0x407ae2
lea esp, [esp]
mov ecx, dword [0x460228]
mov dword [ebp - 0xc], ecx
lea ecx, [edi + 0xc]
mov eax, 0x460224
call fcn.004074f0
mov ebx, dword [0x460228]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x407a17
mov eax, dword [eax + 0xc]
test eax, eax
je 0x407aeb
mov ecx, eax
mov eax, dword [edi + 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407a09
test dx, dx
je 0x407a05
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407a09
add eax, 4
add ecx, 4
test dx, dx
jne 0x4079e3
xor eax, eax
jmp 0x407a0e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
js 0x407a17
lea eax, [ebp - 4]
jmp 0x407a1d
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp dword [eax], edx
je 0x407a31
push 0x460224
lea ecx, [edi + 0xc]
call fcn.00406f50
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
lea esi, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 4]
push eax
push 0
push ecx
mov ecx, dword [edx + 4]
push ecx
mov dword [ebp - 4], 3
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x407a93
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
cmp dword [esi - 0xc], 0
je 0x407a93
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2b
push str._anonymous_namespace::_lambda1_::operator___
mov edx, str...Commonprotocol.cpp
mov ecx, esi
call fcn.00403b40
add esp, 0xc
cmp byte [edi + 0x15], 0
jne 0x407ad9
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x15], 0
jne 0x407abe
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x407aba
lea ebx, [ebx]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x407ab0
mov edi, ecx
jmp 0x407ad9
mov eax, dword [edi + 4]
cmp byte [eax + 0x15], 0
jne 0x407ad7
cmp edi, dword [eax + 8]
jne 0x407ad7
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x407ac7
mov edi, eax
cmp edi, dword [ebp - 0x10]
jne 0x4079b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004036a0
int3
Function at 0x407b00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [eax]
mov dword [ebp - 0x10], eax
cmp edi, eax
je 0x407c52
lea esp, [esp]
mov ecx, dword [0x460228]
mov dword [ebp - 0xc], ecx
lea ecx, [edi + 0xc]
mov eax, 0x460224
call fcn.004074f0
mov ebx, dword [0x460228]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x407b87
mov eax, dword [eax + 0xc]
test eax, eax
je 0x407c5b
mov ecx, eax
mov eax, dword [edi + 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407b79
test dx, dx
je 0x407b75
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407b79
add eax, 4
add ecx, 4
test dx, dx
jne 0x407b53
xor eax, eax
jmp 0x407b7e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
js 0x407b87
lea eax, [ebp - 4]
jmp 0x407b8d
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp dword [eax], edx
je 0x407ba5
push 0x460224
lea ecx, [edi + 0xc]
call fcn.00406f50
mov eax, dword [eax]
jmp 0x407ba7
xor eax, eax
mov ecx, dword [edi + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x10]
mov edx, dword [edx]
lea esi, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 4]
push eax
push 0
push ecx
mov ecx, dword [edx + 4]
push ecx
mov dword [ebp - 4], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x407c05
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
cmp dword [esi - 0xc], 0
je 0x407c05
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x30
push str._anonymous_namespace::_lambda2_::operator___
mov edx, str...Commonprotocol.cpp
mov ecx, esi
call fcn.00403b40
add esp, 0xc
cmp byte [edi + 0x15], 0
jne 0x407c49
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x15], 0
jne 0x407c2e
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x407c2a
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x407c20
mov edi, ecx
jmp 0x407c49
mov eax, dword [edi + 4]
cmp byte [eax + 0x15], 0
jne 0x407c47
cmp edi, dword [eax + 8]
jne 0x407c47
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x407c37
mov edi, eax
cmp edi, dword [ebp - 0x10]
jne 0x407b20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004036a0
int3
Function at 0x407c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [eax + 4]
push ebx
push esi
mov esi, dword [eax]
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
cmp esi, eax
jne 0x407c94
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 4]
mov ebx, dword [0x460228]
lea ecx, [esi + 0xc]
mov eax, 0x460224
call fcn.004074f0
mov edi, dword [0x460228]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x407cf8
mov eax, dword [eax + 0xc]
test eax, eax
je 0x407dfc
mov ecx, eax
mov eax, dword [esi + 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407cea
test dx, dx
je 0x407ce6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407cea
add eax, 4
add ecx, 4
test dx, dx
jne 0x407cc4
xor eax, eax
jmp 0x407cef
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
js 0x407cf8
lea eax, [ebp - 8]
jmp 0x407cfe
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0xc]
cmp dword [eax], ebx
je 0x407d13
push 0x460224
lea ecx, [esi + 0xc]
call fcn.00406f50
mov eax, dword [eax]
jmp 0x407d15
xor eax, eax
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x10]
mov esi, dword [esi + 0xc]
mov edi, dword [ecx]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 1
test eax, eax
jne 0x407d47
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407d33
sub eax, ebx
sar eax, 1
add eax, eax
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
lea ecx, [ebp - 8]
push ecx
push edx
lea edx, [ebp - 0x10]
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x407d90
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
cmp dword [esi - 0xc], 0
je 0x407d90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x35
push str._anonymous_namespace::_lambda3_::operator___
mov edx, str...Commonprotocol.cpp
mov ecx, esi
call fcn.00403b40
add esp, 0xc
mov edx, dword [ebp - 4]
cmp byte [edx + 0x15], 0
jne 0x407dea
mov ecx, dword [edx + 8]
cmp byte [ecx + 0x15], 0
jne 0x407dbf
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x407dba
lea ebx, [ebx]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x407db0
mov dword [ebp - 4], ecx
jmp 0x407de7
mov eax, dword [edx + 4]
cmp byte [eax + 0x15], 0
jne 0x407de4
jmp 0x407dd3
mov edx, dword [ebp - 4]
cmp edx, dword [eax + 8]
jne 0x407de4
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x407dd0
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x14]
jne 0x407c91
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004036a0
int3
Function at 0x407e10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [eax]
mov dword [ebp - 0x10], eax
cmp edi, eax
je 0x407f52
lea esp, [esp]
mov ecx, dword [0x460228]
mov dword [ebp - 0xc], ecx
lea ecx, [edi + 0xc]
mov eax, 0x460224
call fcn.004074f0
mov ebx, dword [0x460228]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x407e97
mov eax, dword [eax + 0xc]
test eax, eax
je 0x407f5b
mov ecx, eax
mov eax, dword [edi + 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407e89
test dx, dx
je 0x407e85
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407e89
add eax, 4
add ecx, 4
test dx, dx
jne 0x407e63
xor eax, eax
jmp 0x407e8e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
js 0x407e97
lea eax, [ebp - 4]
jmp 0x407e9d
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp dword [eax], edx
je 0x407eb1
push 0x460224
lea ecx, [edi + 0xc]
call fcn.00406f50
mov edx, dword [edi + 0x10]
mov edx, dword [edx]
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push 4
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0xc]
push edx
push 4
push 0
push eax
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x407f09
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
cmp dword [esi - 0xc], 0
je 0x407f09
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x59
push str._anonymous_namespace::_lambda5_::operator___
mov edx, str...Commonprotocol.cpp
mov ecx, esi
call fcn.00403b40
add esp, 0xc
cmp byte [edi + 0x15], 0
jne 0x407f49
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x15], 0
jne 0x407f2e
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x407f2a
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x407f20
mov edi, ecx
jmp 0x407f49
mov eax, dword [edi + 4]
cmp byte [eax + 0x15], 0
jne 0x407f47
cmp edi, dword [eax + 8]
jne 0x407f47
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x407f37
mov edi, eax
cmp edi, dword [ebp - 0x10]
jne 0x407e30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004036a0
int3
Function at 0x407f70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [eax]
mov dword [ebp - 0x14], eax
cmp edi, eax
je 0x4080b2
lea esp, [esp]
mov ecx, dword [0x460228]
mov dword [ebp - 0x10], ecx
lea ecx, [edi + 0xc]
mov eax, 0x460224
call fcn.004074f0
mov ebx, dword [0x460228]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x407ff7
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4080bb
mov ecx, eax
mov eax, dword [edi + 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407fe9
test dx, dx
je 0x407fe5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407fe9
add eax, 4
add ecx, 4
test dx, dx
jne 0x407fc3
xor eax, eax
jmp 0x407fee
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
js 0x407ff7
lea eax, [ebp - 8]
jmp 0x407ffd
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
cmp dword [eax], edx
je 0x408011
push 0x460224
lea ecx, [edi + 0xc]
call fcn.00406f50
mov edx, dword [edi + 0x10]
mov dl, byte [edx]
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push 1
mov byte [ebp - 4], dl
lea edx, [ebp - 4]
push edx
push 3
push 0
push eax
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x408069
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
cmp dword [esi - 0xc], 0
je 0x408069
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5e
push str._anonymous_namespace::_lambda6_::operator___
mov edx, str...Commonprotocol.cpp
mov ecx, esi
call fcn.00403b40
add esp, 0xc
cmp byte [edi + 0x15], 0
jne 0x4080a9
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x15], 0
jne 0x40808e
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x40808a
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x408080
mov edi, ecx
jmp 0x4080a9
mov eax, dword [edi + 4]
cmp byte [eax + 0x15], 0
jne 0x4080a7
cmp edi, dword [eax + 8]
jne 0x4080a7
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x408097
mov edi, eax
cmp edi, dword [ebp - 0x14]
jne 0x407f90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004036a0
int3
Function at 0x4080d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [eax + 4]
push ebx
mov ebx, dword [eax]
push esi
push edi
mov dword [ebp - 0x10], eax
cmp ebx, eax
je 0x408212
lea esp, [esp]
mov ecx, dword [0x460228]
mov dword [ebp - 0xc], ecx
lea ecx, [ebx + 0xc]
mov eax, 0x460224
call fcn.004074f0
mov edi, dword [0x460228]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x408157
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40821b
mov ecx, eax
mov eax, dword [ebx + 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408149
test dx, dx
je 0x408145
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408149
add eax, 4
add ecx, 4
test dx, dx
jne 0x408123
xor eax, eax
jmp 0x40814e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
js 0x408157
lea eax, [ebp - 4]
jmp 0x40815d
mov dword [ebp - 8], edi
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp dword [eax], edx
je 0x408175
push 0x460224
lea ecx, [ebx + 0xc]
call fcn.00406f50
mov edi, dword [eax]
jmp 0x408177
xor edi, edi
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
mov edx, dword [edx]
push edi
push eax
mov eax, dword [edx + 4]
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4081c6
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
cmp dword [esi - 0xc], 0
je 0x4081c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x63
push str._anonymous_namespace::_lambda7_::operator___
mov edx, str...Commonprotocol.cpp
mov ecx, esi
call fcn.00403b40
add esp, 0xc
cmp byte [ebx + 0x15], 0
jne 0x408209
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x15], 0
jne 0x4081ee
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x4081ea
lea ecx, [ecx]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x4081e0
mov ebx, ecx
jmp 0x408209
mov eax, dword [ebx + 4]
cmp byte [eax + 0x15], 0
jne 0x408207
cmp ebx, dword [eax + 8]
jne 0x408207
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x4081f7
mov ebx, eax
cmp ebx, dword [ebp - 0x10]
jne 0x4080f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004036a0
int3
Function at 0x408230
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
cmp eax, ecx
jne 0x408254
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
mov ebx, dword [0x460228]
lea esi, [eax + 0xc]
mov ecx, esi
mov eax, 0x460224
call fcn.004074f0
mov edi, dword [0x460228]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x4082b9
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40839c
mov ecx, eax
mov eax, dword [esi]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4082ab
test dx, dx
je 0x4082a7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4082ab
add eax, 4
add ecx, 4
test dx, dx
jne 0x408285
xor eax, eax
jmp 0x4082b0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
js 0x4082b9
lea eax, [ebp - 8]
jmp 0x4082bf
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0xc]
cmp dword [eax], ebx
je 0x4082cf
push 0x460224
mov ecx, esi
call fcn.00406f50
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
mov esi, dword [esi]
mov edi, dword [edx]
mov eax, ecx
lea ebx, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4082e0
sub eax, ebx
sar eax, 1
add eax, eax
push eax
push ecx
mov ecx, dword [edi + 4]
push 1
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x408335
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
cmp dword [esi - 0xc], 0
je 0x408335
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x68
push str._anonymous_namespace::_lambda8_::operator___
mov edx, str...Commonprotocol.cpp
mov ecx, esi
call fcn.00403b40
add esp, 0xc
mov edx, dword [ebp - 4]
cmp byte [edx + 0x15], 0
jne 0x40838a
mov ecx, dword [edx + 8]
cmp byte [ecx + 0x15], 0
jne 0x40835f
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x40835a
nop
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x408350
mov dword [ebp - 4], ecx
jmp 0x408387
mov eax, dword [edx + 4]
cmp byte [eax + 0x15], 0
jne 0x408384
jmp 0x408373
mov edx, dword [ebp - 4]
cmp edx, dword [eax + 8]
jne 0x408384
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x408370
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jne 0x408251
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004036a0
int3
Function at 0x409840
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1258
call fcn.00437550
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov ebx, ecx
cmp dword [ebx + 4], 0
push edi
mov esi, edx
jne 0x409879
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042decf
mov esp, ebp
pop ebp
ret 4
test esi, esi
jne 0x409880
lea esi, [ebx + 8]
push esi
call fcn.00409ac0
add esp, 4
test al, al
je 0x409864
lea edi, [ebp - 0x1254]
mov ecx, ebx
call fcn.004095c0
cmp byte [ebp - 0xe20], 0
je 0x4098e6
push 0
mov eax, edi
push eax
add ebx, 8
push ebx
push 0
lea ecx, [ebp - 0x214]
push 0x104
push ecx
call fcn.00430463
add esp, 0x18
push 0
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042decf
mov esp, ebp
pop ebp
ret 4
cmp byte [ebp + 8], 0
je 0x409941
push 0x100
lea eax, [ebp - 0x61c]
push eax
push 0x100
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x1254]
push 0
push edx
call fcn.00430251
add esp, 0x24
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
lea edx, [ebp - 0x1254]
push 0x104
push edx
call fcn.00430463
add esp, 0x18
push 0
lea eax, [ebp - 0x1254]
push eax
push esi
push 0
lea ecx, [ebp - 0x41c]
push 0x104
push ecx
call fcn.00430463
add esp, 0x18
lea eax, [ebp - 0x41c]
call fcn.00409b50
test al, al
je 0x409864
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409864
mov ecx, dword [ebx + 4]
call fcn.00401bd0
test eax, eax
jne 0x409864
mov edi, edi
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0xe1c]
push eax
push ecx
call fcn.00401d80
mov esi, eax
add esp, 8
test esi, esi
jle 0x4099fa
push 0
lea edx, [ebp - 0x1258]
push edx
push esi
lea eax, [ebp - 0xe1c]
push eax
push edi
mov dword [ebp - 0x1258], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4099f7
cmp dword [ebp - 0x1258], esi
je 0x4099b0
or esi, 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebx + 4]
call fcn.00402000
test esi, esi
jne 0x409a1e
mov ecx, dword [ebp - 0xe38]
lea eax, [ebp - 0x41c]
call fcn.00409b90
mov ecx, dword [ebp - 8]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.0042decf
mov esp, ebp
pop ebp
ret 4
Function at 0x409ac0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x409b42
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x409b42
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409aee
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete al
pop edi
pop ebp
ret
push esi
push edi
call fcn.0043057c
mov esi, eax
push 0x5c
push esi
call fcn.0042ea5f
add esp, 0xc
test eax, eax
je 0x409b3c
xor edx, edx
push esi
mov word [eax], dx
call fcn.00409ac0
add esp, 4
push esi
test al, al
jne 0x409b27
call fcn.0042dede
add esp, 4
pop esi
xor al, al
pop edi
pop ebp
ret
call fcn.0042dede
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x409b21
pop esi
mov al, 1
pop edi
pop ebp
ret
xor al, al
pop edi
pop ebp
ret

Function at 0x409b90
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
jne 0x409bc0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x409c26
lea ecx, [ebp - 0x10]
push ecx
push esi
shr esi, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x409c26
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x409c26
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, 1
sete bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret