joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414e8f
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x414ec5
mov dword [ebp - 0xc], 1
jmp 0x414fbe
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 4], 0
jne 0x414f13
cmp dword [ebp - 0x14], 0x7a
je 0x414f13
mov dword [ebp - 0xc], 2
jmp 0x414fbe
mov edx, dword [ebp - 0x18]
push edx
call fcn.005568c8
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
call fcn.005568c8
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x414f4f
cmp dword [ebp - 8], 0
jne 0x414f58
mov dword [ebp - 0xc], 3
jmp 0x414fbe
mov edx, dword [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call fcn.00431600
add esp, 0xc
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00431600
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x414fb4
mov dword [ebp - 0xc], 4
jmp 0x414fbe
xor edx, edx
test edx, edx
jne 0x414eb3
cmp dword [ebp - 8], 0
je 0x414fdd
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005568f1
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
jne 0x415008
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x415008
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005568f1
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, 0x5e2dd8
call fcn.00405660
test eax, eax
je 0x415056
cmp dword [ebp + 8], 0
je 0x415024
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
jmp 0x41502b
mov dword [ebp - 0x30], 0x5b8a40
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
push str.CKSecurity::GetSid_____ret:__d___myerror:__d___Name:__s___Sid:__08x_
push 0x5b8ae0
push 0xffffffffffffffff
push 0x5e2ddc
call fcn.00481d20
add esp, 0x20
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x415da0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x415dd4
mov dword [ebp - 0xc], 1
jmp 0x415ef7
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 8
push 2
push 0xc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x415e1f
mov dword [ebp - 0xc], 2
jmp 0x415ef7
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x1c], 0
jbe 0x415eed
mov dword [ebp - 8], 0
jmp 0x415e42
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x1c]
jae 0x415eed
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x415e79
mov dword [ebp - 0xc], 3
jmp 0x415eed
mov edx, dword [ebp - 0x20]
xor eax, eax
mov al, byte [edx + 1]
and eax, 0x10
test eax, eax
je 0x415e91
mov dword [ebp - 0xc], 4
jmp 0x415eed
mov ecx, dword [ebp - 0x20]
add ecx, 8
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x415ee8
mov dword [ebp - 4], 1
cmp dword [ebp + 0x10], 0x10000000
jne 0x415ee6
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov cl, byte [eax]
test ecx, ecx
jne 0x415ed8
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
and eax, 0x1f0000
cmp eax, 0x1f0000
je 0x415ee6
mov dword [ebp - 0xc], 5
mov dword [ebp - 4], 0
jmp 0x415eed
jmp 0x415e39
xor ecx, ecx
test ecx, ecx
jne 0x415dc2
mov ecx, 0x5e2dd8
call fcn.00405660
test eax, eax
je 0x415f36
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
push str.CKSecurity::IsInAcl_____Inner___ret:__d___myerror:__d___Acl:__08x___Sid:__08x___Mask:__08x___Index:__d_
push str.Security
push 0xffffffffffffffff
push 0x5e2ddc
call fcn.00481d20
add esp, 0x28
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x416036
Capabilities:
Check os version
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov word [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xff
cmp eax, 5
jle 0x416095
push 0x5b9554
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x416095
push 0x5b9564
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41608b
call dword [ebp - 0x10]
mov word [ebp - 8], ax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 8]
and eax, 0xffff
test eax, eax
jne 0x4160ab
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 8], ax
mov ax, word [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x416584
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56feb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x14]
call fcn.00556265
mov dword [ebp - 4], 0
push 0
push str._force
lea ecx, [ebp - 0x14]
call fcn.00552bb7
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp - 0x10], 0xffffffff
setne al
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005561f7
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4165f6
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fee4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x30], ecx
push 0x5d7f48
lea ecx, [ebp - 0x18]
call fcn.00556265
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00556265
mov byte [ebp - 4], 1
push 0
push str._icon
lea ecx, [ebp - 0x1c]
call fcn.00552bb7
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4166ea
mov eax, dword [ebp - 0x10]
add eax, 5
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00552984
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00403570
test eax, eax
jne 0x4166de
push 0
lea ecx, [ebp - 0x20]
call fcn.00416820
movsx edx, al
cmp edx, 0x22
jne 0x4166de
push 0x22
lea ecx, [ebp - 0x20]
call fcn.005531a3
push 0x22
lea ecx, [ebp - 0x20]
call fcn.00556718
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x4166de
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00552ab9
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.00556330
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.005561f7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.005561f7
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x18]
call fcn.00403570
test eax, eax
jne 0x41671c
push 0x2050
push 0
push 0
push 1
lea ecx, [ebp - 0x18]
call fcn.004035b0
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.005561f7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.005561f7
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570146
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x18], ecx
push str.AgentExtendedInfo.dat
lea eax, [ebp - 0x14]
push eax
call fcn.00402b37
add esp, 8
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
call fcn.004035b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005561f7
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41e96e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x41e9b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41e9b3
mov ecx, dword [ebp - 0xc]
add ecx, 0xc
call fcn.004035b0
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0055d3e4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41ea69
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57083c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
push edi
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x40]
add ecx, 0x4c
call fcn.00423de0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x40]
add ecx, 0x60
call fcn.00556911
mov eax, dword [ebp - 0x40]
mov dword [eax], 0x5802f4
mov dword [ebp - 0x3c], 0
mov ecx, 0xb
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x40]
add edi, 0x18
mov ecx, 0xc
lea esi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x18], 0x2005354
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x2c], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x30], edx
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp + 0x10]
add edx, 0x30
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp + 8]
add ecx, 4
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x48], 0
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x40]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x70], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x448d00
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x448d59
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x448d59
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x448d60
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x448d3d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x448d5b
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x44e830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x44e880
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x44e880
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x44e885
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x44e86b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x44e892
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x459460
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x4594a1
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x4594a3
mov esi, edi
test esi, esi
je 0x459518
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x45950d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x45950d
cmp dword [esp + 0x1c], eax
jbe 0x4594de
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x45950d
cmp esi, edi
je 0x4594ff
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x459518
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x459830
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x572baf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x5b9f20]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x45989b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x45989d
mov esi, edi
test esi, esi
je 0x459967
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45995c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x4598df
cmp eax, 2
je 0x4598df
cmp eax, 6
je 0x4598df
cmp eax, 7
jne 0x45995c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.005568c8
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x459942
lea ecx, [esp + 0x14]
call fcn.00556380
cmp esi, dword [esp + 0x14]
je 0x459937
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.005568f1
add esp, 4
jmp 0x459979
call fcn.005568f1
add esp, 4
lea ecx, [esp + 0x10]
push 0x580578
call fcn.00556380
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x459967
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x459979
push eax
lea ecx, [esp + 0x14]
call fcn.00556380
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00555f6c
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.005561f7
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x459ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x459af7
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x459afa
mov esi, dword [ebp + 8]
test esi, esi
je 0x459cab
call fcn.0046f2f0
test eax, eax
je 0x459be4
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x459b1b
mov dword [ebp + 0x10], eax
jmp 0x459b4e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00432500
mov ecx, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 0x10], ebx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x459c9f
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x459b88
cmp eax, 2
je 0x459b88
cmp eax, 6
je 0x459b88
cmp eax, 7
jne 0x459c9f
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.005568c8
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x459c8a
mov ecx, dword [ebp + 0x18]
call fcn.0044aaf0
cmp esi, dword [ebp + 8]
je 0x459c74
jmp 0x459c6d
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x459c9f
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x459c1e
cmp eax, 2
je 0x459c1e
cmp eax, 6
je 0x459c1e
cmp eax, 7
jne 0x459c9f
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.005568c8
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x459c8a
mov ecx, dword [ebp + 0x18]
call fcn.0044abc0
cmp esi, dword [ebp + 8]
je 0x459c74
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.005568f1
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.005568f1
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x580578
call fcn.0044abc0
cmp esi, dword [ebp + 8]
je 0x459cab
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x45a430
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [ecx]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x45a478
lea edx, [esp + 0x10]
or eax, 0x20006
push edx
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push 0
push 0
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x45a47a
mov esi, edi
test esi, esi
je 0x45a4ba
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push 4
push eax
push 4
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x45a4af
cmp esi, edi
je 0x45a4a4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
pop ecx
ret 0xc
cmp esi, edi
je 0x45a4ba
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x45a5e0
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [ecx + 4]
push ebx
mov ebx, dword [ecx]
mov ecx, dword [esp + 0xc]
test ecx, ecx
push esi
je 0x45a620
lea edx, [esp + 8]
or eax, 0x20006
push edx
lea edx, [esp + 0x14]
push edx
push 0
push eax
push 0
push 0
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [esp + 0x10]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x45a622
mov esi, ebx
test esi, esi
je 0x45a66d
mov edx, dword [esp + 0x18]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x28]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
jne 0x45a662
cmp esi, ebx
je 0x45a657
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
cmp esi, ebx
je 0x45a66d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc