joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e67b0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x54f17b
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5b2ae0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
mov eax, dword [0x5b2ae0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x98]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x563d64
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x98], ebx
call dword [0x5605f8]
push 0xfffffffffffffffe
push 0xfffffffffffffffe
lea ecx, [esp + 0x1c]
push ecx
call dword [0x560634]
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x20]
neg esi
sbb esi, esi
and esi, 0x12c
add esi, 0x190
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], 1
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
xor eax, eax
jmp 0x4e6870
movzx ecx, word [eax + 0x58c4a0]
mov word [esp + eax + 0x40], cx
add eax, 2
cmp cx, bx
jne 0x4e6870
lea eax, [esp + 0x24]
push eax
call dword [0x5600dc]
push eax
lea ecx, [esp + 0x10]
call fcn.004f8e4a
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call edx
push 1
mov ecx, edi
mov esi, eax
call fcn.004f84bd
push 0x21
lea ecx, [esp + 0x18]
push ecx
mov ebx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0x68]
push 1
lea edx, [esp + 0xa8]
push edx
mov ecx, edi
call eax
push ebx
mov ecx, edi
call fcn.004f84bd
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
push esi
mov ecx, edi
call eax
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x563d64
call fcn.0040c3a0
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005171ce
add esp, 0x88
ret 8
Function at 0x4eb1f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
jbe 0x4eb2a1
push ebx
push ebp
push esi
movzx ecx, cl
movzx esi, dl
lea edx, [ecx + 1]
and edx, 0x800000ff
jns 0x4eb226
dec edx
or edx, 0xffffff00
inc edx
movzx ecx, dl
movzx ebx, byte [ecx + eax]
add ebx, esi
and ebx, 0x800000ff
jns 0x4eb23f
dec ebx
or ebx, 0xffffff00
inc ebx
movzx esi, bl
mov byte [esp + 0x13], bl
movzx ebx, byte [ecx + eax]
mov byte [esp + 0x12], bl
movzx ebx, byte [esi + eax]
mov byte [ecx + eax], bl
movzx ebx, byte [esp + 0x12]
mov byte [esi + eax], bl
movzx ebp, byte [ecx + eax]
movzx ebx, bl
add ebx, ebp
and ebx, 0x800000ff
jns 0x4eb276
dec ebx
or ebx, 0xffffff00
inc ebx
mov ebp, dword [esp + 0x18]
movzx ebx, bl
movzx ebx, byte [ebx + eax]
xor byte [edi + ebp], bl
inc edi
cmp edi, dword [esp + 0x1c]
jb 0x4eb213
mov cl, byte [esp + 0x13]
pop esi
pop ebp
pop ebx
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop edi
pop ecx
ret
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop edi
pop ecx
ret
Function at 0x53a170
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x53a31a
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x53a1c8
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x53a1db
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x53a1ef
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x53a236.3
jmp 0x53a200
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x53a20c
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x53a211
mov esi, 1
inc eax
cmp eax, edi
jl 0x53a200
cmp si, cx
je case.0x53a236.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x53a236.3
movzx eax, byte [eax + 0x53a334]
jmp dword [eax*4 + 0x53a320]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x53a236.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x53a250
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x53a236.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x53a290
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x53a236.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x53a2b6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x53a236.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x53a2e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x5420d0
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x5420ea
pop edi
lea eax, [esi + 1]
pop esi
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x5421fa
push ebp
jmp 0x542100
mov eax, ebx
cmp ebx, 0x15b0
jb 0x54210f
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x5421bb
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x542130
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x542130
test eax, eax
je 0x5421cd
nop
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
sub eax, 1
jne 0x5421c0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x542100
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
ret
Function at 0x100011fd
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push edi
push 0x40
xor dl, dl
pop ecx
xor eax, eax
lea edi, [ebp - 0x123]
mov byte [ebp - 0x124], dl
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 - 0x227]
mov byte [ebp - 0x228], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x1f]
mov byte [ebp - 0x20], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x124]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x228]
push str._sxy2.ini
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20]
push 0x20
push eax
push 0x1000a6c4
push str.HostName
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
pop edi
test eax, eax
jbe 0x100012c3
push esi
lea eax, [ebp - 0x20]
mov esi, 0x10091768
push eax
push esi
call sub.MSVCRT.dll_strcpy
push esi
push 0x10091728
call sub.MSVCRT.dll_strcpy
add esp, 0x10
pop esi
leave
ret
Function at 0x10001ec7
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, str.xy2.exe
push esi
push 0x10091514
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x10002070
push 0x10090ec0
push 1
pop ebx
push ebx
push 0x10090f70
push 0x10091618
call fcn.10004eef
push 0x100918f0
call fcn.10005639
add esp, 0x14
call fcn.1000546a
test eax, eax
jne 0x10002070
push edi
call dword [sym.imp.MSVCRT.dll__getpid]
push eax
push 0x10001ce9
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.100026fa
mov edi, eax
call fcn.100047a7
push 0x10001d63
call fcn.10003be4
and byte [ebp - 8], 0
pop ecx
push ebx
push 9
lea eax, [ebp - 0xc]
push 9
push eax
push esi
mov ecx, edi
mov byte [ebp - 0xc], 0xc6
mov byte [ebp - 0xb], 0x44
mov byte [ebp - 0xa], 0x24
mov byte [ebp - 9], 0x28
mov byte [ebp - 7], 0x8d
mov byte [ebp - 6], 0x4c
mov byte [ebp - 5], 0x24
mov byte [ebp - 4], 0x10
call fcn.1000249c
test eax, eax
jbe 0x10001f8c
push 0x100018d0
push eax
mov ecx, edi
call fcn.100020c5
push ebx
push 0
lea eax, [ebp - 0x10]
push 0xd
push eax
push esi
mov ecx, edi
mov byte [ebp - 0x10], 0x8b
mov byte [ebp - 0xf], 0xc3
mov byte [ebp - 0xe], 0xc1
mov byte [ebp - 0xd], 0xe0
mov byte [ebp - 0xc], 9
mov byte [ebp - 0xb], 3
mov byte [ebp - 0xa], 0xc2
mov byte [ebp - 9], 0x50
mov byte [ebp - 8], 0x8d
mov byte [ebp - 7], 0x4c
mov byte [ebp - 6], 0x24
mov byte [ebp - 5], 0x10
mov byte [ebp - 4], 0x51
call fcn.1000249c
test eax, eax
jbe 0x10001fe2
push 0x10001712
push eax
mov ecx, edi
call fcn.100022bd
push ebx
push 7
lea eax, [ebp - 0xc]
push 7
push eax
push esi
mov ecx, edi
mov byte [ebp - 0xc], 0x8b
mov byte [ebp - 0xb], 0xd8
mov byte [ebp - 0xa], 0x53
mov byte [ebp - 9], 0x8b
mov byte [ebp - 8], 0xd7
mov byte [ebp - 7], 0x8b
mov byte [ebp - 6], 0xc6
call fcn.1000249c
test eax, eax
jbe 0x10002020
push 0x10001355
push eax
mov ecx, edi
call fcn.100020c5
push ebx
push 0xb
lea eax, [ebp - 0xc]
push 6
push eax
push esi
mov ecx, edi
mov byte [ebp - 0xc], 0x8b
mov byte [ebp - 0xb], 0x4e
mov byte [ebp - 0xa], 0xc
mov byte [ebp - 9], 0x55
mov byte [ebp - 8], 3
mov byte [ebp - 7], 0xcf
call fcn.1000249c
test eax, eax
jbe 0x1000205a
push 0x10001acd
push eax
mov ecx, edi
call fcn.100022bd
push 0x100015d7
push 0x13e8256
mov ecx, edi
call fcn.100020c5
mov eax, ebx
pop edi
jmp 0x10002072
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x10002478
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
test edx, edx
je 0x10002499
cmp word [edx], 0x5a4d
jne 0x10002499
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x10002499
mov eax, dword [ecx + 0x50]
ret 4
Function at 0x100031cd
Capabilities:
Delete file

Disassembly:
mov eax, 0x10006910
call fcn.100066c0
sub esp, 0x164
push ebx
push esi
push edi
push 1
pop edi
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call sub.gdiplus.dll_GdiplusStartup
push dword [ebp + 8]
lea eax, [ebp - 0x170]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x170]
pop ecx
push 0x10009924
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea ecx, [ebp - 0x170]
sub ecx, 3
add eax, ecx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
pop ecx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
mov dword [ebp - 0x10], eax
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
push ebx
push ebx
lea eax, [ebp - 0x170]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
mov dword [ebp - 0x10], eax
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x170]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0x10007220
mov dword [ebp - 0x24], ebx
push eax
push dword [ebp - 0x14]
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], ebx
push eax
push str.image_jpeg
call fcn.10003340
mov dword [ebp - 0x5c], edi
mov esi, 0x10007228
lea edi, [ebp - 0x58]
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
lea eax, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
push 1
mov dword [ebp - 0x40], eax
pop esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x44], 4
push dword [ebp - 0x18]
mov dword [ebp - 0x48], esi
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipSaveImageToFile
cmp eax, ebx
je 0x100032fd
mov dword [ebp - 0x20], eax
push dword [ebp - 0x14]
call fcn.10006684
push dword [ebp - 0x18]
call fcn.10006684
pop ecx
mov dword [ebp - 0x28], 0x10007220
pop ecx
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipDisposeImage
push dword [ebp - 0x2c]
call sub.gdiplus.dll_GdiplusShutdown
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x10003a5c
Capabilities:
Create thread

Disassembly:
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push esi
push esi
push 0x1000394d
push esi
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
push esi
push esi
push esi
push 0x10003a04
push esi
push esi
call edi
push eax
call ebx
push 1
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x10003bee
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10003c2b
cmp byte [ebp - 0x190], 2
jne 0x10003c25
mov al, byte [ebp - 0x18f]
cmp al, 2
jne 0x10003c25
push 1
pop eax
leave
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
leave
ret

Function at 0x10003ce5
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10003d2c
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x10003d2c
movsx eax, word [eax + 0xa]
push eax
lea eax, [ebp - 0xc]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x10003d30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003d4e
xor eax, eax
jmp 0x10003d8d
push dword [ebp + 8]
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10003d8b
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x10003d8d
mov eax, esi
pop esi
leave
ret
Function at 0x10003fc6
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x10091100], esi
jne 0x10003ffb
push edi
push esi
push esi
push esi
push 0x10004330
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [esp + 0xc], esi
mov edi, eax
je 0x10003ff3
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4
Function at 0x1000478d
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x10004726
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x10004d3f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
jle 0x10004d8f
push esi
inc cl
movzx ecx, cl
mov edx, dword [eax + ecx*4 + 8]
mov dword [ebp + 8], ecx
lea esi, [eax + ecx*4 + 8]
mov cl, dl
add cl, bl
movzx ebx, cl
mov ecx, dword [eax + ebx*4 + 8]
mov dword [esi], ecx
mov esi, dword [ebp + 0xc]
add cl, dl
mov dword [eax + ebx*4 + 8], edx
movzx ecx, cl
add esi, edi
mov cl, byte [eax + ecx*4 + 8]
xor byte [esi], cl
mov ecx, dword [ebp + 8]
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x10004d54
pop esi
mov dword [eax + 4], ebx
pop edi
mov dword [eax], ecx
pop ebx
pop ebp
ret 0xc
Function at 0x100054c3
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
mov esi, 0x104
push edi
push esi
push 0x1009130c
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
push 0x10091208
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x10091104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, 0x10091410
push esi
push ebx
push 0
call edi
mov eax, dword [0x1009171c]
mov ebp, dword [sym.imp.MSVCRT.dll__strlwr]
test eax, eax
je 0x1000551e
push esi
mov esi, 0x10091618
push esi
push eax
call edi
push esi
call ebp
pop ecx
push ebx
call ebp
push ebx
call fcn.1000553a
push eax
push 0x10091514
call sub.MSVCRT.dll_strcpy
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10005796
Capabilities:
Set file attributes

Disassembly:
push 6
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x10005828
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x58], eax
ret

Function at 0x100062f9
Capabilities:
Accept command line arguments
Delete file
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, str.ServerMain
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x10006341
add esi, 0xb
push 0
push esi
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x10006341
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x10006328
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000634b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
leave
ret 8
Function at 0x100063bd
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and byte [ebp - 0x10], 0
push edi
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
push dword [ebp + 8]
stosd dword es:[edi], eax
push dword [ebp + 0xc]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
pop edi
jne 0x1000640c
mov eax, dword [ebp + 8]
shr eax, 0x10
test ax, ax
jne 0x10006404
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x1000a104
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret 8
Function at 0x4041e0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4042b3
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push ebp
push esi
push 0x20
push str.Everything_Client
push edi
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40422d
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebp
push 0x10000
push str.Everything_Client
push edi
call ebx
mov esi, eax
test esi, esi
je 0x40427b
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40426d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58de7c]
mov ecx, dword [eax + 0x1050]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a98f0
add esp, 0x14
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x1c
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
je 0x4042a8
call esi
push eax
mov eax, dword [0x58de7c]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a98f0
add esp, 0x14
push edi
call ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58de7c]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a98f0
add esp, 0x14
pop edi
add esp, 0x1c
ret

Function at 0x4042e0
Capabilities:
Start service

Disassembly:
push ebx
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x404384
push ebp
push esi
push 0x10
push str.Everything_Client
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40435b
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x404351
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x420
je 0x404350
call edi
push eax
mov eax, dword [0x58de7c]
mov ecx, dword [eax + 0x1048]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a98f0
add esp, 0x14
pop edi
push esi
call ebp
push ebx
call ebp
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58de7c]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a98f0
add esp, 0x14
push ebx
call ebp
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58de7c]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a98f0
add esp, 0x14
pop ebx
ret