joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a6b60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014a9e9
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
mov ecx, edx
mov dword [ebp - 0x48], edi
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x2c], 0
lea esi, [ecx + 2]
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a6bc4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.10002060
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x3c]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x100a6c09
push 1
push 0x1016ae40
lea ecx, [ebp - 0x3c]
call fcn.100021c0
push 7
push 0x10165788
lea ecx, [ebp - 0x3c]
call fcn.100021c0
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], 0
cmovae eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], reloc.OLEAUT32.dll_SysReAllocString
push 1
push eax
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.1007eae0
add esp, 8
mov byte [ebp - 4], 4
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
movq qword [ebp - 0x20], xmm0
lea ecx, [ebp - 0x20]
push 0x7fff
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.10002350
push 0xfffe
push 0
push eax
lea esi, [eax + 0xfffe]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], esi
call fcn.10117ff0
add esp, 0xc
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x20]
sub esi, ecx
sar esi, 1
lea eax, [esi + esi]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push ecx
push 0
push 0
push 0x1016a1e4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x100a6cfa
mov edx, dword [ebp - 0x20]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a6ce0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.10002060
jmp 0x100a6d45
push str.get_kit_version
mov edx, 4
lea ecx, [ebp - 0xf0]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 6
mov al, byte [esi + 0x48]
test al, al
je 0x100a6d3a
mov edx, str.RegQueryValueEx_ProductVersion_failed
mov ecx, esi
call fcn.10020800
mov al, byte [esi + 0x48]
test al, al
je 0x100a6d3a
push ebx
mov ecx, esi
call fcn.100394c0
lea ecx, [ebp - 0xf0]
call fcn.1000ad70
lea ecx, [ebp - 0x20]
call fcn.100825d0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100a6d62
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x3c]
call fcn.10002400
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
Function at 0x100a96c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x1019a128]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
lea ecx, [esp + 0xc]
call fcn.100699b0
cmp dword [esp + 0x1c], 0
je 0x100a9798
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
push ecx
push 0xf003f
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0
cmovae eax, dword [esp + 0x14]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100a9759
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0
cmovae eax, dword [esp + 0x24]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x100a9759
xor esi, esi
jmp 0x100a978d
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
mov esi, dword [esp + 8]
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push 4
push ecx
push 4
push str.oobe_flow
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test esi, esi
je 0x100a9798
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
call fcn.10002400
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
Function at 0x100a97c0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014aee5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x1c], esi
call fcn.100deed0
mov dword [ebp - 0x18], 6
lea edi, [eax + 0x60]
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100e1770
mov ecx, dword [ebp - 0x24]
cmp byte [ecx + 0xd], 0
jne 0x100a9836
cmp dword [ecx + 0x10], 6
jle 0x100a9838
mov ecx, dword [edi]
cmp ecx, dword [edi]
je 0x100a98a4
add ecx, 0x14
cmp dword [ecx + 0x14], 8
jb 0x100a9847
mov ecx, dword [ecx]
test ecx, ecx
jne 0x100a98a9
push 0x3b
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x38]
push str.failed_ProductInfo::Get_ProductInfo::Values::RegPathProduct
mov dword [ebp - 0x24], 0xf
call fcn.10002c70
movups xmm0, xmmword [ebp - 0x38]
mov dword [esi], 0x1f
mov dword [esi + 4], 0x1019abc0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
movups xmmword [esi + 8], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [esi + 0x18], xmm0
mov byte [esi + 0x20], 1
jmp 0x100a9961
mov ecx, 0x10168c44
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x10165448
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 1
push 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0x10165448
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov edi, eax
test edi, edi
jne 0x100a9908
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], eax
xor al, al
jmp 0x100a995e
push 0x1d
push str.failed_winapi::reg::set_value
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
call fcn.10002c70
movups xmm0, xmmword [ebp - 0x50]
mov dword [esi], edi
mov al, 1
mov dword [esi + 4], 0x1019abc0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
movups xmmword [esi + 8], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [esi + 0x18], xmm0
mov byte [esi + 0x20], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x100ac4a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov edx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
cmp byte [edx + 8], 0
mov edi, dword [eax]
mov ecx, edi
mov dword [esp + 0xc], esi
lea eax, [ecx + 2]
je 0x100ac4f9
mov dword [esp + 0xc], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ac4d0
sub ecx, dword [esp + 0xc]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
mov eax, dword [edx + 0xc]
push edi
push 1
push eax
push dword [edx + 4]
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
jmp 0x100ac526
mov dword [esp + 0xc], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ac500
sub ecx, dword [esp + 0xc]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
mov eax, dword [edx + 0xc]
push edi
push 1
push 0
push eax
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x100ac594
push 0x1d
push str.failed_winapi::reg::set_value
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xf
call fcn.10002c70
movups xmm0, xmmword [esp + 0x10]
mov dword [esi], edi
mov eax, esi
mov dword [esi + 4], 0x1019abc0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
movups xmmword [esi + 8], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [esi + 0x18], xmm0
mov byte [esi + 0x20], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
xorps xmm0, xmm0
mov eax, esi
movups xmmword [esi], xmm0
pop edi
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov byte [esi + 0x20], 0
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100b6fa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [edx + 4]
xorps xmm0, xmm0
push dword [edx]
movlpd qword [ebp - 0x10], xmm0
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100b6fe6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x1019abc0
xor esi, esi
jmp 0x100b6ff1
mov esi, dword [ebp - 8]
mov edx, 0x1019ab88
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + 4]
cmp ecx, dword [0x1019ab8c]
jne 0x100b7011
test eax, eax
jne 0x100b7011
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.101157bc
mov esp, ebp
pop ebp
ret
push edx
push eax
mov edx, str.ReadFile_failed
lea ecx, [ebp - 0x24]
call fcn.1002dfd0
add esp, 8
lea eax, [ebp - 0x24]
push 0x10197920
push eax
call fcn.101179f2
int3
Function at 0x100bc530
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014cea5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x1019a128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x58
mov dword [ebp - 0x1c], 0
call fcn.101157fb
mov edx, eax
add esp, 4
mov dword [ebp - 0x1c], edx
mov dword [edx + 0x10], 0
lea eax, [edx + 0x10]
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
movups xmm0, xmmword [esi]
mov dword [ebp - 0x14], eax
movups xmmword [edx + 0x10], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edx + 0x20], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [edx + 0x28], eax
lea eax, [esi + 0x20]
mov dword [edx + 0x2c], ecx
lea ecx, [edx + 0x30]
push eax
call fcn.1007abc0
mov esi, dword [ebp - 0x1c]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov word [esi + 0xc], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 1
mov eax, dword [ecx]
mov edx, dword [eax + 4]
xor eax, eax
cmp byte [edx + 0xd], al
jne 0x100bc68f
mov ecx, dword [ebp - 0x14]
mov esi, edx
nop dword [eax]
mov edi, dword [esi + 0x2c]
lea eax, [esi + 0x10]
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x24], esi
cmp dword [ecx + 0x1c], edi
jl 0x100bc679
jg 0x100bc672
cmp dword [ecx + 0x18], edx
jb 0x100bc679
cmp dword [ecx + 0x1c], edi
jg 0x100bc672
jl 0x100bc644
cmp dword [ecx + 0x18], edx
ja 0x100bc672
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x100bc64f
mov eax, dword [eax]
cmp dword [ecx + 0x14], 0x10
mov edi, ecx
jb 0x100bc659
mov edi, dword [ecx]
push edx
mov edx, dword [ecx + 0x10]
mov ecx, edi
push eax
call fcn.10025010
mov ecx, dword [ebp - 0x14]
add esp, 8
shr eax, 0x1f
test al, al
jne 0x100bc679
mov esi, dword [esi + 8]
xor eax, eax
jmp 0x100bc680
mov esi, dword [esi]
mov eax, 1
cmp byte [esi + 0xd], 0
je 0x100bc620
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
cmp dword [ecx + 4], 0x2e8ba2e
je 0x100bc6bd
push esi
push eax
push edx
call fcn.1001c860
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.10007250
int3
Function at 0x100c20d0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
mov esi, ecx
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], esi
push ecx
mov eax, edx
mov dword [ebp - 0xc], esi
push 0
push 1
mov dword [ebp - 0x10], eax
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x100c2134
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, esi
mov dword [esi + 4], 0x1019abc0
mov byte [esi + 0xc], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp - 8]
test edi, edi
jne 0x100c2157
mov dword [esi], edi
mov eax, esi
mov dword [esi + 4], edi
pop edi
mov byte [esi + 0xc], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
push ebx
push edi
call fcn.10115c68
add esp, 4
mov ebx, eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push 0
push 0
push eax
mov eax, dword [ebp - 0x10]
push ebx
push 1
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x100c21b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov dword [esi + 4], 0x1019abc0
push ebx
mov byte [esi + 0xc], 1
call fcn.1011582b
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], edi
je 0x100c21c9
push ebx
mov dword [ebp - 0xc], 0
xor edi, edi
call fcn.1011582b
add esp, 4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
pop ebx
mov dword [esi + 4], edi
xor ecx, ebp
mov dword [esi], eax
mov eax, esi
pop edi
mov byte [esi + 0xc], 0
pop esi
call fcn.101157bc
mov esp, ebp
pop ebp
ret

Function at 0x100c8090
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10139c40
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x1019a128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x18]
movq xmm0, qword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
movq qword [esi + 4], xmm0
mov dword [esi + 0xc], eax
push 1
push 0x10172130
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.10002c70
lea ecx, [esi + 0x30]
mov dword [ecx], 0
push 0
push 0x10164d88
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.10002c70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100ca980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014eae8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1019a128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
movups xmm0, xmmword [esi + 0x18]
movups xmmword [edi + 0x18], xmm0
movq xmm0, qword [esi + 0x28]
movq qword [edi + 0x28], xmm0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 7
mov word [esi + 0x18], ax
mov byte [ebp - 4], 1
mov al, byte [esi + 0x30]
mov byte [edi + 0x30], al
mov ax, word [esi + 0x31]
mov word [edi + 0x31], ax
push 0x14
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
call fcn.101157fb
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi + 0x34], eax
mov ecx, dword [esi + 0x34]
mov dword [edi + 0x34], ecx
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x38]
mov ecx, dword [edi + 0x38]
mov dword [edi + 0x38], eax
mov dword [esi + 0x38], ecx
lea ecx, [edi + 0x40]
mov eax, dword [esi + 0x3c]
add esi, 0x40
mov dword [edi + 0x3c], eax
mov byte [ecx + 0x30], 0
cmp byte [esi + 0x30], 0
je 0x100caa80
push esi
call fcn.100b30a0
mov byte [ecx + 0x30], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100cac20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014eb8b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1019a128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
push edi
call fcn.10001ce0
lea eax, [edi + 0x18]
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x18]
push eax
call fcn.10001ce0
mov byte [ebp - 4], 1
lea esi, [ebx + 0x34]
mov al, byte [edi + 0x30]
mov byte [ebx + 0x30], al
mov ax, word [edi + 0x31]
mov word [ebx + 0x31], ax
push 0x14
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.101157fb
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 2
lea eax, [edi + 0x34]
push dword [ebp + 8]
mov ecx, esi
push eax
call fcn.100cb450
mov eax, dword [edi + 0x3c]
lea esi, [ebx + 0x40]
mov dword [ebx + 0x3c], eax
add edi, 0x40
mov dword [ebp + 8], esi
mov byte [esi + 0x30], 0
mov byte [ebp - 4], 4
cmp byte [edi + 0x30], 0
je 0x100cacf9
push edi
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.10001ce0
lea eax, [edi + 0x18]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x18]
call fcn.10001ce0
mov byte [esi + 0x30], 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100d2f40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014fa70
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x1c]
mov ecx, dword [esi + 0x10]
inc eax
mov dword [ebp - 0x20], edi
cmp eax, ecx
ja 0x100d2fa6
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x100d2f9b
mov ecx, dword [esi]
xor edx, edx
mov dword [esi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x100d2fb2
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.10001d80
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, esi
jb 0x100d2fc5
mov eax, dword [esi]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100d3004
mov dword [edi], eax
mov dword [edi + 4], 0x1019abc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x18]
cmp eax, ecx
ja 0x100d3023
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x100d3018
mov ecx, dword [esi]
xor edx, edx
mov dword [esi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x100d302f
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.10001d80
mov ecx, esi
call fcn.10011e90
mov dword [edi], 0
mov dword [edi + 4], 0x1019ab88
jmp 0x100d2fe8
Function at 0x100d3590
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014fb60
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], esi
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x100d3616
xor eax, eax
mov dword [esi], 0
lea ecx, [ebp - 0x30]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edx, [ecx + 2]
mov word [esi], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100d3600
sub ecx, edx
lea eax, [ebp - 0x30]
sar ecx, 1
push ecx
push eax
jmp 0x100d368e
push 0x101746e0
mov edx, 4
lea ecx, [ebp - 0xdc]
call fcn.1000aed0
add esp, 4
mov edi, eax
mov dword [ebp - 4], 0
cmp byte [edi + 0x48], 0
je 0x100d3649
mov edx, str.GetComputerName_err
mov ecx, edi
call fcn.100205a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0x48], 0
je 0x100d365d
push eax
mov ecx, edi
call fcn.100201d0
lea ecx, [ebp - 0xdc]
mov dword [ebp - 4], 0xffffffff
call fcn.1000ad70
xor eax, eax
mov dword [esi], 0
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x10168c44
mov ecx, esi
call fcn.10002060
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
Function at 0x100db460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], edx
mov esi, edx
lea eax, [ecx - 1]
mov dword [ebp - 0x14], ecx
mov edi, eax
mov dword [ebp - 0xc], edx
sar edi, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
cmp edx, edi
jge 0x100db4c8
add esi, esi
lea eax, [esi + 2]
imul ecx, eax, 0x74
add ecx, ebx
lea eax, [ecx - 0x74]
push eax
push ecx
call fcn.100d76e0
imul ecx, dword [ebp - 8], 0x74
movzx eax, al
xor eax, 1
inc eax
add esi, eax
imul eax, esi, 0x74
add ecx, ebx
add eax, ebx
push eax
call fcn.100befc0
mov dword [ebp - 8], esi
cmp esi, edi
jl 0x100db490
mov ecx, dword [ebp - 0x14]
mov edi, esi
cmp esi, dword [ebp - 0x18]
jne 0x100db4ea
test cl, 1
jne 0x100db4ea
imul eax, ecx, 0x74
imul ecx, esi, 0x74
add eax, 0xffffff8c
add eax, ebx
add ecx, ebx
push eax
call fcn.100befc0
mov edi, dword [ebp - 4]
cmp dword [ebp - 0xc], edi
jge 0x100db51e
nop
push dword [ebp - 0x10]
lea esi, [edi - 1]
sar esi, 1
imul eax, esi, 0x74
add eax, ebx
push eax
mov dword [ebp - 4], eax
call fcn.100d76e0
test al, al
je 0x100db51e
push dword [ebp - 4]
imul ecx, edi, 0x74
add ecx, ebx
call fcn.100befc0
mov edi, esi
cmp dword [ebp - 0xc], esi
jl 0x100db4f0
push dword [ebp - 0x10]
imul ecx, edi, 0x74
add ecx, ebx
call fcn.100befc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100dc950
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push 0
push dword [edx + 4]
xorps xmm0, xmm0
push dword [edx]
movlpd qword [esp + 0x24], xmm0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x100dc984
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x1019abc0
jmp 0x100dc98d
mov ecx, dword [esp + 0x18]
mov edx, 0x1019ab88
mov eax, dword [edx + 4]
cmp eax, dword [0x1019ab8c]
jne 0x100dc9a0
test ecx, ecx
jne 0x100dc9a0
mov esp, ebp
pop ebp
ret
push edx
push ecx
mov edx, str.CryptHashData_failed
lea ecx, [esp + 0xc]
call fcn.1002dfd0
add esp, 8
lea eax, [esp + 4]
push 0x10197920
push eax
call fcn.101179f2
int3