joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11ad3ac0
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x22c]
test eax, eax
je 0x11ad3c39
mov eax, dword [esi + 4]
test eax, eax
je 0x11ad3c39
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x230]
mov edi, eax
test ecx, ecx
jbe 0x11ad3b0d
cmp ecx, edi
jae 0x11ad3b0d
mov eax, dword [esi + 0x22c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*8]
cmp ecx, edi
ja 0x11ad3c39
mov dword [esi + 0x230], edi
mov dword [esi + 0x224], 1
mov dword [esi + 0x228], 0
mov eax, dword [0x11b50540]
test eax, eax
je 0x11ad3b58
mov edx, dword [esi + 0x210]
lea eax, [esi + 8]
push edx
push eax
push 0
push 1
push str.CTDesktopMgr::CTDesktopThread::CTDesktopWnd::BringSelfToTop_2__Prev___Need:__d___TopWndLoopNum:__d___desktop:__s___topmost:__d_
push 0x11b361d0
push 0xffffffffffffffff
push 0x11b4fcac
call fcn.11afff30
add esp, 0x20
push esi
push 0x11ad3c40
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x11b50540]
test eax, eax
je 0x11ad3b9f
mov ecx, dword [esi + 0x210]
mov eax, dword [esi + 0x228]
lea edx, [esi + 8]
push ecx
mov ecx, dword [esi + 0x224]
push edx
push eax
push ecx
push str.CTDesktopMgr::CTDesktopThread::CTDesktopWnd::BringSelfToTop_3__Next___Need:__d___TopWndLoopNum:__d___desktop:__s___topmost:__d_
push 0x11b361d0
push 0xffffffffffffffff
push 0x11b4fcac
call fcn.11afff30
add esp, 0x20
mov eax, dword [esi + 0x224]
test eax, eax
jne 0x11ad3bc0
mov eax, dword [esi + 0x238]
test eax, eax
jbe 0x11ad3bc0
cmp eax, edi
jae 0x11ad3bc0
add eax, 0x493e0
cmp eax, edi
ja 0x11ad3c39
mov dword [esi + 0x238], edi
mov eax, dword [esi + 0x218]
xor edi, edi
test eax, eax
jle 0x11ad3c39
push ebx
xor ebx, ebx
mov eax, dword [esi + 0x214]
mov edx, dword [0x11b4b90c]
push 0
push 0
mov ecx, dword [ebx + eax]
push edx
push ecx
mov ecx, dword [esi + 4]
call fcn.11adcbb0
mov eax, dword [0x11b50540]
test eax, eax
je 0x11ad3c2a
mov edx, dword [esi + 0x210]
mov ecx, dword [esi + 0x214]
lea eax, [esi + 8]
push edx
mov edx, dword [ebx + ecx]
push eax
push edi
push edx
push str.CTDesktopMgr::CTDesktopThread::CTDesktopWnd::BringSelfToTop_4__hWnd:__08x___i___d__________desktop:__s___topmost:__d_
push 0x11b361d0
push 0xffffffffffffffff
push 0x11b4fcac
call fcn.11afff30
add esp, 0x20
mov eax, dword [esi + 0x218]
inc edi
add ebx, 0x58
cmp edi, eax
jl 0x11ad3bd5
pop ebx
pop edi
pop esi
ret
Function at 0x11ad97e0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x208
mov eax, 1
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 4], edi
je 0x11ad9973
mov eax, dword [esi + 0x428]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x11ad9813
mov dword [esi + 0x428], edi
cmp dword [esi + 0x428], edi
jne 0x11ad9971
lea ebp, [esi + 8]
push ebp
call fcn.11b0211b
mov ebx, dword [esp + 0x220]
add esp, 4
test eax, eax
jbe 0x11ad9871
mov word [esp + 0x10], di
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0x104
push ecx
push ebx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetClassNameW]
lea edx, [esp + 0x10]
push ebp
push edx
call fcn.11b022d6
add esp, 8
test eax, eax
je 0x11ad9962
lea ebp, [esi + 0x210]
push ebp
call fcn.11b0211b
add esp, 4
test eax, eax
jbe 0x11ad98c1
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push 0x104
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x10]
push ebp
push ecx
call fcn.11b022d6
add esp, 8
test eax, eax
je 0x11ad9962
mov eax, dword [esi + 0x420]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
je 0x11ad98e4
push 0xfffffffffffffff0
push ebx
call edi
mov ecx, dword [esi + 0x420]
mov edx, ecx
and edx, eax
cmp edx, ecx
jne 0x11ad9962
mov eax, dword [esi + 0x424]
test eax, eax
je 0x11ad9901
push 0xffffffffffffffec
push ebx
call edi
mov ecx, dword [esi + 0x424]
mov edx, ecx
and edx, eax
cmp edx, ecx
jne 0x11ad9962
mov edi, dword [esi + 0x418]
mov eax, dword [esi + 0x41c]
inc edi
test eax, eax
mov dword [esi + 0x418], edi
mov ecx, edi
je 0x11ad991e
cmp ecx, eax
jb 0x11ad9962
push ebx
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [0x11b50540]
test ecx, ecx
je 0x11ad994a
push eax
push ebx
push str.CTFWTest::IsRelatedWnd_________hWnd:__08x___hParent:__08x_
push 0x11b361d0
push 0xffffffffffffffff
push 0x11b4fcac
call fcn.11afff30
add esp, 0x18
mov dword [esi + 0x428], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 4
Function at 0x11adc510
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x11b2c205
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.11afecb0
xor edi, edi
lea ecx, [esi + 0x40]
mov dword [esp + 0x14], edi
call fcn.11afbc70
mov dword [esi + 0x60], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x64], edi
lea ecx, [esi + 0x70]
mov byte [esp + 0x14], 2
call fcn.11ad9af0
lea ecx, [esi + 0xac]
mov byte [esp + 0x14], 3
call fcn.11afbc70
push 0xa
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 4
call fcn.11afaeb0
lea ecx, [esi + 0xe8]
mov byte [esp + 0x14], 5
call fcn.11afbc70
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x108], edi
mov dword [esi + 0x114], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xe4], edi
mov dword [esi], 0x11b2f83c
mov dword [esi + 0xa8], 0x2bf20
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x11adf0b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x11b2c580
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
push 1
lea eax, [esi + 0x50]
lea ecx, [esp + 0xc]
push eax
call fcn.11afc1a0
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esi + 0x70]
mov dword [esp + 0x30], edi
call fcn.11ade750
lea ecx, [esp + 8]
mov dword [esi + 0x80], edi
mov dword [esp + 0x28], 0xffffffff
call fcn.11afc200
lea ecx, [esi + 0x84]
push 1
push ecx
lea ecx, [esp + 0x1c]
call fcn.11afc1a0
mov eax, dword [esi + 0xa4]
mov dword [esp + 0x28], 1
cmp eax, edi
je 0x11adf136
push eax
call fcn.11b01c86
add esp, 4
mov dword [esi + 0xa4], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xa8], edi
lea ecx, [esp + 0x14]
mov dword [esi + 0xb4], edi
mov dword [esp + 0x28], 0xffffffff
call fcn.11afc200
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x11aed9b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x11aed9fe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x11aed9fe
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x11aeda03
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x11aed9e9
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x11aeda13
test esi, esi
jne 0x11aeda31
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x11aeda2f
mov byte [eax + esi - 1], 0
jne 0x11aeda38
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x11af3190
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 0x11af31e0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x11af31e0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x11af31e5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x11af31cb
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x11af31f2
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 0x11afc740
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 0x11afc781
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 0x11afc783
mov esi, edi
test esi, esi
je 0x11afc7f8
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 0x11afc7ed
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x11afc7ed
cmp dword [esp + 0x1c], eax
jbe 0x11afc7be
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 0x11afc7ed
cmp esi, edi
je 0x11afc7df
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 0x11afc7f8
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 0x11afca90
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 0x11afcb04
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
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 0x11afcb04
cmp dword [esp + 0x10], 3
jne 0x11afcb04
mov edx, dword [esp + 0x18]
push edx
call fcn.11b01c91
mov edi, eax
add esp, 4
test edi, edi
je 0x11afcb04
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x11afcafb
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.11b01c86
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x11afcb10
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x11b2d15f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x11b2f9f8]
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 0x11afcb7b
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 0x11afcb7d
mov esi, edi
test esi, esi
je 0x11afcc47
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 0x11afcc3c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x11afcbbf
cmp eax, 2
je 0x11afcbbf
cmp eax, 6
je 0x11afcbbf
cmp eax, 7
jne 0x11afcc3c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.11b01c91
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 0x11afcc22
lea ecx, [esp + 0x14]
call fcn.11aea1d0
cmp esi, dword [esp + 0x14]
je 0x11afcc17
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.11b01c86
add esp, 4
jmp 0x11afcc59
call fcn.11b01c86
add esp, 4
lea ecx, [esp + 0x10]
push 0x11b4fb3c
call fcn.11aea1d0
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x11afcc47
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x11afcc59
push eax
lea ecx, [esp + 0x14]
call fcn.11aea1d0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.11ae9540
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.11ae9f70
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 0x11afd9c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x11b2d228
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x11afda16
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x11afda19
mov esi, dword [ebp + 8]
test esi, esi
je 0x11afdb03
call fcn.11b128e0
test eax, eax
je 0x11afda9e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x11afda67
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
lea eax, [ebx + ebx]
add eax, 3
and al, 0xfc
call fcn.11b03490
mov edi, esp
test edi, edi
je 0x11afda67
mov eax, dword [ebp + 0x10]
push ebx
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x11afda69
xor edi, edi
mov ebx, dword [ebp + 0x18]
push ebx
call fcn.11b0211b
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x11afdaf7
cmp esi, dword [ebp + 8]
je 0x11afda97
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x11afdb05
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.11ae9810
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [ebp + 0x10]
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x11afdae8
cmp esi, dword [ebp + 8]
je 0x11afdad2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.11ae9f70
mov eax, 1
jmp 0x11afdb05
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.11ae9f70
cmp esi, dword [ebp + 8]
je 0x11afdb03
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
Function at 0x11afebd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x11afec06
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0xc]
or eax, 0x20019
push esi
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x11afec08
mov esi, dword [ebx]
test esi, esi
je 0x11afec93
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x11afec38.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x11afec38.2
jmp dword [eax*4 + 0x11afec9c]
mov edi, 1
jmp case.0x11afec38.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x11afec38.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x11afec38.0
cmp eax, 2
je case.0x11afec38.0
cmp eax, 6
je case.0x11afec38.0
cmp eax, 7
je case.0x11afec38.0
xor edi, edi
jmp case.0x11afec38.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x11afec8b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x11afee80
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x11afef15
push ebx
push edi
mov edi, dword [esi + 0x20]
mov ebx, 4
test edi, edi
je 0x11afeecf
call fcn.11b12970
test eax, eax
je 0x11afeecf
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x11afeebc
mov ecx, dword [eax + 0x3c]
add ecx, eax
je 0x11afeebc
mov ebx, dword [ecx + 0x64]
lea eax, [edi - 0x2000]
cmp ebx, eax
jbe 0x11afeec8
add edi, ebx
mov ebx, 0x10004
jmp 0x11afeed1
xor edi, edi
lea ecx, [esi + 4]
push ecx
push ebx
push esi
push 0x11aff0d0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 8], eax
test eax, eax
pop ebx
je 0x11afef15
mov ecx, dword [esi + 0x24]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x11afef04
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x11afef40
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x11afef54
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 0
push ecx
push 2
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x11afefa0
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x11b01010
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov edx, ecx
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
add edx, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x18]
push eax
push edx
push 0x11b44d98
push ecx
call fcn.11b023d8
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
xor esi, esi
push edx
push eax
push 0x80000002
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x11b010ea
mov edi, dword [esp + 0x220]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
push ebx
push edi
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call ebp
mov eax, dword [esp + 0x14]
cmp eax, 2
jb 0x11b010d0
add eax, 2
mov dword [esp + 0x14], eax
shr eax, 1
lea ecx, [eax + eax]
push ecx
call fcn.11b01c91
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x11b010d0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push ebx
push edi
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8
Function at 0x11b01100
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov edx, ecx
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
add edx, 4
push eax
push edx
lea ecx, [esp + 0x20]
push 0x11b44d98
push ecx
call fcn.11b023d8
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 0xc], esi
push edx
push eax
push 0x80000002
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x11b01199
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x224]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x210
ret 8

Function at 0x11b013c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push 0x80000002
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x11b0145a
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x11b01444
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.11b01c91
mov esi, eax
add esp, 4
test esi, esi
je 0x11b01444
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8