joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bc60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ee805
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5382cc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebx], vtable.apache::thrift::concurrency::ThreadManager::Impl.0
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x38], edi
push 4
mov byte [esp + 0x20], 2
lea esi, [ebx + 0x3c]
call fcn.004ae150
add esp, 4
cmp eax, edi
je 0x42bcc9
mov dword [eax], esi
jmp 0x42bccb
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov byte [esp + 0x1c], 3
lea esi, [ebx + 0x5c]
push 8
mov dword [esi], vtable.apache::thrift::concurrency::Mutex.0
call fcn.004ae150
add esp, 4
cmp eax, edi
je 0x42bcfc
mov dword [eax], edi
mov dword [eax + 4], edi
mov edi, eax
lea ebp, [esi + 4]
push edi
lea ecx, [ebp + 4]
mov dword [ebp], edi
call fcn.00437830
push edi
push edi
push ebp
call fcn.0040fe00
add esp, 0xc
push esi
lea edi, [ebx + 0x68]
mov byte [esp + 0x20], 4
call fcn.00438b20
push esi
lea edi, [ebx + 0x70]
mov byte [esp + 0x20], 5
call fcn.00438b20
lea esi, [ebx + 0x78]
mov byte [esp + 0x1c], 6
call fcn.00438a60
lea eax, [ebx + 0x80]
push eax
mov byte [esp + 0x20], 7
call fcn.0042e450
lea eax, [ebx + 0xa0]
push eax
mov byte [esp + 0x20], 8
call fcn.0042e450
lea eax, [ebx + 0xc0]
push eax
mov byte [esp + 0x20], 9
call fcn.0042e8a0
mov eax, ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x42bd90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ee414
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5382cc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
mov dword [edi], vtable.apache::thrift::concurrency::ThreadManager::Impl.0
push 0
mov esi, edi
mov dword [esp + 0x20], 0xa
call fcn.0042ceb0
lea esi, [edi + 0xc0]
mov dword [esp + 0x10], esi
mov byte [esp + 0x1c], 0xb
call fcn.0042ec40
mov esi, dword [esi]
push esi
call fcn.004ae180
lea esi, [edi + 0xa0]
add esp, 4
mov dword [esp + 0x10], esi
mov byte [esp + 0x1c], 0xc
call fcn.0042e860
mov esi, dword [esi]
push esi
call fcn.004ae180
lea esi, [edi + 0x80]
add esp, 4
mov dword [esp + 0x10], esi
mov byte [esp + 0x1c], 0xd
call fcn.0042e860
mov esi, dword [esi]
push esi
call fcn.004ae180
mov byte [esp + 0x20], 6
mov esi, dword [edi + 0x7c]
add esp, 4
mov dword [edi + 0x78], vtable.apache::thrift::concurrency::Monitor.0
test esi, esi
je 0x42be4f
push esi
call fcn.00438bd0
push esi
call fcn.004ae180
add esp, 4
mov byte [esp + 0x1c], 5
mov esi, dword [edi + 0x74]
mov dword [edi + 0x70], vtable.apache::thrift::concurrency::Monitor.0
test esi, esi
je 0x42be71
push esi
call fcn.00438bd0
push esi
call fcn.004ae180
add esp, 4
mov byte [esp + 0x1c], 4
mov esi, dword [edi + 0x6c]
mov dword [edi + 0x68], vtable.apache::thrift::concurrency::Monitor.0
test esi, esi
je 0x42be93
push esi
call fcn.00438bd0
push esi
call fcn.004ae180
add esp, 4
mov byte [esp + 0x1c], 3
mov dword [edi + 0x5c], vtable.apache::thrift::concurrency::Mutex.0
mov esi, dword [edi + 0x64]
test esi, esi
je 0x42bed0
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x42bed0
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42bed0
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
lea esi, [edi + 0x3c]
mov dword [esp + 0x10], esi
mov byte [esp + 0x1c], 0xe
call fcn.0042e390
mov esi, dword [esi]
push esi
call fcn.004ae180
mov byte [esp + 0x20], 1
mov esi, dword [edi + 0x38]
add esp, 4
test esi, esi
je 0x42bf22
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x42bf22
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42bf22
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
lea esi, [edi + 0x18]
mov byte [esp + 0x1c], 0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x42bf48
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
cmp ecx, esi
setne dl
movzx edx, dl
push edx
call eax
mov dword [esi + 0x10], 0
mov dword [edi], vtable.apache::thrift::concurrency::ThreadManager.0
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4
Function at 0x432540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4eb0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x5382cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov esi, ecx
mov ecx, dword [esp + 8]
push ecx
push edx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.00432a80
mov dword [esp + 0x38], 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00432600
cmp dword [esp + 0x24], 0x10
jb 0x4325da
mov edx, dword [esp + 0x10]
push edx
call fcn.004ae180
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004b46ff
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x434b40
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ee658
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x5382cc]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
xor ebx, ebx
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov esi, ecx
push 1
lea ecx, [esp + 0xd0]
push ecx
mov byte [esp + 0xd4], bl
mov byte [esp + 0xd5], bl
mov byte [esp + 0xd6], bl
mov byte [esp + 0xd7], bl
mov byte [esp + 0xd8], bl
mov byte [esp + 0xd9], 1
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x20]
push ecx
push 1
mov dword [esp + 0x28], 0x1fffff
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 5
mov dword [esp + 0x44], edx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov edx, dword [esp + 0x10]
push ebx
push edx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [esi + 0x1c], 8
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
jb 0x434c70
mov ecx, dword [esi + 8]
jmp 0x434c73
lea ecx, [esi + 8]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x38]
push edx
push ebx
push eax
push eax
mov eax, dword [esi + 0x28]
push eax
push 6
push 0x40000003
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
jne 0x434ce5
mov dword [esi + 0x24], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push 0x19
push str.TCreateNamedPipe___failed
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.0040c3d0
mov dword [esp + 0xc0], ebx
call esi
push eax
lea ecx, [esp + 0x48]
push ecx
lea edi, [esp + 0x68]
call fcn.004343c0
push 0x52b80c
mov edx, edi
push edx
call fcn.004b47e8
mov dword [esi + 0x24], eax
mov al, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004b46ff
mov esp, ebp
pop ebp
ret

Function at 0x4363d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4eafa8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
push edi
mov eax, dword [0x5382cc]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [esp + 0xc]
call fcn.004377c0
mov edi, eax
lea esi, [esp + 0x30]
mov dword [esp + 0x60], 0
call fcn.00437810
push 0x52be9c
mov eax, esi
push eax
call fcn.004b47e8
int3
Function at 0x436960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4eb4b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5382cc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00435120
mov dword [esp + 0x18], 0
test edi, edi
je 0x4369a4
add edi, 0x28
jmp 0x4369a6
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x4369be
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_std::runtime_error_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_std::runtime_error_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x436a30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4eda38
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5382cc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.0040ff70
mov dword [esi], vtable.boost::gregorian::bad_day_of_month.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x436a7a
add edi, 0x28
jmp 0x436a7c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x436a94
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x436c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4eda38
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5382cc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.0040ff70
mov dword [esi], vtable.boost::gregorian::bad_year.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x436c6a
add edi, 0x28
jmp 0x436c6c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x436c84
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x436d10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4eda38
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5382cc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.0040ff70
mov dword [esi], vtable.boost::gregorian::bad_month.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x436d5a
add edi, 0x28
jmp 0x436d5c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x436d74
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4388e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ee938
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5382cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, eax
or edx, ecx
jne 0x438936
mov eax, dword [ebp + 8]
push eax
call fcn.00438a00
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 4]
mov dword [esp + 0x14], edx
mov byte [esp + 0x18], 1
push 0
push 0xf4240
push ecx
push eax
mov dword [esp + 0x48], 0
call fcn.004b6210
push 0
push 0x3e8
push edx
push eax
call fcn.004b5d80
test edx, edx
jl 0x438976
jg 0x438984
test eax, eax
jae 0x438984
neg eax
adc edx, 0
neg edx
neg eax
adc edx, 0
neg edx
mov esi, eax
lea eax, [esp + 0x1c]
push 0x435240
push eax
mov edi, edx
call fcn.00435e00
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
lea eax, [esp + 0x24]
lea esi, [esp + 0x2c]
call fcn.00435c10
mov edi, dword [eax]
mov ebx, dword [eax + 4]
sub esp, 0x18
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 8]
mov dword [esi], eax
xor eax, eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], al
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
call fcn.00439570
xor edx, edx
test al, al
setne dl
dec edx
and edx, 0x274c
mov eax, edx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x438a00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ee908
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5382cc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 4]
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x24], 0
call fcn.004394c0
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
add esp, 0x1c
ret 4

Function at 0x438b20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ee73b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5382cc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0x34
mov dword [edi], vtable.apache::thrift::concurrency::Monitor.0
call fcn.004ae150
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
test esi, esi
je 0x438b90
push esi
call fcn.004382c0
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], eax
mov dword [edi + 4], esi
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
xor eax, eax
mov dword [edi + 4], eax
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x439e2f
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
push 0
push 1
mov edi, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push edi
mov ebx, ecx
push 0
push ebx
mov byte [ebp - 1], 1
call esi
test eax, eax
jne 0x439e7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x439e76
push 8
push 1
push edi
push 0
push ebx
call esi
test eax, eax
jne 0x439e7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x439e7e
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x439f72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
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 0x439fdb
cmp dword [ebp + 0x10], 1
je 0x439fb3
cmp dword [ebp + 0x10], 2
je 0x439fb3
push 0xd
pop eax
jmp 0x439fdb
mov eax, dword [ebp - 4]
test edi, edi
je 0x439fd5
test eax, eax
je 0x439fd0
test al, 1
jne 0x439fae
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x439fd5
jmp 0x439fae
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x43a034
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push str..
push eax
call fcn.004b4dbb
pop ecx
pop ecx
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43a08d
xor eax, eax
jmp 0x43a105
push ebx
xor ebx, ebx
inc ebx
cmp word [ebp - 0x434], 0x2e
jne 0x43a0b7
cmp word [ebp - 0x432], si
je 0x43a0e5
cmp word [ebp - 0x432], 0x2e
jne 0x43a0b7
cmp word [ebp - 0x430], si
je 0x43a0e5
lea eax, [ebp - 0x434]
push str.desktop.ini
push eax
call fcn.004b2f3d
pop ecx
pop ecx
test eax, eax
jne 0x43a0e5
lea eax, [ebp - 0x434]
push str..lnk
push eax
call fcn.004b2f3d
pop ecx
pop ecx
test eax, eax
je 0x43a0f9
lea eax, [ebp - 0x460]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43a091
jmp 0x43a0fb
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b46ff
leave
ret
Function at 0x43a18f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov esi, ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x43a224
mov eax, dword [esi + 0x20c]
test eax, eax
je 0x43a1bb
push eax
call fcn.004b5322
pop ecx
push edi
call fcn.004b53ff
pop ecx
mov dword [esi + 0x20c], eax
test eax, eax
je 0x43a224
push eax
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x43a224
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push dword [esi + 0x20c]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43a224
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x4f8bcc
push 0x208
add esi, 4
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
xor eax, eax
add esp, 0x14
inc eax
jmp 0x43a226
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x43a311
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x104
lea esi, [ecx + 4]
push 0
push esi
call fcn.00439b07
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push 0x80000002
mov dword [ebp - 4], 0x208
mov dword [ebp - 8], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
pop esi
leave
ret

Function at 0x43a359
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
mov edi, dword [ebp + 8]
push edi
call ebx
test eax, eax
je 0x43a374
xor eax, eax
inc eax
jmp 0x43a3ed
and dword [ebp - 4], 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 0xffffffff
je 0x43a3d6
test al, 0x10
je 0x43a3d6
push edi
mov dword [ebp - 4], 1
call esi
test eax, eax
jne 0x43a3d1
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x43a3ba
cmp dword [ebp - 4], 0
push edi
jne 0x43a3db
call ebx
test eax, eax
jne 0x43a3d1
cmp byte [ebp + 0xc], 0
je 0x43a3ea
cmp byte [ebp + 0x10], 1
jne 0x43a3df
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43a3df
xor eax, eax
inc eax
jmp 0x43a3ec
push edi
call ebx
jmp 0x43a399
call esi
jmp 0x43a3b6
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret