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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6132f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
call fcn.005ecf28
mov ecx, dword [ebp + 0xc]
lea edi, [esi + 0x28]
push ecx
mov ecx, edi
call fcn.005ecf28
mov ecx, edi
call fcn.005e2360
mov ecx, edi
call fcn.005e226f
mov edx, dword [ebp + 8]
push ebx
push edx
call fcn.005c24cf
add esp, 8
test eax, eax
je 0x53d094
mov dword [esi + 0x2c], ebx
mov dword [esi + 8], ebx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 4]
push ebx
push ebx
push eax
mov dword [esi + 0x2c], 1
mov dword [ebp - 4], ebx
call fcn.005b8cb0
mov ecx, dword [esi + 4]
call fcn.005b8f00
mov ecx, dword [esi + 4]
push ebx
mov dword [esi + 8], eax
call fcn.005b9630
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x53d120
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x613300
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esp
xor eax, eax
push 0x69dc58
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x24], edi
call fcn.005ecf28
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 0x28]
push eax
mov ecx, ebx
call fcn.005ecf28
mov ecx, ebx
call fcn.005e2360
mov ecx, ebx
call fcn.005e226f
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x30]
test eax, eax
jne 0x53d1b2
mov dword [esi + 0x2c], eax
mov dword [esi + 8], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
push 0
push edi
mov dword [esi + 0x2c], 1
mov dword [ebp - 4], 0
call fcn.005b8d10
mov ecx, dword [esi + 4]
call fcn.005b8f00
mov ecx, dword [esi + 4]
push 0
mov dword [esi + 8], eax
call fcn.005b9630
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x546a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6137af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x62910c]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 8], eax
mov dword [esp + 0x28], 1
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov byte [esp + 0x28], 2
cmp eax, edi
jle 0x546b30
push ebx
push ebp
mov bl, 4
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*8]
mov edx, dword [eax + edi*8 + 4]
lea eax, [eax + edi*8]
cmp ecx, edx
ja 0x546b22
jne 0x546a9a
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004d76c0
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call fcn.00480c20
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x18]
jmp 0x546af6
mov eax, dword [eax + 4]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004d76c0
mov ebp, eax
mov edx, dword [esi + 4]
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], bl
mov eax, dword [edx + edi*8]
push eax
push ecx
call fcn.004d76c0
add esp, 0x10
mov edx, dword [ebp]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s__s
push ecx
mov byte [esp + 0x40], 5
call fcn.00483a80
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.00480a70
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x20]
call fcn.00480a70
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x546b14
push 0x687f00
lea ecx, [esp + 0x14]
call fcn.004816b0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.00481710
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x546a5b
pop ebp
pop ebx
mov esi, dword [esp + 0x30]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0047fff0
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call fcn.00480a70
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.00480a70
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x59d5b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x61b155
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov edx, dword [esp + 0x18]
push ebx
push esi
mov esi, dword [esp + 0x1c]
lea eax, [edx + edx*2]
push edi
mov edi, esi
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 3
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x59d6a4
inc edx
push ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], esi
test esi, esi
mov dword [esp + 0x1c], 0
je 0x59d685
mov ecx, dword [0x62910c]
mov dword [esi], ecx
mov edx, dword [0x62910c]
lea edi, [esi + 4]
mov dword [edi], edx
lea ebp, [esi + 8]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.00545db0
lea ebx, [esi + 0x3c]
mov byte [esp + 0x1c], 3
mov ecx, ebx
call fcn.00545db0
mov eax, dword [0x62910c]
mov dword [esi + 0x74], eax
push 0x69dc58
mov ecx, esi
mov byte [esp + 0x20], 5
call fcn.00480d50
push 0x69dc58
mov ecx, edi
call fcn.00480d50
mov ecx, ebp
call fcn.00546050
mov ecx, ebx
call fcn.00546050
push 0x69dc58
lea ecx, [esi + 0x74]
mov dword [esi + 0x70], 0
call fcn.00480d50
mov eax, dword [esp + 0x28]
add esi, 0x78
dec eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
jne 0x59d5fd
pop ebp
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x59d6c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x61b1a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov edx, dword [esp + 0x18]
push ebx
mov ecx, edx
push esi
mov esi, dword [esp + 0x1c]
push edi
shl ecx, 4
add ecx, edx
xor eax, eax
shl ecx, 3
mov ebx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x59d7c6
inc edx
push ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], esi
test esi, esi
mov dword [esp + 0x1c], 0
je 0x59d7a4
mov ecx, dword [0x62910c]
mov dword [esi], ecx
mov edx, dword [0x62910c]
lea edi, [esi + 4]
mov dword [edi], edx
lea ebp, [esi + 8]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.00545db0
lea ebx, [esi + 0x3c]
mov byte [esp + 0x1c], 3
mov ecx, ebx
call fcn.00545db0
mov eax, dword [0x62910c]
mov dword [esi + 0x80], eax
push 0x69dc58
mov ecx, esi
mov byte [esp + 0x20], 5
call fcn.00480d50
push 0x69dc58
mov ecx, edi
call fcn.00480d50
mov ecx, ebp
call fcn.00546050
mov ecx, ebx
call fcn.00546050
xor eax, eax
push 0x69dc58
mov dword [esi + 0x78], eax
lea ecx, [esi + 0x80]
mov dword [esi + 0x70], eax
mov dword [esi + 0x7c], eax
call fcn.00480d50
mov eax, dword [esp + 0x28]
add esi, 0x88
dec eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
jne 0x59d70e
pop ebp
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x5a06e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61b66f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x682534]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], 1
mov cl, byte [eax + 0xf]
mov dl, byte [eax + 0xe]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 0xd]
mov dl, byte [eax + 0xc]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 0xb]
mov dl, byte [eax + 0xa]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 9]
mov dl, byte [eax + 8]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 6]
mov dx, word [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push str._08lX__04lX__04lX__02lX_02lX__02lX_02lX_02lX_02lX_02lX_02lX
push ecx
call fcn.005e20b1
mov esi, dword [esp + 0x50]
add esp, 0x34
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.005ecafe
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.005ecd91
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5a3de0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00466c20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x5a3eab
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x5a3eab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x5a3e5e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x5a3e69
or bh, 8
and edi, 0x8000000
je 0x5a3e84
mov eax, dword [0x6a79dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x5a3eab
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5a4280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x5a42ab
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x5a42cf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x5a42ea
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x5a6fd0
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [0x6a582c]
xor eax, eax
sub esp, 0x800
cmp ecx, eax
je 0x5a701c
mov ecx, dword [esp + 0x804]
mov word [esp], ax
mov word [esp + 0x7fe], ax
lea eax, [esp + 0x808]
push eax
push ecx
lea edx, [esp + 8]
push 0x3ff
push edx
call fcn.005c1b2f
add esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x800
ret
Function at 0x5a7480
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 0x5a74c1
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x5a74c3
mov esi, edi
test esi, esi
je 0x5a7538
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
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 0x5a752d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x5a752d
cmp dword [esp + 0x1c], eax
jbe 0x5a74fe
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 0x5a752d
cmp esi, edi
je 0x5a751f
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 0x5a7538
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 0x5a7690
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x5a76ef
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x5a76ef
cmp dword [esp + 0xc], 3
jne 0x5a76ef
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x5a76ef
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x5a76ef
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x5a7850
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x61b98f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x682534]
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 0x5a78bb
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x5a78bd
mov esi, edi
test esi, esi
je 0x5a7987
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_RegQueryValueExW]
test eax, eax
jne 0x5a797c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x5a78ff
cmp eax, 2
je 0x5a78ff
cmp eax, 6
je 0x5a78ff
cmp eax, 7
jne 0x5a797c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.005ed45a
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_RegQueryValueExW]
test eax, eax
push ebp
jne 0x5a7962
lea ecx, [esp + 0x14]
call fcn.005ecf28
cmp esi, dword [esp + 0x14]
je 0x5a7957
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.005ed483
add esp, 4
jmp 0x5a7999
call fcn.005ed483
add esp, 4
lea ecx, [esp + 0x10]
push 0x69dc58
call fcn.005ecf28
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x5a7987
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5a7999
push eax
lea ecx, [esp + 0x14]
call fcn.005ecf28
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.005ecafe
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.005ecd91
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 0x5a7ae0
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 0x5a7b17
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_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x5a7b1a
mov esi, dword [ebp + 8]
test esi, esi
je 0x5a7ccd
call fcn.004d8390
test eax, eax
je 0x5a7bc5
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 0x14]
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5a7cc1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x5a7b69
cmp eax, 2
je 0x5a7b69
cmp eax, 6
je 0x5a7b69
cmp eax, 7
jne 0x5a7cc1
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call fcn.005ed45a
mov edx, dword [ebp + 0xc]
mov ebx, eax
xor eax, eax
mov edi, ebx
lea ecx, [edx + 2]
add esp, 4
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 0x5a7cac
mov ecx, dword [ebp + 0x18]
call fcn.00480d50
cmp esi, dword [ebp + 8]
je 0x5a7c96
jmp 0x5a7c8f
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x5a7bd1
mov dword [ebp + 0x10], eax
jmp 0x5a7c06
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00466c20
mov edx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x10], edi
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5a7cc1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x5a7c40
cmp eax, 2
je 0x5a7c40
cmp eax, 6
je 0x5a7c40
cmp eax, 7
jne 0x5a7cc1
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.005ed45a
mov ecx, dword [ebp + 0xc]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
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 0x5a7cac
mov ecx, dword [ebp + 0x18]
call fcn.00480e20
cmp esi, dword [ebp + 8]
je 0x5a7c96
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.005ed483
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.005ed483
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x69dc58
call fcn.00480d50
cmp esi, dword [ebp + 8]
je 0x5a7ccd
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 0x5a86e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61ba58
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x5a8736
lea ecx, [ebp + 0x14]
mov ebx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0xc]
or ecx, 0x20006
push edx
push 0
push ecx
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x5a873b
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x5a882a
call fcn.004d8390
test eax, eax
je 0x5a878a
mov edi, dword [ebp + 0x18]
push edi
call fcn.00465c4f
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0x10]
push edx
push edi
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x5a881f
cmp esi, ebx
je 0x5a8780
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x5a882c
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x5a8795
xor edi, edi
jmp 0x5a87ca
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00466c20
mov ecx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push edx
call fcn.0047aad0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x5a8810
cmp esi, ebx
je 0x5a87fa
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0047b2e0
mov eax, 1
jmp 0x5a882c
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0047b2e0
cmp esi, ebx
je 0x5a882a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret