joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b27f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10142540
push 0x1007f31c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
mov edi, dword [ebp + 0x14]
push edi
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100b2050
add esp, 0x10
mov esi, eax
cmp esi, ebx
je 0x100b28a3
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 0x20]
push eax
call edi
add esp, 8
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0x10]
sub edi, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x30]
push ecx
push 0x40
push 4
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
test eax, eax
je 0x100b289c
mov dword [esi], edi
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 4
push esi
call ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100b3030
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1013b1ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x101421f0]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 8]
mov dword [edi], eax
mov ecx, dword [0x101421f0]
lea ebp, [esi + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [ebp], ecx
mov edx, dword [0x101421f0]
mov dword [esi + 0x20], edx
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 2
call fcn.100a0d30
mov eax, dword [esp + 0x24]
mov ecx, edi
push eax
mov byte [esp + 0x20], 3
mov dword [esi], 0x1014255c
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov word [esi + 0x24], 0xffff
call fcn.10094f40
mov eax, dword [esp + 0x28]
mov cx, word [esp + 0x30]
test eax, 0xffff0000
mov word [esi + 0x24], cx
mov dword [esi + 0x14], eax
je 0x100b30d3
push eax
mov ecx, ebp
call fcn.10094f40
mov edx, dword [ebp]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x2c]
test eax, 0xffff0000
mov dword [esi + 0x1c], eax
je 0x100b30f1
lea edi, [esi + 0x20]
push eax
mov ecx, edi
call fcn.10094f40
mov eax, dword [edi]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x100b7ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1013b92e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x10142650
mov eax, dword [esi + 0x38]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], 2
je 0x100b7d24
push eax
call fcn.1007de95
add esp, 4
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
lea ecx, [esi + 0x30]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov byte [esp + 0x14], 1
call fcn.1008f940
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], bl
call fcn.1008f940
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.100ba150
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x100baac0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1013bc8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.100a4ab0
xor edi, edi
lea ecx, [esi + 0x34]
mov dword [esp + 0x14], edi
call fcn.10115fc0
push 0xa
lea ecx, [esi + 0x68]
mov byte [esp + 0x18], 1
call fcn.1012c760
lea ecx, [esi + 0x80]
mov byte [esp + 0x14], 2
call fcn.100a1230
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x28], edi
mov word [esi + 0x2c], di
mov dword [esi + 0x30], edi
mov dword [esi + 0xa0], edi
mov dword [esi], 0x101426b8
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x100bb030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1013bd48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
mov edi, ecx
push 1
lea ecx, [esp + 0x18]
lea eax, [edi + 0x80]
push eax
call fcn.100a1760
mov eax, dword [esp + 0x30]
xor ebp, ebp
cmp eax, ebp
mov eax, dword [edi + 0x70]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebp
je 0x100bb129
neg eax
sbb eax, eax
cmp eax, ebp
mov dword [esp + 0x30], eax
je 0x100bb0b0
lea esi, [edi + 0x68]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.1012cb20
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x14]
cmp dword [esp + 0x30], ebp
jne 0x100bb08b
mov eax, dword [edi + 0x70]
neg eax
sbb eax, eax
cmp eax, ebp
mov dword [esp + 0x30], eax
je 0x100bb11f
push ebx
lea ebx, [edi + 0x68]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov ecx, ebx
call fcn.1012cb20
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x30]
cmp ecx, ebp
je 0x100bb0e9
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, esi
mov dword [esi + 0x2c], ebp
call fcn.100a4d40
mov ecx, dword [esp + 0x10]
call fcn.100a4e00
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
je 0x100bb10a
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
je 0x100bb118
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esp + 0x34], ebp
jne 0x100bb0c3
pop ebx
lea ecx, [edi + 0x68]
call fcn.1012c7f0
jmp 0x100bb1a1
neg eax
sbb eax, eax
cmp eax, ebp
mov dword [esp + 0x30], eax
je 0x100bb1a1
lea esi, [edi + 0x68]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.1012cb20
mov ecx, dword [esp + 0xc]
call fcn.100a4e80
test eax, eax
jne 0x100bb19b
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0x28], ebp
jne 0x100bb19b
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x100bb181
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
cmp ecx, ebp
je 0x100bb193
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.1012ca90
cmp dword [esp + 0x30], ebp
jne 0x100bb138
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.100a17c0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x100bc0d0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x101b0ee0]
sub esp, 0x114
test eax, eax
jne 0x100bc21d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x101b0c78
mov dword [0x101b0ee0], 1
mov dword [0x101b0c78], 0x114
call esi
mov edx, dword [0x101b0c88]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x10190438], eax
je 0x100bc1f8
push ebx
push 0x101b0d90
mov dword [0x101b0d90], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x101b0ed4], eax
call edi
mov dword [0x101b0ed8], eax
mov eax, dword [0x101b0ed4]
test eax, eax
push 0x101b0eb0
je 0x100bc174
call eax
jmp 0x100bc17a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x101b0d94]
cmp eax, 6
jae 0x100bc192
cmp eax, 5
jne 0x100bc1a6
cmp dword [0x101b0d98], 2
jb 0x100bc1a6
cmp word [0x101b0eb0], 9
jne 0x100bc1a6
mov dword [0x101b0c6c], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x100bc1c4
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x101b0edc], edx
jmp 0x100bc1ca
mov edx, dword [0x101b0edc]
test edx, edx
je 0x100bc1f8
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x100bc1f8
mov ecx, dword [esp + 0x14]
mov dword [0x101b0c84], ecx
push 0x101b0c80
push 0x101b0c7c
call fcn.100bc5c0
add esp, 8
call fcn.100bc230
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x100bd450
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10142708
push 0x1007f31c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x101b0ee4]
xor ebx, ebx
cmp eax, ebx
jne 0x100bd5b0
mov word [ebp - 0x220], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100bd5ab
mov word [ebp - 0x42c], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.user32.dll
lea ecx, [ebp - 0x220]
push ecx
push 0x10160910
lea edx, [ebp - 0x42c]
push edx
call fcn.1007e637
add esp, 0x10
mov dword [ebp - 0x434], ebx
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x224], eax
push eax
call fcn.1007e238
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100bd5ab
push esi
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100bd5a2
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100bd5a2
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x101b0ee4], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100bd5a2
push esi
call fcn.1007de95
add esp, 4
mov eax, dword [0x101b0ee4]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100bfe40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x100bff00
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.1007e6f5
add esp, 8
test eax, eax
je 0x100bfe8f
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x100bfef9
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x100bfef9
lea edx, [esp + 0xc]
test edx, edx
je 0x100bfef9
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x100bfed6
push eax
lea eax, [esp + 0x10]
push eax
push 0x10160910
push ebx
push edi
call fcn.1007e75e
add esp, 0x14
xor esi, esi
jmp 0x100bff08
lea ecx, [esp + 0xc]
push ecx
call fcn.1007e283
add esp, 4
cmp ebx, eax
jbe 0x100bff08
lea edx, [esp + 0xc]
push edx
push edi
call fcn.1007e6d0
add esp, 8
xor esi, esi
jmp 0x100bff08
mov esi, 0x57
jmp 0x100bff08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x101b0f58], esi
je 0x100bff19
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret
Function at 0x100bff30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1013c155
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [0x101421f0]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov dword [esp + 0x434], 1
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x100c0043
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.1007e6f5
add esp, 8
cmp eax, ebx
je 0x100bffc4
mov word [eax], bx
lea eax, [esp + 0x21c]
test eax, eax
je 0x100c003c
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x100c003c
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebx
je 0x100c000d
lea edx, [esp + 0x14]
push eax
push edx
push 0x10160910
lea eax, [esp + 0x228]
push 0x104
push eax
call fcn.1007e75e
add esp, 0x14
xor esi, esi
mov eax, esi
jmp 0x100c0049
lea ecx, [esp + 0x14]
push ecx
call fcn.1007e283
add esp, 4
cmp eax, 0x104
jae 0x100c0038
lea edx, [esp + 0x14]
lea eax, [esp + 0x21c]
push edx
push eax
call fcn.1007e6d0
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x100c0049
mov eax, 0x57
jmp 0x100c0049
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x101b0f58], eax
je 0x100c005b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100c006c
lea ecx, [esp + 0x21c]
push ecx
lea ecx, [esp + 0x10]
call fcn.10094f40
mov esi, dword [esp + 0x434]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.100942c0
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call fcn.10094cc0
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret

Function at 0x100c0330
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x100c03d4
mov edi, dword [esp + 0x218]
test edi, edi
je 0x100c03cd
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x100c03cd
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x100c03cd
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x100c03aa
lea edx, [esp + 0xc]
push eax
push edx
push 0x10160910
push ebx
push edi
call fcn.1007e75e
add esp, 0x14
xor esi, esi
jmp 0x100c03dc
lea eax, [esp + 0xc]
push eax
call fcn.1007e283
add esp, 4
cmp ebx, eax
jbe 0x100c03dc
lea ecx, [esp + 0xc]
push ecx
push edi
call fcn.1007e6d0
add esp, 8
xor esi, esi
jmp 0x100c03dc
mov esi, 0x57
jmp 0x100c03dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x101b0f58], esi
je 0x100c03ed
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret
Function at 0x100c0400
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1013c1a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [0x101421f0]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov dword [esp + 0x434], 1
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x100c04f9
lea edx, [esp + 0x21c]
test edx, edx
je 0x100c04f2
lea eax, [esp + 0x14]
test eax, eax
je 0x100c04f2
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebx
je 0x100c04c3
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x10160910
lea edx, [esp + 0x228]
push 0x104
push edx
call fcn.1007e75e
add esp, 0x14
xor esi, esi
mov eax, esi
jmp 0x100c04ff
lea eax, [esp + 0x14]
push eax
call fcn.1007e283
add esp, 4
cmp eax, 0x104
jae 0x100c04ee
lea ecx, [esp + 0x14]
lea edx, [esp + 0x21c]
push ecx
push edx
call fcn.1007e6d0
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x100c04ff
mov eax, 0x57
jmp 0x100c04ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x101b0f58], eax
je 0x100c0511
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100c0522
lea eax, [esp + 0x21c]
lea ecx, [esp + 0xc]
push eax
call fcn.10094f40
mov esi, dword [esp + 0x434]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.100942c0
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call fcn.10094cc0
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret
Function at 0x100c2180
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x41c
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], 0x208
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, ebp
jne 0x100c21f9
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ebp
push str.CommonFilesDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
je 0x100c2254
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x18]
push str.c:program_filescommom_files
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
call fcn.1007e6d0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22a]
mov word [esp + 0x228], bp
rep stosd dword es:[edi], eax
add esp, 8
lea ecx, [esp + 0x220]
stosw word es:[edi], ax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dx, word [esp + 0x220]
mov word [esp + 0x18], dx
jmp 0x100c2279
lea eax, [esp + 0x18]
mov word [esp + 0x21e], bp
push eax
call fcn.1007e283
add esp, 4
dec eax
cmp word [esp + eax*2 + 0x18], 0x5c
lea eax, [esp + eax*2 + 0x18]
jne 0x100c2279
mov word [eax], bp
mov edi, dword [esp + 0x42c]
push ebx
cmp edi, ebp
je 0x100c22e4
mov ebx, dword [esp + 0x434]
cmp ebx, ebp
je 0x100c22e4
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x100c22e4
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebp
je 0x100c22c1
lea edx, [esp + 0x1c]
push eax
push edx
push 0x10160910
push ebx
push edi
call fcn.1007e75e
add esp, 0x14
xor esi, esi
jmp 0x100c22e9
lea eax, [esp + 0x1c]
push eax
call fcn.1007e283
add esp, 4
cmp ebx, eax
jbe 0x100c22e9
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.1007e6d0
add esp, 8
xor esi, esi
jmp 0x100c22e9
mov esi, 0x57
cmp esi, ebp
mov dword [0x101b0f58], esi
pop ebx
je 0x100c22fb
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp esi, ebp
pop edi
pop esi
sete al
pop ebp
add esp, 0x41c
ret
Function at 0x100c8040
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
test ebx, ebx
jne 0x100c805c
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.1007e350
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.1007eff0
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x100c80e0
cmp byte [esp + 0x10], 0x5c
jne 0x100c80e0
cmp byte [esp + 0x11], 0x5c
jne 0x100c80e0
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.1007eff0
add esp, 8
test eax, eax
je 0x100c815e
inc eax
push 0x5c
push eax
call fcn.1007eff0
add esp, 8
mov esi, eax
test esi, esi
je 0x100c815e
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x100c8122
test bl, 1
je 0x100c8111
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x100c8194
cmp ebx, 0xffffffff
je 0x100c812b
test edi, edi
jne 0x100c813a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x100c8194
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.1007eff0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100c80e4
test ebp, ebp
je 0x100c8194
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100c8189
test al, 0x10
jne 0x100c8194
test al, 1
je 0x100c817c
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x100c8194
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x100c81b0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x100c81cc
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.1007e246
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.1007e735
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.1007e283
add esp, 0x18
cmp eax, 2
jbe 0x100c8251
cmp word [esp + 0x10], di
jne 0x100c8251
cmp word [esp + 0x12], di
jne 0x100c8251
lea eax, [esp + 0x14]
push edi
push eax
call fcn.1007e735
add esp, 8
test eax, eax
je 0x100c82d9
add eax, 2
push edi
push eax
call fcn.1007e735
add esp, 8
mov esi, eax
test esi, esi
je 0x100c82d9
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x100c8299
test bl, 1
je 0x100c8288
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x100c830f
cmp ebx, 0xffffffff
je 0x100c82a2
test edi, edi
jne 0x100c82b1
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x100c830f
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.1007e735
mov esi, eax
add esp, 8
test esi, esi
jne 0x100c8259
test ebp, ebp
je 0x100c830f
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100c8304
test al, 0x10
jne 0x100c830f
test al, 1
je 0x100c82f7
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x100c830f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret