joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bd605
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
jne 0x100bd625
push 0x1cb21e
call fcn.100b86e6
jmp 0x100bd785
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x100bd63c
push 0x1cb21f
call fcn.100b86e6
jmp 0x100bd784
push ebx
mov ebx, dword [ebp + 8]
push 2
pop ecx
cmp ebx, ecx
je 0x100bd65b
cmp ebx, 8
je 0x100bd65b
cmp ebx, 3
je 0x100bd65b
push 0x1cb220
jmp 0x100bd757
cmp dword [eax], esi
je 0x100bd669
push 0x1cb221
call fcn.100b86e6
cmp dword [edi], esi
je 0x100bd677
push 0x1cb222
call fcn.100b86e6
push edi
push esi
push ebx
mov dword [edi], esi
call sub.Secur32.dll_GetUserNameExW
movzx esi, al
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x100bd75e
cmp eax, 0xea
jne 0x100bd75e
mov eax, dword [edi]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov esi, dword [ebp + 0xc]
pop ecx
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x100bd6c6
push 0x1cb240
jmp 0x100bd73f
mov eax, dword [edi]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ecx
push ebx
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x100bd6e1
push 0x1cb241
jmp 0x100bd73f
mov eax, dword [edi]
dec eax
cmp dword [ebp - 4], eax
je 0x100bd6f3
push 0x1cb242
call fcn.100b86e6
push 2
pop eax
cmp ebx, eax
jne 0x100bd70f
push dword [edi]
mov eax, dword [esi]
call fcn.100bd5a1
pop ecx
test eax, eax
jne 0x100bd783
push 0x1cb243
jmp 0x100bd73f
cmp ebx, 8
jne 0x100bd74d
cmp dword [esi], 0
jne 0x100bd720
push 0x1cb21c
jmp 0x100bd735
push 0x40
push dword [esi]
call dword [sym.imp.MSVCR100.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x100bd746
push 0x1cb21d
call fcn.100b86e6
push 0x1cb244
call fcn.100b86e6
jmp 0x100bd76b
xor ecx, ecx
mov word [eax], cx
jmp 0x100bd783
cmp ebx, 3
je 0x100bd783
push 0x1cb245
call fcn.100b86e6
jmp 0x100bd783
push 0x1cb223
call fcn.100b86e6
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x100bd77b
push dword [esi]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
and dword [esi], 0
pop ecx
cmp dword [edi], 0
je 0x100bd783
and dword [edi], 0
pop ebx
pop edi
pop esi
leave
ret

Function at 0x100bd788
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1001e618]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0x1c
push edi
xor esi, esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100bd803
push dword [ebp + 8]
push edi
push 0x100bd814
call fcn.100c6705
inc esi
cmp dword [ebp + 0xc], 0
je 0x100bd803
push edi
call fcn.100c6cea
test eax, eax
jne 0x100bd803
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.100b88c6
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x100bd83c
call fcn.100c6c18
lea eax, [ebp - 0x20c]
push eax
call fcn.100c6d09
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1002238e
leave
ret
Function at 0x100be309
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0
push 2
push 0x100be3b4
push 0x100be350
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x100be346
push 0x1d01a3
call fcn.100b86e6
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x100be4f2
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1001e618]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40c], eax
test esi, esi
jne 0x100be53b
xor eax, eax
jmp 0x100be6b5
and dword [esi], 0
push ebx
push edi
xor edi, edi
inc edi
push edi
push eax
push ecx
push 0x400
lea eax, [ebp - 0x404]
push eax
call fcn.100c7410
mov ecx, dword [ebp - 0x40c]
and dword [ebp - 0x408], 0
and dword [ebp - 0x41c], 0
mov ebx, eax
mov eax, ecx
shr eax, 0x1a
not eax
and eax, edi
mov dword [ebp - 0x410], eax
test ebx, ebx
je 0x100be5a2
mov eax, ecx
shr eax, 0x17
push ebx
and eax, edi
push eax
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov ecx, dword [ebp - 0x40c]
mov dword [esi], eax
mov eax, dword [ebp - 0x410]
cmp dword [esi], 0
jne 0x100be64f
test eax, eax
je 0x100be64f
and dword [ebp - 0x418], 0
push edi
lea eax, [ebp - 0x414]
push eax
push ecx
call fcn.100c7297
test eax, eax
je 0x100be631
mov eax, dword [ebp - 0x40c]
shr eax, 0x19
push ebx
and eax, edi
push eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x418], eax
push edi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x40c]
call fcn.100c73cb
mov ecx, dword [ebp - 0x418]
cmp ecx, 5
jne 0x100be637
cmp dword [ebp - 0x41c], 0
jne 0x100be637
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x41c], edi
jmp 0x100be57c
mov ecx, dword [ebp - 0x418]
cmp dword [esi], 0
je 0x100be64f
xor eax, eax
cmp ecx, 0xb7
setne al
mov dword [ebp - 0x408], eax
jmp 0x100be655
mov eax, dword [ebp - 0x408]
cmp dword [esi], 0
je 0x100be65f
cmp dword [esi], 0xffffffff
jne 0x100be67f
cmp dword [ebp - 0x410], 0
je 0x100be672
push 0x6b633230
call fcn.100b86e6
and dword [esi], 0
xor eax, eax
mov dword [ebp - 0x408], eax
xor edi, edi
mov ecx, dword [ebp - 0x420]
test ecx, ecx
je 0x100be6a5
test ebx, ebx
jne 0x100be692
mov ebx, 0x1001e5bb
push dword [ebp + 0x14]
push ecx
push ebx
call fcn.100be49b
mov eax, dword [ebp - 0x408]
add esp, 0xc
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x100be6b1
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1002238e
leave
ret 0x1c
Function at 0x100bebf2
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.100c6dc4
cmp eax, 4
je 0x100bed75
call fcn.100c6dc4
cmp eax, 5
je 0x100bed75
mov eax, dword [0x1013b7c4]
mov dword [0x1013e5c4], eax
mov eax, dword [0x10140134]
test eax, eax
je 0x100bec43
push eax
call fcn.10023b00
push dword [0x1013b7c4]
mov dword [0x1013e5c4], eax
push dword [0x10140134]
call fcn.100c8b4d
mov eax, dword [0x1014014c]
cmp eax, dword [0x10140140]
je 0x100bec61
call fcn.100bd850
push eax
push dword [0x1014014c]
call fcn.100c8b4d
push esi
push edi
call fcn.100bd850
mov edi, eax
call fcn.100bda67
mov esi, eax
cmp edi, esi
je 0x100bed73
movzx ecx, di
push ecx
call fcn.100b07dc
test eax, eax
jne 0x100bec97
movzx eax, si
push eax
call fcn.100b07dc
test eax, eax
je 0x100bed73
lea eax, [ebp - 4]
push eax
push 0x20019
push dword [0x1013b704]
call fcn.100c8a81
test eax, eax
jne 0x100bed73
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 8]
test eax, eax
je 0x100bed72
imul eax, eax, 0x104
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], 0x104
mov esi, ebx
call fcn.100be6c4
pop ecx
pop ecx
test eax, eax
jne 0x100bed05
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100bed72
mov edi, dword [ebp - 0x10]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x100bed4a
mov ebx, edi
cmp esi, dword [ebp - 8]
jae 0x100bed4a
mov eax, 0x104
add ebx, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
inc esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x100bed21
test esi, esi
je 0x100bed63
mov ebx, edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add ebx, 0x104
dec esi
jne 0x100bed50
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.10039c2a
pop ebx
pop edi
pop esi
leave
ret
Function at 0x100bf4d0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp word [0x10140170], 0
jne 0x100bf5f5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
xor esi, esi
mov word [0x10140170], ax
mov dword [ebp - 8], esi
call fcn.100bc2a4
mov edi, 0xc04
test al, al
jne 0x100bf510
push 0x1c549c
call fcn.100b86e6
jmp 0x100bf56b
lea eax, [ebp - 8]
push eax
movzx eax, word [0x10140170]
push eax
call fcn.10026649
test eax, eax
js 0x100bf56b
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
call fcn.100250d3
test eax, eax
js 0x100bf53f
push dword [ebp - 4]
push esi
push esi
call fcn.100cd6f6
push 0x100bf600
push 0x1001e5fc
push dword [ebp - 8]
xor eax, eax
call fcn.100bf8fc
add esp, 0xc
test eax, eax
je 0x100bf56b
call fcn.100c3192
cmp ax, di
jne 0x100bf56b
mov word [0x10140170], di
movzx eax, word [0x10140170]
push ebx
mov ebx, 0x809
cmp eax, ebx
je 0x100bf5d0
cmp eax, edi
je 0x100bf5bd
mov esi, 0x241a
cmp eax, esi
je 0x100bf599
mov esi, 0x281a
cmp eax, esi
jne 0x100bf5f2
mov edi, 0xc1a
jmp 0x100bf59e
mov edi, 0x81a
push edi
call fcn.100bfb59
pop ecx
test eax, eax
je 0x100bf5f2
push esi
call fcn.100bfb59
pop ecx
test eax, eax
jne 0x100bf5f2
mov word [0x10140170], di
jmp 0x100bf5f2
mov esi, 0x404
push esi
call fcn.100bfb59
pop ecx
test eax, eax
je 0x100bf5f2
push edi
jmp 0x100bf5e1
mov esi, 0x409
push esi
call fcn.100bfb59
pop ecx
test eax, eax
je 0x100bf5f2
push ebx
call fcn.100bfb59
pop ecx
test eax, eax
jne 0x100bf5f2
mov word [0x10140170], si
pop ebx
pop edi
pop esi
movzx eax, word [0x10140170]
leave
ret

Function at 0x100bf893
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x1013b7c4]
push edi
push dword [ebp + 0x10]
mov edi, eax
lea eax, [ebp + 0x14]
call fcn.100bf812
pop ecx
call fcn.100bf4d0
push dword [ebp + 0x10]
mov esi, eax
lea eax, [ebp + 0x14]
call fcn.100bf812
pop ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push dword [ebp + 0x10]
movzx esi, ax
lea eax, [ebp + 0x14]
call fcn.100bf812
call fcn.100bd8c8
push dword [ebp + 0x10]
movzx esi, ax
lea eax, [ebp + 0x14]
call fcn.100bf812
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100bf837
add esp, 0x18
pop edi
pop esi
pop ebp
ret
Function at 0x100c0dde
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x10002a7c
push SysReAllocStringLen
mov dword [ebp - 8], ebx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100c0e7c
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x100c0e72
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x100c0e90
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100c0e72
cmp dword [ebp + 8], esi
jne 0x100c0e72
mov esi, dword [ebp - 0xc]
cmp esi, 3
ja 0x100c0e72
cmp dword [ebp - 4], ebx
je 0x100c0e64
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x100c0e6e
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x100c0e88
cmp dword [ebp - 4], ebx
je 0x100c0e7c
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x100c0e86
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100c12c1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x10140172], 0
je 0x100c12d6
mov eax, dword [0x10140174]
leave
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x100c13e0
push SysReAllocStringLen
mov dword [ebp - 4], esi
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100c134d
lea eax, [ebp - 8]
push eax
push 0x10140174
push esi
push esi
push dword [0x1013b1e8]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call edi
test eax, eax
jne 0x100c134d
cmp dword [ebp - 8], 4
jne 0x100c134d
mov esi, dword [0x10140174]
mov byte [0x10140172], 1
cmp dword [ebp - 4], eax
je 0x100c1346
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100c13d8
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x100c1360
push eax
call esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x100c142c
push SysReAllocStringLen
call ebx
test eax, eax
jne 0x100c13bd
push 4
pop ebx
lea eax, [ebp - 8]
push eax
push 0x10140174
push 0
push 0
push dword [0x1013b1e8]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x100c13bd
cmp dword [ebp - 8], ebx
jne 0x100c13bd
mov edi, dword [0x10140174]
mov byte [0x10140172], 1
cmp dword [ebp - 4], eax
je 0x100c13b9
push dword [ebp - 4]
call esi
mov eax, edi
jmp 0x100c13d8
and dword [0x10140174], 0
cmp dword [ebp - 4], 0
mov byte [0x10140172], 1
je 0x100c13d6
push dword [ebp - 4]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100c170c
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10140288], eax
mov dword [0x10140284], ecx
mov dword [0x10140280], edx
mov dword [0x1014027c], ebx
mov dword [0x10140278], esi
mov dword [0x10140274], edi
mov word [0x101402a0], ss
mov word [0x10140294], cs
mov word [0x10140270], ds
mov word [0x1014026c], es
mov word [0x10140268], fs
mov word [0x10140264], gs
pushfd
pop dword [0x10140298]
mov eax, dword [ebp]
mov dword [0x1014028c], eax
mov eax, dword [ebp + 4]
mov dword [0x10140290], eax
lea eax, [ebp + 8]
mov dword [0x1014029c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x101401d8], 0x10001
mov eax, dword [0x10140290]
mov dword [0x1014018c], eax
mov dword [0x10140180], 0xc0000409
mov dword [0x10140184], 1
mov eax, dword [0x1001e618]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1013b1e4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x101401d0], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x100c180c
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x101401d0], 0
jne 0x100c17f8
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x100c2ef9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1001e618]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 2
push 0x100c2ff4
push 0x100c2fa0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x100c2f8b
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x100c2f8b
shr ecx, 1
cmp word [ebp + ecx*2 - 0x210], 0x5c
push 0xffffffffffffffff
sete al
lea eax, [eax*2 + 0x100c3014]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.100c3122
jmp 0x100c2f8d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1002238e
leave
ret 4

Function at 0x100c304c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1001e618]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 2
push 0x1001e844
push 0x100c30c0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x100c30af
cmp dword [ebp - 0x210], 4
jb 0x100c30af
lea eax, [ebp - 0x20c]
push eax
call fcn.100c3122
jmp 0x100c30b1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1002238e
leave
ret 4

Function at 0x100c6d09
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x904
mov eax, dword [0x1001e618]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x100
lea eax, [ebp - 0x904]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
xor edi, edi
call fcn.100c5ebb
push 0x5c
pop esi
lea eax, [ebp - 0x804]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x100c6d6f
xor ecx, ecx
mov dword [ebp + edi*4 - 0x904], eax
mov word [eax], cx
inc edi
cmp edi, 0x40
jge 0x100c6db2
test eax, eax
je 0x100c6da8
lea eax, [ebp - 0x804]
push eax
call fcn.100cdb62
test eax, eax
jns 0x100c6da8
jmp 0x100c6d4e
mov eax, dword [ebp + edi*4 - 0x908]
dec edi
mov word [eax], si
push 0
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100c6db2
cmp edi, 1
jg 0x100c6d8a
xor eax, eax
inc eax
jmp 0x100c6db4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002238e
leave
ret 4
Function at 0x100c6dca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x100c6e12
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x100c6e12
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100c6e12
cmp word [eax + 2], 0
je 0x100c6e12
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x100c6e12
add eax, 0x30
jmp 0x100c6e17
mov eax, 0x100c6e1c
pop esi
pop ebp
ret

Function at 0x100c81f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1001e618]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor bl, bl
call fcn.100238b7
test eax, eax
je 0x100c8311
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor edi, edi
push edi
push 0x100c8320
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], edi
call esi
test eax, eax
jne 0x100c82e3
lea eax, [ebp - 0x218]
push eax
push 0x20119
push edi
push 0x100c8320
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x100c82e3
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x1001e844
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x20a
call esi
test eax, eax
jne 0x100c82e3
cmp dword [ebp - 0x220], 1
jne 0x100c82e3
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x1001e844
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x20a
call esi
test eax, eax
jne 0x100c82e3
cmp dword [ebp - 0x220], 1
jne 0x100c82e3
inc bl
mov eax, dword [ebp - 0x218]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x100c82fc
push eax
mov dword [ebp - 0x218], edi
call esi
mov ecx, dword [ebp - 0x214]
test ecx, ecx
je 0x100c830f
push ecx
mov dword [ebp - 0x214], edi
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1002238e
leave
ret
Function at 0x100ca0b4
Capabilities:
Query or enumerate registry value

Disassembly:
push 4
mov eax, 0x100efe34
call fcn.10022222
mov esi, dword [ebp + 8]
cmp esi, dword [0x10140d04]
jne 0x100ca0d2
xor al, al
jmp 0x100ca1ab
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x100ca0e3
xor ecx, ecx
cmp dword [0x10140cf8], ecx
jmp 0x100ca0ee
mov eax, esi
call fcn.100ca2ed
xor ecx, ecx
test al, al
sete cl
test ecx, ecx
jne 0x100ca0cb
xor edi, edi
lea ecx, [ebp + 0xf]
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edi
call fcn.10023c9f
mov dword [ebp - 4], edi
movzx edi, bl
neg edi
sbb edi, edi
and edi, 2
xor ebx, ebx
jmp 0x100ca16c
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x100ca122
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
call fcn.100ca1b3
test eax, eax
je 0x100ca191
push 0x1c04c2
xor ebx, ebx
push ebx
call fcn.100b873b
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp + 8]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x10140d08
mov dword [eax + 0x1013b670], ebx
call fcn.100c9b31
mov dword [ebp + 8], ebx
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
push ebx
or eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call fcn.10023cc0
mov ebx, eax
test ebx, ebx
jne 0x100ca19e
jmp 0x100ca116
push dword [ebp + 8]
mov ecx, 0x10140d08
call fcn.10023a81
lea ecx, [ebp + 0xf]
call fcn.10024751
test ebx, ebx
sete al
call fcn.10022255
ret 8

Function at 0x100ca241
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x100ca253
mov ecx, dword [edi]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push 0xffff
push dword [ebp + 8]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [ebp - 4], 2
mov esi, eax
jae 0x100ca284
cmp dword [ebp + 0xc], 1
je 0x100ca281
cmp dword [ebp + 0xc], 2
jne 0x100ca284
push 2
pop esi
mov eax, esi
call fcn.100ca1b3
test eax, eax
je 0x100ca2a8
push 0x1c0491
push 0
call fcn.100b873b
push edi
mov ecx, 0x10140d08
call fcn.100c9b31
jmp 0x100ca2e5
test esi, esi
jne 0x100ca2da
mov ecx, dword [ebp + 0xc]
cmp ecx, 2
je 0x100ca2b9
cmp ecx, 1
jne 0x100ca2c8
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov word [ebx + eax*2 - 2], cx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x10]
push eax
push ecx
call fcn.100ca08a
test eax, eax
jne 0x100ca2da
push 2
pop esi
push edi
mov ecx, 0x10140d08
call fcn.10023a81
mov eax, esi
pop esi
pop ebx
leave
ret 0xc