joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1133f24d
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x11507a8c
call fcn.11364418
sub esp, 0xe18
xor edx, edx
push ebx
cmp dword [0x115a0b94], edx
push esi
push edi
jne 0x1133f454
and byte [ebp - 0x41c], dl
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x41b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xe22]
mov word [ebp - 0xe24], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x622]
mov word [ebp - 0x624], dx
rep stosd dword es:[edi], eax
push 0x1151f138
mov dword [0x115a0b94], 1
mov dword [ebp - 0x10], edx
stosw word es:[edi], ax
call fcn.113018fc
push eax
lea eax, [ebp - 0x624]
push 0x115674b0
push eax
call fcn.11364437
add esp, 0x10
lea eax, [ebp - 0x624]
mov esi, 0x400
mov ebx, 0x1159f65c
push eax
lea eax, [ebp - 0xe24]
push esi
push eax
push ebx
push 0x1151f168
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edi, edi
cmp eax, edi
jbe 0x1133f335
cmp word [ebp - 0x626], di
jne 0x1133f335
lea eax, [ebp - 0x41c]
push esi
push eax
lea eax, [ebp - 0xe24]
push eax
call fcn.113fbd70
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], edi
jne 0x1133f417
lea ecx, [ebp - 0x18]
call fcn.11394c60
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.11394dd0
test eax, eax
mov edi, 0x1151f170
je 0x1133f3a4
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
push edi
call fcn.113951f0
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x1133f3a4
cmp dword [ebp - 0x10], esi
jae 0x1133f397
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.113647e0
add esp, 0xc
jmp 0x1133f39b
and dword [ebp - 0x10], 0
push dword [ebp - 0x1c]
call fcn.114ef297
pop ecx
lea ecx, [ebp - 0x18]
call fcn.11394e20
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.11394d50
cmp dword [ebp - 0x10], 0
jne 0x1133f417
push 0x800
lea eax, [ebp - 0xe24]
push 0
push eax
call fcn.11364b20
add esp, 0xc
lea eax, [ebp - 0xe24]
push esi
push eax
push ebx
push edi
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
jbe 0x1133f411
cmp word [ebp - 0x626], 0
jne 0x1133f411
lea eax, [ebp - 0x41c]
push esi
push eax
lea eax, [ebp - 0xe24]
push eax
call fcn.113fbd70
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1133f454
cmp dword [ebp - 0x10], 4
jbe 0x1133f454
lea eax, [ebp - 0x41c]
test eax, eax
je 0x1133f454
cmp dword [ebp - 0x41c], 1
je 0x1133f454
movzx eax, word [ebp - 0x400]
lea eax, [eax + eax + 0x22]
test eax, eax
je 0x1133f454
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffffc
cmp eax, ecx
ja 0x1133f454
mov eax, dword [ebp - 0x414]
mov dword [0x115a0b90], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1134083c
Capabilities:
Link many functions at runtime

Disassembly:
mov ecx, 0x115a0b98
jmp 0x1134085c
push esi
mov esi, ecx
push str.uxtheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
mov dword [esi + 0x1c], eax
cmp eax, ecx
je 0x113408d5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsAppThemed
push eax
call edi
push str.IsThemeActive
mov dword [esi], eax
push dword [esi + 0x1c]
call edi
push str.OpenThemeData
mov dword [esi + 4], eax
push dword [esi + 0x1c]
call edi
push str.CloseThemeData
mov dword [esi + 8], eax
push dword [esi + 0x1c]
call edi
push str.GetThemeBackgroundContentRect
mov dword [esi + 0xc], eax
push dword [esi + 0x1c]
call edi
push str.DrawThemeBackground
mov dword [esi + 0x10], eax
push dword [esi + 0x1c]
call edi
push str.GetThemePartSize
mov dword [esi + 0x14], eax
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x18], eax
pop edi
jmp 0x113408e9
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov eax, esi
pop esi
ret

Function at 0x113413c7
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
call fcn.113938d0
test eax, eax
je 0x113413e7
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x113413ee
mov dword [0x115a0bc8], 0x57
xor eax, eax
jmp 0x11341480
push esi
push edi
push 0xf003f
push ebx
push ebx
mov dword [ebp - 4], ebx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1134142b
push 0x10
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
je 0x1134142b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov dword [0x115a0bc8], ebx
jne 0x11341464
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x115a41e0], ebx
mov dword [0x115a0bc8], eax
je 0x11341464
push eax
push eax
push str.CTSDEncryptDrv:_StartService___failed__error_ld_0x_08x__n
push str.TSDEncryptDrv
push 4
push 0x115a394c
call fcn.113a7c00
add esp, 0x18
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, ebx
je 0x11341471
push edi
call esi
cmp dword [ebp - 8], ebx
je 0x1134147b
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x113488db
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, 0x1150882c
call fcn.11364418
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_GetTextColor]
mov dword [ebp - 0x10], eax
mov eax, 0x115a0d78
neg eax
sbb eax, eax
and eax, dword [0x115a0d7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [0x115a0d0c]
mov ecx, ebx
push eax
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.114f8550
xor esi, esi
cmp dword [ebp + 0x20], esi
je 0x1134894c
push 1
lea eax, [ebp + 0xc]
push 1
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [0x115a0d0c]
push dword [0x115a0d08]
jmp 0x1134895d
cmp dword [ebp + 0x24], esi
je 0x11348968
push dword [0x115a0d08]
push dword [0x115a0d0c]
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.114f8550
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], vtable.CGdiObject.0
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0x1151d32c
push esi
push str.Marlett
push 0x50
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 2
call fcn.114f85e5
mov eax, dword [ebx]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, ebx
call dword [eax + 0x28]
lea esi, [ebp + 0xc]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add eax, 2
neg ecx
sbb ecx, ecx
movsd dword es:[edi], dword [esi]
and ecx, 0x787878
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x30]
push 1
push 0x36
lea ecx, [ebp + 8]
call fcn.114e23ca
mov eax, dword [ebp + 8]
mov edx, dword [ebx]
lea esi, [ebp - 0x28]
push 0x25
mov ecx, dword [eax - 8]
push esi
push ecx
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call dword [edx + 0x68]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.114e9faf
mov eax, dword [ebx]
push dword [ebp + 0x20]
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
push dword [ebp - 0x10]
mov ecx, ebx
call dword [eax + 0x30]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x1151d32c
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], vtable.CGdiObject.0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 5
call fcn.114f3bb7
mov ecx, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x11351420
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x1135143d
xor eax, eax
jmp 0x113514c9
mov edx, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [esi + 0x370]
lea ecx, [esi + 0x378]
mov dword [eax], edx
mov dword [eax + 4], edi
mov dword [ecx], edx
mov dword [ecx + 4], edi
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, edx
mov dword [ebp - 8], eax
mov eax, edi
mov dword [ebp - 4], eax
lea eax, [esi + 0x310]
mov dword [ebp - 0x10], ebx
mov dword [eax], edx
mov dword [eax + 4], edi
test byte [esi + 0x3bc], 2
jne 0x1135148d
test edx, edx
jl 0x1135149c
cmp edi, 0xffffffff
jne 0x1135149c
and dword [ebp - 0xc], 0
mov ecx, esi
call fcn.11356577
dec eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [esi + 0x380]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.113514ce
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.114eb5d7
push 1
pop eax
pop edi
mov dword [esi + 0x368], eax
pop ebx
pop esi
leave
ret 8
Function at 0x11359b73
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x158]
dec eax
je 0x11359ce0
dec eax
je 0x11359cd4
dec eax
je 0x11359c68
dec eax
je 0x11359c23
dec eax
je 0x11359be9
dec eax
jne 0x11359d1e
xor edi, edi
cmp dword [ebp + 8], edi
je 0x11359c2a
test byte [esi + 0x80], 1
je 0x11359c7c
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 4
push edi
push 0xb1
push dword [esi + 0x1c]
call ebx
push edi
push edi
push 0xb7
push dword [esi + 0x1c]
call ebx
mov dword [esi + 0x158], 1
jmp 0x11359d1e
xor edi, edi
cmp dword [ebp + 8], edi
je 0x11359c7c
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0x11
push 0xb1
push dword [esi + 0x1c]
call ebx
push edi
push edi
push 0xb7
push dword [esi + 0x1c]
call ebx
mov dword [esi + 0x158], 6
jmp 0x11359d1e
xor edi, edi
cmp dword [ebp + 8], edi
je 0x11359c59
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x10
push 0xe
push 0xb1
push dword [esi + 0x1c]
call ebx
push edi
push edi
push 0xb7
push dword [esi + 0x1c]
call ebx
mov dword [esi + 0x158], 5
jmp 0x11359d1e
test byte [esi + 0x80], 1
jne 0x11359cf4
jmp 0x11359bf4
xor edi, edi
cmp dword [ebp + 8], edi
je 0x11359ca8
test byte [esi + 0x80], 2
je 0x11359bbb
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0xd
push 0xb
push 0xb1
push dword [esi + 0x1c]
call ebx
push edi
push edi
push 0xb7
push dword [esi + 0x1c]
call ebx
mov dword [esi + 0x158], 4
jmp 0x11359d1e
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 7
push 5
push 0xb1
push dword [esi + 0x1c]
call ebx
push edi
push edi
push 0xb7
push dword [esi + 0x1c]
call ebx
mov dword [esi + 0x158], 2
jmp 0x11359d1e
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x11359cf4
jmp 0x11359bbb
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x11359ca8
test byte [esi + 0x80], 2
jne 0x11359bf4
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0xa
push 8
push 0xb1
push dword [esi + 0x1c]
call ebx
push edi
push edi
push 0xb7
push dword [esi + 0x1c]
call ebx
mov dword [esi + 0x158], 3
push dword [esi + 0x1c]
mov dword [esi + 0x15c], 1
call dword [sym.imp.USER32.dll_HideCaret]
mov ecx, esi
call fcn.11359ada
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x1137c870
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_FindResourceExW]
test eax, eax
je 0x1137c8c9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1137c8c9
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 0x1137c8d0
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x1137c8ad
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 0x1137c8cb
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 0x113823a0
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_FindResourceExW]
test eax, eax
je 0x113823f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x113823f0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x113823f5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x113823db
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x11382402
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 0x1138cfd0
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 0x1138d011
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 0x1138d013
mov esi, edi
test esi, esi
je 0x1138d088
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 0x1138d07d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x1138d07d
cmp dword [esp + 0x1c], eax
jbe 0x1138d04e
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 0x1138d07d
cmp esi, edi
je 0x1138d06f
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 0x1138d088
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 0x1138d0a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x1138d105
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x1138d105
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x1138d105
cmp dword [esp + 0x18], eax
jbe 0x1138d0eb
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x1138d109
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x1138d320
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx]
test esi, esi
push edi
je 0x1138d394
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1138d394
cmp dword [esp + 0x10], 3
jne 0x1138d394
mov edx, dword [esp + 0x18]
push edx
call fcn.114ef26e
mov edi, eax
add esp, 4
test edi, edi
je 0x1138d394
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1138d38b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
pop ecx
ret 8
push edi
call fcn.114ef297
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x1138d3a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1150c54f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x1157c63c]
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 0x1138d40b
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 0x1138d40d
mov esi, edi
test esi, esi
je 0x1138d4d7
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 0x1138d4cc
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x1138d44f
cmp eax, 2
je 0x1138d44f
cmp eax, 6
je 0x1138d44f
cmp eax, 7
jne 0x1138d4cc
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.114ef26e
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 0x1138d4b2
lea ecx, [esp + 0x14]
call fcn.114ea146
cmp esi, dword [esp + 0x14]
je 0x1138d4a7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.114ef297
add esp, 4
jmp 0x1138d4e9
call fcn.114ef297
add esp, 4
lea ecx, [esp + 0x10]
push 0x1159f65c
call fcn.114ea146
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x1138d4d7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1138d4e9
push eax
lea ecx, [esp + 0x14]
call fcn.114ea146
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.114e9d1c
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.114e9faf
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 0x1138d630
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 0x1138d667
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 0x1138d66a
mov esi, dword [ebp + 8]
test esi, esi
je 0x1138d81d
call fcn.114797a0
test eax, eax
je 0x1138d715
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 0x1138d811
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x1138d6b9
cmp eax, 2
je 0x1138d6b9
cmp eax, 6
je 0x1138d6b9
cmp eax, 7
jne 0x1138d811
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call fcn.114ef26e
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 0x1138d7fc
mov ecx, dword [ebp + 0x18]
call fcn.1137e660
cmp esi, dword [ebp + 8]
je 0x1138d7e6
jmp 0x1138d7df
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x1138d721
mov dword [ebp + 0x10], eax
jmp 0x1138d756
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.11365ad0
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 0x1138d811
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x1138d790
cmp eax, 2
je 0x1138d790
cmp eax, 6
je 0x1138d790
cmp eax, 7
jne 0x1138d811
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.114ef26e
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 0x1138d7fc
mov ecx, dword [ebp + 0x18]
call fcn.1137e730
cmp esi, dword [ebp + 8]
je 0x1138d7e6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.114ef297
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.114ef297
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x1159f65c
call fcn.1137e660
cmp esi, dword [ebp + 8]
je 0x1138d81d
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 0x1138da80
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
call fcn.114e7bcd
test esi, esi
je 0x1138db62
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1138db62
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x1138dad9
cmp eax, 2
je 0x1138dad9
cmp eax, 6
je 0x1138dad9
cmp eax, 7
jne 0x1138db62
mov edx, dword [esp + 0x14]
push edi
add edx, 2
push edx
call fcn.114ef26e
mov ebx, eax
mov eax, dword [esp + 0x1c]
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
lea eax, [esp + 0x18]
push eax
push ebx
push 0
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
pop edi
jne 0x1138db59
cmp word [ebx], ax
mov esi, ebx
je 0x1138db44
mov ecx, dword [esp + 0x18]
push esi
mov edx, dword [ecx + 8]
push edx
call fcn.114e7de3
push esi
call fcn.11363fc6
lea esi, [esi + eax*2 + 2]
add esp, 4
cmp word [esi], 0
jne 0x1138db23
push ebx
call fcn.114ef297
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call fcn.114ef297
add esp, 4
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8