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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x1003e030]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0xca8], 1
jne 0x100028a3
mov eax, 0x4df
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018459
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp cx, word [edi + 0xa98]
jne 0x100028c0
lea eax, [ecx + 0xd]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018459
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x80c], ecx
push eax
call fcn.10002fa0
push eax
push 0
lea eax, [edi + 0xcac]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100029d9
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x808]
push esi
push eax
lea esi, [edi + 8]
mov dword [ebp - 0x808], 4
push esi
push 0
push 0
push str.DebugLogDelPolicy
push dword [ebp - 0x80c]
call ebx
test eax, eax
je 0x10002927
mov dword [esi], 3
lea esi, [edi + 0x218]
xor eax, eax
cmp ax, word [esi]
jne 0x100029cb
cmp dword [edi + 0xeb4], 1
jne 0x1000294d
push ecx
push esi
call fcn.10002e50
jmp 0x100029cb
push 0x800
push 0
push esi
mov dword [ebp - 0x808], 0x208
call fcn.10019c70
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
push esi
push 0
push 0
push 0x10035b90
push dword [ebp - 0x80c]
call ebx
test eax, eax
jne 0x1000298f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x100029cb
mov edx, 0x10035bac
mov ecx, 0x400
sub edx, esi
nop dword [eax + eax]
lea eax, [ecx + 0x7ffffbfe]
test eax, eax
je 0x100029be
movzx eax, word [edx + esi]
test ax, ax
je 0x100029be
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x100029a0
test ecx, ecx
lea eax, [esi - 2]
cmovne eax, esi
xor ecx, ecx
mov word [eax], cx
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.10019c70
lea eax, [edi + 0x10]
push eax
lea eax, [edi + 0x218]
push eax
push str._s_s.logs
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.100023f0
add esp, 0x18
lea edx, [edi + 0xa98]
push dword [edi + 8]
push dword [edi + 4]
push ecx
lea ecx, [ebp - 0x804]
call fcn.10004960
add esp, 0x14
test eax, eax
jne 0x10002a39
mov dword [edi + 0xca8], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10018459
mov esp, ebp
pop ebp
ret
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.10018459
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.10018459
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.10019c70
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.10018459
mov esp, ebp
pop ebp
ret 8

Function at 0x10004530
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 0x100045f8
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov esi, eax
test esi, esi
je 0x1000463b
cmp esi, 0x3e5
jne 0x10004617
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 0x100045c5
push 3
jmp 0x100045c7
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
ja case.default.0x100045db
je 0x1000460a
cmp eax, 3
ja case.default.0x100045db
jmp dword [eax*4 + 0x10004650]
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.0x100045db
xor esi, esi
jmp 0x1000463b
mov esi, 0x4c7
jmp 0x1000463b
mov esi, 0x4e7
jmp 0x1000463b
mov esi, 0x5b4
jmp 0x1000463b
call ebx
mov esi, eax
jmp 0x1000463b
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.10018459
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10004660
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.1001eb0e
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x100046b3
pop edi
pop esi
lea eax, [ebx + 8]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018459
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.100196f0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [eax + esi - 4], esi
test esi, esi
je 0x100047db
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 0x100047d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x100047cd
cmp esi, 0x3e5
jne 0x100047a5
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 0x10004763
push 3
jmp 0x10004765
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
ja case.default.0x1000477d
je 0x1000480b
cmp eax, 3
ja case.default.0x1000477d
jmp dword [eax*4 + 0x10004814]
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 0x100047cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100047c9
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 0x100047dd
mov esi, dword [ebp - 0x34]
add ebx, dword [ebp - 0x18]
cmp ebx, esi
jb 0x100046e0
xor esi, esi
push dword [ebp - 0x30]
call fcn.1001c393
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10018459
mov esp, ebp
pop ebp
ret 0xc
mov esi, 0x4c7
jmp 0x100047dd
mov esi, 0x4e7
jmp 0x100047dd
mov esi, 0x5b4
jmp 0x100047dd
Function at 0x10005520
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.10019c70
add esp, 0xc
cmp edi, 0xffffffff
je 0x10005709
mov ecx, dword [ebp - 0x268]
test ecx, ecx
je 0x10005709
mov edi, dword [ebp + 8]
test edi, edi
jle 0x10005709
test ebx, ebx
je 0x10005709
lea ebx, [edi - 0x10]
mov eax, ebx
mov dword [ebp - 0x27c], ebx
cdq
idiv dword [ebp + 0x18]
test edx, edx
jne 0x10005709
cmp dword [0x10041d60], edx
jne 0x100055ca
mov esi, 0x65b
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018459
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x270], 0
test ebx, ebx
jle 0x10005707
mov ebx, dword [ebp + 0xc]
nop
xorps xmm0, xmm0
movups xmmword [ebp - 0x14], xmm0
test ecx, ecx
je 0x10005759
xor eax, eax
cmp ebx, 9
je 0x10005600
cmp ebx, 0xc
je 0x10005600
cmp ebx, 8
jne 0x10005605
mov eax, 0x3f
cmp edi, eax
jl 0x10005759
mov esi, 0x40
sub esi, eax
cmp esi, 0x10
jg 0x10005759
add eax, ecx
push esi
push eax
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x14]
push eax
call fcn.100196f0
push esi
push esi
push dword [ebp - 0x26c]
call fcn.10019c70
add esp, 0x18
cmp ebx, 9
je 0x10005759
cmp ebx, 0xc
jne 0x10005759
push 0x20c
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.10019c70
mov ecx, dword [ebp - 0x274]
lea edx, [ebp - 0x264]
call fcn.100078c8
mov edx, dword [ebp - 0x268]
lea ecx, [ebp - 0x264]
add esp, 8
push edx
lea edx, [ebp - 0x54]
call fcn.100097b6
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x26c]
call fcn.100196f0
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 0x10005740
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 0x1000571c
cmp dword [ebp - 0x58], 0x40
jne 0x10005728
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 0x100055e0
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018459
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x10005709
mov esi, 0x1d
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018459
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.10018459
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.10018459
mov esp, ebp
pop ebp
ret
Function at 0x10005780
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 0x10005980
push 0x2c
push 0
push ebx
call fcn.10019c70
add esp, 0xc
cmp dword [0x10041d60], 0
je 0x10005980
cmp dword [0x10042178], 1
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
jne 0x100057e5
push 0x10041f6e
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x100057f0
push 0x10041e69
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 0x10005962
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
xor cl, cl
cmp ax, word [ebx + 0x19]
je 0x10005947
lea edx, [ebx + 8]
mov esi, 0x10042190
lea edi, [eax + 0xc]
nop dword [eax + eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x10005947
add edx, 4
add esi, 4
sub edi, 4
jae 0x10005830
cmp byte [ebx], 0x73
jne 0x10005947
cmp byte [ebx + 1], 0x6c
jne 0x10005947
cmp byte [ebx + 2], 0x70
jne 0x10005947
cmp byte [ebx + 3], 0x6b
jne 0x10005947
cmp byte [ebx + 4], 0x20
jne 0x10005947
cmp byte [ebx + 5], 0x61
jne 0x10005947
cmp byte [ebx + 6], 0x30
jne 0x10005947
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 0x10005894
add cl, dl
xor cl, 0xf4
cmp cl, byte [ebx + 0x2b]
jne 0x10005947
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 0x100058d0
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 0x100058c0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018459
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.10018459
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1000596e
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.10018459
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.10018459
mov esp, ebp
pop ebp
ret
Function at 0x100064b0
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 0x100065d1
cmp dword [ebp + 0xc], 0
push ebx
push edi
je 0x10006560
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 0x100064f4
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 0x100064e3
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 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 0x10006560
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100070e0
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 0x1000710e
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 0x100071cf
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100071dd
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 0x100071cf
cmp dword [ebp - 0xc], 1
jne 0x100071cf
test ebx, ebx
je 0x100071ca
test esi, esi
je 0x100071ca
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x100071ca
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 0x100071c0
push 0x5c
push dword [ebp - 0x14]
call fcn.1001a5f1
add esp, 8
test eax, eax
je 0x100071cf
xor ecx, ecx
cmp cx, word [eax + 2]
je 0x100071cf
push eax
push ebx
push esi
call fcn.100017f0
test eax, eax
js 0x100071cf
jmp 0x100071ca
push dword [ebp - 0x14]
push ebx
push esi
call fcn.100017b0
mov edi, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100071dd
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.10018459
mov esp, ebp
pop ebp
ret

Function at 0x100071f0
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 0x10007225
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 0x10007230
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 0x10007269
push edi
push esi
push 0x100391a4
push 0x104
push esi
call fcn.10004890
add esp, 0x14
test eax, eax
js 0x10007269
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x10007270
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 0x100072bf
lea eax, [esi + 1]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018459
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 0x10007380
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 0x10007377
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10007377
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10007377
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 0x10007370
cmp dword [ebp - 0x24], 7
jne 0x10007370
mov esi, edi
cmp byte [edi], al
je 0x1000736e
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 0x10007395
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc esi
add esi, eax
cmp byte [esi], 0
jne 0x10007345
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.10018459
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, 1
jmp 0x10007370
Function at 0x1000995e
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.10019c70
and dword [esi + 0x24], 0
add esp, 0xc
and dword [esi + 0x20], 0
pop esi
ret