joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bd645
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0xffffffff
jne 0x100bd654
xor eax, eax
leave
ret
and dword [ebp - 4], 0
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor esi, esi
push eax
inc esi
call fcn.100be3ed
mov ebx, eax
push ebx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100bd778
push 0x10106e50
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
call fcn.100bcdb7
pop ecx
test eax, eax
jne 0x100bd699
xor esi, esi
jmp 0x100bd762
cmp byte [0x101070e7], 0
je 0x100bd6ac
push 0x72766c72
call fcn.100bbd1d
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov byte [0x101070e7], 1
call fcn.100be3ed
pop ecx
cmp eax, ebx
jne 0x100bd6cd
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x100bd6f9
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
lea eax, [ebp - 4]
push eax
call fcn.100be3ed
mov ebx, eax
push ebx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x100bd6f9
push 0x72766c73
call fcn.100bbd1d
xor esi, esi
cmp dword [ebp + 0x14], 0
jne 0x100bd707
cmp ebx, 0xea60
ja 0x100bd692
test esi, esi
je 0x100bd71d
push dword [ebp + 0xc]
push dword [ebp - 4]
push ebx
push edi
call fcn.100be5a6
add esp, 0x10
mov esi, eax
mov byte [0x101070e7], 0
test esi, esi
je 0x100bd758
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100bd747
cmp dword [ebp - 8], ebx
jne 0x100bd747
xor esi, esi
inc esi
jmp 0x100bd749
xor esi, esi
push ebx
push edi
push dword [ebp + 0x10]
call fcn.100be876
add esp, 0xc
jmp 0x100bd762
push 0x74697970
call fcn.100bbd1d
push 0x10106e50
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x100bd778
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x100be876
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x100be8be
push esi
push 1
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.100c959c
mov esi, eax
cmp esi, 0xffffffff
je 0x100be8bd
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
Function at 0x100be8c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1000f6d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test dword [0x10106e84], 0x2000
je 0x100be8ec
call fcn.100c070d
jmp 0x100be981
push ebx
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.100c07f0
pop ecx
pop ecx
test eax, eax
je 0x100be980
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x100be990
call fcn.100c91b5
call fcn.100bd33b
test al, al
je 0x100be97e
push edi
call fcn.100bd580
push 1
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.100bd380
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x100be97d
push esi
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
call fcn.100bd645
add esp, 0x10
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x414]
test esi, esi
jne 0x100be96e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100be97d
push ebx
push 0x10106ed4
push eax
call fcn.100bbefd
add esp, 0xc
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10002069
leave
ret
Function at 0x100bfbac
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1000f6d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov byte [eax], bl
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ebx
mov esi, ebx
mov byte [edi], 1
call fcn.100c0664
mov dword [ebp - 0x220], eax
cmp eax, 3
je 0x100bfdc6
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100bfb5b
pop ecx
pop ecx
test eax, eax
je 0x100bfdc6
xor eax, eax
inc eax
push eax
push ebx
push 0x80
push 3
push ebx
push eax
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call fcn.100c959c
mov dword [ebp - 0x210], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x210]
cmp ecx, 0xffffffff
jne 0x100bfc64
cmp eax, 0x20
jne 0x100bfc5a
push 0x1c8016
call fcn.100bbd1d
mov eax, ebx
mov byte [edi], al
jmp 0x100bfdc6
cmp eax, 5
je 0x100bfc51
xor eax, eax
inc eax
jmp 0x100bfc53
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi - 0x8c]
cmp eax, 0xf74
ja 0x100bfdb0
push edi
call fcn.100bf9f8
mov esi, eax
test esi, esi
je 0x100bfdb0
push ebx
lea eax, [ebp - 0x218]
push eax
push edi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100bfdb0
cmp edi, dword [ebp - 0x218]
jne 0x100bfdb0
push ebx
push edi
push esi
call fcn.100bd24c
add esp, 0xc
test eax, eax
je 0x100bfdb0
cmp dword [esi + 0x78], ebx
jne 0x100bfdb0
mov eax, dword [esi + 0x7c]
push 0xc
xor edx, edx
pop ecx
div ecx
mov ecx, eax
imul ecx, ecx, 0xc
mov dword [ebp - 0x214], eax
cmp dword [esi + 0x7c], ecx
jne 0x100bfdb0
lea edi, [esi + 0x80]
test eax, eax
jle 0x100bfd84
cmp dword [edi], 0x2102
ja 0x100bfd2a
je 0x100bfd4a
cmp dword [edi], 0x10
je 0x100bfd4a
cmp dword [edi], 0x195b
je 0x100bfd4a
cmp dword [edi], 0x19df
jbe 0x100bfd5a
cmp dword [edi], 0x19e2
ja 0x100bfd5a
jmp 0x100bfd4a
cmp dword [edi], 0x24c8
jb 0x100bfd5a
cmp dword [edi], 0x24cb
jbe 0x100bfd4a
cmp dword [edi], 0x24cd
je 0x100bfd4a
cmp dword [edi], 0x2696
jne 0x100bfd5a
push dword [edi + 4]
push dword [edi]
call fcn.100bc00d
mov eax, dword [ebp - 0x214]
cmp dword [edi], 0x195b
je 0x100bfd72
cmp dword [edi], 0x19e1
je 0x100bfd72
cmp dword [edi], 0x24cd
jne 0x100bfd73
inc ebx
add edi, 0xc
dec eax
mov dword [ebp - 0x214], eax
jne 0x100bfd01
cmp ebx, 3
je 0x100bfd92
call fcn.100c64c2
test eax, eax
je 0x100bfd9d
cmp ebx, 2
jl 0x100bfd9d
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], 1
jmp 0x100bfdb0
xor eax, eax
inc eax
cmp dword [ebp - 0x220], eax
jne 0x100bfdb0
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], al
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x100bfdc6
push esi
call fcn.1003eb12
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002069
leave
ret
Function at 0x100bff62
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1000f6d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.100c180a
and dword [ebp - 0x38], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x38]
push eax
push 0x11
call fcn.100bc00d
push dword [ebp - 0x24]
push 0x12
call fcn.100bc00d
mov edi, SysReAllocStringLen
xor ecx, ecx
mov eax, edi
cpuid
lea esi, [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
cmp dword [ebp - 0x14], edi
jbe 0x100bffe9
xor ecx, ecx
lea eax, [edi + 1]
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
test dword [ebp - 8], 0x20000000
je 0x100bffe5
push 9
jmp 0x100bffee
push 0
jmp 0x100bffee
push 0xffff
push 0x2699
call fcn.100bc00d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002069
leave
ret

Function at 0x100c0442
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x1000f6d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
push esi
push eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x120], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 1
push esi
push 0x100c05d0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c04ea
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x134]
push eax
push esi
push 0x100c05fc
push dword [ebp - 0x128]
mov dword [ebp - 0x12c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100c04dc
push dword [ebp - 0x130]
push 0x22df
call fcn.100bc00d
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100c04f4
push 0x1c800b
call fcn.100bbd1d
lea eax, [ebp - 0x120]
push eax
call fcn.100c7314
pop ecx
pop esi
test al, al
je 0x100c0575
push dword [ebp - 0x114]
push 0x1a
call fcn.100bc00d
movzx ecx, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
shl ecx, 0x10
or ecx, eax
push ecx
push 0x43
call fcn.100bc00d
movzx eax, word [ebp - 8]
push eax
push 0x3a5
call fcn.100bc00d
push dword [ebp - 0x11c]
push 0x22e1
call fcn.100bc00d
push dword [ebp - 0x118]
push 0x22e2
call fcn.100bc00d
movzx eax, word [ebp - 0xc]
push eax
push 0x22e4
call fcn.100bc00d
movzx eax, word [ebp - 0xa]
push eax
push 0x22e5
call fcn.100bc00d
lea eax, [ebp - 0x124]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
test eax, eax
je 0x100c05ae
push dword [ebp - 0x124]
push 0x1af7
call fcn.100bc00d
jmp 0x100c05c4
push 0xffffffffffffffff
push 0x1af7
call fcn.100bc00d
push 0x1c800c
call fcn.100bbd1d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002069
leave
ret
Function at 0x100c0619
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1000f6d4]
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.100bc00d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002069
leave
ret

Function at 0x100c07f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
call fcn.1002c8f8
test eax, eax
je 0x100c0813
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.100c9737
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.100c0be8
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x100c08a3
push edi
call fcn.100bbed5
cmp word [edi + eax*2 - 2], 0x5c
pop ecx
je 0x100c0855
push 0xffffffffffffffff
push 0x1000872c
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 0x100c08a3
push 0xffffffffffffffff
push 0x100c08ac
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 0x100c08a3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100c08a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax - 0xb7]
neg ebx
sbb ebx, ebx
inc ebx
jne 0x100c08a3
push 0x1cb247
call fcn.100bbd1d
pop edi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x100c0a65
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 0x100c0a85
push 0x1cb21e
call fcn.100bbd1d
jmp 0x100c0be5
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x100c0a9c
push 0x1cb21f
call fcn.100bbd1d
jmp 0x100c0be4
push ebx
mov ebx, dword [ebp + 8]
push 2
pop ecx
cmp ebx, ecx
je 0x100c0abb
cmp ebx, 8
je 0x100c0abb
cmp ebx, 3
je 0x100c0abb
push 0x1cb220
jmp 0x100c0bb7
cmp dword [eax], esi
je 0x100c0ac9
push 0x1cb221
call fcn.100bbd1d
cmp dword [edi], esi
je 0x100c0ad7
push 0x1cb222
call fcn.100bbd1d
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 0x100c0bbe
cmp eax, 0xea
jne 0x100c0bbe
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 0x100c0b26
push 0x1cb240
jmp 0x100c0b9f
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 0x100c0b41
push 0x1cb241
jmp 0x100c0b9f
mov eax, dword [edi]
dec eax
cmp dword [ebp - 4], eax
je 0x100c0b53
push 0x1cb242
call fcn.100bbd1d
push 2
pop eax
cmp ebx, eax
jne 0x100c0b6f
push dword [edi]
mov eax, dword [esi]
call fcn.100c0a01
pop ecx
test eax, eax
jne 0x100c0be3
push 0x1cb243
jmp 0x100c0b9f
cmp ebx, 8
jne 0x100c0bad
cmp dword [esi], 0
jne 0x100c0b80
push 0x1cb21c
jmp 0x100c0b95
push 0x40
push dword [esi]
call dword [sym.imp.MSVCR100.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x100c0ba6
push 0x1cb21d
call fcn.100bbd1d
push 0x1cb244
call fcn.100bbd1d
jmp 0x100c0bcb
xor ecx, ecx
mov word [eax], cx
jmp 0x100c0be3
cmp ebx, 3
je 0x100c0be3
push 0x1cb245
call fcn.100bbd1d
jmp 0x100c0be3
push 0x1cb223
call fcn.100bbd1d
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x100c0bdb
push dword [esi]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
and dword [esi], 0
pop ecx
cmp dword [edi], 0
je 0x100c0be3
and dword [edi], 0
pop ebx
pop edi
pop esi
leave
ret

Function at 0x100c0be8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1000f6d4]
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 0x100c0c63
push dword [ebp + 8]
push edi
push 0x100c0c74
call fcn.100c91b5
inc esi
cmp dword [ebp + 0xc], 0
je 0x100c0c63
push edi
call fcn.100c979a
test eax, eax
jne 0x100c0c63
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.100bbefd
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x100c0c9c
call fcn.100c96c8
lea eax, [ebp - 0x20c]
push eax
call fcn.100c97b9
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10002069
leave
ret
Function at 0x100c1748
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 0x100c17f4
push 0x100c1790
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x100c1785
push 0x1d01a3
call fcn.100bbd1d
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x100c1932
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1000f6d4]
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 0x100c197b
xor eax, eax
jmp 0x100c1af5
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.100c9de8
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 0x100c19e2
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 0x100c1a8f
test eax, eax
je 0x100c1a8f
and dword [ebp - 0x418], 0
push edi
lea eax, [ebp - 0x414]
push eax
push ecx
call fcn.100c9c6f
test eax, eax
je 0x100c1a71
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.100c9da3
mov ecx, dword [ebp - 0x418]
cmp ecx, 5
jne 0x100c1a77
cmp dword [ebp - 0x41c], 0
jne 0x100c1a77
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x41c], edi
jmp 0x100c19bc
mov ecx, dword [ebp - 0x418]
cmp dword [esi], 0
je 0x100c1a8f
xor eax, eax
cmp ecx, 0xb7
setne al
mov dword [ebp - 0x408], eax
jmp 0x100c1a95
mov eax, dword [ebp - 0x408]
cmp dword [esi], 0
je 0x100c1a9f
cmp dword [esi], 0xffffffff
jne 0x100c1abf
cmp dword [ebp - 0x410], 0
je 0x100c1ab2
push 0x6b633230
call fcn.100bbd1d
and dword [esi], 0
xor eax, eax
mov dword [ebp - 0x408], eax
xor edi, edi
mov ecx, dword [ebp - 0x420]
test ecx, ecx
je 0x100c1ae5
test ebx, ebx
jne 0x100c1ad2
mov ebx, 0x1000f6a3
push dword [ebp + 0x14]
push ecx
push ebx
call fcn.100c18db
mov eax, dword [ebp - 0x408]
add esp, 0xc
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x100c1af1
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10002069
leave
ret 0x1c
Function at 0x100c2032
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.100c9874
cmp eax, 4
je 0x100c21b5
call fcn.100c9874
cmp eax, 5
je 0x100c21b5
mov eax, dword [0x101066a0]
mov dword [0x1014050c], eax
mov eax, dword [0x10107384]
test eax, eax
je 0x100c2083
push eax
call fcn.1002bf43
push dword [0x101066a0]
mov dword [0x1014050c], eax
push dword [0x10107384]
call fcn.100cb329
mov eax, dword [0x1014052c]
cmp eax, dword [0x10140524]
je 0x100c20a1
call fcn.100c0cb0
push eax
push dword [0x1014052c]
call fcn.100cb329
push esi
push edi
call fcn.100c0cb0
mov edi, eax
call fcn.100c0ec7
mov esi, eax
cmp edi, esi
je 0x100c21b3
movzx ecx, di
push ecx
call fcn.100b490c
test eax, eax
jne 0x100c20d7
movzx eax, si
push eax
call fcn.100b490c
test eax, eax
je 0x100c21b3
lea eax, [ebp - 4]
push eax
push 0x20019
push dword [0x1013cb58]
call fcn.100cb25d
test eax, eax
jne 0x100c21b3
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 0x100c21b2
imul eax, eax, 0x104
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], 0x104
mov esi, ebx
call fcn.100c1b04
pop ecx
pop ecx
test eax, eax
jne 0x100c2145
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100c21b2
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 0x100c218a
mov ebx, edi
cmp esi, dword [ebp - 8]
jae 0x100c218a
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 0x100c2161
test esi, esi
je 0x100c21a3
mov ebx, edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add ebx, 0x104
dec esi
jne 0x100c2190
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.1003eb12
pop ebx
pop edi
pop esi
leave
ret
Function at 0x100c2910
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp word [0x10140550], 0
jne 0x100c2a35
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
xor esi, esi
mov word [0x10140550], ax
mov dword [ebp - 8], esi
call fcn.10003e0d
mov edi, 0xc04
test al, al
jne 0x100c2950
push 0x1c549c
call fcn.100bbd1d
jmp 0x100c29ab
lea eax, [ebp - 8]
push eax
movzx eax, word [0x10140550]
push eax
call fcn.10007312
test eax, eax
js 0x100c29ab
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
call fcn.1002c908
test eax, eax
js 0x100c297f
push dword [ebp - 4]
push esi
push esi
call fcn.100cdf60
push 0x100c2a40
push 0x10028e70
push dword [ebp - 8]
xor eax, eax
call fcn.100c2d3c
add esp, 0xc
test eax, eax
je 0x100c29ab
call fcn.100c644a
cmp ax, di
jne 0x100c29ab
mov word [0x10140550], di
movzx eax, word [0x10140550]
push ebx
mov ebx, 0x809
cmp eax, ebx
je 0x100c2a10
cmp eax, edi
je 0x100c29fd
mov esi, 0x241a
cmp eax, esi
je 0x100c29d9
mov esi, 0x281a
cmp eax, esi
jne 0x100c2a32
mov edi, 0xc1a
jmp 0x100c29de
mov edi, 0x81a
push edi
call fcn.100c2f99
pop ecx
test eax, eax
je 0x100c2a32
push esi
call fcn.100c2f99
pop ecx
test eax, eax
jne 0x100c2a32
mov word [0x10140550], di
jmp 0x100c2a32
mov esi, 0x404
push esi
call fcn.100c2f99
pop ecx
test eax, eax
je 0x100c2a32
push edi
jmp 0x100c2a21
mov esi, 0x409
push esi
call fcn.100c2f99
pop ecx
test eax, eax
je 0x100c2a32
push ebx
call fcn.100c2f99
pop ecx
test eax, eax
jne 0x100c2a32
mov word [0x10140550], si
pop ebx
pop edi
pop esi
movzx eax, word [0x10140550]
leave
ret

Function at 0x100c2cd3
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x101066a0]
push edi
push dword [ebp + 0x10]
mov edi, eax
lea eax, [ebp + 0x14]
call fcn.100c2c52
pop ecx
call fcn.100c2910
push dword [ebp + 0x10]
mov esi, eax
lea eax, [ebp + 0x14]
call fcn.100c2c52
pop ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push dword [ebp + 0x10]
movzx esi, ax
lea eax, [ebp + 0x14]
call fcn.100c2c52
call fcn.100c0d28
push dword [ebp + 0x10]
movzx esi, ax
lea eax, [ebp + 0x14]
call fcn.100c2c52
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100c2c77
add esp, 0x18
pop edi
pop esi
pop ebp
ret
Function at 0x100c4216
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 0x10014374
push SysReAllocStringLen
mov dword [ebp - 8], ebx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100c42b4
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 0x100c42aa
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x100c42c8
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100c42aa
cmp dword [ebp + 8], esi
jne 0x100c42aa
mov esi, dword [ebp - 0xc]
cmp esi, 3
ja 0x100c42aa
cmp dword [ebp - 4], ebx
je 0x100c429c
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x100c42a6
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x100c42c0
cmp dword [ebp - 4], ebx
je 0x100c42b4
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x100c42be
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4