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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1003e030]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
xor edi, edi
mov esi, ecx
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
call fcn.10002fa0
push eax
push edi
lea eax, [esi + 0xcac]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10002d0a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x10035c00
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10002cf9
cmp dword [ebp - 8], 1
jne 0x10002cf9
cmp dword [esi + 0xca4], edi
jne 0x10002cf2
push dword [ebp - 0x10]
mov ecx, esi
call fcn.10002d40
mov dword [esi + 0xca4], 1
mov edi, 1
jmp 0x10002d01
mov dword [esi + 0xca4], edi
xor edi, edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0xeb4], 1
jne 0x10002d20
push ecx
lea ecx, [esi + 0x218]
push ecx
call fcn.10002e50
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
mov dword [esi + 0xebc], eax
xor ecx, ebp
mov eax, edi
pop edi
pop esi
call fcn.100184e9
mov esp, ebp
pop ebp
ret

Function at 0x10002d40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1003e030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
je 0x10002e33
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea esi, [ebx + 4]
push esi
push 0
push 0
push str.DebugLogMaxSize
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10002d89
mov dword [esi], 0x800000
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x208
push eax
lea esi, [ebx + 0x218]
push esi
push 0
push 0
push 0x10035b90
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10002dba
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x10002df1
mov edx, 0x10035bac
mov ecx, 0x104
sub edx, esi
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x10002de4
movzx eax, word [edx + esi]
test ax, ax
je 0x10002de4
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x10002dc6
test ecx, ecx
lea eax, [esi - 2]
cmovne eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 4
push eax
push 0
push 0
push str.DebugLogTime
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop esi
test eax, eax
jne 0x10002e33
mov ecx, dword [ebp - 0xc]
lea eax, [ecx - 1]
cmp eax, 0x3b
ja 0x10002e33
imul eax, ecx, 0xea60
mov dword [ebx + 0xeb8], eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100184e9
mov esp, ebp
pop ebp
ret 4
Function at 0x10002e50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1003e030]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10002ee3
push ebx
push esi
mov ebx, str._ALLUSERSPROFILE_Application_DataAhnLabAIS
call fcn.10002f00
cmp eax, 1
mov esi, str._PROGRAMDATA_AhnLabAIS
push 0x20a
lea eax, [ebp - 0x210]
cmovne esi, ebx
push 0
push eax
call fcn.10019d00
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x105
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
cmp ecx, eax
pop esi
sbb ecx, ecx
neg ecx
pop ebx
test eax, eax
jne 0x10002ecd
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x10002ee3
lea eax, [ebp - 0x210]
push eax
push 0x400
push edi
call fcn.100017b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.100184e9
mov esp, ebp
pop ebp
ret 8

Function at 0x100045b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1003e030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x2c], ebx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp + 0xc]
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
je 0x10004678
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov esi, eax
test esi, esi
je 0x100046bb
cmp esi, 0x3e5
jne 0x10004697
mov eax, dword [edi + 0x18]
push dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x14]
test eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push 0
push eax
jne 0x10004645
push 3
jmp 0x10004647
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
ja case.default.0x1000465b
je 0x1000468a
cmp eax, 3
ja case.default.0x1000465b
jmp dword [eax*4 + 0x100046d0]
push 0
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je case.default.0x1000465b
xor esi, esi
jmp 0x100046bb
mov esi, 0x4c7
jmp 0x100046bb
mov esi, 0x4e7
jmp 0x100046bb
mov esi, 0x5b4
jmp 0x100046bb
call ebx
mov esi, eax
jmp 0x100046bb
push 0
push str.u:projectmedicine_framework2.5_trunk_src_asdcommon_remoteclient.cpp
mov ecx, 0x1003ebd0
call fcn.100024a0
push esi
push str._Read__d_
push 0x1003ebd0
call fcn.10002620
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100184e9
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100046e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1003e030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
add esi, 8
mov dword [ebp - 0x38], eax
push esi
mov edi, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], esi
call fcn.1001ebae
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x10004733
pop edi
pop esi
lea eax, [ebx + 8]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100184e9
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0xc]
mov dword [eax], esi
add eax, 4
push dword [ebp - 0x38]
push eax
call fcn.10019780
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [eax + esi - 4], esi
test esi, esi
je 0x1000485b
nop word [eax + eax]
push dword [edi + 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, esi
sub eax, ebx
push eax
mov eax, dword [ebp - 0x30]
add eax, ebx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x10004850
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x1000484d
cmp esi, 0x3e5
jne 0x10004825
mov eax, dword [edi + 0x18]
push dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x14]
test eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push 0
push eax
jne 0x100047e3
push 3
jmp 0x100047e5
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
ja case.default.0x100047fd
je 0x1000488b
cmp eax, 3
ja case.default.0x100047fd
jmp dword [eax*4 + 0x10004894]
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1000484d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10004849
push 0
push str.u:projectmedicine_framework2.5_trunk_src_asdcommon_remoteclient.cpp
mov ecx, 0x1003ebd0
call fcn.100024a0
push esi
push str._Write__d_
push 0x1003ebd0
call fcn.10002620
add esp, 0xc
test esi, esi
jne 0x1000485d
mov esi, dword [ebp - 0x34]
add ebx, dword [ebp - 0x18]
cmp ebx, esi
jb 0x10004760
xor esi, esi
push dword [ebp - 0x30]
call fcn.1001c433
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100184e9
mov esp, ebp
pop ebp
ret 0xc
mov esi, 0x4c7
jmp 0x1000485d
mov esi, 0x4e7
jmp 0x1000485d
mov esi, 0x5b4
jmp 0x1000485d
Function at 0x100055a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x1003e030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x54]
push esi
push edi
push 0x40
mov edi, ecx
mov dword [ebp - 0x268], edx
push 0
push eax
mov dword [ebp - 0x278], edi
mov esi, 0x57
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x58], 0
call fcn.10019d00
add esp, 0xc
cmp edi, 0xffffffff
je 0x10005789
mov ecx, dword [ebp - 0x268]
test ecx, ecx
je 0x10005789
mov edi, dword [ebp + 8]
test edi, edi
jle 0x10005789
test ebx, ebx
je 0x10005789
lea ebx, [edi - 0x10]
mov eax, ebx
mov dword [ebp - 0x27c], ebx
cdq
idiv dword [ebp + 0x18]
test edx, edx
jne 0x10005789
cmp dword [0x10041d90], edx
jne 0x1000564a
mov esi, 0x65b
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100184e9
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x270], 0
test ebx, ebx
jle 0x10005787
mov ebx, dword [ebp + 0xc]
nop
xorps xmm0, xmm0
movups xmmword [ebp - 0x14], xmm0
test ecx, ecx
je 0x100057d9
xor eax, eax
cmp ebx, 9
je 0x10005680
cmp ebx, 0xc
je 0x10005680
cmp ebx, 8
jne 0x10005685
mov eax, 0x3f
cmp edi, eax
jl 0x100057d9
mov esi, 0x40
sub esi, eax
cmp esi, 0x10
jg 0x100057d9
add eax, ecx
push esi
push eax
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10019780
push esi
push esi
push dword [ebp - 0x26c]
call fcn.10019d00
add esp, 0x18
cmp ebx, 9
je 0x100057d9
cmp ebx, 0xc
jne 0x100057d9
push 0x20c
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.10019d00
mov ecx, dword [ebp - 0x274]
lea edx, [ebp - 0x264]
call fcn.10007954
mov edx, dword [ebp - 0x268]
lea ecx, [ebp - 0x264]
add esp, 8
push edx
lea edx, [ebp - 0x54]
call fcn.10009842
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x26c]
call fcn.10019780
mov esi, dword [ebp - 0x278]
add esp, 0x14
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100057c0
push 0
lea eax, [ebp - 0x58]
push eax
push 0x40
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000579c
cmp dword [ebp - 0x58], 0x40
jne 0x100057a8
mov eax, dword [ebp + 0x18]
sub edi, eax
mov edx, dword [ebp - 0x270]
mov ecx, dword [ebp - 0x268]
add edx, eax
add ecx, eax
mov dword [ebp - 0x270], edx
mov dword [ebp - 0x268], ecx
cmp edx, dword [ebp - 0x27c]
jl 0x10005660
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100184e9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x10005789
mov esi, 0x1d
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100184e9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov esi, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100184e9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov esi, 0x1770
pop edi
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.100184e9
mov esp, ebp
pop ebp
ret
Function at 0x10005800
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1003e030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 8], 0
test ebx, ebx
je 0x10005a00
push 0x2c
push 0
push ebx
call fcn.10019d00
add esp, 0xc
cmp dword [0x10041d90], 0
je 0x10005a00
cmp dword [0x100421a8], 1
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
jne 0x10005865
push 0x10041f9e
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x10005870
push 0x10041e99
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x2c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100059e2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
xor cl, cl
cmp ax, word [ebx + 0x19]
je 0x100059c7
lea edx, [ebx + 8]
mov esi, 0x100421c0
lea edi, [eax + 0xc]
nop dword [eax + eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x100059c7
add edx, 4
add esi, 4
sub edi, 4
jae 0x100058b0
cmp byte [ebx], 0x73
jne 0x100059c7
cmp byte [ebx + 1], 0x6c
jne 0x100059c7
cmp byte [ebx + 2], 0x70
jne 0x100059c7
cmp byte [ebx + 3], 0x6b
jne 0x100059c7
cmp byte [ebx + 4], 0x20
jne 0x100059c7
cmp byte [ebx + 5], 0x61
jne 0x100059c7
cmp byte [ebx + 6], 0x30
jne 0x100059c7
xor dl, dl
lea eax, [ebx + 0xa]
mov esi, 0x11
add cl, byte [eax - 1]
lea eax, [eax + 2]
add dl, byte [eax - 2]
sub esi, 1
jne 0x10005914
add cl, dl
xor cl, 0xf4
cmp cl, byte [ebx + 0x2b]
jne 0x100059c7
add ebx, 0x1b
mov dword [ebp - 8], 2
mov dword [ebp - 0xc], ebx
nop dword [eax]
mov esi, dword [ebx]
mov eax, 0x2898bd67
mov edi, dword [ebx + 4]
mov ebx, 0x1f
nop
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xd
add edx, esi
and ecx, 3
mov ecx, dword [ecx*4 + 0x10039220]
add ecx, eax
add eax, 0x61c98647
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ecx*4 + 0x10039220]
add ecx, eax
xor edx, ecx
sub esi, edx
sub ebx, 1
jne 0x10005950
mov ebx, dword [ebp - 0xc]
mov dword [ebx], esi
mov dword [ebx + 4], edi
add ebx, 8
sub dword [ebp - 8], 1
mov dword [ebp - 0xc], ebx
jne 0x10005940
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100184e9
mov esp, ebp
pop ebp
ret
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100184e9
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x100059ee
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100184e9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.100184e9
mov esp, ebp
pop ebp
ret
Function at 0x10006530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
push esi
mov esi, edx
mov dword [ebp - 4], ecx
mov edx, 0x10039220
mov dword [ebp - 8], esi
cmovne edx, eax
mov dword [ebp - 0xc], edx
test esi, esi
je 0x10006651
cmp dword [ebp + 0xc], 0
push ebx
push edi
je 0x100065e0
mov edi, dword [ecx]
xor esi, esi
mov ebx, dword [ecx + 4]
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 8], 0x1f
mov edx, ebx
mov eax, ebx
shl eax, 4
shr edx, 5
xor edx, eax
mov eax, esi
and eax, 3
add edx, ebx
mov eax, dword [ecx + eax*4]
add eax, esi
sub esi, 0x61c98647
xor edx, eax
add edi, edx
mov edx, edi
mov eax, edi
shl eax, 4
shr edx, 5
xor edx, eax
mov eax, esi
shr eax, 0xd
add edx, edi
and eax, 3
mov eax, dword [ecx + eax*4]
add eax, esi
xor edx, eax
add ebx, edx
sub dword [ebp + 8], 1
jne 0x10006574
mov ecx, dword [ebp - 4]
mov dword [ecx], edi
mov dword [ecx + 4], ebx
add ecx, 8
sub dword [ebp - 8], 8
mov dword [ebp - 4], ecx
jne 0x10006563
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ecx]
mov esi, 0x2898bd67
mov ebx, dword [ecx + 4]
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 8], 0x1f
mov edx, edi
mov eax, edi
shl eax, 4
shr edx, 5
xor edx, eax
mov eax, esi
shr eax, 0xd
add edx, edi
and eax, 3
mov eax, dword [ecx + eax*4]
add eax, esi
add esi, 0x61c98647
xor edx, eax
sub ebx, edx
mov edx, ebx
mov eax, ebx
shl eax, 4
shr edx, 5
xor edx, eax
mov eax, esi
and eax, 3
add edx, ebx
mov eax, dword [ecx + eax*4]
add eax, esi
xor edx, eax
sub edi, edx
sub dword [ebp + 8], 1
jne 0x100065f4
mov ecx, dword [ebp - 4]
mov dword [ecx], edi
mov dword [ecx + 4], ebx
add ecx, 8
sub dword [ebp - 8], 8
mov dword [ebp - 4], ecx
jne 0x100065e0
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1003e030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, edx
mov dword [ebp - 0x10], edi
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
test esi, esi
je 0x1000718e
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x1003914c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000724f
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000725d
lea ecx, [ebp - 8]
mov dword [ebp - 8], 4
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0x10035c00
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000724f
cmp dword [ebp - 0xc], 1
jne 0x1000724f
test ebx, ebx
je 0x1000724a
test esi, esi
je 0x1000724a
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1000724a
lea eax, [ebx*2 - 2]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
push 0x10035b90
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10007240
push 0x5c
push dword [ebp - 0x14]
call fcn.1001a681
add esp, 8
test eax, eax
je 0x1000724f
xor ecx, ecx
cmp cx, word [eax + 2]
je 0x1000724f
push eax
push ebx
push esi
call fcn.100017f0
test eax, eax
js 0x1000724f
jmp 0x1000724a
push dword [ebp - 0x14]
push ebx
push esi
call fcn.100017b0
mov edi, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000725d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100184e9
mov esp, ebp
pop ebp
ret

Function at 0x10007270
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov esi, edx
mov edi, ecx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100072a5
push edi
push esi
push 0x10035ab4
push 0x104
push esi
call fcn.10001870
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x100072b0
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov esi, edx
mov edi, ecx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100072e9
push edi
push esi
push 0x100391a4
push 0x104
push esi
call fcn.10004910
add esp, 0x14
test eax, eax
js 0x100072e9
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x100072f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1003e030]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
sub esp, 8
xor esi, esi
mov dword [ebp - 0x28], esi
call fcn.10001b10
add esp, 8
test eax, eax
je 0x1000733f
lea eax, [esi + 1]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100184e9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10007400
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x24], esi
push eax
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], esi
push eax
push 0
push str.ProductSuite
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100073f7
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100073f7
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x100073f7
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push 0
push str.ProductSuite
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100073f0
cmp dword [ebp - 0x24], 7
jne 0x100073f0
mov esi, edi
cmp byte [edi], al
je 0x100073ee
movups xmm0, xmmword [str.Terminal_Server]
lea eax, [ebp - 0x20]
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10007415
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc esi
add esi, eax
cmp byte [esi], 0
jne 0x100073c5
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.100184e9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, 1
jmp 0x100073f0
Function at 0x100099ea
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 0x28]
mov dword [esi], 0x6a09e667
push eax
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
call fcn.10019d00
and dword [esi + 0x24], 0
add esp, 0xc
and dword [esi + 0x20], 0
pop esi
ret
Function at 0x10009d0d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
push edi
mov edi, edx
test ebx, ebx
je 0x10009e19
push esi
mov esi, dword [edi + 0x20]
mov edx, esi
rol esi, 0x10
mov ecx, esi
shr edx, 3
mov eax, esi
shr ecx, 8
shl eax, 8
xor ecx, eax
shl esi, 8
and ecx, 0xff00ff
xor ecx, esi
mov dword [ebp - 8], ecx
mov ecx, dword [edi + 0x24]
rol ecx, 0x10
mov esi, ecx
mov eax, ecx
shr esi, 8
shl eax, 8
xor esi, eax
shl ecx, 8
and esi, 0xff00ff
xor esi, ecx
mov dword [ebp - 0xc], esi
push 0x38
and edx, 0x3f
je 0x10009dc5
mov byte [edx + edi + 0x28], 0x80
inc edx
pop ebx
cmp edx, ebx
ja 0x10009d91
sub ebx, edx
lea eax, [edi + 0x28]
push ebx
add eax, edx
push 0
push eax
call fcn.10019d00
lea esi, [edi + 0x28]
jmp 0x10009dc0
push 0x40
pop eax
cmp edx, eax
jae 0x10009dab
sub eax, edx
push eax
lea eax, [edi + 0x28]
add eax, edx
push 0
push eax
call fcn.10019d00
add esp, 0xc
lea esi, [edi + 0x28]
mov ecx, edi
mov edx, esi
call fcn.10009a3e
push ebx
push 0
push esi
call fcn.10019d00
mov ebx, dword [ebp - 4]
jmp 0x10009dd3
lea esi, [edi + 0x28]
push 0
push esi
call fcn.10019d00
mov byte [esi], 0x80
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [edi + 0x64], eax
mov edx, esi
mov eax, dword [ebp - 0xc]
mov ecx, edi
mov dword [edi + 0x60], eax
call fcn.10009a3e
xor esi, esi
mov edx, dword [edi + esi*4]
rol edx, 0x10
mov ecx, edx
mov eax, edx
shr ecx, 8
shl eax, 8
xor ecx, eax
shl edx, 8
and ecx, 0xff00ff
xor ecx, edx
mov dword [edi + esi*4], ecx
inc esi
mov dword [ebx], ecx
lea ebx, [ebx + 4]
cmp esi, 8
jl 0x10009ded
pop esi
and dword [edi], 0
pop edi
pop ebx
leave
ret
Function at 0x1000b977
Capabilities:
Hash data using sha1

Disassembly:
push edi
xor eax, eax
lea edi, [ecx + 0x1c]
mov dword [ecx + 0x5c], eax
push 0x10
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], 0xc3d2e1f0
pop ecx
rep stosd dword es:[edi], eax
pop edi
ret
Function at 0x1000dc6d
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 4], 0
and dword [ecx], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], 0xc3d2e1f0
ret