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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x403050
pop edi
pop esi
pop ebp
ret
push eax
test edx, eax
cmp eax, ecx
pop eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push esi
push edx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push edx
push edi
or edx, edx
mov dl, ch
cmp edx, ecx
and edx, eax
pop edi
pop edx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
push ebx
mov dword [ebp - 0xc], 0x104
jle 0x4030b1
push si
pop si
jg 0x4030b1
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4030cb
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0x104
mov dword [ebp - 8], 0x104
push ebx
push edx
test bl, 0x3e
sub dh, cl
mov dh, ah
pop edx
pop ebx
lea edx, [ebp - 0x10]
lea eax, [ebp - 8]
push edx
lea ecx, [ebp - 0x31c]
push eax
lea edx, [ebp - 4]
push ecx
lea eax, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x218]
push eax
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x403116
pop ebx
mov esp, ebp
pop ebp
ret
jbe 0x40312d
push eax
pop eax
ja 0x40312d
pop esi
fisubr dword [ecx + 0x7a96ed64]
dec esp
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x114]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
test eax, eax
jne 0x403147
pop ebx
mov esp, ebp
pop ebp
ret
jp 0x40316b
push eax
mov ax, 0xea42
pop eax
jnp 0x40316b
pop eax
mov edx, 0xb7bc9ea5
jb 0x40318c
jp 0x4030f2
test cl, 0x87
xor esp, esi
cwde
push edx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
fisub dword [esi + 0x46]
cmp dx, 0x676a
xor bx, 0x35f8
cmp esi, 0x222c
pop dx
pop esi
pop ebx
mov eax, dword [ebp + 8]
push 1
push eax
call fcn.00404160
add esp, 8
neg eax
sbb eax, eax
pop esi
neg eax
pop ebx
pop ebp
ret
Function at 0x403e30
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 0x114
xor ecx, ecx
xor al, al
mov dword [esp + 1], ecx
push esi
mov dword [esp + 9], ecx
push edi
mov dword [esp + 0x11], ecx
mov byte [esp + 8], al
mov word [esp + 0x15], cx
mov byte [esp + 0x18], al
mov byte [esp + 0x17], cl
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00403c70
lea edx, [esp + 8]
push 5
push edx
call fcn.004025f0
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push 0x41c9ac
push ecx
call edi
add esp, 0xc
push 0x41c9f0
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea edx, [esp + 8]
push 0x10
push edx
push 1
push 0x41cb14
push 0x41c9f0
push 0x80000000
call esi
push 0x4b
push 0x41ca24
push 1
lea eax, [esp + 0x24]
push 0x41cb14
push eax
push 0x80000000
call esi
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push 0x41ca70
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x18]
push 0x14
push 0x41cab4
push 1
push 0x41caac
push eax
push 0x80000000
call esi
pop edi
pop esi
add esp, 0x114
ret
Function at 0x403f20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x22b]
mov byte [ebp - 0x22c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x127]
mov byte [ebp - 0x128], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x22c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
jp 0x403f7b
push ecx
mov ecx, 0x54689436
pop ecx
jnp 0x403f7b
or dword [ebp - 0x22b43], 0xffffffff
lea edi, [ebp - 0x22c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ax
push cx
push edi
and al, dl
or ch, 0x3a
dec edi
inc edi
cmp ah, bl
xor ax, ax
cmp cl, dl
dec cl
pop edi
pop cx
pop ax
mov edi, 0x41c6d8
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jl 0x40400f
push dx
mov dx, 0x642f
pop dx
jge 0x40400f
out 0xc4, eax
push ds
xor dl, cl
cld
push ss
stosd dword es:[edi], eax
jo 0x404010
push edx
cmp bh, byte [eax]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x128]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesExA]
inc ebp
fmul qword [ebp - 0x12773]
call dword [eax + 0x6a]
add byte [ecx - 1], dl
adc eax, sym.imp.KERNEL32.DLL_GetFileAttributesExA
mov edx, dword [ebp + 8]
push edx
call fcn.00403520
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x40403d
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
jp 0x404047
push cx
mov cl, 0x21
pop cx
jnp 0x404047
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x20]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404070
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push edx
push ax
sub edx, eax
cmp dx, cx
add edx, 0x1ab
xor ax, 0x2160
test bh, dl
test di, dx
pop ax
pop edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4040ac
pop edi
pop esi
pop ebp
ret
jbe 0x4040b6
push esi
pop esi
ja 0x4040b6
pop ebx
hlt
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4040ec
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
cmp eax, 0x420
je 0x4040ec
call edi
cmp eax, 0x422
je 0x4040ec
push esi
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
push esi
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x404160
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x263]
mov byte [ebp - 0x264], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x15f]
mov byte [ebp - 0x160], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov edx, 1
cmp eax, ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edx
je 0x4041b5
mov ebx, edx
push ecx
push esi
and ecx, 0x4ed
dec esi
xor ecx, 0x19e7
add si, 0x438f
xor cx, 0x2688
add ch, dh
test ch, 0x5b
pop esi
pop ecx
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
lea eax, [ebp - 0x160]
push 0x41c71c
push eax
call edi
add esp, 0xc
lea ecx, [ebp - 0x264]
push esi
push 0x41c734
push ecx
call edi
lea eax, [ebp - 0x160]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
lea edi, [ebp - 0x160]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
mov dword [ebp - 0x48], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov edx, 4
dec ecx
mov dword [ebp - 0x34], 0x41c75c
mov dword [ebp - 0x30], 0x41c768
mov dword [ebp - 0x2c], 0x41c774
mov dword [ebp - 0x28], 0x41c784
mov dword [ebp - 0x24], 0x41c78c
mov dword [ebp - 0x5c], 2
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
js 0x404298
mov edx, edx
jns 0x404298
sub eax, 0x1bf31dd6
xchg esi, eax
and byte [ebx], 0xc3
cmp dword [ebx + 0x3b7305fb], eax
cmp ebx, 5
jae 0x4042d8
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea esi, [ebx*4]
mov edx, dword [ebp + esi - 0x48]
mov eax, dword [ebp + esi - 0x20]
mov ecx, dword [ebp + esi - 0x5c]
push edx
mov edx, dword [ebp + esi - 0x34]
push eax
push ecx
lea eax, [ebp - 0x264]
push edx
push eax
push 0x80000002
call edi
test eax, eax
jne 0x4042e4
add esi, 4
cmp esi, 0x14
jb 0x4042aa
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100022f1
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
push esi
xor esi, esi
inc esi
cmp dword [0x10055fc8], esi
je 0x1000232f
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jge 0x10002329
call dword [sym.imp.WS2_32.dll_WSACleanup]
push esi
call fcn.1002efbc
mov dword [0x10055fc8], esi
cmp dword [ebp + 8], 0
je 0x10002391
cmp dword [0x10055fcc], esi
je 0x10002391
push 0x14
pop ecx
call fcn.100228e2
push 0x13
pop ecx
mov dword [0x10055fd0], eax
call fcn.100228e2
push 0x3d
pop ecx
mov dword [0x10055fd4], eax
call fcn.100228ed
push 0x3e
pop ecx
mov dword [0x10059e3c], eax
call fcn.100228ed
push 0x3f
pop ecx
mov dword [0x10059e30], eax
call fcn.100228ed
push 0x42
pop ecx
mov dword [0x10059e34], eax
call fcn.100228ed
mov dword [0x10059e38], eax
mov dword [0x10055fcc], esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10002745
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
call fcn.10004d5c
test eax, eax
jne 0x1000277a
push 0
push dword [0x10052c78]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1000277a
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
je 0x10002756
lea edx, [ebp - 0x28]
call fcn.1000270b
sub esp, 0x20
push 8
pop ecx
mov esi, eax
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.1000243b
add esp, 0x20
pop edi
pop esi
leave
ret

Function at 0x1000279a
Capabilities:
Create pipe

Disassembly:
push 0
push 0
push 4
pop ecx
call fcn.100228e2
push eax
call fcn.100228e2
push eax
push 0xff
push 6
push 3
push 0xf
pop ecx
call fcn.100228ed
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp eax, 0xffffffff
jne 0x100027dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x17
call fcn.10002216
pop ecx
pop ecx
xor eax, eax
ret
mov dword [0x10052c78], eax
xor eax, eax
mov dword [0x100521a0], 2
inc eax
ret

Function at 0x1000285e
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp esi, 0x3ff
jg 0x10002897
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push eax
call fcn.1002f110
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
mov byte [ebp + esi - 0x400], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
leave
ret
Function at 0x10002b79
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.100364f0
mov dword [ebp - 0x70], edi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0x100000
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor eax, eax
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 4]
push esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
push 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x44], 0x101
push dword [ebp + 8]
mov dword [ebp - 0x38], esi
call fcn.1000859e
add esp, 0x18
test eax, eax
je 0x10002c39
push 0x2710
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x34], eax
je 0x10002c21
or eax, 0xffffffff
push eax
push dword [ebp - 8]
lea esi, [ebp - 0x24]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10005f86
add esp, 0x18
pop edi
pop esi
leave
ret

Function at 0x10002d3b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, 0x400
push esi
call fcn.1002e8ff
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10002ddd
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push eax
call fcn.10007324
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.10007513
add esp, 0x14
test eax, eax
jne 0x10002d81
push ebx
call fcn.1002e822
jmp 0x10002ddc
push dword [ebp + 0x10]
push ebx
call fcn.1002f2f8
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x10002dc6
test esi, esi
je 0x10002dc6
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.100074b6
add esp, 4
push eax
push 1
lea eax, [ebp - 0x14]
call fcn.100074c1
push eax
call fcn.1002f471
push esi
call fcn.1002f56a
push ebx
call fcn.1002e822
add esp, 0x18
jmp 0x10002ddd
push ebx
call fcn.1002e822
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
call fcn.10002216
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x10002de1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push 0x7ff
lea eax, [ebp - 0x7ff]
push 0
push eax
mov byte [ebp - 0x800], 0
call fcn.100364f0
add esp, 0xc
lea eax, [ebp - 0x800]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x10002e2f
push 0x13
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.100012c1
add esp, 0xc
leave
ret
Function at 0x10002ea5
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x10002ec3
or eax, 0xffffffff
jmp 0x10002f12
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x10002ebe
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.10035300
add esp, 0xc
push 2
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x10], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call sub.WS2_32.dll_connect
test eax, eax
je 0x10002f10
push esi
call sub.WS2_32.dll_closesocket
jmp 0x10002ebe
mov eax, esi
pop esi
leave
ret

Function at 0x10002f15
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
or ebx, 0xffffffff
call esi
push dword [ebp + 0xc]
mov edi, eax
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
add edi, 0xea60
call fcn.10007324
lea eax, [ebp - 0x20]
add esp, 0xc
push eax
call fcn.10007557
mov dword [ebp - 8], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
call fcn.1000733d
mov dword [ebp - 4], eax
pop ecx
lea eax, [ebp - 0x20]
call fcn.100074c1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
call fcn.100074b6
add esp, 4
mov dword [ebp - 0xc], eax
call fcn.100022e8
jmp 0x10002f9d
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.10002ea5
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x10002fc1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x10002f7e
push 0x46
call fcn.10002279
pop ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call sub.WS2_32.dll_closesocket
pop edi
pop esi
pop ebx
leave
ret
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call sub.WS2_32.dll_send
jmp 0x10002fab
Function at 0x10002fd1
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
add esi, 0xea60
call fcn.10007324
lea eax, [ebp - 0x24]
push 0x80
push eax
lea ebx, [ebp - 0xa8]
call fcn.10007513
lea eax, [ebp - 0x24]
call fcn.100074c1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
call fcn.100074b6
add esp, 0x18
mov dword [ebp - 8], eax
xor ebx, ebx
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 4]
call fcn.100063c8
pop ecx
test eax, eax
jne 0x10003083
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
je 0x10003066
call edi
cmp eax, esi
jae 0x10003066
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jb 0x10003030
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0x32
call fcn.10002244
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], 0
jbe 0x100030d4
mov ebx, 0x2000
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
sub eax, esi
cmp eax, ebx
jbe 0x100030b3
mov eax, ebx
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
mov eax, dword [ebp - 0x14]
add eax, esi
push eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x100030d4
add esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp - 8]
jb 0x100030a5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, dword [ebp - 4]
call fcn.10023ab7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000307e

Function at 0x1000338e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.10003316
test eax, eax
je 0x100033da
mov eax, dword [0x10055fe4]
shl esi, 5
add eax, esi
xor esi, esi
cmp dword [eax + 0x10], esi
jne 0x100033da
cmp dword [eax + 0x14], esi
je 0x100033da
cmp dword [eax + 0x18], esi
jbe 0x100033d3
mov ecx, dword [eax + 0x14]
mov edx, esi
and edx, 3
mov dl, byte [edx + 0x10052c7c]
add ecx, esi
xor byte [ecx], dl
inc esi
cmp esi, dword [eax + 0x18]
jb 0x100033bb
mov dword [eax + 0x10], 1
pop esi
pop ebp
ret

Function at 0x100033dd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.10003316
test eax, eax
je 0x10003428
mov eax, dword [0x10055fe4]
shl esi, 5
add eax, esi
cmp dword [eax + 0x10], 0
je 0x10003428
cmp dword [eax + 0x14], 0
je 0x10003428
xor esi, esi
cmp dword [eax + 0x18], esi
jbe 0x10003424
mov ecx, dword [eax + 0x14]
mov edx, esi
and edx, 3
mov dl, byte [edx + 0x10052c7c]
add ecx, esi
xor byte [ecx], dl
inc esi
cmp esi, dword [eax + 0x18]
jb 0x1000340c
and dword [eax + 0x10], 0
pop esi
pop ebp
ret
Function at 0x10003aed
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp esi, 0x100
jge 0x10003b63
push ebx
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call fcn.10035300
or dword [0x10052190], 0xffffffff
or dword [0x1004e05c], 0xffffffff
or dword [0x10052194], 0xffffffff
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 2
push 4
push 3
lea eax, [ebp - 0x100]
push eax
mov byte [ebp + esi - 0x100], bl
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x1004e05c], eax
cmp eax, ebx
je 0x10003b62
push ebx
push 0x10003984
call fcn.10024016
pop ecx
pop ecx
mov dword [0x10052194], eax
pop ebx
leave
ret

Function at 0x10003e2c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebp + 0xc]
push 0
push dword [ebx + 0x10]
push dword [ebp + 8]
push 0
push 2
push dword [0x100568b0]
push dword [0x100568a8]
push dword [0x100568ac]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x10003e6b
xor eax, eax
inc eax
leave
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x10003f1c
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003e83
sub eax, esi
mov edi, 0x100
cmp eax, edi
jae 0x10003f1c
push str.sysnative
push edx
call fcn.1002e9d0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10003f1c
push edi
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.100364f0
mov eax, dword [str.system32]
mov dword [esi], eax
mov eax, dword [0x10047568]
mov dword [esi + 4], eax
add esp, 0xc
add esi, 9
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003ed5
sub eax, edi
push eax
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.10035300
lea eax, [ebp - 0x100]
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003ef8
sub eax, edi
inc eax
push eax
lea eax, [ebp - 0x100]
push eax
dec esi
push esi
call fcn.10035300
push ebx
call fcn.10003f35
add esp, 0x10
jmp 0x10003f31
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push 0x45
call fcn.10002244
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret