joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4199a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c94b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
mov edi, ecx
push eax
call fcn.004321d0
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x419b08
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
cmp edx, 8
push esi
mov esi, dword [ebp - 0x24]
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x419a13
dec ecx
lea eax, [ebp - 0x24]
cmp edx, 8
mov dword [ebp - 0x14], ecx
cmovae eax, esi
xor edx, edx
mov word [eax + ecx*2], dx
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x24]
cmp edx, 8
lea eax, [ebp - 0x24]
push 0
cmovae eax, esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
test esi, esi
je 0x419b07
cmp esi, 0xb7
je 0x419b07
push 1
push 3
lea ecx, [ebp - 0xec]
call fcn.0041a500
mov edx, str.Error_2050___Unable_to_create_directory_path_
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xdc]
call fcn.0041f000
cmp dword [ebp - 0x10], 8
lea ecx, [ebp - 0x24]
push dword [ebp - 0x14]
cmovae ecx, dword [ebp - 0x24]
push ecx
push eax
call fcn.00420cb0
add esp, 0xc
mov edx, str._error_code_
mov ecx, eax
push esi
call fcn.0041f000
mov ecx, eax
call fcn.0041ac70
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0xec]
call fcn.0041a450
push 1
push 0x3af
push eax
push 0xffffffffffffffff
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040bbe0
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x419ae6
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419adc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419b4f
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov eax, dword [edi + 0x4e4]
mov ecx, 3
cmp eax, ecx
cmovl eax, ecx
lea ecx, [ebp - 0xec]
mov dword [edi + 0x4e4], eax
call fcn.0040a3b0
pop esi
mov edx, dword [ebp - 0x10]
pop edi
cmp edx, 8
jb 0x419b3f
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419b35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419b54
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.0046811a
call fcn.0046811a
int3
Function at 0x426250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x426336
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x426325
jg 0x426290
test edx, edx
je 0x426325
nop dword [eax]
call fcn.0041ca70
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4262e4
jg 0x4262a7
test esi, esi
je 0x4262e4
cmp ebx, eax
jg 0x4262b7
jl 0x4262b1
cmp edi, esi
jae 0x4262b7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.004644e0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x426309
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x42631f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x426290
jl 0x42631f
test edi, edi
jne 0x426290
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x426358
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x42635a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x4263d8
jg 0x42636d
test esi, esi
je 0x4263d8
test eax, eax
jl 0x4263b2
jg 0x426377
test ebx, ebx
je 0x4263b2
cmp edi, eax
jg 0x426387
jl 0x426381
cmp esi, ebx
jae 0x426387
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004644e0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x4263b5
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4263d8
jg 0x4263bf
test esi, esi
je 0x4263d8
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4263d8
push eax
push esi
push 1
push edx
call fcn.004705d6
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x426920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x42693c
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42696e
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x42696e
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 esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x426a41
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x426996
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 0x4269bf
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0046c5f8
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp + 8]
mov byte [ebp - 1], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x426a41
cmp eax, 1
jle 0x426a14
cmp eax, 3
jne 0x426a41
push dword [esi + 0x4c]
movsx eax, byte [ebp - 1]
push eax
call fcn.0046c5f8
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
sub edi, eax
je 0x426a31
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004705d6
add esp, 0x10
cmp edi, eax
jne 0x426a41
lea eax, [ebp - 1]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 8], eax
jne 0x426963
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x428120
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b260
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
push 8
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044ceb7
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00438024
mov dword [esi + 4], eax
lea ebx, [edi + 4]
mov eax, dword [ebp - 0x10]
lea edx, [edi + 8]
mov dword [ebp - 0x14], ebx
lea ecx, [eax + 0x18]
mov ebx, dword [ebp - 0x10]
add esp, 8
mov dword [edi + 0x34], esi
add edi, 0x14
mov dword [ebp - 0x18], edx
lea esi, [eax + 0x24]
mov edx, dword [ebp - 0x10]
add eax, 0x28
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [edx + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x10], edx
mov ebx, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [0x4ba834]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx + 0x40], eax
mov eax, dword [0x4ba838]
mov dword [ecx + 0x44], eax
mov eax, ecx
pop edi
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x38], 0
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x42eca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], edx
push esi
mov esi, ecx
test eax, eax
jne 0x42ecc6
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov eax, esi
mov dword [esi], 1
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.0042ec30
test eax, eax
je 0x42ecf2
mov dword [esi], eax
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 4], 0
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp - 4]
lea eax, [edi + 2]
push eax
call fcn.00471f04
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x42ed1e
pop edi
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov eax, esi
pop ebx
mov dword [esi], 3
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
push edi
push 1
push ebx
call fcn.00470c58
add esp, 0x10
cmp eax, edi
je 0x42ed57
push ebx
call fcn.0046c4ba
add esp, 4
mov dword [esi + 8], 0
mov dword [esi], 2
mov eax, esi
mov dword [esi + 4], 0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov edx, edi
mov ecx, ebx
call fcn.0042d3b0
mov ecx, eax
cmp ecx, 2
je 0x42ed6c
cmp ecx, 3
jne 0x42ed7a
shr edi, 1
xor edx, edx
lea eax, [edi + edi]
mov word [eax + ebx], dx
lea edi, [eax + 2]
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov edx, eax
sub esp, 8
push ecx
push ecx
push edi
push ebx
push eax
mov ecx, esi
call fcn.0042eb30
add esp, 0x20
mov eax, esi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x431590
Capabilities:
Acquire debug privileges
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4b5048]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x28]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x30]
push eax
push str.SeShutdownPrivilege
push 0x4a2010
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 1
push eax
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea eax, [ebp - 0x30]
push eax
push str.SeDebugPrivilege
push 0x4a2010
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 1
push eax
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 1
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
test eax, eax
je 0x43166d
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d750
mov esp, ebp
pop ebp
ret
push 1
push 0x16
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
cmp eax, 1
sete al
xor ecx, ebp
call fcn.0044d750
mov esp, ebp
pop ebp
ret
Function at 0x433a50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e87b
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x4b5048]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x410]
push 0x400
push eax
push 0
mov dword [ebp - 0x42c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0
push eax
lea eax, [ebp - 0x410]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, 1
jge 0x433ae5
mov dword [esi + 0x10], 0
xor eax, eax
push 7
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x493274
mov word [esi], ax
call fcn.00404a80
jmp 0x433c09
push ebx
call fcn.00471f04
mov edi, eax
add esp, 4
test edi, edi
je 0x433abf
push edi
push ebx
push 0
lea eax, [ebp - 0x410]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0x493284
push edi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 0x434], 0x34
jae 0x433b40
push edi
call fcn.0046c4ba
add esp, 4
mov ecx, esi
push 0x493274
call fcn.00404970
jmp 0x433c09
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [ebp - 0x410]
push edx
push str.V_i._i._i._i
push eax
call fcn.00432e50
push edi
call fcn.0046c4ba
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x418], 0
add esp, 0x1c
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x433ba0
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.0041ce70
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 0
push eax
push esi
call fcn.00431f00
mov edx, dword [ebp - 0x414]
add esp, 8
cmp edx, 0x10
jb 0x433c09
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x433bff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433c27
push edx
push ecx
call fcn.0044cee7
add esp, 8
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.0044d750
mov esp, ebp
pop ebp
ret
call fcn.0046811a
int3
Function at 0x434c20
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e788
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4b5048]
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]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp + 0xc]
xor eax, eax
push eax
push 0x4a2010
xor bl, bl
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00404a80
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
mov ecx, section..data
push eax
mov dword [ebp - 4], 0
call fcn.00404a80
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x434ccb
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x434cc1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434d29
push edx
push ecx
call fcn.0044cee7
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x434cd3
mov edi, dword [edi]
lea eax, [ebp - 0x2c]
push eax
push 2
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x434d0b
cmp dword [esi + 0x14], 8
jb 0x434cf3
mov esi, dword [esi]
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x2c]
test eax, eax
sete bl
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044d750
mov esp, ebp
pop ebp
ret
call fcn.0046811a
int3
Function at 0x434d30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ea4b
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4b5048]
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]
lea ecx, [ebp - 0xa8]
mov esi, dword [ebp + 0xc]
xor eax, eax
push eax
push 0x4a2010
mov dword [ebp - 0xb0], 0x7f
xor bl, bl
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
call fcn.00404a80
cmp dword [ebp - 0x94], 8
lea eax, [ebp - 0xa8]
push dword [ebp - 0x98]
cmovae eax, dword [ebp - 0xa8]
mov ecx, section..data
push eax
mov dword [ebp - 4], 0
call fcn.00404a80
mov edx, dword [ebp - 0x94]
cmp edx, 8
jb 0x434e0a
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x434e00
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434e8f
push edx
push ecx
call fcn.0044cee7
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x434e12
mov edi, dword [edi]
lea eax, [ebp - 0xac]
push eax
push 1
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x434e71
cmp dword [esi + 0x14], 8
jb 0x434e35
mov esi, dword [esi]
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push esi
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x434e63
cmp eax, 0xea
je 0x434e63
xor bl, bl
jmp 0x434e65
mov bl, 1
push dword [ebp - 0xac]
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044d750
mov esp, ebp
pop ebp
ret
call fcn.0046811a
int3
Function at 0x435420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48eb38
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4b5048]
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 + 0x10]
xor bl, bl
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [eax], ecx
xor eax, eax
push eax
push 0x4a2010
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
call fcn.00404a80
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
mov ecx, section..data
push eax
mov dword [ebp - 4], 0
call fcn.00404a80
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4354e6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4354dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435573
push edx
push ecx
call fcn.0044cee7
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x4354ee
mov esi, dword [esi]
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43553c
cmp dword [edi + 0x14], 8
jb 0x43550e
mov edi, dword [edi]
mov esi, dword [ebp - 0x30]
push esi
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2c]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43553f
mov esi, dword [ebp - 0x30]
cmp dword [ebp - 0x34], 0
je 0x435555
cmp dword [ebp + 0x18], 0
jbe 0x435555
xor ecx, ecx
movzx ebx, bl
cmp dword [esi], ecx
cmove ebx, ecx
mov al, bl
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.0044d750
mov esp, ebp
pop ebp
ret
call fcn.0046811a
int3
Function at 0x435580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48eb38
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4b5048]
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 + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4356b3
mov eax, dword [ebp + 0x18]
cmp eax, 1
jb 0x4356b3
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x18], 0
push eax
push 0x4a2010
xor bl, bl
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00404a80
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
mov ecx, section..data
push eax
mov dword [ebp - 4], 0
call fcn.00404a80
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x435652
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435648
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4356d1
push edx
push ecx
call fcn.0044cee7
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x43565a
mov esi, dword [esi]
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4356a6
cmp dword [edi + 0x14], 8
jb 0x43567a
mov edi, dword [edi]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2c]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
movzx eax, bl
cmp dword [ebp - 0x30], ecx
cmove eax, ecx
jmp 0x4356b5
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.0044d750
mov esp, ebp
pop ebp
ret
call fcn.0046811a
int3