joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009799
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
movzx eax, word [esi]
push edi
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
je 0x100097c2
cmp word [esi + 2], 0x3a
jne 0x100097c2
cmp word [esi + 4], 0x5c
jne 0x100097c2
lea eax, [esi + 6]
jmp 0x10009803
cmp word [esi], 0x5c
jne 0x1000992e
cmp word [esi + 2], 0x5c
jne 0x1000992e
lea eax, [esi + 4]
push 0x5c
push eax
call fcn.101d1ba9
pop ecx
pop ecx
test eax, eax
je 0x1000992e
add eax, 2
push 0x5c
push eax
call fcn.101d1ba9
pop ecx
pop ecx
test eax, eax
je 0x1000992e
inc eax
inc eax
cmp word [eax], 0
jne 0x10009821
push esi
push str.AIL:CreateDir__s__what___
push 2
call fcn.101d1209
add esp, 0xc
xor eax, eax
inc eax
jmp 0x1000994a
push dword [esp + 0x18]
push esi
call fcn.100096de
pop ecx
pop ecx
test eax, eax
je 0x1000992e
lea edi, [esi + eax*2]
cmp word [edi], 0x5c
jne 0x10009840
inc edi
inc edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5c
push edi
call fcn.101d1ba9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1000985b
xor eax, eax
mov word [edi], ax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100098d7
call ebx
mov ebp, eax
cmp ebp, 0xb7
jne 0x10009886
push esi
push str.AIL:CreateDir__s__already_exist._skip
push 2
call fcn.101d1209
add esp, 0xc
jmp 0x100098d7
test byte [esp + 0x18], 1
je 0x10009925
cmp ebp, 5
jne 0x10009925
push 0x5c
push esi
call fcn.101d1bcf
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
je 0x100098b0
xor eax, eax
mov word [ebp], ax
push esi
call fcn.10015bed
pop ecx
test eax, eax
je 0x10009948
test ebp, ebp
je 0x100098ca
push 0x5c
pop eax
mov word [ebp], ax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100098fd
push esi
call fcn.1000c987
pop ecx
test edi, edi
je 0x10009819
push 0x5c
pop eax
mov word [edi], ax
inc edi
inc edi
cmp word [edi], 0
jne 0x10009846
jmp 0x10009819
call ebx
mov ebp, eax
push ebp
push esi
push str.AIL:CreateDir2__s__err_d
push 1
call fcn.101d1209
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x10009948
push 0x5c
pop eax
mov word [edi], ax
jmp 0x10009948
push ebp
push esi
push str.AIL:CreateDir__s__err_d
jmp 0x10009908
push 0x57
push esi
push str.AIL:CreateDir__s__err_d
push 1
call fcn.101d1209
add esp, 0x10
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10009fc9
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x7f4]
sub esp, 0x874
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp + 0x7f0], eax
mov eax, dword [ebp + 0x800]
push ebx
mov ebx, dword [ebp + 0x7fc]
push esi
push edi
mov edi, dword [ebp + 0x804]
mov esi, 0x104
push esi
push eax
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x5e8]
push ebx
push eax
call fcn.10016b70
push edi
lea eax, [ebp + 0x3e0]
push esi
push eax
call fcn.100075c8
lea eax, [ebp + 0x3e0]
push eax
lea eax, [ebp + 0x5e8]
push eax
push str.AIL:CopyFiles__s___s_
push 3
call fcn.101d1209
add esp, 0x2c
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x5e8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
jne 0x1000a0ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x10275d38], 1
mov esi, eax
je 0x1000a08a
cmp esi, 2
je 0x1000a074
cmp esi, 3
je 0x1000a074
cmp esi, 0x12
jne 0x1000a08a
push str.AIL:CopyFilesno_file
push 3
call fcn.101d0efc
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1000a17e
push esi
push str.AIL:CopyFiles_ff_err_d
push 1
call fcn.101d1209
push 0
push esi
push 0x32810141
call fcn.10019470
add esp, 0x18
xor eax, eax
jmp 0x1000a17e
lea eax, [ebp + 0x3e0]
push eax
call fcn.10007633
pop ecx
test eax, eax
jne 0x1000a0d2
push eax
lea eax, [ebp + 0x3e0]
push eax
call fcn.10009799
pop ecx
pop ecx
test eax, eax
je 0x1000a0a7
xor edi, edi
inc edi
test edi, edi
je 0x1000a173
push esi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x5e8]
push ebx
push eax
call fcn.10016b70
push esi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x3e0]
push eax
lea eax, [ebp + 0x1d8]
push eax
call fcn.10016b70
add esp, 0x20
test byte [ebp - 0x78], 0x10
je 0x1000a144
cmp word [ebp - 0x4c], 0x2e
jne 0x1000a12c
cmp word [ebp - 0x4a], 0
je 0x1000a15e
cmp word [ebp - 0x4a], 0x2e
jne 0x1000a12c
cmp word [ebp - 0x48], 0
je 0x1000a15e
lea eax, [ebp + 0x1d8]
push eax
push dword [ebp - 0x80]
lea eax, [ebp + 0x5e8]
push eax
call fcn.10009fc9
jmp 0x1000a159
push 1
lea eax, [ebp + 0x1d8]
push eax
lea eax, [ebp + 0x5e8]
push eax
call fcn.10009a74
mov edi, eax
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000a0d5
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov ecx, dword [ebp + 0x7f0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101d14d7
add ebp, 0x7f4
leave
ret
Function at 0x1000c1df
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1000c2ab
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1000c2ab
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp + 8]
push ebx
push edi
test eax, eax
jne 0x1000c25c
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ecx
push esi
push 0x59
mov ebx, 0x400
push ebx
call edi
test eax, eax
je 0x1000c254
push closesocket
push esi
call fcn.1001661b
pop ecx
pop ecx
lea ecx, [eax + 2]
cmp ecx, dword [ebp + 0x10]
jge 0x1000c254
push 0x5f
pop ecx
mov word [esi + eax*2], cx
xor ecx, ecx
mov word [esi + eax*2 + 2], cx
mov ecx, dword [ebp + 0x10]
inc eax
sub ecx, eax
push ecx
lea eax, [esi + eax*2]
push eax
push 0x5a
push ebx
call edi
test eax, eax
jne 0x1000c2a9
call fcn.1000c157
mov ecx, dword [ebp + 0x10]
sub eax, 0x404
je 0x1000c29a
sub eax, 0xd
je 0x1000c293
dec eax
je 0x1000c28c
sub eax, 4
je 0x1000c285
sub eax, 0x3ee
je 0x1000c27e
push str.en_US
jmp 0x1000c29f
push str.zh_CN
jmp 0x1000c29f
push str.pt_BR
jmp 0x1000c29f
push str.ko_KR
jmp 0x1000c29f
push str.jp_JP
jmp 0x1000c29f
push str.zh_TW
push ecx
push esi
call fcn.10016ac1
add esp, 0xc
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x1000c31c
Capabilities:
Set registry value

Disassembly:
push dword [ecx + 0xc]
push dword [ecx + 4]
push 7
push 0
push str.PendingFileRenameOperations
push dword [ecx + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1000c34b
push eax
push str.AIL:MoveFileOnReboot:Set_err_d
push 2
call fcn.101d1209
add esp, 0xc
xor eax, eax
ret
xor eax, eax
inc eax
ret

Function at 0x1000c34f
Capabilities:
Delete registry value

Disassembly:
push str.PendingFileRenameOperations
push dword [ecx + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1000c374
push eax
push str.AIL:MoveFileOnReboot:Delete_err_d
push 2
call fcn.101d1209
add esp, 0xc
xor eax, eax
ret
xor eax, eax
inc eax
ret
Function at 0x1000c416
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea esi, [ecx + 0x10]
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [esi], edi
je 0x1000c430
xor eax, eax
jmp 0x1000c582
push ebx
xor ebx, ebx
inc ebx
test byte [ebp + 8], bl
je 0x1000c43c
push 3
pop ebx
call sym.AhnIEx.dll_AhnIEx_IsWow64Process
test eax, eax
je 0x1000c44b
or ebx, 0x100
push esi
push ebx
push edi
push str.SYSTEMCurrentControlSetControlSession_Manager
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1000c47c
cmp eax, 3
je 0x1000c504
cmp eax, 2
je 0x1000c504
push eax
push str.AIL:MoveFileOnReboot:Open_err_d
jmp 0x1000c4fa
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
mov ebx, str.PendingFileRenameOperations
push ebx
push dword [esi]
mov dword [ebp - 8], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call edi
mov dword [ebp + 8], eax
test eax, eax
jne 0x1000c4e4
mov eax, dword [ebp - 8]
test eax, eax
jne 0x1000c4ad
mov dword [ebp + 8], 0xd
jmp 0x1000c4e4
mov ecx, dword [ebp + 0xc]
lea eax, [eax + ecx + 3]
mov ecx, dword [ebp - 4]
push eax
call fcn.1000c2eb
test eax, eax
jne 0x1000c4ca
mov dword [ebp + 8], 0xe
jmp 0x1000c4e4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push dword [eax + 4]
push 0
push 0
push ebx
push dword [esi]
call edi
mov dword [ebp + 8], eax
test eax, eax
je 0x1000c508
mov ecx, dword [ebp - 4]
call fcn.1000c378
cmp dword [ebp + 8], 2
je 0x1000c504
push dword [ebp + 8]
push str.AIL:MoveFileOnReboot:Query_err_d
push 2
call fcn.101d1209
add esp, 0xc
xor eax, eax
jmp 0x1000c581
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 4]
xor edx, edx
inc edx
shr eax, 1
mov ecx, edx
mov dword [ebp + 0xc], 0
je 0x1000c56f
mov edi, dword [esi + 4]
mov dword [ebp + 8], edi
mov ebx, dword [ebp + 8]
cmp word [ebx], 0
je 0x1000c531
xor edx, edx
jmp 0x1000c545
test edx, edx
je 0x1000c539
test ecx, ecx
jne 0x1000c578
xor edx, edx
test ecx, ecx
sete dl
mov ecx, edx
xor edx, edx
inc edx
inc dword [ebp + 0xc]
add dword [ebp + 8], 2
cmp dword [ebp + 0xc], eax
jb 0x1000c524
test edx, edx
jne 0x1000c561
mov word [edi + eax*2], dx
inc eax
test ecx, ecx
sete dl
mov ecx, edx
test ecx, ecx
jne 0x1000c56f
mov ecx, dword [esi + 4]
xor edx, edx
mov word [ecx + eax*2], dx
inc eax
mov ecx, dword [esi + 4]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x1000c929
Capabilities:
Move file

Disassembly:
call sym.AhnIEx.dll_AhnIEx_IsWinNT
test eax, eax
je 0x1000c980
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x1000c949
cmp word [esi], 0
jne 0x1000c943
xor esi, esi
mov eax, esi
test esi, esi
jne 0x1000c94d
mov eax, dword [esp + 8]
push eax
call fcn.1000c666
pop ecx
push 5
push esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
test eax, eax
jne 0x1000c983
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 8]
push str.AIL:ReplaceFileOnReboot__s__err_d
push 1
call fcn.101d1209
add esp, 0x10
xor eax, eax
ret
xor eax, eax
inc eax
ret
Function at 0x1000fba5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
push dword [ebp + 0x14]
call fcn.1001096c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
imul eax, eax, 0x26
push 0x101eeb08
push dword [ebp + 0xc]
lea esi, [eax + ecx]
push esi
call fcn.10016ac1
add esp, 0x14
cmp word [0x10275d80], 0
je 0x1000fbf5
push 0
push 0x10275d80
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov edi, eax
test edi, edi
je 0x1000fc1a
jmp 0x1000fbf8
mov edi, dword [ebp + 8]
push 0x10276580
call fcn.100166e2
pop ecx
push eax
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x1000fc1a
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
pop esi
pop ebp
ret
Function at 0x100113c3
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x44
mov eax, 0x101eccb6
call fcn.101d1901
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp + 0x420]
xor edi, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, edi
je 0x1001157a
cmp ecx, edi
je 0x1001157a
cmp dword [ebp + 0x424], edi
je 0x1001157a
xor eax, eax
push 0x40e
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.101d19d0
add esp, 0xc
push 0x208
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x1001155a
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.servicingPackages
lea eax, [ebp]
push eax
call esi
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x10011546
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call esi
cmp eax, ebx
jne 0x10011532
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
jne 0x1001151d
lea ecx, [ebp - 0x50]
call fcn.1001bbfc
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], edi
call fcn.1001bbd5
cmp al, bl
jne 0x100114f4
push str.package
lea ecx, [ebp - 0x50]
call fcn.1001b9b4
cmp al, bl
jne 0x100114e0
push str.identifier
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x50]
call fcn.1001139b
push dword [ebp - 0x10]
push dword [ebp + 0x424]
push dword [ebp - 0x14]
call fcn.1000108c
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10010ba3
jmp 0x1001150f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
lea eax, [ebp]
push eax
push str.AIL::GetKBPatchNumFromMumFile_FindTagName_fail___s___u_
jmp 0x10011506
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
lea eax, [ebp]
push eax
push str.AIL::GetKBPatchNumFromMumFile_Load__s__fail___u_
push ebx
call fcn.101d1209
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.1001b0b6
jmp 0x10011576
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
lea eax, [ebp]
push eax
push str.AIL::GetKBPatchNumFromMumFile_PathFileExists__s__return_FALSE___u_
push ebx
jmp 0x1001156e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
lea eax, [ebp]
push eax
push str.AIL::GetKBPatchNumFromMumFile_PathAppend_InstallName__return_FALSE___s___u_
jmp 0x1001152f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
lea eax, [ebp]
push eax
push str.AIL::GetKBPatchNumFromMumFile_PathAppend_SERVICING_PACKAGES__return_FALSE___s___u_
jmp 0x1001152f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
lea eax, [ebp]
push eax
push str.AIL::GetKBPatchNumFromMumFile_GetWindowsDirectory_fail___s___u_
push 1
call fcn.101d1209
add esp, 0x10
mov eax, edi
jmp 0x1001157d
push 0x57
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.101d14d7
add ebp, 0x414
leave
ret 0xc
Function at 0x100117a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
mov edx, dword [ebp + 0x1ac]
push ebx
xor ebx, ebx
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp + 0x1a8]
mov dword [ebp - 0x7c], edx
cmp eax, ebx
je 0x10011932
cmp ecx, ebx
je 0x10011932
cmp edx, ebx
je 0x10011932
cmp dword [ebp + 0x1b0], ebx
je 0x10011932
push esi
push edi
lea edx, [ebp - 0x6c]
push edx
push 0x20119
push ebx
push ecx
push eax
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x1001190e
xor eax, eax
push 0x1fc
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push ebx
push eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
call fcn.101d19d0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push str.InstallName
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], 0x1fe
call esi
mov edi, eax
cmp edi, ebx
jne 0x10011906
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push str.CurrentState
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], 4
call esi
mov edi, eax
cmp edi, ebx
jne 0x100118fe
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push str.LastError
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], 4
call esi
test eax, eax
je 0x100118a9
mov dword [ebp - 0x74], ebx
cmp dword [ebp - 0x74], ebx
jne 0x100118f7
mov eax, dword [ebp - 0x78]
cmp eax, 0x70
je 0x100118c7
cmp eax, 7
je 0x100118c7
cmp eax, 0x80
je 0x100118c7
cmp eax, 8
jne 0x100118f7
push dword [ebp + 0x1b0]
mov ecx, dword [ebp - 0x80]
push dword [ebp - 0x7c]
lea eax, [ebp - 0x68]
push eax
call fcn.100113c3
mov edi, eax
cmp edi, ebx
je 0x1001191e
push edi
push dword [ebp - 0x7c]
push str.AIL::GetPatchInfoFromReg_GetKBPatchNumFromMumFile___fail___s___u_
push 1
call fcn.101d1209
add esp, 0x10
jmp 0x1001191e
mov edi, 0x139f
jmp 0x1001191e
push edi
push str.AIL::GetPatchInfoFromReg_RegQueryValueEx_CurrentState__fail___u_
jmp 0x10011914
push edi
push str.AIL::GetPatchInfoFromReg_RegQueryValueEx_InstallName__fail___u_
jmp 0x10011914
push edi
push str.AIL::GetPatchInfoFromReg_RegOpenKeyEx___fail___u_
push 1
call fcn.101d1209
add esp, 0xc
cmp dword [ebp - 0x6c], ebx
je 0x1001192c
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
jmp 0x10011935
push 0x57
pop eax
mov ecx, dword [ebp + 0x198]
xor ecx, ebp
pop ebx
call fcn.101d14d7
add ebp, 0x19c
leave
ret 0x10
Function at 0x10012583
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x70
mov eax, 0x101ecda3
call fcn.101d1901
mov esi, ecx
mov dword [ebp - 0x24], esi
add esi, 4
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.100124b1
lea eax, [ebp - 0x14]
push eax
push 0x20119
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionComponent_Based_ServicingPackages
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x10012741
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x10012739
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x1c], ebx
jbe 0x10012751
mov edi, 0x1fc
xor eax, eax
push edi
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.101d19d0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x28], 0xff
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x10012715
xor eax, eax
push edi
mov word [ebp + 0x200], ax
lea eax, [ebp + 0x202]
push ebx
push eax
call fcn.101d19d0
mov ecx, dword [ebp - 0x24]
add esp, 0xc
push 0xff
lea eax, [ebp + 0x200]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call fcn.100117a2
cmp eax, ebx
jne 0x10012728
lea eax, [ebp + 0x200]
push eax
lea ecx, [ebp - 0x54]
call fcn.10012158
mov eax, dword [esi + 0x18]
push esi
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.100110c7
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.10011ba9
push eax
lea ecx, [ebp - 0x30]
call fcn.10010bbd
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 0xd], al
call fcn.1001100d
cmp byte [ebp - 0xd], bl
je 0x10012728
lea eax, [ebp + 0x200]
push eax
lea ecx, [ebp - 0x70]
call fcn.10012158
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.100123e4
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.1001100d
jmp 0x10012728
push eax
push dword [ebp - 0x18]
push str.AIL::MakeInstalledKBPatchList_RegEnumKeyEx__d__fail___u_
push 1
call fcn.101d1209
add esp, 0x10
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jb 0x10012616
jmp 0x10012751
push eax
push str.AIL::MakeInstalledKBPatchList_RegQueryInfoKey___fail___u_
jmp 0x10012747
push eax
push str.AIL::MakeInstalledKBPatchList_RegOpenKeyEx___fail___u_
push 1
call fcn.101d1209
add esp, 0xc
cmp dword [ebp - 0x14], ebx
je 0x1001275f
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.101d14d7
add ebp, 0x404
leave
ret
Function at 0x10012a87
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp + 0x188], eax
push edi
mov edi, dword [ebp + 0x194]
push 4
push 0x101f6158
push edi
call fcn.101d3a45
add esp, 0xc
test eax, eax
jne 0x10012ad4
lea eax, [edi + 8]
push eax
push 0x104
push edi
call fcn.10016ac1
add esp, 0xc
jmp 0x10012b8e
push 0xc
push str._systemroot_
push edi
call fcn.101d3a45
add esp, 0xc
test eax, eax
jne 0x10012b8e
push esi
push 0x206
push eax
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x7e]
push eax
call fcn.101d19d0
add esp, 0xc
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, 0x104
test eax, eax
je 0x10012b2e
push str.GetSystemWindowsDirectoryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10012b2e
push esi
lea ecx, [ebp - 0x80]
push ecx
call eax
cmp word [ebp - 0x80], 0
jne 0x10012b47
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp word [ebp - 0x80], 0
je 0x10012b71
lea eax, [ebp - 0x80]
push closesocket
push eax
call fcn.1001661b
cmp word [ebp + eax*2 - 0x82], 0x5c
pop ecx
pop ecx
je 0x10012b71
push 0x101f1ce4
push esi
lea eax, [ebp - 0x80]
push eax
call fcn.1000812d
lea eax, [edi + 0x18]
push eax
push esi
lea eax, [ebp - 0x80]
push eax
call fcn.1000812d
lea eax, [ebp - 0x80]
push eax
push esi
push edi
call fcn.10016ac1
add esp, 0xc
pop esi
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
pop edi
call fcn.101d14d7
add ebp, 0x18c
leave
ret
Function at 0x100133a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov eax, ebx
cmp ebx, esi
jne 0x100133bd
mov eax, 0x101eeb08
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
push str.AIL:Exec__s___s__0x_x_
push 3
call fcn.101d1209
push 0x44
pop edi
push edi
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.101d19d0
add esp, 0x20
test byte [ebp + 0x14], 2
mov dword [ebp - 0x70], edi
je 0x100133f4
or dword [ebp - 0x44], 1
xor eax, eax
mov word [ebp - 0x40], ax
cmp ebx, esi
je 0x100133ff
cmp word [ebx], si
jne 0x100133ff
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1001343b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.AIL:Exec__s__err_d
push 1
call fcn.101d1209
add esp, 0x10
xor eax, eax
jmp 0x10013505
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [ebp + 0x14], 1
je 0x100134e7
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov dword [ebp + 0x14], 1
push 0x4ff
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
inc ebx
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
jne 0x100134a8
jmp 0x10013487
cmp dword [ebp - 0x28], 0x12
je 0x10013497
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
call edi
test eax, eax
jne 0x10013477
jmp 0x100134a3
push dword [ebp - 0x24]
mov dword [ebp + 0x14], esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [ebp + 0x14], esi
jne 0x1001345b
mov edi, dword [ebp + 0x10]
cmp edi, esi
jne 0x100134b2
lea edi, [ebp + 0xc]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x100134cc
push dword [edi]
push dword [ebp + 8]
push str.AIL:Exec__s_ok__ExitCode_d
jmp 0x100134db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.AIL:Exec__s_ok__ExitCodeerr:_u
push 4
call fcn.101d1209
add esp, 0x10
jmp 0x100134f9
push dword [ebp + 8]
push str.AIL:Exec__s_ok
push 4
call fcn.101d1209
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret