joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a6e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x49c128]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40a710
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004553e7
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40a74c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40a74c
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.004553e7
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40a836
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40a774
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 0x40a7a7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0045d10c
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.004553e7
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x40a809
sub eax, 1
je 0x40a809
sub eax, 2
jne 0x40a836
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0045d10c
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.004553e7
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40a826
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045df59
add esp, 0x10
cmp edi, eax
jne 0x40a836
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x40a737
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004553e7
mov esp, ebp
pop ebp
ret 4
Function at 0x40b850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x49c128]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40b90c
cmp byte [esi + 0x3d], 0
je 0x40b90c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40b8fa
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x40b8c2
sub eax, 1
je 0x40b8c6
sub eax, 2
jne 0x40b8fa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004553e7
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40b8e3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045df59
add esp, 0x10
cmp edi, eax
jne 0x40b8fa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004553e7
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004553e7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004553e7
mov esp, ebp
pop ebp
ret

Function at 0x4131a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475f30
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49c128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00455426
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0045261c
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
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 0x4192d0
Capabilities:
Query service status
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x49c128]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edi
call fcn.00419220
lea eax, [esp + 0x60]
xorps xmm0, xmm0
push eax
push dword [esi]
movlpd qword [esp + 0x8c], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x419344
call dword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
mov dword [esp + 0x14], 0x49cbb0
mov esi, eax
mov dword [esp + 0x18], 0
movaps xmmword [esp + 0x30], xmm0
jmp 0x41936b
movaps xmm0, xmmword [esp + 0x60]
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x84]
movaps xmmword [esp + 0x30], xmm0
movq xmm0, qword [esp + 0x70]
mov dword [esp + 0x14], 0x49cb90
mov dword [esp + 0x18], eax
movq qword [esp + 0x40], xmm0
test esi, esi
jne 0x41946f
cmp dword [esp + 0x34], 4
je 0x419444
lea ecx, [esp + 0x58]
call fcn.00419220
push 0
push 0xf4240
push dword [ebp + 0xc]
mov ecx, dword [eax]
sub ecx, dword [esp + 0x34]
mov esi, dword [eax + 4]
push dword [ebp + 8]
sbb esi, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
call fcn.00455e10
cmp edx, esi
jg 0x4193c0
jl 0x4193bc
cmp eax, dword [esp + 0x14]
jae 0x4193c0
mov al, 1
jmp 0x4193c2
xor al, al
test al, al
jne 0x41940d
mov eax, 0xcccccccd
mul dword [esp + 0x18]
shr edx, 3
cmp edx, 0x3e8
jae 0x4193ef
mov edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x24]
jmp 0x419305
cmp edx, 0x2710
mov eax, 0x2710
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x24]
jmp 0x419305
push 0x21
push str.timeout_wait_for_service_to_start
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0xf
call fcn.00418fe0
mov dword [edi], 0x5b4
mov dword [edi + 4], 0x49cba0
jmp 0x4194a0
xorps xmm0, xmm0
mov eax, edi
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm0
mov dword [edi + 0x20], 0
mov byte [edi + 0x20], 0
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004553e7
mov esp, ebp
pop ebp
ret
push 0x1c
push str.failed_service::query_status
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0xf
call fcn.00418fe0
mov eax, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
movups xmm0, xmmword [esp + 0x60]
mov ecx, dword [esp + 0x8c]
mov eax, edi
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
movups xmmword [edi + 8], xmm0
movq xmm0, qword [esp + 0x70]
movq qword [edi + 0x18], xmm0
mov byte [edi + 0x20], 1
pop edi
pop esi
xor ecx, esp
call fcn.004553e7
mov esp, ebp
pop ebp
ret
Function at 0x419550
Capabilities:
Query service status
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x49c128]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edi
call fcn.00419220
lea eax, [esp + 0x60]
xorps xmm0, xmm0
push eax
push dword [esi]
movlpd qword [esp + 0x8c], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4195c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
mov dword [esp + 0x14], 0x49cbb0
mov esi, eax
mov dword [esp + 0x18], 0
movaps xmmword [esp + 0x30], xmm0
jmp 0x4195eb
movaps xmm0, xmmword [esp + 0x60]
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x84]
movaps xmmword [esp + 0x30], xmm0
movq xmm0, qword [esp + 0x70]
mov dword [esp + 0x14], 0x49cb90
mov dword [esp + 0x18], eax
movq qword [esp + 0x40], xmm0
test esi, esi
jne 0x4196ef
cmp dword [esp + 0x34], 1
je 0x4196c4
lea ecx, [esp + 0x58]
call fcn.00419220
push 0
push 0xf4240
push dword [ebp + 0xc]
mov ecx, dword [eax]
sub ecx, dword [esp + 0x34]
mov esi, dword [eax + 4]
push dword [ebp + 8]
sbb esi, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
call fcn.00455e10
cmp edx, esi
jg 0x419640
jl 0x41963c
cmp eax, dword [esp + 0x14]
jae 0x419640
mov al, 1
jmp 0x419642
xor al, al
test al, al
jne 0x41968d
mov eax, 0xcccccccd
mul dword [esp + 0x18]
shr edx, 3
cmp edx, 0x3e8
jae 0x41966f
mov edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x24]
jmp 0x419585
cmp edx, 0x2710
mov eax, 0x2710
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x24]
jmp 0x419585
push 0x20
push str.timeout_wait_for_service_to_stop
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0xf
call fcn.00418fe0
mov dword [edi], 0x5b4
mov dword [edi + 4], 0x49cba0
jmp 0x419720
xorps xmm0, xmm0
mov eax, edi
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm0
mov dword [edi + 0x20], 0
mov byte [edi + 0x20], 0
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004553e7
mov esp, ebp
pop ebp
ret
push 0x1c
push str.failed_service::query_status
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0xf
call fcn.00418fe0
mov eax, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
movups xmm0, xmmword [esp + 0x60]
mov ecx, dword [esp + 0x8c]
mov eax, edi
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
movups xmmword [edi + 8], xmm0
movq xmm0, qword [esp + 0x70]
movq qword [edi + 0x18], xmm0
mov byte [edi + 0x20], 1
pop edi
pop esi
xor ecx, esp
call fcn.004553e7
mov esp, ebp
pop ebp
ret
Function at 0x41a110
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
lea ebx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41a120
sub esi, ebx
sar esi, 1
lea eax, [esi + esi]
push eax
push dword [ebp + 8]
push 1
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41a159
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor al, al
mov dword [ecx + 4], 0x49cbb0
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
mov dword [eax], 0
mov dword [eax + 4], 0x49cb90
mov al, 1
pop ebp
ret

Function at 0x41c6b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [0x49c128]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x24]
xorps xmm0, xmm0
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x28]
lea esi, [esp + 0x10]
push esi
push eax
push 0
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x1c]
movaps xmmword [esp + 0x1c], xmm0
push dword [ecx]
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x41c73e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov eax, esi
mov dword [edi + 4], 0x49cbb0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004553e7
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov dword [edi], 0
mov dword [edi + 4], 0x49cb90
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xc], eax
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004553e7
mov esp, ebp
pop ebp
ret
Function at 0x41d440
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476a86
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x49c128]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x20]
push eax
push 0x48ad50
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x41d4fa
push str.set_privilege
lea edx, [eax + 4]
lea ecx, [ebp - 0xec]
call fcn.00404b20
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x48], 0
je 0x41d4b4
mov edx, str.LookupPrivilegeValue_err
mov ecx, esi
call fcn.00416e30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x48], 0
je 0x41d4c8
push eax
mov ecx, esi
call fcn.00435b20
lea ecx, [ebp - 0x8c]
call fcn.004048b0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], vtable.std::ios_base.0
push eax
call fcn.00452e26
add esp, 4
xor al, al
jmp 0x41d643
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x40], 1
push eax
push 0x10
lea eax, [ebp - 0x40]
mov dword [ebp - 0x38], ecx
push eax
push 0
push esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x41d592
push str.set_privilege
lea edx, [eax + 4]
lea ecx, [ebp - 0xec]
call fcn.00404b20
add esp, 4
mov esi, eax
mov dword [ebp - 4], 2
cmp byte [esi + 0x48], 0
je 0x41d567
mov edx, str.AdjustTokenPrivileges_1_err
mov ecx, esi
call fcn.00416e30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x48], 0
je 0x41d57b
push eax
mov ecx, esi
call fcn.00435b20
lea ecx, [ebp - 0x8c]
call fcn.004048b0
mov dword [ebp - 4], 3
jmp 0x41d4da
cmp byte [ebp + 8], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
je 0x41d5b1
or dword [ebp - 0x24], 2
jmp 0x41d5b5
and dword [ebp - 0x24], 0xfffffffd
push 0
push 0
push dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x41d641
push str.set_privilege
lea edx, [eax + 4]
lea ecx, [ebp - 0x194]
call fcn.00404b20
add esp, 4
mov esi, eax
mov dword [ebp - 4], 4
cmp byte [esi + 0x48], 0
je 0x41d5fe
mov edx, str.AdjustTokenPrivileges_2_err
mov ecx, esi
call fcn.00416e30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x48], 0
je 0x41d612
push eax
mov ecx, esi
call fcn.00435b20
lea ecx, [ebp - 0x134]
call fcn.004048b0
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00452e26
add esp, 4
xor al, al
jmp 0x41d643
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004553e7
mov esp, ebp
pop ebp
ret
Function at 0x427b80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477823
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x49c128]
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, ecx
lea eax, [edi + 0x18]
test eax, eax
je 0x427d25
cmp byte [eax + 0x20], 0
jne 0x427d25
cmp dword [eax + 0x14], 8
jb 0x427bcd
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push 2
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
je 0x427bf2
xor esi, esi
jmp 0x427bf7
mov esi, dword [ebp - 0x18]
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x427c7e
push str.updater_base::update_submission_tool_regkeys::_lambda_cc86e508742858e66e33c4f6b563692a_::operator___
lea edx, [esi + 4]
lea ecx, [ebp - 0xcc]
call fcn.00404b20
add esp, 4
mov esi, eax
mov byte [ebp - 4], 1
mov al, byte [esi + 0x48]
test al, al
je 0x427c43
mov edx, str.open_submission_tool_regkey_err
mov ecx, esi
call fcn.00416e30
mov al, byte [esi + 0x48]
test al, al
je 0x427c43
push ebx
mov ecx, esi
call fcn.00415010
lea ecx, [ebp - 0x6c]
call fcn.004048b0
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x6c], vtable.std::ios_base.0
call fcn.00452e26
add esp, 4
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.004553e7
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x427c86
mov edi, dword [edi]
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427c90
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edi
push 1
push 0
push str.AppPath
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
je 0x427d19
push str.updater_base::update_submission_tool_regkeys::_lambda_cc86e508742858e66e33c4f6b563692a_::operator___
mov edx, 4
lea ecx, [ebp - 0xcc]
call fcn.00404b20
add esp, 4
mov edi, eax
mov byte [ebp - 4], 3
mov al, byte [edi + 0x48]
test al, al
je 0x427cfa
mov edx, str.update_submission_tool_regkey_err
mov ecx, edi
call fcn.00416e30
mov al, byte [edi + 0x48]
test al, al
je 0x427cfa
push ebx
mov ecx, edi
call fcn.00415010
lea ecx, [ebp - 0x6c]
call fcn.004048b0
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0x6c], vtable.std::ios_base.0
call fcn.00452e26
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x427c62
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.00408ae0
push 0x49ab60
mov eax, ecx
push eax
call fcn.00456cca
int3
Function at 0x441af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x49c128]
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 + 0xc]
lea eax, [ebp - 0x1c]
push eax
push 0x201
push 0
push str..DEFAULTSoftwareSetID
push SysStringLen
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x441bdd
push str.GetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0xc8]
call fcn.00404b20
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
mov al, byte [esi + 0x48]
test al, al
je 0x441bb4
mov edx, str.RegOpenKeyEx
mov ecx, esi
call fcn.00416af0
mov al, byte [esi + 0x48]
test al, al
je 0x441bb4
mov edx, str..DEFAULTSoftwareSetID
mov ecx, esi
call fcn.00416e30
mov al, byte [esi + 0x48]
test al, al
je 0x441bb4
mov edx, str._failed
mov ecx, esi
call fcn.00416af0
cmp byte [esi + 0x48], 0
je 0x441bb4
push edi
mov ecx, esi
call fcn.00435b20
lea ecx, [ebp - 0x68]
call fcn.004048b0
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x68], vtable.std::ios_base.0
call fcn.00452e26
add esp, 4
xor al, al
jmp 0x441cb5
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push 0x48e43c
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x441c14
cmp dword [ebp - 0x18], 4
je 0x441ca7
xor al, al
jmp 0x441cb5
push str.GetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0x170]
call fcn.00404b20
add esp, 4
mov esi, eax
mov dword [ebp - 4], 2
mov al, byte [esi + 0x48]
test al, al
je 0x441c7c
mov edx, str.RegQueryValueEx
mov ecx, esi
call fcn.00416af0
mov al, byte [esi + 0x48]
test al, al
je 0x441c7c
mov edx, 0x48e43c
mov ecx, esi
call fcn.00416e30
mov al, byte [esi + 0x48]
test al, al
je 0x441c7c
mov edx, str._failed
mov ecx, esi
call fcn.00416af0
cmp byte [esi + 0x48], 0
je 0x441c7c
push edi
mov ecx, esi
call fcn.00435b20
lea ecx, [ebp - 0x110]
call fcn.004048b0
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 3
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00452e26
add esp, 4
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete al
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.004553e7
mov esp, ebp
pop ebp
ret
Function at 0x44dfb0
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b17e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x49c128]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x28], edi
xorps xmm0, xmm0
push 0
mov dword [ebp - 0x24], 0
push dword [eax]
movlpd qword [ebp - 0x1c], xmm0
push 0x8004
push dword [edx]
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x44e023
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov esi, 0x49cbb0
jmp 0x44e02b
mov edx, dword [ebp - 0x1c]
mov esi, 0x49cb90
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x24], 1
cmp ecx, dword [0x49cb94]
jne 0x44e06a
test edx, edx
jne 0x44e06a
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004553e7
mov esp, ebp
pop ebp
ret
push esi
push edx
mov edx, str.CryptCreateHash_failed
lea ecx, [ebp - 0x3c]
call fcn.00419e00
add esp, 8
lea eax, [ebp - 0x3c]
push 0x49acd4
push eax
call fcn.00456cca
int3
Function at 0x465fbb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00465e31
Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x7fa31d5e
nop
nop
nop
nop
nop
test eax, eax
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x43891068
nop
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219