joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100be235
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1000f7ac]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add ecx, 0x80000
adc eax, 0
shrd ecx, eax, 0x14
push ecx
push 0xc
shr eax, 0x14
call fcn.100ba3bd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002059
leave
ret

Function at 0x100be40c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
call fcn.1002c570
test eax, eax
je 0x100be42f
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.100c7077
pop ecx
pop ecx
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp + 8]
push 1
push dword [ebp + 0xc]
call fcn.100be804
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x100be4bf
push edi
call fcn.100ba285
cmp word [edi + eax*2 - 2], 0x5c
pop ecx
je 0x100be471
push 0xffffffffffffffff
push 0x10008874
push dword [ebp + 0xc]
push edi
call dword [sym.imp.MSVCR100.dll_wcsncat_s]
xor ebx, ebx
add esp, 0x10
cmp eax, 0x50
setne bl
test ebx, ebx
je 0x100be4bf
push 0xffffffffffffffff
push 0x100be4c8
push dword [ebp + 0xc]
push edi
call dword [sym.imp.MSVCR100.dll_wcsncat_s]
xor ebx, ebx
add esp, 0x10
cmp eax, 0x50
setne bl
test ebx, ebx
je 0x100be4bf
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100be4bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax - 0xb7]
neg ebx
sbb ebx, ebx
inc ebx
jne 0x100be4bf
push 0x1cb247
call fcn.100ba0cd
pop edi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x100be681
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 0x100be6a1
push 0x1cb21e
call fcn.100ba0cd
jmp 0x100be801
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x100be6b8
push 0x1cb21f
call fcn.100ba0cd
jmp 0x100be800
push ebx
mov ebx, dword [ebp + 8]
push 2
pop ecx
cmp ebx, ecx
je 0x100be6d7
cmp ebx, 8
je 0x100be6d7
cmp ebx, 3
je 0x100be6d7
push 0x1cb220
jmp 0x100be7d3
cmp dword [eax], esi
je 0x100be6e5
push 0x1cb221
call fcn.100ba0cd
cmp dword [edi], esi
je 0x100be6f3
push 0x1cb222
call fcn.100ba0cd
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 0x100be7da
cmp eax, 0xea
jne 0x100be7da
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 0x100be742
push 0x1cb240
jmp 0x100be7bb
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 0x100be75d
push 0x1cb241
jmp 0x100be7bb
mov eax, dword [edi]
dec eax
cmp dword [ebp - 4], eax
je 0x100be76f
push 0x1cb242
call fcn.100ba0cd
push 2
pop eax
cmp ebx, eax
jne 0x100be78b
push dword [edi]
mov eax, dword [esi]
call fcn.100be61d
pop ecx
test eax, eax
jne 0x100be7ff
push 0x1cb243
jmp 0x100be7bb
cmp ebx, 8
jne 0x100be7c9
cmp dword [esi], 0
jne 0x100be79c
push 0x1cb21c
jmp 0x100be7b1
push 0x40
push dword [esi]
call dword [sym.imp.MSVCR100.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x100be7c2
push 0x1cb21d
call fcn.100ba0cd
push 0x1cb244
call fcn.100ba0cd
jmp 0x100be7e7
xor ecx, ecx
mov word [eax], cx
jmp 0x100be7ff
cmp ebx, 3
je 0x100be7ff
push 0x1cb245
call fcn.100ba0cd
jmp 0x100be7ff
push 0x1cb223
call fcn.100ba0cd
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x100be7f7
push dword [esi]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
and dword [esi], 0
pop ecx
cmp dword [edi], 0
je 0x100be7ff
and dword [edi], 0
pop ebx
pop edi
pop esi
leave
ret

Function at 0x100be804
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1000f7ac]
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 0x100be87f
push dword [ebp + 8]
push edi
push 0x100be890
call fcn.100c6af5
inc esi
cmp dword [ebp + 0xc], 0
je 0x100be87f
push edi
call fcn.100c70da
test eax, eax
jne 0x100be87f
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.100ba2ad
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x100be8b8
call fcn.100c7008
lea eax, [ebp - 0x20c]
push eax
call fcn.100c70f9
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10002059
leave
ret
Function at 0x100bf360
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 0x100bf40c
push 0x100bf3a8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x100bf39d
push 0x1d01a3
call fcn.100ba0cd
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x100bf54a
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1000f7ac]
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 0x100bf593
xor eax, eax
jmp 0x100bf70d
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.100c7728
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 0x100bf5fa
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 0x100bf6a7
test eax, eax
je 0x100bf6a7
and dword [ebp - 0x418], 0
push edi
lea eax, [ebp - 0x414]
push eax
push ecx
call fcn.100c75af
test eax, eax
je 0x100bf689
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.100c76e3
mov ecx, dword [ebp - 0x418]
cmp ecx, 5
jne 0x100bf68f
cmp dword [ebp - 0x41c], 0
jne 0x100bf68f
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x41c], edi
jmp 0x100bf5d4
mov ecx, dword [ebp - 0x418]
cmp dword [esi], 0
je 0x100bf6a7
xor eax, eax
cmp ecx, 0xb7
setne al
mov dword [ebp - 0x408], eax
jmp 0x100bf6ad
mov eax, dword [ebp - 0x408]
cmp dword [esi], 0
je 0x100bf6b7
cmp dword [esi], 0xffffffff
jne 0x100bf6d7
cmp dword [ebp - 0x410], 0
je 0x100bf6ca
push 0x6b633230
call fcn.100ba0cd
and dword [esi], 0
xor eax, eax
mov dword [ebp - 0x408], eax
xor edi, edi
mov ecx, dword [ebp - 0x420]
test ecx, ecx
je 0x100bf6fd
test ebx, ebx
jne 0x100bf6ea
mov ebx, 0x1000f77b
push dword [ebp + 0x14]
push ecx
push ebx
call fcn.100bf4f3
mov eax, dword [ebp - 0x408]
add esp, 0xc
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x100bf709
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10002059
leave
ret 0x1c
Function at 0x100bfc4a
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.100c71b4
cmp eax, 4
je 0x100bfdcd
call fcn.100c71b4
cmp eax, 5
je 0x100bfdcd
mov eax, dword [0x10103660]
mov dword [0x1013bb58], eax
mov eax, dword [0x1010437c]
test eax, eax
je 0x100bfc9b
push eax
call fcn.1002bbdc
push dword [0x10103660]
mov dword [0x1013bb58], eax
push dword [0x1010437c]
call fcn.100c8c69
mov eax, dword [0x1013d494]
cmp eax, dword [0x1013d488]
je 0x100bfcb9
call fcn.100be8cc
push eax
push dword [0x1013d494]
call fcn.100c8c69
push esi
push edi
call fcn.100be8cc
mov edi, eax
call fcn.100beadf
mov esi, eax
cmp edi, esi
je 0x100bfdcb
movzx ecx, di
push ecx
call fcn.100b2d14
test eax, eax
jne 0x100bfcef
movzx eax, si
push eax
call fcn.100b2d14
test eax, eax
je 0x100bfdcb
lea eax, [ebp - 4]
push eax
push 0x20019
push dword [0x10139b80]
call fcn.100c8b9d
test eax, eax
jne 0x100bfdcb
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 0x100bfdca
imul eax, eax, 0x104
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], 0x104
mov esi, ebx
call fcn.100bf71c
pop ecx
pop ecx
test eax, eax
jne 0x100bfd5d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100bfdca
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 0x100bfda2
mov ebx, edi
cmp esi, dword [ebp - 8]
jae 0x100bfda2
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 0x100bfd79
test esi, esi
je 0x100bfdbb
mov ebx, edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add ebx, 0x104
dec esi
jne 0x100bfda8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.100bd609
pop ebx
pop edi
pop esi
leave
ret
Function at 0x100c0528
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov si, word [0x1013d4b8]
test si, si
jne 0x100c0626
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
xor esi, esi
mov word [0x1013d4b8], ax
mov dword [ebp - 8], esi
call fcn.10003f11
mov edi, 0xc04
test al, al
jne 0x100c056a
push 0x1c549c
call fcn.100ba0cd
jmp 0x100c05c5
lea eax, [ebp - 8]
push eax
movzx eax, word [0x1013d4b8]
push eax
call fcn.1000740a
test eax, eax
js 0x100c05c5
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
call fcn.1002c580
test eax, eax
js 0x100c0599
push dword [ebp - 4]
push esi
push esi
call fcn.100cb8c4
push 0x100c062c
push 0x10028c20
push dword [ebp - 8]
xor eax, eax
call fcn.100c0928
add esp, 0xc
test eax, eax
je 0x100c05c5
call fcn.100c4182
cmp ax, di
jne 0x100c05c5
mov word [0x1013d4b8], di
push ebx
call fcn.100c41d6
test eax, eax
je 0x100c061d
mov si, word [0x1013d4b8]
movzx eax, si
mov ebx, 0x809
cmp eax, ebx
je 0x100c05f9
cmp eax, edi
jne 0x100c0624
mov esi, 0x404
push esi
call fcn.100c0b85
pop ecx
test eax, eax
je 0x100c061d
push edi
jmp 0x100c060a
mov esi, 0x409
push esi
call fcn.100c0b85
pop ecx
test eax, eax
je 0x100c061d
push ebx
call fcn.100c0b85
pop ecx
test eax, eax
jne 0x100c061d
mov word [0x1013d4b8], si
jmp 0x100c0624
mov si, word [0x1013d4b8]
pop ebx
pop edi
movzx eax, si
pop esi
leave
ret

Function at 0x100c08bf
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x10103660]
push edi
push dword [ebp + 0x10]
mov edi, eax
lea eax, [ebp + 0x14]
call fcn.100c083e
pop ecx
call fcn.100c0528
push dword [ebp + 0x10]
mov esi, eax
lea eax, [ebp + 0x14]
call fcn.100c083e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push dword [ebp + 0x10]
movzx esi, ax
lea eax, [ebp + 0x14]
call fcn.100c083e
call fcn.100be944
push dword [ebp + 0x10]
movzx esi, ax
lea eax, [ebp + 0x14]
call fcn.100c083e
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100c0863
add esp, 0x18
pop edi
pop esi
pop ebp
ret
Function at 0x100c1e06
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 0x100141d4
push SysReAllocStringLen
mov dword [ebp - 8], ebx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100c1ea4
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 0x100c1e9a
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x100c1eb8
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100c1e9a
cmp dword [ebp + 8], esi
jne 0x100c1e9a
mov esi, dword [ebp - 0xc]
cmp esi, 3
ja 0x100c1e9a
cmp dword [ebp - 4], ebx
je 0x100c1e8c
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x100c1e96
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x100c1eb0
cmp dword [ebp - 4], ebx
je 0x100c1ea4
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x100c1eae
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100c22e9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x1013d4ba], 0
je 0x100c22fe
mov eax, dword [0x1013d4bc]
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 0x100c2408
push SysReAllocStringLen
mov dword [ebp - 4], esi
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100c2375
lea eax, [ebp - 8]
push eax
push 0x1013d4bc
push esi
push esi
push dword [0x10139684]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call edi
test eax, eax
jne 0x100c2375
cmp dword [ebp - 8], 4
jne 0x100c2375
mov esi, dword [0x1013d4bc]
mov byte [0x1013d4ba], 1
cmp dword [ebp - 4], eax
je 0x100c236e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100c2400
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x100c2388
push eax
call esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x100c2454
push SysReAllocStringLen
call ebx
test eax, eax
jne 0x100c23e5
push 4
pop ebx
lea eax, [ebp - 8]
push eax
push 0x1013d4bc
push 0
push 0
push dword [0x10139684]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x100c23e5
cmp dword [ebp - 8], ebx
jne 0x100c23e5
mov edi, dword [0x1013d4bc]
mov byte [0x1013d4ba], 1
cmp dword [ebp - 4], eax
je 0x100c23e1
push dword [ebp - 4]
call esi
mov eax, edi
jmp 0x100c2400
and dword [0x1013d4bc], 0
cmp dword [ebp - 4], 0
mov byte [0x1013d4ba], 1
je 0x100c23fe
push dword [ebp - 4]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100c25a4
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1013d5c8], eax
mov dword [0x1013d5c4], ecx
mov dword [0x1013d5c0], edx
mov dword [0x1013d5bc], ebx
mov dword [0x1013d5b8], esi
mov dword [0x1013d5b4], edi
mov word [0x1013d5e0], ss
mov word [0x1013d5d4], cs
mov word [0x1013d5b0], ds
mov word [0x1013d5ac], es
mov word [0x1013d5a8], fs
mov word [0x1013d5a4], gs
pushfd
pop dword [0x1013d5d8]
mov eax, dword [ebp]
mov dword [0x1013d5cc], eax
mov eax, dword [ebp + 4]
mov dword [0x1013d5d0], eax
lea eax, [ebp + 8]
mov dword [0x1013d5dc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1013d518], 0x10001
mov eax, dword [0x1013d5d0]
mov dword [0x1013d4cc], eax
mov dword [0x1013d4c0], 0xc0000409
mov dword [0x1013d4c4], 1
mov eax, dword [0x1000f7ac]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10139680]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1013d510], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x100c26a4
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1013d510], 0
jne 0x100c2690
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 0x100c3ee9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1000f7ac]
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 0x100c3fe4
push 0x100c3f90
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x100c3f7b
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x100c3f7b
shr ecx, 1
cmp word [ebp + ecx*2 - 0x210], 0x5c
push 0xffffffffffffffff
sete al
lea eax, [eax*2 + 0x100c4004]
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.100c4112
jmp 0x100c3f7d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10002059
leave
ret 4

Function at 0x100c403c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1000f7ac]
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 0x10028e20
push 0x100c40b0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x100c409f
cmp dword [ebp - 0x210], 4
jb 0x100c409f
lea eax, [ebp - 0x20c]
push eax
call fcn.100c4112
jmp 0x100c40a1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10002059
leave
ret 4

Function at 0x100c70f9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x904
mov eax, dword [0x1000f7ac]
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.100c62ab
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 0x100c715f
xor ecx, ecx
mov dword [ebp + edi*4 - 0x904], eax
mov word [eax], cx
inc edi
cmp edi, 0x40
jge 0x100c71a2
test eax, eax
je 0x100c7198
lea eax, [ebp - 0x804]
push eax
call fcn.100cbd20
test eax, eax
jns 0x100c7198
jmp 0x100c713e
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 0x100c71a2
cmp edi, 1
jg 0x100c717a
xor eax, eax
inc eax
jmp 0x100c71a4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10002059
leave
ret 4
Function at 0x100c71ba
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 0x100c7202
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x100c7202
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100c7202
cmp word [eax + 2], 0
je 0x100c7202
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x100c7202
add eax, 0x30
jmp 0x100c7207
mov eax, 0x100c720c
pop esi
pop ebp
ret
Function at 0x100c9f7e
Capabilities:
Query or enumerate registry value

Disassembly:
push 4
mov eax, 0x100ed8d4
call fcn.10001e5b
mov esi, dword [ebp + 8]
cmp esi, dword [0x1013dc94]
jne 0x100c9f9c
xor al, al
jmp 0x100ca075
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x100c9fad
xor ecx, ecx
cmp dword [0x10104730], ecx
jmp 0x100c9fb8
mov eax, esi
call fcn.100ca14e
xor ecx, ecx
test al, al
sete cl
test ecx, ecx
jne 0x100c9f95
xor edi, edi
lea ecx, [ebp + 0xf]
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edi
call fcn.1002bd7b
mov dword [ebp - 4], edi
movzx edi, bl
neg edi
sbb edi, edi
and edi, 2
xor ebx, ebx
jmp 0x100ca036
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x100c9fec
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.100ca07d
test eax, eax
je 0x100ca05b
push 0x1c04c2
xor ebx, ebx
push ebx
call fcn.100ba122
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp + 8]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x10104738
mov dword [eax + 0x101035c8], ebx
call fcn.100c99fb
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.1002bd9c
mov ebx, eax
test ebx, ebx
jne 0x100ca068
jmp 0x100c9fe0
push dword [ebp + 8]
mov ecx, 0x10104738
call fcn.100039ff
lea ecx, [ebp + 0xf]
call fcn.1002c54f
test ebx, ebx
sete al
call fcn.10001e90
ret 8

Function at 0x100ca0a2
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 0x100ca0b4
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 0x100ca0e5
cmp dword [ebp + 0xc], 1
je 0x100ca0e2
cmp dword [ebp + 0xc], 2
jne 0x100ca0e5
push 2
pop esi
mov eax, esi
call fcn.100ca07d
test eax, eax
je 0x100ca109
push 0x1c0491
push 0
call fcn.100ba122
push edi
mov ecx, 0x10104738
call fcn.100c99fb
jmp 0x100ca146
test esi, esi
jne 0x100ca13b
mov ecx, dword [ebp + 0xc]
cmp ecx, 2
je 0x100ca11a
cmp ecx, 1
jne 0x100ca129
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.100c9f54
test eax, eax
jne 0x100ca13b
push 2
pop esi
push edi
mov ecx, 0x10104738
call fcn.100039ff
mov eax, esi
pop esi
pop ebx
leave
ret 0xc