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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458150
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
mov eax, dword [0x474454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
push str.Software_
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00402280
push 0x475988
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.00401e80
push 0x45f7dc
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], 2
call fcn.00401f40
mov edx, dword [ebp + 8]
push edx
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 3
call fcn.00401e80
mov eax, dword [eax]
add esp, 0x24
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x14]
push edx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x4051b2
mov esi, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], esi
cmp eax, ebx
mov eax, dword [ebp - 0x18]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4051d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4051f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40521b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40523d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], bl
je 0x405260
cmp esi, ebx
je 0x40524d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov edx, dword [ebp + 0x10]
push 4
lea ecx, [ebp - 0x24]
push ecx
push 4
push ebx
push eax
push esi
mov dword [ebp - 0x24], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x405242
cmp esi, ebx
je 0x40528b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405d10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x474454]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
or ecx, 0x2001f
push ecx
xor ebx, ebx
push eax
push edx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x108], ebx
call fcn.00404a30
mov edi, eax
cmp edi, ebx
je 0x405d8a
mov eax, dword [ebp - 0x110]
cmp eax, ebx
je 0x405d75
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fdbf
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x110]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x104]
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [ebp - 0x114], 0x100
call ebx
test eax, eax
jne 0x405e08
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0x110]
call fcn.00405d10
mov edi, eax
test edi, edi
jne 0x405e41
lea edx, [ebp - 0x120]
push edx
mov edx, dword [ebp - 0x110]
push eax
push eax
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
push edx
mov dword [ebp - 0x114], 0x100
call ebx
test eax, eax
je 0x405dc0
mov eax, dword [ebp - 0x110]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp eax, edi
je 0x405e23
push eax
call ebx
mov dword [ebp - 0x110], edi
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x10c], edi
push eax
cmp ecx, edi
je 0x405e6b
mov edx, dword [esi]
push edx
call fcn.00405bf0
jmp 0x405e74
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x405d75
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fdbf
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [ebp - 0x110]
cmp eax, edi
je 0x405e83
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043fdbf
mov esp, ebp
pop ebp
ret 4
Function at 0x409de0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
push edi
call fcn.00409d90
mov ebx, dword [ebp + 8]
add esp, 4
mov dword [ebp - 4], eax
test ebx, ebx
je 0x409ee1
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x409ee1
cmp eax, dword [ebp + 0x14]
ja 0x409ee1
push esi
xor esi, esi
test edi, edi
je 0x409ea2
cmp esi, edi
jae 0x409e2a
movzx eax, byte [esi + ebx]
inc esi
jmp 0x409e2c
xor eax, eax
cmp esi, edi
jae 0x409e3a
movzx edx, byte [esi + ebx]
mov dword [ebp + 8], edx
inc esi
jmp 0x409e41
mov dword [ebp + 8], 0
cmp esi, edi
jae 0x409e4c
movzx edx, byte [esi + ebx]
inc esi
jmp 0x409e4e
xor edx, edx
shl eax, 8
add eax, dword [ebp + 8]
add ecx, 4
shl eax, 8
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_8YF]
mov byte [ecx - 4], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_8YF]
mov byte [ecx - 3], dl
mov edx, eax
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_8YF]
mov byte [ecx - 2], dl
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_8YF]
mov byte [ecx - 1], al
cmp esi, edi
jb 0x409e23
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea edx, [edx + edx*2]
sub edi, edx
xor ecx, ecx
lea edi, [edi*4 + 0x45fbd0]
pop esi
cmp dword [edi], ecx
jle 0x409ed1
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
lea eax, [edx + eax - 1]
mov byte [eax], 0x3d
inc ecx
dec eax
cmp ecx, dword [edi]
jl 0x409ec8
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
pop edi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409ff0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418530
Function at 0x40fba0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fbc9
xor eax, eax
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ebp
ret

Function at 0x40fbf0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40fc69
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x40fc62
cmp eax, dword [ebp + 0x10]
ja 0x40fc62
mov edx, dword [ebp + 0xc]
push edi
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
je 0x40fc69
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4108a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4595cb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x474454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0043f09e
push 4
mov dword [ebp - 4], 0
call fcn.0043f95b
mov edi, eax
add esp, 4
test edi, edi
je 0x410920
call fcn.0043ed5c
mov dword [edi], eax
call fcn.0043eb1b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0043ea50
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x410916
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0043ea78
jmp 0x410922
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
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 0x4116c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4596a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x474454]
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
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x4117e1
cmp byte [edi + 0x49], bl
je 0x4117e1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4117d5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x411735
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x41174d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x411776
dec eax
je 0x41177a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4117d0
jmp 0x4117dc
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x41178a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4117b3
cmp ebx, 0x10
jae 0x411799
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00441f84
add esp, 0x10
cmp esi, eax
jne 0x4117cd
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4117d9
test esi, esi
jne 0x411741
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00411360
jmp 0x41173b
lea ecx, [ebp - 0x2c]
call fcn.00410b80
xor al, al
jmp 0x4117e3
lea ecx, [ebp - 0x2c]
call fcn.00410b80
mov al, 1
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.0043fdbf
mov esp, ebp
pop ebp
ret
Function at 0x413a70
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459b27
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x474454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], eax
je 0x413abe
mov dword [ebx], 0x460240
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
call fcn.0040ff40
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.00410fa0
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x413b0a
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.0040fe40
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.004108a0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x475aa0]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x413c50
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0043ffa0
mov esi, 0x800
push esi
mov dword [ebp - 0x3c], 0x3c
call fcn.0043e87e
push esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
call fcn.0043e87e
mov ecx, dword [ebp + 8]
add esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0xc], esi
mov ecx, dword [eax - 0xc]
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x413cc8
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004402fd
mov ecx, dword [ebp - 0x10]
push ecx
mov dword [ebp - 0x2c], 0
call fcn.004402fd
add esp, 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x413cd3
xor eax, eax
jmp 0x413ce1
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413cd8
sub eax, esi
mov ecx, dword [ebp + 0xc]
push eax
push edx
call fcn.00401be0
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x413cf6
xor eax, eax
jmp 0x413d09
mov eax, edx
lea esi, [eax + 1]
jmp 0x413d00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413d00
sub eax, esi
mov ecx, dword [ebp + 0x10]
push eax
push edx
call fcn.00401be0
movzx edx, word [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp + 0x14]
push ecx
mov dword [eax], edx
call fcn.004402fd
mov edx, dword [ebp - 0x10]
push edx
mov dword [ebp - 0x2c], 0
call fcn.004402fd
add esp, 8
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4191a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ab38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x474454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], esi
je 0x4191f3
push 1
push 0x45f7dc
lea ecx, [ebp + 0x18]
call fcn.00401c80
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00418d70
push eax
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov byte [ebp - 4], 2
call fcn.00401e80
mov eax, dword [eax]
add esp, 0x14
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push eax
push edx
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x419247
mov edi, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], edi
cmp eax, esi
mov eax, dword [ebp - 0x18]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419269
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41928c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4192d5
cmp edi, esi
je 0x41929b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4192c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
mov edx, dword [ebp + 8]
mov ebx, dword [edx]
xor eax, eax
test esi, esi
setne al
test eax, eax
jne 0x4192ef
lea esi, [eax + 0xd]
jmp 0x419307
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x419316
push edi
call ebx
xor edi, edi
test esi, esi
sete byte [ebp - 0xd]
test edi, edi
je 0x419323
push edi
call ebx
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419349
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0xd]
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 0x419360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ab78
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x474454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], edi
je 0x4193b1
push 1
push 0x45f7dc
lea ecx, [ebp + 0x18]
call fcn.00401c80
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00418d70
push eax
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov byte [ebp - 4], 2
call fcn.00401e80
mov eax, dword [eax]
mov edx, dword [ebp + 0x14]
add esp, 0x14
push 0x2001f
push eax
push edx
lea ecx, [ebp - 0x28]
call fcn.00404a30
test eax, eax
mov eax, dword [ebp - 0x18]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41940b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41942e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41947a
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x419440
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419466
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov esi, dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
push edi
push eax
push esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x4194a9
mov edi, eax
jmp 0x4194b6
mov edi, dword [ebp - 0x18]
sub edi, 4
neg edi
sbb edi, edi
and edi, 0xd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [eax], ecx
test esi, esi
je 0x4194cd
push esi
call ebx
xor esi, esi
test edi, edi
sete byte [ebp - 0xd]
test esi, esi
je 0x4194da
push esi
call ebx
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419500
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret