joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1021c0c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp byte [0x1046ee8], bl
push esi
push edi
je 0x1021c3b
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1021d3f
cmp dword [ebp + 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jne 0x1021c51
mov dword [ebp + 0xc], ebx
jmp 0x1021c85
push dword [ebp + 0xc]
call edi
lea eax, [eax + eax + 2]
mov dword [ebp - 8], eax
add eax, 5
and al, 0xfc
call fcn.01024980
mov dword [ebp - 4], esp
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
test eax, eax
jl 0x1021c4c
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x1021cf6
cmp eax, 2
je 0x1021cf6
cmp eax, 7
jne 0x1021ced
cmp dword [ebp + 0x18], ebx
je 0x1021ce5
push dword [ebp + 0x18]
call fcn.010208b5
push dword [ebp + 0x18]
cmp eax, 0xffffffff
jne 0x1021cb1
call edi
inc eax
jmp 0x1021cb6
call fcn.010208b5
lea edi, [eax + eax]
lea eax, [edi + 2]
add eax, 3
and al, 0xfc
call fcn.01024980
mov dword [ebp - 4], esp
push dword [ebp + 0x18]
call fcn.010208b5
push ebx
push ebx
push edi
push dword [ebp - 4]
push eax
push dword [ebp + 0x18]
push ebx
push ebx
call esi
mov ebx, dword [ebp - 4]
mov dword [ebp + 0x18], eax
push dword [ebp + 0x18]
push ebx
push 7
jmp 0x1021d30
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
jmp 0x1021d30
cmp dword [ebp + 0x18], ebx
je 0x1021d29
push dword [ebp + 0x18]
call edi
lea edi, [eax + eax + 2]
lea eax, [edi + 2]
add eax, 3
and al, 0xfc
call fcn.01024980
mov dword [ebp - 4], esp
push ebx
push ebx
push edi
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 0x18]
push ebx
push ebx
call esi
mov ebx, dword [ebp - 4]
mov dword [ebp + 0x18], eax
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1021d49
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x1046ee8], 0
push ebx
push esi
push edi
je 0x1021d78
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x1021ed8
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x1021d84
mov dword [ebp + 0xc], ebx
jmp 0x1021dbb
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.01024980
mov edi, esp
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
mov dword [ebp + 0xc], ebx
jl 0x1021dbb
mov dword [ebp + 0xc], edi
lea eax, [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x1021ed8
cmp dword [ebp + 0x18], ebx
jne 0x1021e1b
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 4]
cmp eax, ebx
je 0x1021e09
cmp ecx, ebx
jbe 0x1021e04
cmp ecx, 2
jbe 0x1021dfd
cmp ecx, 7
jne 0x1021e04
mov edx, dword [ebp - 8]
add edx, edx
jmp 0x1021e07
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x1021ed5
mov dword [eax], ecx
jmp 0x1021ed5
mov ecx, dword [ebp - 4]
cmp ecx, ebx
jbe 0x1021e33
cmp ecx, 2
jbe 0x1021e2c
cmp ecx, 7
jne 0x1021e33
mov eax, dword [ebp - 8]
add eax, eax
jmp 0x1021e36
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 0x1c]
cmp dword [edi], eax
jae 0x1021e54
mov dword [edi], eax
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x1021e48
mov dword [eax], ecx
mov dword [ebp - 0xc], 0xea
jmp 0x1021ed5
cmp ecx, ebx
jbe 0x1021ec0
cmp ecx, 2
jbe 0x1021e62
cmp ecx, 7
jne 0x1021ec0
add eax, 3
and al, 0xfc
call fcn.01024980
lea eax, [ebp - 8]
mov ebx, esp
push eax
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
xor esi, esi
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x1021ed5
cmp dword [ebp - 4], esi
jbe 0x1021ed5
cmp dword [ebp - 4], 2
jbe 0x1021e9c
cmp dword [ebp - 4], 7
jne 0x1021ed5
push dword [edi]
push dword [ebp + 0x18]
push dword [ebp - 8]
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
shl eax, 1
mov dword [edi], eax
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x1021ed5
mov ecx, dword [ebp - 4]
jmp 0x1021e14
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1023115
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [0x1046ee8], bl
push esi
push edi
je 0x1023133
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1023179
cmp dword [ebp + 8], ebx
jne 0x102313c
xor eax, eax
jmp 0x1023179
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.01024980
mov edi, esp
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jge 0x102316f
xor edi, edi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1023242
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x1046ee8], 0
push ebx
push esi
push edi
je 0x102325f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x1023290
mov edi, dword [ebp + 0xc]
lea esi, [edi + edi]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.01024980
mov ebx, esp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
mov esi, eax
push dword [ebp + 8]
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, esi
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x102329a
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x1046ee8], bl
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x10232d7
push str.GetDiskFreeSpaceExW
push str.kernel32.dll
call fcn.01021483
push eax
call edi
cmp eax, ebx
je 0x10232d7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
jmp 0x1023339
xor esi, esi
cmp dword [ebp + 8], ebx
je 0x1023319
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.01024980
mov dword [ebp - 4], esp
push ebx
push ebx
push esi
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jge 0x1023316
xor esi, esi
jmp 0x1023319
mov esi, dword [ebp - 4]
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call fcn.01021483
push eax
call edi
cmp eax, ebx
je 0x102333d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
jmp 0x10233b6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x10233b4
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x10233ac
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x10233ac
mov eax, dword [ebp - 8]
mul dword [ebp - 0xc]
push edx
push eax
push ebx
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
call fcn.01024a40
push dword [ebp - 0xc]
mov dword [esi], eax
mov dword [esi + 4], edx
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0x18]
call fcn.01024a40
mov dword [edi], eax
mov eax, dword [ebp + 0x14]
cmp eax, ebx
mov dword [edi + 4], edx
je 0x10233a7
mov ecx, dword [esi]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
push 1
pop eax
jmp 0x10233b6
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x102360b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [0x1046ee8], bl
push esi
push edi
je 0x1023626
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
jmp 0x1023665
cmp dword [ebp + 8], ebx
je 0x102365c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.01024980
mov edi, esp
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jge 0x102365e
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x102366f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp byte [0x1046ee8], bl
push edi
je 0x102368f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
jmp 0x10236d9
cmp dword [ebp + 0xc], ebx
je 0x10236cd
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x10236cd
add eax, 3
and al, 0xfc
call fcn.01024980
mov edi, esp
cmp edi, ebx
je 0x10236d7
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov esi, eax
cmp esi, ebx
je 0x10236d7
push dword [ebp + 8]
push dword [ebp + 0xc]
push esi
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x10236d5
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov esi, eax
mov eax, esi
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1023753
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
xor ebx, ebx
cmp byte [0x1046ee8], bl
push esi
push edi
je 0x10237b2
mov eax, dword [0x1047308]
cmp eax, ebx
jne 0x102379c
push str.shell32.dll
call fcn.010215db
cmp eax, ebx
je 0x1023795
push str.SHGetFileInfoW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x1047308], eax
jne 0x102379c
xor eax, eax
jmp 0x102388c
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x102388c
test byte [ebp + 0x18], 8
je 0x10237bd
mov eax, dword [ebp + 8]
jmp 0x10237f9
cmp dword [ebp + 8], ebx
jne 0x10237c6
xor eax, eax
jmp 0x10237f9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.01024980
mov edi, esp
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jl 0x10237c2
mov eax, edi
push dword [ebp + 0x18]
lea ecx, [ebp - 0x160]
push 0x160
push ecx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov esi, dword [ebp + 0x10]
mov dword [ebp + 8], eax
cmp esi, ebx
je 0x1023889
cmp dword [ebp + 0x14], 0x2b4
jne 0x1023889
test dword [ebp + 0x18], 0x20800
je 0x1023837
mov eax, dword [ebp - 0x158]
mov dword [esi + 8], eax
test byte [ebp + 0x19], 0x12
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
je 0x1023859
lea eax, [esi + 0xc]
push 0x104
push eax
lea eax, [ebp - 0x154]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call edi
test byte [ebp + 0x19], 0x41
je 0x1023870
mov eax, dword [ebp - 0x160]
mov dword [esi], eax
mov eax, dword [ebp - 0x15c]
mov dword [esi + 4], eax
test byte [ebp + 0x19], 4
je 0x1023889
add esi, 0x214
push 0x50
push esi
lea eax, [ebp - 0x50]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call edi
mov eax, dword [ebp + 8]
lea esp, [ebp - 0x16c]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10270c0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x102710c
jle 0x1027107
cmp eax, 3
jg 0x1027107
push esi
mov esi, dword [ecx]
test esi, esi
je 0x10270fe
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
sub ecx, eax
push edi
sub edx, eax
mov edi, dword [ecx + eax]
mov ebx, dword [eax]
xor edi, ebx
mov dword [edx + eax], edi
add eax, 4
dec esi
jne 0x10270ec
pop edi
pop ebx
mov eax, 1
pop esi
ret 0x10
xor eax, eax
ret 0x10
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call fcn.01028100
mov eax, 1
ret 0x10

Function at 0x1027680
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x10276cc
jle 0x10276c7
cmp eax, 3
jg 0x10276c7
push esi
mov esi, dword [ecx]
test esi, esi
je 0x10276be
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
sub ecx, eax
push edi
sub edx, eax
mov edi, dword [ecx + eax]
mov ebx, dword [eax]
xor edi, ebx
mov dword [edx + eax], edi
add eax, 4
dec esi
jne 0x10276ac
pop edi
pop ebx
mov eax, 1
pop esi
ret 0x10
xor eax, eax
ret 0x10
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call fcn.01028570
mov eax, 1
ret 0x10
Function at 0x1027ba0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x124]
push edi
mov eax, dword [esi + 8]
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov ecx, dword [esi + 0x124]
sub eax, 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
je 0x1027ce2
dec eax
je 0x1027be6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 0xc
mov ecx, dword [esi + 0x20]
push esi
mov edi, ecx
lea eax, [esp + 0x20]
and ecx, 0x1f
mov ebx, 1
push 1
push eax
shr edi, 5
shl ebx, cl
call fcn.01027130
test eax, eax
mov ebp, dword [esp + 0x124]
je 0x1027c24
push esi
push 1
push ebp
call fcn.01027130
test eax, eax
je 0x1027c24
mov eax, 1
jmp 0x1027c26
xor eax, eax
mov ecx, dword [esp + 0x10]
lea edi, [esp + edi*4 + 0x1c]
cmp ecx, 1
mov dword [edi], ebx
je 0x1027c97
dec ecx
mov dword [esp + 0x10], ecx
test eax, eax
je 0x1027c84
lea ecx, [esp + 0x1c]
push esi
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call fcn.010274b0
test eax, eax
je 0x1027c84
push esi
push ebp
push ebp
push ebp
call fcn.010274b0
test eax, eax
je 0x1027c84
mov ecx, dword [esp + 0x120]
push esi
push ebp
push ebp
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.01027520
test eax, eax
je 0x1027c84
mov eax, 1
jmp 0x1027c86
xor eax, eax
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
xor edx, ebx
dec ecx
mov dword [edi], edx
mov dword [esp + 0x10], ecx
jne 0x1027c3a
test eax, eax
je 0x1027bd7
lea eax, [esp + 0x1c]
push esi
push eax
push ebp
push ebp
push ebp
call fcn.01027520
test eax, eax
je 0x1027bd7
mov ecx, dword [esp + 0x120]
push esi
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.010271f0
test eax, eax
je 0x1027bd7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret 0xc
xor esi, esi
xor edx, edx
test edi, edi
mov edi, dword [esp + 0x124]
je 0x1027d39
mov ebx, dword [esp + 0x120]
mov eax, edx
shr eax, 5
mov ecx, edx
mov ebx, dword [ebx + eax*4]
and ecx, 0x1f
shr ebx, cl
mov ebp, dword [edi + eax*4]
and ebx, 1
xor esi, ebx
mov ebx, esi
not ebx
and ebx, 1
shl ebx, cl
not ebx
and ebx, ebp
mov ebp, esi
and ebp, 1
shl ebp, cl
or ebx, ebp
inc edx
mov dword [edi + eax*4], ebx
mov eax, dword [esp + 0x10]
cmp edx, eax
jne 0x1027cf1
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + ebx*4 - 4]
xor eax, eax
test esi, esi
sete al
shl edx, cl
shr edx, cl
mov dword [edi + ebx*4 - 4], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0xc

Function at 0x1028f60
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x18]
sub eax, 0x182
je 0x1028f94
sub eax, 0x64
je 0x1028f94
sub eax, 0x64
cmp word [esp + 0x20], 6
jb 0x1028f94
push 0xc
call fcn.0102e580
add esp, 0x24
ret
push 4
call fcn.0102e580
add esp, 0x24
ret
Function at 0x102dad0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
sub esp, 0x51c
lea edx, [eax + 0x1f]
push ebx
push ebp
lea ebp, [ecx + 0x1f]
push esi
shr edx, 5
shr ebp, 5
cmp edx, ebp
mov ebx, edx
ja 0x102daf5
mov ebx, ebp
mov ecx, dword [esp + 0x53c]
xor esi, esi
xor eax, eax
cmp ecx, esi
setne al
cmp ebx, esi
mov dword [esp + 0xc], eax
je 0x102dcfc
cmp ebx, 0x40
ja 0x102dcfc
lea eax, [esp + 0x324]
mov ecx, ebx
mov dword [eax - 0x204], esi
mov dword [eax], esi
mov dword [eax - 0x104], esi
mov dword [eax + 0x100], esi
add eax, 4
dec ecx
jne 0x102db23
mov ecx, dword [esp + 0x120]
mov esi, dword [esp + 0x52c]
xor ecx, 1
push edi
mov dword [esp + 0x124], ecx
mov ecx, edx
lea edi, [esp + 0x224]
push edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x53c]
lea ecx, [ebp*4]
mov dword [esp + 0x24], ecx
mov eax, ecx
lea edi, [esp + 0x42c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x534]
push ecx
call fcn.0102cd60
push ebp
mov edx, dword [esp + 0x53c]
mov dword [esp + 0x328], eax
push edx
call fcn.0102cd60
xor edx, edx
mov dword [esp + 0x528], eax
mov eax, edx
mov dword [esp + 0x18], edx
shl eax, 7
add eax, edx
shl eax, 2
mov ecx, eax
neg ecx
mov esi, dword [esp + ecx + 0x528]
test esi, esi
je 0x102dc9e
lea esi, [esp + eax + 0x124]
lea ebp, [esp + ecx + 0x328]
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 0x200]
mov ecx, dword [ebp + 0x200]
cmp eax, ecx
jb 0x102dc90
sub eax, ecx
push ebx
mov edi, eax
lea eax, [esp + 0x28]
push eax
lea eax, [ebp + 0x100]
push edi
push eax
call fcn.0102cb50
lea edx, [esi + 0x100]
lea ecx, [esp + 0x24]
mov eax, edx
mov dword [esp + 0x14], ebx
mov ebp, dword [ecx]
add ecx, 4
xor dword [eax], ebp
mov ebp, dword [esp + 0x14]
add eax, 4
dec ebp
mov dword [esp + 0x14], ebp
jne 0x102dc22
push ebx
push edx
call fcn.0102cd60
mov dword [esi + 0x200], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x102dc74
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ebx
push ecx
push edi
push ebp
call fcn.0102cb50
lea ecx, [esp + 0x24]
mov eax, esi
sub ecx, esi
mov edx, ebx
mov edi, dword [ecx + eax]
xor dword [eax], edi
add eax, 4
dec edx
jne 0x102dc67
jmp 0x102dc78
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi + 0x200]
mov ecx, dword [ebp + 0x200]
cmp eax, ecx
jae 0x102dbfb
mov edx, dword [esp + 0x18]
mov eax, 1
sub eax, edx
mov edx, eax
jmp 0x102dbb4
mov edi, dword [esp + 0x544]
test edi, edi
je 0x102dcbb
mov eax, edx
mov ecx, ebx
shl eax, 7
add eax, edx
lea esi, [esp + eax*4 + 0x224]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x102dcea
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x540]
mov eax, edx
shl eax, 7
add eax, edx
mov edx, ecx
shr ecx, 2
lea esi, [esp + eax*4 + 0x124]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x51c
ret 0x18
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x51c
ret 0x18
Function at 0x1030660
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
xor ecx, ecx
xor edx, edx
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov cl, byte [esi + 0x100]
mov dl, byte [esi + 0x101]
test ebp, ebp
je 0x10306af
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x1030684
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc

Function at 0x10306c1
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov eax, 0x3020100
push esi
mov ecx, 0x40
mov esi, dword [esp + 0xc]
push edi
mov edx, esi
push ebp
mov dword [edx], eax
add edx, 4
add eax, 0x4040404
dec ecx
jne 0x10306d5
xor ecx, ecx
xor edi, edi
mov ebp, dword [esp + 0x1c]
mov byte [esi + 0x100], cl
mov byte [esi + 0x101], cl
xor ebx, ebx
xor edx, edx
xor eax, eax
mov dl, byte [edi + esi]
mov al, byte [ebp + ecx]
add bl, al
inc ecx
add bl, dl
inc edi
mov al, byte [ebx + esi]
mov byte [edi + esi - 1], al
cmp dword [esp + 0x18], ecx
mov byte [ebx + esi], dl
jne 0x103071b
xor ecx, ecx
cmp edi, 0x100
jb 0x10306f8
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x10328fd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
cmp dword [0x1047874], 0
je 0x1032916
mov eax, dword [0x10462c8]
leave
ret
push edi
push esi
push 0x25
xor eax, eax
pop ecx
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10329d8
xor eax, eax
cmp dword [ebp - 0x84], 2
sete al
test eax, eax
mov dword [0x10462c8], eax
je 0x10329a7
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x10329d8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQuerySystemInformation
push edi
call esi
test eax, eax
mov dword [0x104785c], eax
je 0x103298b
mov dword [0x10462c0], 0x4000
push str.NtOpenFile
push edi
call esi
push str.RtlInitUnicodeString
push edi
mov dword [0x1047860], eax
call esi
mov dword [0x1047864], eax
jmp 0x10329d8
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10329d8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetCursorPos
push edi
call esi
push str.GetMessageTime
push edi
mov dword [0x1047868], eax
call esi
mov dword [0x104786c], eax
mov eax, dword [0x10462c8]
pop esi
mov dword [0x1047874], 1
pop edi
leave
ret

Function at 0x1032ba0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
call fcn.01032be3
test eax, eax
je 0x1032bdf
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
push 0
push str.Seed
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 8

Function at 0x1032f40
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4