joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401020
Capabilities:
Get common file path

Disassembly:
push edi
sub esp, 0x200
mov edi, esp
push 0x7c
push edi
call sub.KERNEL32.dll_GetSystemDirectoryA
lea ecx, [edi + 0x7c]
push ecx
push 0
push edi
add edi, eax
mov eax, 0x69636d5c
stosd dword es:[edi], eax
mov eax, 0x337a7471
stosd dword es:[edi], eax
mov eax, 0x6c642e32
stosd dword es:[edi], eax
mov eax, 0x6c
stosd dword es:[edi], eax
call sub.KERNEL32.dll_GetFileAttributesExA
add esp, 0x200
pop edi
test eax, eax
je 0x401068
pushal
jmp fcn.00401280
ret

Function at 0x40145c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
push 0
call sub.KERNEL32.dll_LockResource
push edi
push eax
push eax
push edx
call fcn.00401314
pop edi
lea eax, [edi - 0x160]
push 0
push 0
xchg dword [eax + 0x6afffffe], esp
add byte [edx], ch
push eax
call sub.KERNEL32.dll_LoadLibraryExA
test eax, eax
jne 0x401471
pop ebp
ret 8

Function at 0x40161c
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
lea eax, [edi - 0x160]
push 0
push 0
xchg dword [eax + 0x6afffffe], esp
add byte [edx], ch
push eax
call sub.KERNEL32.dll_LoadLibraryExA
test eax, eax
jne 0x401620
push edi
push ecx
push eax
push ebx
push eax
call fcn.004011e8
pop edi
call sub.KERNEL32.dll_GetCommandLineA
pop ebp
ret 0xc

Function at 0x401718
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
lea ebx, [edi - 0x34]
push esi
mov esi, esp
push esi
mov eax, 0x2b
push eax
add dword [esp], 0x15
mov edi, 0xfffffe70
push edi
add dword [esp], 0xaec
push section..data
xor esi, esi
add esi, sym.imp.KERNEL32.dll_VirtualProtect
call dword [esi]
pop edx
mov esi, 0x403400
mov dword [ebx + 0x54], esi
mov esi, esi
add esi, 0xb9
mov edi, 0x40252f
push 0x55c
pop eax
cmp eax, 0
je 0x401792
add eax, 0xfffffffc
inc edi
inc edi
inc edi
inc edi
mov edx, dword [edi - 4]
mov dword [esi - 0xb9], edx
add esi, 4
xor dword [esi - 0xbd], 0x378a9256
add dword [esi - 0xbd], 0x5ae34687
jmp 0x401764
call sub.KERNEL32.dll_GetCommandLineA
pop ebp
ret 0xc
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebx
pcmpeqw mm7, mm7
push ecx
pxor mm6, mm6
push esi
psllw mm7, 0xf
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
sub eax, 4
jl 0x401099
jmp 0x401040
movq mm0, qword [esi]
pxor mm0, mm7
movq mm3, mm0
movq mm1, qword [ebx + esi]
punpcklwd mm0, mm6
pxor mm1, mm7
movq mm2, qword [esi + ebx*2]
movq mm4, mm1
pxor mm2, mm7
add edi, 0x10
prefetcht0 byte [esi + ebx*2 + 0x40]
punpcklwd mm1, mm6
movq mm5, mm2
punpcklwd mm2, mm6
paddd mm1, mm1
punpckhwd mm3, mm6
paddd mm0, mm2
punpckhwd mm4, mm6
paddd mm0, mm1
punpckhwd mm5, mm6
paddd mm4, mm4
paddd mm3, mm5
paddd mm3, mm4
movq qword [edi - 0x10], mm0
add esi, 8
sub eax, 4
movq qword [edi - 8], mm3
jge 0x401040
add eax, 4
jle 0x4010ce
push edx
movzx ecx, word [esi]
xor ecx, 0x8000
movzx edx, word [ebx + esi]
xor edx, 0x8000
add edx, edx
add ecx, edx
movzx edx, word [esi + ebx*2]
xor edx, 0x8000
add ecx, edx
add esi, 2
mov dword [edi], ecx
add edi, 4
dec eax
jg 0x40109f
pop edx
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x64f9d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
pcmpeqw mm7, mm7
push ecx
pxor mm6, mm6
push esi
psllw mm7, 0xf
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
sub eax, 4
jl 0x64fa69
jmp 0x64fa10
movq mm0, qword [esi]
pxor mm0, mm7
movq mm3, mm0
movq mm1, qword [ebx + esi]
punpcklwd mm0, mm6
pxor mm1, mm7
movq mm2, qword [esi + ebx*2]
movq mm4, mm1
pxor mm2, mm7
add edi, 0x10
prefetcht0 byte [esi + ebx*2 + 0x40]
punpcklwd mm1, mm6
movq mm5, mm2
punpcklwd mm2, mm6
paddd mm1, mm1
punpckhwd mm3, mm6
paddd mm0, mm2
punpckhwd mm4, mm6
paddd mm0, mm1
punpckhwd mm5, mm6
paddd mm4, mm4
paddd mm3, mm5
paddd mm3, mm4
movq qword [edi - 0x10], mm0
add esi, 8
sub eax, 4
movq qword [edi - 8], mm3
jge 0x64fa10
add eax, 4
jle 0x64fa9e
push edx
movzx ecx, word [esi]
xor ecx, 0x8000
movzx edx, word [ebx + esi]
xor edx, 0x8000
add edx, edx
add ecx, edx
movzx edx, word [esi + ebx*2]
xor edx, 0x8000
add ecx, edx
add esi, 2
mov dword [edi], ecx
add edi, 4
dec eax
jg 0x64fa6f
pop edx
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x10002506
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x3a980
call fcn.1000c706
xor ecx, ecx
inc ecx
call fcn.1000ae16
xor ecx, ecx
and al, 8
cmp al, 8
setne cl
push 0x32
dec ecx
and ecx, 0x803000
add ecx, 0x84400200
mov dword [0x1003a458], ecx
pop ecx
call fcn.1000ae16
cmp ax, 1
jne 0x10002552
or dword [0x1003a458], 0x80000
push esi
push edi
push 0x23
pop ecx
call fcn.1000ae16
movzx eax, ax
xor edi, edi
sub eax, edi
je 0x10002577
dec eax
je 0x10002630
dec eax
je 0x10002627
dec eax
dec eax
jne 0x10002592
push edi
push edi
push 0x20
pop ecx
call fcn.1000ae2c
push eax
push 3
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [0x1003de00], eax
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [ebp - 4]
push eax
push 5
push dword [0x1003de00]
call esi
push 4
lea eax, [ebp - 4]
push eax
push 6
push dword [0x1003de00]
call esi
push dword [0x1003de10]
push edi
push 3
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x1003de00]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
push 0x23
pop ecx
mov dword [0x1003de04], edi
call fcn.1000ae16
cmp ax, 4
jne 0x1000261e
push 0x21
pop ecx
call fcn.1000ae37
push eax
push 0x21
pop ecx
call fcn.1000ae2c
push eax
push 0x2b
push edi
call esi
push 0x22
pop ecx
call fcn.1000ae37
push eax
push 0x22
pop ecx
call fcn.1000ae2c
push eax
push 0x2c
push dword [0x1003de04]
call esi
call fcn.1000c727
pop edi
pop esi
leave
ret
push edi
push edi
push edi
push edi
jmp 0x10002584
push edi
push edi
push edi
push 1
jmp 0x10002584
Function at 0x10002728
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x4af]
push ebx
push eax
mov dword [ebp - 0x30], 0x1002f540
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x4b0], bl
call fcn.1001ed20
push 0x7f
lea eax, [ebp - 0xaf]
push ebx
push eax
mov byte [ebp - 0xb0], bl
call fcn.1001ed20
add esp, 0x18
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x24]
mov dword [ebp - 0x28], ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x1003de0c]
cmp eax, ebx
je 0x100028df
lea esi, [ebp - 0x28]
call fcn.10008934
push 0x10041c20
mov edi, 0x1002f534
push edi
mov esi, 0x400
push esi
push dword [ebp - 0x20]
call fcn.10017156
push dword [0x10041800]
lea eax, [ebp - 0xb0]
push 0x1002f544
push 0x80
push eax
call fcn.10017156
lea eax, [ebp - 0xb0]
add esp, 0x20
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100027d3
push dword [0x1003de0c]
sub eax, ecx
push dword [0x1003de08]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x28]
push eax
push 0xd
pop ecx
call fcn.1000ae2c
push eax
call fcn.100082e1
mov eax, dword [ebp - 0x24]
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1000280b
sub eax, ecx
lea eax, [ebp - 0x4b0]
jne 0x1000282c
push dword [ebp - 0x20]
push edi
push esi
push eax
call fcn.10017156
add esp, 0x10
jmp 0x10002841
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push 0x1002f548
push esi
push eax
call fcn.10017156
add esp, 0x14
call fcn.1000c706
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 4], ebx
push dword [0x1003de10]
lea eax, [ebp - 0x30]
push dword [0x1003a458]
push eax
push ebx
push ebx
lea eax, [ebp - 0x4b0]
push eax
push 0x1b
pop ecx
call fcn.1000ae2c
push eax
push dword [0x1003de04]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
push esi
call fcn.10002682
mov eax, dword [ebp - 0x28]
pop ecx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1000288c
push dword [ebp - 0x18]
sub eax, ecx
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push esi
call fcn.100026e1
pop ecx
push esi
test eax, eax
jne 0x100028ca
call edi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jb 0x1000284f
jmp 0x100028cc
call edi
lea eax, [ebp - 0x28]
call fcn.100089b1
mov dword [0x1003de0c], ebx
call fcn.1000c727
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000296b
Capabilities:
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
push ebx
push esi
push edi
xor ebx, ebx
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
push 0x3ff
mov dword [ebp - 0x34], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x443]
push ebx
push eax
mov dword [ebp - 0x3c], 0x1002f540
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x444], bl
call fcn.1001ed20
mov eax, dword [0x10041804]
add esp, 0xc
lea esi, [ebp - 0x34]
call fcn.10008934
push dword [ebp + 8]
mov edi, 0x1002f534
push edi
mov esi, 0x400
push esi
push dword [ebp - 0x2c]
call fcn.10017156
add esp, 0x10
push ebx
push ebx
push dword [0x10041804]
lea eax, [ebp - 0x34]
push 0x10041808
push eax
push 0xc
pop ecx
call fcn.1000ae2c
push eax
call fcn.100082e1
mov eax, dword [ebp - 0x30]
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10002a03
sub eax, ecx
lea eax, [ebp - 0x444]
jne 0x10002a24
push dword [ebp - 0x2c]
push edi
push esi
push eax
call fcn.10017156
add esp, 0x10
jmp 0x10002a39
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push 0x1002f548
push esi
push eax
call fcn.10017156
add esp, 0x14
push dword [0x1003de10]
lea eax, [ebp - 0x3c]
push dword [0x1003a458]
push eax
push ebx
push ebx
lea eax, [ebp - 0x444]
push eax
push 0x1a
pop ecx
call fcn.1000ae2c
push eax
push dword [0x1003de04]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
push edi
call fcn.10002682
mov eax, dword [ebp - 0x34]
pop ecx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002a76
push dword [ebp - 0x24]
sub eax, esi
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x34]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
lea eax, [ebp - 0x34]
call fcn.100089b1
push edi
call fcn.100026e1
pop ecx
test eax, eax
jne 0x10002ab1
or ebx, 0xffffffff
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
jmp 0x10002b30
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x10002b26
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jae 0x10002b26
cmp eax, ebx
je 0x10002aa6
cmp dword [ebp + 0x10], ebx
jbe 0x10002aa3
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push 0x1000
add eax, esi
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10002b00
cmp dword [ebp - 8], ebx
je 0x10002b00
add esi, dword [ebp - 8]
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp + 0x10]
jb 0x10002ad3
cmp esi, dword [ebp + 0x10]
jae 0x10002aa3
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp + 0x10]
push 0xb
pop ecx
call fcn.1000ae2c
mov ecx, dword [ebp + 0xc]
push eax
mov eax, esi
call fcn.100087e9
pop ecx
pop ecx
jmp 0x10002b30
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002b66
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push esi
xor esi, esi
inc esi
cmp dword [0x1003de14], esi
je 0x10002ba3
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jge 0x10002b9d
call dword [sym.imp.WS2_32.dll_WSACleanup]
push esi
call fcn.100176de
mov dword [0x1003de14], esi
cmp dword [ebp + 8], 0
je 0x10002c05
cmp dword [0x1003de18], esi
je 0x10002c05
push 0x14
pop ecx
call fcn.1000ae21
push 0x13
pop ecx
mov dword [0x1003de1c], eax
call fcn.1000ae21
push 0x3d
pop ecx
mov dword [0x1003de20], eax
call fcn.1000ae2c
push 0x3e
pop ecx
mov dword [0x10041c1c], eax
call fcn.1000ae2c
push 0x3f
pop ecx
mov dword [0x10041c10], eax
call fcn.1000ae2c
push 0x42
pop ecx
mov dword [0x10041c14], eax
call fcn.1000ae2c
mov dword [0x10041c18], eax
mov dword [0x1003de18], esi
pop esi
leave
ret

Function at 0x10002cc3
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp esi, 0x3ff
jg 0x10002cfc
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push eax
call fcn.10017830
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 0x10002fe4
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.1001ed20
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.100081b4
add esp, 0x18
test eax, eax
je 0x1000309b
push 0x2710
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
lea esi, [ebp - 0x24]
push dword [ebp - 8]
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.10005da4
add esp, 0x18
pop edi
pop esi
leave
ret
Function at 0x1000319e
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.10017001
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1000323c
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push eax
call fcn.10006fff
add esp, 0xc
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.1000712a
pop ecx
pop ecx
test eax, eax
jne 0x100031e6
push ebx
call fcn.10016f24
jmp 0x1000323b
push dword [ebp + 0x10]
push ebx
call fcn.10017a18
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x10003225
test esi, esi
je 0x10003225
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.100070cd
add esp, 4
push eax
push 1
lea eax, [ebp - 0x14]
call fcn.100070d8
push eax
call fcn.10017b91
push esi
call fcn.10017c8a
add esp, 0x14
jmp 0x100031de
push ebx
call fcn.10016f24
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
call fcn.10002439
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x10003304
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 0x10003322
or eax, 0xffffffff
jmp 0x10003371
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x1000331d
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.1001db30
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 0x1000336f
push esi
call sub.WS2_32.dll_closesocket
jmp 0x1000331d
mov eax, esi
pop esi
leave
ret

Function at 0x10003374
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.10006fff
lea eax, [ebp - 0x20]
add esp, 0xc
push eax
call fcn.1000716e
mov dword [ebp - 8], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
call fcn.10007018
mov dword [ebp - 4], eax
pop ecx
lea eax, [ebp - 0x20]
call fcn.100070d8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
call fcn.100070cd
add esp, 4
mov dword [ebp - 0xc], eax
call fcn.10002b5b
jmp 0x100033fc
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.10003304
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x10003420
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x100033dd
push 0x46
call fcn.10002497
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 0x1000340a
Function at 0x10003430
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.10006fff
add esp, 0xc
lea eax, [ebp - 0x24]
push 0x80
push eax
lea ebx, [ebp - 0xa8]
call fcn.1000712a
lea eax, [ebp - 0x24]
call fcn.100070d8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
call fcn.100070cd
add esp, 0xc
mov dword [ebp - 8], eax
xor ebx, ebx
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 4]
call fcn.10006194
pop ecx
test eax, eax
jne 0x100034e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
je 0x100034c8
call edi
cmp eax, esi
jae 0x100034c8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jb 0x10003492
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0x32
call fcn.10002467
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 0x10003536
mov ebx, 0x2000
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
sub eax, esi
cmp eax, ebx
jbe 0x10003515
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 0x10003536
add esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp - 8]
jb 0x10003507
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [ebp - 4]
call fcn.1000c2c9
mov dword [esp], 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100034e0

Function at 0x10003873
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp esi, 0x100
push ebx
jge 0x100038e8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.1001db30
or dword [0x100399a0], 0xffffffff
or dword [0x1003586c], 0xffffffff
or dword [0x100399a4], 0xffffffff
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 2
push 4
push 3
lea eax, [ebp - 0x104]
push eax
mov byte [ebp + esi - 0x104], bl
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x1003586c], eax
cmp eax, ebx
je 0x100038e8
push 0x10003709
xor eax, eax
call fcn.1000c657
pop ecx
mov dword [0x100399a4], eax
pop ebx
leave
ret
Function at 0x10003b67
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea ebx, [edi + 4]
push esi
mov esi, eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], ebx
cmp ebx, dword [ebp + 0xc]
jbe 0x10003b82
xor eax, eax
jmp 0x10003bba
call fcn.10002d07
mov dword [esi], eax
add esi, 4
xor ecx, ecx
test edi, edi
jbe 0x10003bb8
mov eax, dword [ebp + 8]
sub eax, esi
mov dword [ebp + 0xc], eax
mov ebx, dword [ebp - 4]
mov edx, ecx
and edx, 3
mov dl, byte [edx + ebx]
mov ebx, dword [ebp + 0xc]
lea eax, [ecx + esi]
xor dl, byte [ebx + eax]
inc ecx
mov byte [eax], dl
cmp ecx, edi
jb 0x10003b9a
mov ebx, dword [ebp - 8]
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x10003bbe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, eax
lea eax, [edi - 4]
mov esi, ecx
cmp eax, dword [ebp + 0xc]
jbe 0x10003bd3
xor eax, eax
jmp 0x10003bfe
mov eax, esi
add esi, 4
sub edi, 4
push 0
pop edx
je 0x10003bfc
sub esi, dword [ebp + 8]
push ebx
mov ecx, dword [ebp + 8]
mov ebx, edx
and ebx, 3
mov bl, byte [ebx + eax]
add ecx, edx
xor bl, byte [esi + ecx]
inc edx
mov byte [ecx], bl
cmp edx, edi
jb 0x10003be4
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
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 [0x1003e6c8]
push dword [0x1003e6c0]
push dword [0x1003e6c4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x10003d9a
xor eax, eax
inc eax
jmp 0x10003e5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x10003e4a
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003db0
sub eax, esi
mov edi, 0x100
cmp eax, edi
jae 0x10003e4a
push str.sysnative
push edx
call fcn.100170d0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10003e4a
push edi
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.1001ed20
mov eax, dword [str.system32]
mov dword [esi], eax
mov eax, dword [0x1002f5a4]
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 0x10003e02
sub eax, edi
push eax
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.1001db30
lea eax, [ebp - 0x100]
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003e25
sub eax, edi
inc eax
push eax
lea eax, [ebp - 0x100]
push eax
dec esi
push esi
call fcn.1001db30
add esp, 0xc
push ebx
call fcn.10003e63
pop ecx
jmp 0x10003e5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push 0x45
call fcn.10002467
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret