joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4779b5
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x8aa514]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x4779ea
call fcn.00719a60
mov dword [esi + 4], eax
or eax, edi
mov dword [esi], 0x2719
jmp 0x477acd
push ebx
mov bl, byte [ebp + 0xc]
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], 1
and bl, 1
je 0x477a13
and dword [ebp - 0x110], 0
and dword [ebp - 0x10c], 0
jmp 0x477a34
mov eax, dword [ebp + 0x10]
test eax, eax
js 0x477a42
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x110], eax
imul eax, edx, 0x3e8
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x114], eax
jmp 0x477a49
and dword [ebp - 0x114], 0
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push esi
push dword [ebp - 0x114]
lea eax, [ebp - 0x108]
push 0
push 0
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.00453482
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x477abd
test bl, bl
je 0x477a9c
call fcn.00719a60
mov dword [ebp - 0x110], 0x2733
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x10c], eax
jmp 0x477ab4
and dword [ebp - 0x118], 0
call fcn.00719a60
mov dword [ebp - 0x114], eax
lea ecx, [ebp - 0x118]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
jmp 0x477ac7
jle 0x477aca
call fcn.00719a60
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005b937d
mov esp, ebp
pop ebp
ret

Function at 0x478495
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [ebp + 0xc], ebx
jne 0x4784ea
cmp dword [ebp + 0x10], ebx
jne 0x4784ea
cmp dword [ebp + 0x14], ebx
jne 0x4784ea
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x478507
mov eax, dword [ecx + 4]
mov esi, 0x3e8
cdq
idiv esi
imul ecx, dword [ecx], 0x3e8
push 1
add eax, ecx
pop ecx
cmove eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00719a60
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx], ebx
jmp 0x47853a
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x478507
cmp dword [ecx], ebx
jne 0x478507
cmp dword [ecx + 4], ebx
jle 0x478507
mov eax, 0x3e8
cmp dword [ecx + 4], eax
jge 0x478507
mov dword [ecx + 4], eax
mov esi, dword [ebp + 0x1c]
push edi
push esi
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.00453482
mov edi, eax
pop ecx
pop ecx
test edi, edi
js 0x478537
call fcn.00719a60
mov dword [esi], ebx
mov dword [esi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4785c3
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0xffffffff
jne 0x4785e2
call fcn.00719a60
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], eax
xor al, al
mov dword [ecx], 0x2719
jmp 0x47865d
push ebx
mov bl, byte [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
test bl, bl
jne 0x478608
test byte [esi], 1
je 0x478608
call fcn.00719a60
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], eax
xor al, al
mov dword [ecx], 0x2726
jmp 0x47865b
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [ebp + 0x14]
xor eax, eax
test bl, bl
push edi
setne al
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push eax
call fcn.00453482
pop ecx
pop ecx
test eax, eax
js 0x478658
call fcn.00719a60
and dword [edi], 0
mov dword [edi + 4], eax
test bl, bl
je 0x478651
or byte [esi], 2
jmp 0x478654
and byte [esi], 0xfd
mov al, 1
jmp 0x47865a
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
je 0x47899d
push 0
push 0
jmp 0x4789f3
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x4789b0
push 0
push 0x2719
jmp 0x4789f3
and dword [ebp + 0x18], 0
lea ecx, [ebp + 0x18]
push esi
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
pop esi
je 0x478a00
cmp eax, 0x3e5
je 0x478a00
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
mov ecx, dword [edi + 4]
call fcn.0046de58
jmp 0x478a0b
push dword [ebp + 0x1c]
mov ecx, dword [edi + 4]
call fcn.0046debc
pop edi
pop ebp
ret 0x18

Function at 0x478c41
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x14], 0
mov edx, dword [ebp + 8]
push ebx
mov bl, byte [edx]
mov bh, byte [edx + 1]
jbe 0x478cb6
push esi
push edi
mov edi, dword [ebp + 0x10]
sub dword [ebp + 0xc], edi
movzx ecx, bh
movzx eax, bl
mov dword [ebp + 8], ecx
mov bh, byte [ebp + 8]
mov bl, al
inc bl
movzx eax, bl
mov dword [ebp - 4], eax
mov esi, eax
mov cl, byte [eax + edx + 2]
add bh, cl
movzx eax, bh
mov dword [ebp + 8], eax
mov al, byte [eax + edx + 2]
mov byte [esi + edx + 2], al
mov eax, dword [ebp + 8]
mov byte [eax + edx + 2], cl
mov eax, esi
mov esi, dword [ebp + 0xc]
movzx ecx, cl
movzx eax, byte [eax + edx + 2]
add ecx, eax
movzx eax, cl
mov al, byte [eax + edx + 2]
xor al, byte [esi + edi]
mov byte [edi], al
inc edi
sub dword [ebp + 0x14], 1
mov eax, dword [ebp - 4]
jne 0x478c65
pop edi
pop esi
mov byte [edx], bl
mov byte [edx + 1], bh
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x478cc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
push edi
lea edi, [ecx + 2]
mov word [ecx], ax
mov ebx, 0x100
mov edx, edi
mov dword [ebp - 4], ebx
mov byte [edx], al
inc eax
inc edx
cmp ax, bx
jb 0x478cdd
push 0xfffffffffffffffe
pop eax
sub eax, ecx
mov edx, edi
mov dword [ebp + 8], edx
xor esi, esi
mov dword [ebp - 8], eax
mov bl, byte [edx]
add eax, edx
xor edx, edx
div dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [edx + eax]
mov edx, dword [ebp + 8]
movzx eax, bl
add cx, ax
mov eax, 0xff
add cx, si
and cx, ax
movzx esi, cx
mov al, byte [edi + esi]
mov byte [edx], al
inc edx
sub dword [ebp - 4], 1
mov eax, dword [ebp - 8]
mov byte [edi + esi], bl
mov dword [ebp + 8], edx
jne 0x478cf5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47da3b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x14
mov eax, 0x7aff4e
call fcn.005b9430
mov esi, ecx
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
lea edi, [ebx + 8]
movzx eax, word [edi]
sub eax, 0
je 0x47dbde
sub eax, 1
je 0x47db34
sub eax, 1
je 0x47db0b
sub eax, 1
je 0x47dad8
sub eax, 1
je 0x47daa5
sub eax, 1
je 0x47db34
call fcn.004691b9
movzx ecx, word [edi]
push ecx
push str._server_agent_Read_data_warning:___d_
push 5
push eax
call fcn.00468a01
add esp, 0x10
call fcn.005b938e
ret 4
call fcn.004691b9
push str._server_agent_Read_data_:yjs_connect_def_node_success.
push 5
push eax
call fcn.00468a01
mov eax, dword [esi + 0x57d4]
add esp, 0xc
push 2
pop ecx
cmp eax, ecx
push edi
cmovg ecx, eax
mov dword [esi + 0x57d4], ecx
mov ecx, esi
call fcn.0047e2d2
jmp 0x47da9d
call fcn.004691b9
push str._server_agent_Read_data_:sdk_connect_def_node
push 5
push eax
call fcn.00468a01
mov eax, dword [esi + 0x57d4]
add esp, 0xc
push 2
pop ecx
cmp eax, ecx
push edi
cmovg ecx, eax
mov dword [esi + 0x57d4], ecx
mov ecx, esi
call fcn.0047e4e8
jmp 0x47da9d
call fcn.004691b9
push str._server_agent_Read_data_:_write_to_client.
push 5
push eax
call fcn.00468a01
add esp, 0xc
lea ecx, [esi + 0x56c8]
push dword [ebx + 4]
push edi
call fcn.00475918
jmp 0x47da9d
call fcn.004691b9
push str._agent_server_Server_connect_and_register_success.
push 5
push eax
call fcn.00468a01
add esp, 0xc
mov dword [esi + 0x57d4], 7
lea ecx, [esi + 0x160]
call fcn.0045c861
lea edi, [esi + 0x5198]
mov byte [esi + 9], 0
mov byte [edi], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x56a0]
sub eax, dword [esi + 0x5778]
mov dword [esi + ecx*4 + 0x519c], eax
lea eax, [ebp - 0x20]
inc dword [esi + 0x56a0]
mov ecx, esi
push eax
call fcn.0047c91e
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0047cb57
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x47dbb1
call fcn.004600ab
push edi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea ecx, [esi + 0x56a8]
call fcn.00475918
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x47da9d
call fcn.004600ab
jmp 0x47da9d
call fcn.004691b9
push str._server_agent_Read_data_:_Heartbeat_package.
push 6
push eax
call fcn.00468a01
add esp, 0xc
mov byte [esi + 9], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [esi + 0x56a0]
sub ecx, dword [ebx + 0x10]
cmp eax, 0x12c
jl 0x47dc41
mov eax, dword [esi + 0x569c]
mov dword [esi + eax*4 + 0x519c], ecx
mov eax, dword [esi + 0x569c]
cmp eax, 0x12b
jl 0x47dc35
and dword [esi + 0x569c], 0
jmp 0x47da9d
inc eax
mov dword [esi + 0x569c], eax
jmp 0x47da9d
mov dword [esi + eax*4 + 0x519c], ecx
inc dword [esi + 0x56a0]
jmp 0x47da9d
Function at 0x47e2d2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ae205
mov eax, dword fs:[0]
push eax
mov eax, 0x5130
call fcn.005b9d80
mov eax, dword [0x8aa514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x5128], esi
movzx eax, word [esi + 2]
cmp cx, ax
jne 0x47e49c
push str._agent_server_Yjs_Register_Def_node_success__connect_Sec_node.
push 5
call fcn.004691b9
push eax
call fcn.00468a01
add esp, 0xc
lea ecx, [ebx + 0x110]
call fcn.0045c861
xor eax, eax
xor byte [eax + esi + 8], 8
inc eax
cmp eax, 8
jl 0x47e340
push 0x5010
lea eax, [ebp - 0x5124]
push 0
push eax
call fcn.007351d0
and dword [ebp - 0x5118], 0
lea esi, [ebx + 0x49]
push 4
pop eax
mov word [ebp - 0x511c], ax
lea edi, [ebp - 0x5114]
xor eax, eax
mov dword [ebp - 0x5124], 0x4b594a53
push 3
inc eax
mov dword [ebp - 0x5120], 0x48
pop ecx
mov word [ebp - 0x511a], ax
mov eax, dword [ebx + 0x57d4]
cmp eax, ecx
push 8
cmovg ecx, eax
mov eax, dword [ebp - 0x5128]
mov dword [ebx + 0x57d4], ecx
add eax, 8
pop ecx
rep movsd dword es:[edi], dword [esi]
push 8
pop ecx
push 8
push eax
lea eax, [ebp - 0x114]
lea esi, [ebx + 0x28]
lea edi, [ebp - 0x50f4]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00478cc0
push 0x40
lea eax, [ebp - 0x5114]
push eax
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00478c41
mov eax, dword [ebp - 0x5120]
add esp, 0x28
add eax, 8
mov ecx, ebx
push eax
lea eax, [ebp - 0x5124]
push eax
call fcn.0047eb96
xor edi, edi
push edi
push edi
push edi
push 3
push edi
push edi
push edi
push edi
call fcn.00460cc6
add esp, 0x20
mov dword [ebp - 0x512c], eax
lea eax, [ebp - 0x512c]
mov dword [ebp - 0x5128], edx
lea esi, [ebx + 0x110]
mov ecx, esi
push eax
call fcn.0045ede8
mov eax, dword [0x8a92d4]
movzx eax, byte [eax]
push eax
push ecx
push ecx
push esp
mov ecx, ebx
call fcn.0047c91e
push edi
push 0x47dc9b
lea eax, [ebp - 0x513c]
push eax
call fcn.0047408b
add esp, 0x18
mov ecx, dword [esi]
push eax
lea eax, [esi + 8]
mov dword [ebp - 4], edi
push eax
call fcn.004793c2
mov ecx, dword [ebp - 0x5130]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x47e486
call fcn.004600ab
mov eax, dword [ebx + 0x57d4]
push 4
pop ecx
cmp eax, ecx
cmovg ecx, eax
mov dword [ebx + 0x57d4], ecx
jmp 0x47e4ca
xor ecx, ecx
inc ecx
cmp cx, ax
jne 0x47e4ca
mov eax, dword [ebx + 0x57d4]
push 5
pop ecx
cmp eax, ecx
cmovg ecx, eax
mov dword [ebx + 0x57d4], ecx
lea ecx, [ebx + 0x110]
call fcn.0045c861
mov ecx, ebx
call fcn.0047e91e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b937d
mov esp, ebp
pop ebp
ret 4
Function at 0x47f1ce
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x8aa514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 0x7cb560
push 0x76
push ebx
mov dword [ebp - 0x29c], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x47f261
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x47f25b
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x47f254
push edi
push ebx
push esi
call fcn.00734c50
add esp, 0xc
xor eax, eax
test edi, edi
je 0x47f23a
xor byte [esi + eax], 0x2b
inc eax
cmp eax, edi
jb 0x47f231
lea eax, [esi + 0x1b0]
push 0x21
push eax
call fcn.007435e6
pop ecx
pop ecx
mov dword [ebp - 0x29c], 1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ebx, dword [ebp - 0x29c]
push 0x8c
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.007351d0
push 0x208
lea eax, [ebp - 0x298]
push 0
push eax
call fcn.007351d0
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x90]
add esi, 0x124
push esi
push 0x8776c4
push eax
call edi
add esp, 0x24
lea eax, [ebp - 0x298]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x298]
push 0x208
push eax
call fcn.00467578
lea eax, [ebp - 0x298]
push eax
push esi
call fcn.00748790
add esp, 0x10
test eax, eax
jne 0x47f2fc
push 0x80
push eax
push esi
call fcn.007351d0
lea eax, [ebp - 0x90]
push eax
push 0x7cb568
push esi
call edi
add esp, 0x18
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b937d
mov esp, ebp
pop ebp
ret 4
Function at 0x47f390
Capabilities:
Read .ini file

Disassembly:
push 0x6c
mov eax, 0x7b01c4
call fcn.005b93f9
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
call fcn.004691b9
mov ecx, eax
call fcn.0046946f
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
push str.cloudeconfig.ini
push 0x21
stosb byte es:[edi], al
lea eax, [ebp - 0x34]
push eax
push 0x877985
push str.Addr
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x64]
call fcn.004540d3
and dword [ebp - 4], 0
lea ecx, [ebp - 0x64]
push 0x7cb4f4
call fcn.00465adf
test eax, eax
setne al
push eax
mov dword [ebp - 0x6c], eax
call fcn.00463d6d
pop ecx
lea eax, [ebx + 0x418]
mov ecx, ebx
push eax
mov dword [ebp - 0x70], eax
call fcn.0047f1ce
lea ecx, [ebx + 0x5f4]
mov dword [ebp - 0x74], eax
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0045414f
cmp dword [ebp - 0x38], 8
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
mov eax, 0x7cb4f8
cmovae ecx, dword [ebp - 0x4c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x47f46a
test dx, dx
je 0x47f466
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x47f46a
add ecx, 4
add eax, 4
test dx, dx
jne 0x47f444
xor eax, eax
jmp 0x47f46f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47f480
push eax
call fcn.004691b9
mov ecx, eax
call fcn.004694de
cmp dword [ebp - 0x74], 0
je 0x47f4dd
lea edi, [ebx + 4]
mov ecx, ebx
push edi
call fcn.0047f311
push dword [ebp - 0x6c]
add ebx, 0xb8
mov esi, eax
push dword [ebp - 0x78]
mov ecx, edi
push ebx
push dword [ebp - 0x68]
push esi
push dword [ebp - 0x70]
call fcn.004871ce
test esi, esi
jne 0x47f4d6
push dword [ebp - 0x68]
mov ecx, ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call fcn.00458843
push str.Start_success
push 4
call fcn.004691b9
push eax
call fcn.00468ae2
jmp 0x47f4ef
push str.Start_failed__Already_exit
jmp 0x47f4e2
push str.Start_failed__Get_Package_config_failed
push 2
call fcn.004691b9
push eax
call fcn.00468a01
add esp, 0xc
lea ecx, [ebp - 0x4c]
push 0
push 1
call fcn.0045bf09
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.0045beb4
mov eax, dword [ebp - 0x74]
call fcn.005b93a3
ret 8

Function at 0x47f527
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push ecx
push 0x47f548
push eax
push eax
call fcn.00741eee
add esp, 0x18
push 0x3a98
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
Function at 0x480cba
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x8aa514]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x480d8f
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x258]
push eax
push 0x800a58
xor eax, eax
inc eax
push eax
push esi
push 0x800ac8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x480d8f
mov ecx, dword [ebp - 0x258]
test ecx, ecx
je 0x480d4c
mov eax, dword [ecx]
lea edx, [ebp - 0x25c]
push edx
push 0x800a78
push ecx
call dword [eax]
test eax, eax
js 0x480d8f
mov ecx, dword [ebp - 0x258]
mov edx, dword [ebp - 0x25c]
test edx, edx
je 0x480d69
mov eax, dword [edx]
push 2
push edi
push edx
call dword [eax + 0x14]
test eax, eax
js 0x480d8f
mov ecx, dword [ebp - 0x258]
test ecx, ecx
je 0x480d87
mov eax, dword [ecx]
lea edx, [ebp - 0x254]
push 4
push edx
push 0x104
push dword [ebp - 0x260]
push ecx
call dword [eax + 0xc]
test eax, eax
push 1
pop eax
cmovns esi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x25c]
test ecx, ecx
je 0x480da7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x258]
test edx, edx
je 0x480db7
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b937d
mov esp, ebp
pop ebp
ret 8
Function at 0x480dcc
Capabilities:
Check if file exists
Create shortcut via ishelllink
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x480e5f
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 8]
push eax
push 0x800a58
push 1
push esi
push 0x800ac8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x480e5f
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push 0x800a78
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x480e5f
mov eax, dword [ebp - 4]
push 2
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x480e5f
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x480e4c
push dword [ebp + 0xc]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x50]
test eax, eax
js 0x480e5f
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x480e5c
mov eax, dword [ecx]
push 1
push edi
push ecx
call dword [eax + 0x18]
xor esi, esi
inc esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x480e74
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 8]
test edx, edx
je 0x480e81
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4859b6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x8aa514]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x108]
xor edi, edi
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetControlClass4D36E968_E325_11CE_BFC1_08002BE103180000
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x485a95
push 0x100
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.007351d0
add esp, 0xc
mov dword [ebp - 0x110], 0x80
lea eax, [ebp - 0x110]
push eax
push edi
push str.ProviderName
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x485a89
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], esi
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x10c], 0x80
push eax
lea eax, [ebp - 0x114]
push eax
push edi
push str.ProviderName
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10c]
lea eax, [ebp - 0x104]
push eax
push str.VMware__Inc.
call fcn.007334c6
xor ecx, ecx
add esp, 0xc
test eax, eax
cmove esi, ecx
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.005b937d
mov esp, ebp
pop ebp
ret
Function at 0x485b39
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x485b7d
cmp dword [ebp + 0xc], esi
je 0x485b7d
push 2
push ecx
push str.1.0.0
push dword [ebp + 0xc]
call fcn.0048517a
mov esi, eax
test esi, esi
je 0x485b7d
xor esi, esi
inc esi
push esi
call fcn.00485aa7
pop ecx
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0
call fcn.00485aa7
pop ecx
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x485c9d
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x438
mov eax, 0x7b094b
call fcn.005b9467
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x444]
mov dword [ebp - 4], ebx
call fcn.00480fc7
push str..protectdrv
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 1
call fcn.0048114e
test eax, eax
jne 0x485dc9
mov word [ebp - 0x28], ax
lea edi, [ebp - 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x438]
mov edi, 0x208
push edi
push ebx
push eax
call fcn.007351d0
push edi
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.007351d0
add esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esi
push 9
push eax
call fcn.00485bd0
mov edi, 0x104
lea eax, [ebp - 0x438]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x438]
push eax
push str._sdrivers_s.dat
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.004861c0
add esp, 0x14
mov ecx, esi
call fcn.00485c17
mov edi, eax
mov ecx, esi
push str.antihijacking_pc.dat
lea eax, [ebp - 0x230]
push eax
call fcn.00485b39
test eax, eax
je 0x485dc9
push str..protectdrv
lea ecx, [ebp - 0x444]
call fcn.0048114e
test eax, eax
jne 0x485d99
push ebx
lea eax, [ebp - 0x28]
push eax
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x444]
call fcn.00481114
test eax, eax
je 0x485dc9
cmp edi, 0x20
jne 0x485dad
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x485dc9
push 1
call fcn.00485aa7
pop ecx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.00485aa7
pop ecx
lea ecx, [ebp - 0x444]
call fcn.00480fd5
call fcn.005b93b4
ret

Function at 0x485de0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
call fcn.00486120
push 8
pop ecx
push dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [esi + 0x24], ebx
mov edi, esi
rep stosd dword es:[edi], eax
push 0x7c8fd4
push 0x21
push esi
stosb byte es:[edi], al
call fcn.004612d8
push ebx
push ebx
push esi
push 0x4861af
push ebx
push ebx
call fcn.00741eee
add esp, 0x28
mov dword [esi + 0x24], eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x486195
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0
je 0x4861ad
push 0
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi + 0x24], 0
pop esi
ret