joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4316a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea esi, [ebp - 8]
call fcn.00450c20
mov eax, dword [eax]
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
je 0x4316e5
cmp byte [eax], 0
je 0x4316e5
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4316e2
mov dword [ebp - 4], esi
jmp 0x4316e5
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x431704
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x431744
mov eax, dword [edi]
test eax, eax
je 0x431723
mov ecx, dword [eax - 0xc]
push ecx
push eax
push 1
push 0
push str.Last_Installed_Time
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [edi]
push edx
push str.__Current_User_:__Last_Installed_Time___s__n
push 0x40000
push 0x5eb054
call fcn.0042e040
add esp, 0x10
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x431750
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581588
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x5e91b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5b7a18
lea ecx, [ebp - 0x14]
call fcn.00401bf0
lea esi, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00450c20
mov eax, dword [eax]
xor esi, esi
mov dword [ebp - 0x10], esi
test eax, eax
je 0x4317c8
cmp byte [eax], 0
je 0x4317c8
push esi
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4317c5
mov dword [ebp - 0x10], esi
jmp 0x4317c8
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4317e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x431821
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push 1
push 0
push str.Last_Installed_Model_2
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.__Current_User_:__Last_Installed_Model__NULL__n
push 0x40000
push 0x5eb054
call fcn.0042e040
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431847
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x431f00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581556
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5e91b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push 0x104
lea eax, [ebp - 0x114]
push esi
push eax
mov byte [ebp - 0x115], 0
mov dword [ebp - 0x120], esi
call fcn.0055ade0
add esp, 0xc
lea ecx, [ebp - 0x130]
push ecx
call fcn.00450b90
lea edx, [ebp - 0x120]
push edx
push 0x20019
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x130]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x43208a
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x114]
push edx
push esi
push esi
push str.Last_Installed_Printer_Name
push eax
mov dword [ebp - 0x124], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43207d
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.00401bf0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x11c]
push str._BRINFO
push edx
call fcn.0055984b
add esp, 8
cmp eax, esi
jne 0x43200b
push esi
push 0x5b7a18
lea ecx, [ebp - 0x11c]
call fcn.00401ea0
mov esi, dword [ebp - 0x120]
lea edi, [ebp - 0x11c]
call fcn.004320c0
mov eax, dword [ebp - 0x11c]
push 0x5b7a18
push eax
call fcn.00557b8d
add esp, 8
test eax, eax
setne al
test al, al
je 0x432057
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, ebx
mov byte [ebp - 0x115], 1
call fcn.00401fb0
mov edx, dword [ebx]
push edx
push str.___HKEY_LOCAL_MACHINESoftwareBrotherBrMfcWndLast_Installed_Model___s__n
push 0x40000
push 0x5eb054
call fcn.0042e040
add esp, 0x10
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43207d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp - 0x130]
call fcn.0043ede0
mov al, byte [ebp - 0x115]
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.005578df
mov esp, ebp
pop ebp
ret
Function at 0x4320c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581511
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x5e91b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x115], 0
call fcn.004655e9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43210c
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x120], eax
mov dword [ebp - 4], 0
call fcn.004655e9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43213f
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 1
call fcn.004655e9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43216f
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x124], eax
push 0x104
lea ecx, [ebp - 0x114]
push 0
mov byte [ebp - 4], 2
push ecx
mov dword [ebp - 0x128], 0x104
call fcn.0055ade0
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push str.Last_Installed_BrInfo_Section_Name
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x432242
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4321d0
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x120]
call fcn.00401ea0
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.00401490
cmp al, 1
jne 0x432242
mov edx, dword [ebp - 0x11c]
push 0x5b7a18
push edx
call fcn.00557b8d
add esp, 8
test eax, eax
setne al
test al, al
je 0x432242
lea eax, [ebp - 0x11c]
push eax
mov ecx, edi
call fcn.00401fb0
mov byte [ebp - 0x115], 1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432268
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43228e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4322b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x115]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005578df
mov esp, ebp
pop ebp
ret
Function at 0x432450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, 4
xor edi, edi
lea esi, [ebp - 0xc]
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], eax
call fcn.00450c50
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 0x20019
push edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov eax, dword [ebp - 0xc]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4324b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4324e6
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
push str.Need_Property_Dlg
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4324d8
lea edi, [eax + 1]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4324f0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432500
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
lea esi, [ebp - 8]
mov dword [ebp - 4], 0
call fcn.00450c50
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 0x20006
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov eax, dword [ebp - 8]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x432554
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
test bl, bl
pop ebx
je 0x43257d
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
push str.Need_Property_Dlg
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4
Function at 0x432fb0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f516
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5e91b4]
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
xor ebx, ebx
lea esi, [ebp - 0x98]
mov dword [ebp - 0x94], ebx
call fcn.00450c20
mov eax, dword [eax]
lea ecx, [ebp - 0x94]
push ecx
push 0xf003f
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x98]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x433030
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
jne 0x4331c1
call fcn.004655e9
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x433052
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x98], esi
mov dword [ebp - 4], ebx
call fcn.004655e9
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x433081
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa0], eax
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0x90]
push edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x94]
push ebx
push eax
xor edi, edi
mov dword [ebp - 0x9c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
jne 0x433162
jmp 0x4330d0
lea eax, [ebp - 0x90]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4330e0
sub eax, edx
push eax
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x98]
call fcn.00401ea0
mov esi, dword [ebp - 0x98]
cmp dword [esi - 0xc], ebx
jl 0x43312f
push str.LoadDevice
push esi
call fcn.005580df
add esp, 8
cmp eax, ebx
je 0x43312f
sub eax, esi
cmp eax, 0xffffffff
je 0x43312f
mov edx, dword [ebp - 0x94]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
dec edi
mov edx, dword [ebp - 0x94]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x90]
push ecx
inc edi
push edi
push edx
mov dword [ebp - 0x9c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
je 0x4330d0
mov eax, dword [ebp - 0x94]
cmp eax, ebx
je 0x433179
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x94], ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0xa0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43319e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4331c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.005578df
mov esp, ebp
pop ebp
ret
Function at 0x434050
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5e91b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push ebx
push 8
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4340c2
call esi
cmp eax, 0x3f0
jne 0x4340ac
lea ecx, [ebp - 0x10]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4340c2
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005578df
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [ebp - 0x14]
push edx
push ebx
push ebx
push 2
push eax
call edi
test eax, eax
jne 0x4340ac
call esi
cmp eax, 0x7a
jne 0x4340ac
mov eax, dword [ebp - 0x14]
add eax, 8
cmp eax, 0x400
ja 0x434104
call fcn.0055b360
mov esi, esp
cmp esi, ebx
je 0x4340ac
mov dword [esi], 0xcccc
add esi, 8
jmp 0x43411c
push eax
call fcn.00559a31
add esp, 4
cmp eax, ebx
je 0x43411a
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
cmp esi, ebx
je 0x4340ac
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push edx
push esi
push 2
push eax
call edi
test eax, eax
je 0x4340ac
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4340ac
xor edi, edi
mov dword [ebp - 0x1c], ebx
cmp dword [esi], ebx
jbe 0x434192
lea ebx, [esi + 4]
lea ebx, [ebx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x43418b
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x434170
jmp 0x434192
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005578df
mov esp, ebp
pop ebp
ret
Function at 0x4356f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581293
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x5e91b4]
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 ebx, ebx
mov dword [ebp - 0x120], eax
mov esi, edx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 4], ebx
push 0x5b7a18
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x124], 1
call fcn.00401bf0
push 0x103
lea edx, [ebp - 0x113]
mov byte [ebp - 4], 1
push ebx
push edx
mov dword [ebp - 0x12c], 0x104
xor edi, edi
mov byte [ebp - 0x114], bl
call fcn.0055ade0
mov esi, dword [esi]
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push 0x20019
push ebx
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x435812
mov ecx, dword [ebp - 0x128]
mov eax, dword [ecx]
lea edx, [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x124]
push edx
push ebx
push eax
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x435801
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4357e0
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x118]
call fcn.00401ea0
mov edi, 1
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x435817
mov eax, dword [ebp + 0xc]
jmp 0x43581d
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
push eax
call fcn.00401f40
mov esi, dword [ebp - 0x120]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435859
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43587f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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.005578df
mov esp, ebp
pop ebp
ret 8
Function at 0x4363b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x436456
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x436456
mov edx, dword [ebp + 0x10]
push edi
lea ecx, [ebp - 4]
push ecx
push esi
push edx
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x436447
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00464a03
mov esi, eax
add esp, 4
test esi, esi
je 0x436442
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push edi
push esi
call fcn.0055ade0
add esp, 0xc
cmp dword [ebp - 4], edi
jbe 0x436447
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
push esi
push eax
push edi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x436447
push esi
call fcn.00464a0e
mov edx, dword [ebp + 8]
add esp, 4
xor esi, esi
mov dword [edx], edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edi, 0xe
mov edx, dword [ebp + 8]
mov dword [edx], edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0x57
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x437160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareBrotherBrUtilities
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x4371be
mov edx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
push esi
push str.BrLogAPI
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x437220
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 4], 0
jne 0x4372e2
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 4], eax
test eax, eax
je 0x4372df
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenA
push eax
call edi
mov ecx, dword [esi + 4]
push str.CloseA
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 4]
push str.TraceWriteA
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push str.DumpWriteA
push eax
call edi
mov ecx, dword [esi + 4]
push str.OpenW
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 4]
push str.CloseW
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push str.TraceWriteW
push eax
call edi
mov ecx, dword [esi + 4]
push str.DumpWriteW
push ecx
mov dword [esi + 0x20], eax
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x24], eax
pop edi
je 0x4372df
cmp dword [esi + 0xc], 0
je 0x4372df
cmp dword [esi + 0x10], 0
je 0x4372df
cmp dword [esi + 0x14], 0
je 0x4372df
cmp dword [esi + 0x18], 0
je 0x4372df
cmp dword [esi + 0x1c], 0
je 0x4372df
cmp dword [esi + 0x20], 0
je 0x4372df
test eax, eax
jne 0x4372e2
xor eax, eax
ret
mov eax, 1
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5e91b4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
xor eax, eax
test ecx, ecx
je 0x43745f
cmp dword [ecx + 4], eax
setne al
test eax, eax
jne 0x43745f
mov ecx, 0x104
lea eax, [ebp - 0x108]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x4373c0
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00437160
push 0x104
lea ecx, [ebp - 0x108]
push ecx
mov esi, eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstA]
test esi, esi
jne 0x4373fe
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x437450
mov ecx, 0x104
lea eax, [ebp - 0x108]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x437410
mov edx, 0x104
lea eax, [ebp - 0x108]
cmp byte [eax], 0
je 0x43742d
inc eax
dec edx
jne 0x437422
jmp 0x437450
test edx, edx
je 0x437450
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
lea ecx, [ebp + ecx - 0x108]
mov edx, str.BrLogAPI.dll
call fcn.00436580
mov esi, dword [edi + 4]
lea eax, [ebp - 0x108]
call fcn.00437220
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.005578df
mov esp, ebp
pop ebp
ret