joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412386
Capabilities:
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x214
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
call edx
test al, al
je 0x4123a0
mov al, 1
pop esi
add esp, 0x214
ret 4
mov ecx, dword [esi + 8]
push ebx
lea eax, [esp + 8]
push eax
push 0x8004667e
mov ebx, 1
push ecx
mov byte [esi + 0xe], 0
mov dword [esp + 0x14], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [esp + 0x220]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, dword [esi + 8]
mov dword [esp + 0xc], edx
imul edx, edx, 0x3e8
sub ecx, edx
imul ecx, ecx, 0x3e8
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x11c]
push ecx
push 0
lea edx, [esp + 0x20]
mov dword [esp + 0x24], eax
mov dword [esp + 0x128], eax
push edx
add eax, ebx
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x12c], ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x41245f
test eax, eax
je 0x41245f
mov ecx, dword [esi + 8]
lea eax, [esp + 0x14]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x412447
mov al, bl
pop ebx
pop esi
add esp, 0x214
ret 4
mov eax, dword [esi + 8]
lea edx, [esp + 0x118]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41245f
mov byte [esi + 0xd], bl
pop ebx
xor al, al
pop esi
add esp, 0x214
ret 4

Function at 0x412476
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
push esi
mov esi, ecx
mov ecx, dword [esp + 0x218]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, dword [esi + 8]
mov dword [esp + 4], edx
imul edx, edx, 0x3e8
sub ecx, edx
imul ecx, ecx, 0x3e8
mov dword [esp + 8], ecx
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x114]
push edx
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x120], eax
push 0
add eax, 1
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x124], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x41251f
test eax, eax
je 0x41251f
mov eax, dword [esi + 8]
lea edx, [esp + 0xc]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x412506
mov al, 1
pop esi
add esp, 0x210
ret 4
mov edx, dword [esi + 8]
lea ecx, [esp + 0x110]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41251f
mov byte [esi + 0xd], 1
xor al, al
pop esi
add esp, 0x210
ret 4
Function at 0x4132f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x428c68
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
mov eax, dword [0x43bca0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x34], 0
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x38]
test esi, esi
je 0x413340
mov eax, dword [esi]
jmp 0x413342
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x40]
push edx
push eax
mov eax, dword [ecx + 0x74]
push edi
call eax
test eax, eax
jge 0x413365
push 0x430b54
push edi
push eax
call fcn.00426770
push 0x10
lea ecx, [esp + 0x10]
push ecx
push 0x10
push ebp
call dword [sym.imp.MSVCR80.dll_memcpy_s]
add esp, 0x10
test esi, esi
mov word [esp + 0xc], 0
je 0x4133b7
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4133b7
mov eax, dword [esi]
test eax, eax
je 0x41339e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x4133ae
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
push esi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x24
ret 0xc

Function at 0x4144d2
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x43bca0]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
push ebx
push edi
push 0x12c
xor edi, edi
lea eax, [ebp + 0x84]
push edi
push eax
xor ebx, ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0xff
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
mov dword [ebp - 0x80], eax
je 0x41458a
push esi
mov eax, dword [ebp - 0x80]
mov eax, dword [eax + 0xc]
lea eax, [eax + ebx*4]
cmp dword [eax], 0
je 0x414576
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
test esi, esi
je 0x414576
push esi
call sub.MSVCR80.dll_strlen
push eax
lea eax, [ebp + edi + 0x84]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_strncpy]
push esi
call sub.MSVCR80.dll_strlen
add eax, edi
add esp, 0x14
inc ebx
mov byte [ebp + eax + 0x84], 0
add edi, 0x1e
jmp 0x414529
test ebx, ebx
pop esi
jle 0x41458a
lea eax, [ebp + 0x84]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
jmp 0x41458c
xor eax, eax
mov ecx, dword [ebp + 0x1b0]
pop edi
xor ecx, ebp
pop ebx
call fcn.00426052
add ebp, 0x1b4
leave
ret
Function at 0x415229
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43bca0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
mov eax, dword [ebp + 0x14]
je 0x41526d
mov cx, word [ebp + 0x10]
mov word [ebp - 0x12], cx
mov ecx, dword [ebp + 0xc]
push 0x10
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push dword [ebp + 0x18]
mov word [ebp - 0x14], 2
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
jmp 0x415270
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426052
leave
ret

Function at 0x415926
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0xc], ecx
xor ebx, ebx
lea ecx, [ebp - 4]
push ecx
push ebx
lea eax, [esi + 8]
push eax
push 0x414fc1
push ebx
push ebx
mov byte [esi + 0x18], bl
mov dword [eax], esi
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x41595f
mov dword [esi + 4], ebx
cmp dword [esi + 4], ebx
jne 0x41596c
mov byte [esi + 0x18], 1
xor al, al
jmp 0x41596e
mov al, 1
pop esi
pop ebx
leave
ret 4

Function at 0x417e90
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43bca0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
mov esi, ecx
call fcn.004151fc
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.00414472
add esp, 0xc
test al, al
je 0x417f02
mov eax, dword [ebp + 8]
mov cx, word [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0xc]
mov word [ebp - 0x14], 2
mov word [ebp - 0x12], cx
call dword [sym.imp.WS2_32.dll_connect]
push esi
push dword [esi + 0xc]
mov ecx, esi
mov dword [esi + 0x10], 1
call fcn.00417a94
push esi
push dword [esi + 0xc]
mov ecx, esi
call fcn.00417e42
mov al, 1
jmp 0x417f17
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x417f11
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0xc], 0xffffffff
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00426052
leave
ret 4
Function at 0x41a555
Capabilities:
Initialize winsock library

Disassembly:
push 0x198
mov eax, 0x4270cb
call fcn.004260d7
mov esi, ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x1a4], esi
mov dword [esi], vtable.Network::CCommunication_class_Network::QQPacket_.0
call fcn.00403cd0
xor ebx, ebx
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.00415df5
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 1
call fcn.00415df5
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 2
call fcn.00415df5
mov dword [esi + 0x350], ebx
mov byte [esi + 0x354], bl
lea eax, [esi + 0x358]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0x368]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0x378]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea ecx, [esi + 0x388]
call fcn.00403cd0
lea ecx, [esi + 0x3a4]
mov byte [ebp - 4], 7
call fcn.00415e1a
mov eax, dword [ebp + 8]
mov dword [esi + 0x3b0], eax
mov eax, dword [eax + 0x10]
add eax, 2
push eax
lea ecx, [esi + 0x3b4]
mov byte [ebp - 4], 8
call fcn.00415877
mov eax, 0x41a471
push eax
lea edi, [esi + 0x3cc]
push esi
mov ecx, edi
mov byte [esi + 0x3c8], bl
call fcn.004148c4
lea eax, [esi + 0x3ec]
mov dword [esi + 0x3e8], ebx
lea ecx, [esi + 0x3fc]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
call fcn.00403cd0
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
mov ecx, edi
mov dword [esi + 0x44], ebx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x24c], ebx
call fcn.00415926
mov eax, esi
call fcn.0042615a
ret 4
Function at 0x422668
Capabilities:
Hash data with md5

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

Function at 0x422d35
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push str.metnsdclsid
push SysReAllocString
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x422dd5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push ebx
push ebx
mov edi, str.SequenceID
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x422dd5
cmp dword [ebp - 4], 0x10
jne 0x422dd5
push 0x10
call sub.MFC80U.DLL_Ordinal_265
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push ebx
push edi
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call esi
test eax, eax
jne 0x422dc3
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.MSVCR80.dll_memcpy
push dword [ebp - 0xc]
call sub.MFC80U.DLL_Ordinal_266
add esp, 0x10
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x422dd7
push dword [ebp - 0xc]
call sub.MFC80U.DLL_Ordinal_266
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x422dde
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov edi, str.metnsdclsid
push edi
mov esi, SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor ebx, ebx
test eax, eax
jne 0x422e28
push 0x10
push dword [ebp + 8]
push 3
push ebx
push str.SequenceID
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x422e54
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x422e5f
lea eax, [ebp - 4]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x422e54
push 0x10
push dword [ebp + 8]
push 3
push ebx
push str.SequenceID
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x422e54
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42393c
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x42396e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
push dword [ebp + eax - 0x18]
call esi
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + ecx*4 - 0x18], eax
jl 0x42396b
push 0x10
xor eax, eax
pop ecx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x14]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x18]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
dec ecx
jne 0x42398f
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret

Function at 0x4239e2
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x423a14
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
push dword [ebp + eax - 0x18]
call esi
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + ecx*4 - 0x18], eax
jl 0x423a11
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x14]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x18]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
sub ebx, edx
add eax, 0x61c88647
dec ecx
jne 0x423a38
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret
Function at 0x405e7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x4229f4], esi
push edi
jne 0x405eb6
mov ecx, 0x4229f0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405e92
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422df0
jl 0x405e8d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405eeb
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4229f0]
xor eax, esi
inc ecx
dec edx
jne 0x405ece
pop edi
pop esi
not eax
ret 0xc

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
jmp int.00401219
Function at 0x405260
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
xor bl, bl
test edi, edi
jbe 0x40528a
mov eax, dword [esi]
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov al, byte [ecx]
xor al, dl
xor al, 0x6a
inc word [ecx]
add bl, al
dec edi
jne 0x405275
mov edi, dword [esi]
mov dl, byte [edi]
inc edi
mov dword [esi], edi
mov al, byte [ecx]
xor al, dl
pop edi
xor al, 0x6a
inc word [ecx]
xor ecx, ecx
cmp bl, al
sete cl
pop esi
mov eax, ecx
pop ebx
ret

Function at 0x4052b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
push eax
call dword [0x4211a8]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1a]
and eax, 0xffff
and edx, 0xffff
xor esi, esi
mov byte [esp + 0x13], 0
lea eax, [eax + eax*4]
mov ebp, 8
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x1e]
and ecx, 0xffff
xor edi, edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
mov bl, byte [ecx]
mov al, dl
xor al, bl
lea esi, [esi + esi*4]
xor al, 0x6a
inc ecx
mov byte [esp + 0x2c], al
inc edx
mov ebx, dword [esp + 0x2c]
and ebx, 0xff
lea esi, [ebx + esi*2 - 0x41]
mov bl, byte [esp + 0x13]
add bl, al
dec ebp
mov byte [esp + 0x13], bl
jne 0x40530b
mov ebp, 8
mov bl, byte [ecx]
mov al, dl
xor al, bl
lea edi, [edi + edi*4]
xor al, 0x6a
inc ecx
mov byte [esp + 0x2c], al
inc edx
mov ebx, dword [esp + 0x2c]
and ebx, 0xff
lea edi, [ebx + edi*2 - 0x41]
mov bl, byte [esp + 0x13]
add bl, al
dec ebp
mov byte [esp + 0x13], bl
jne 0x40533c
mov al, byte [ecx]
mov cl, bl
xor al, dl
xor al, 0x6a
cmp cl, al
jne 0x40538d
mov eax, dword [esp + 0x14]
cmp eax, esi
jb 0x40538d
cmp eax, edi
jae 0x40538d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x40c3b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov byte [ebp], 0
je 0x40c434
mov eax, dword [0x429650]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40c3f9
mov cl, byte [esi]
push edi
mov byte [esp + 0x10], cl
mov edi, ebp
mov eax, dword [esp + 0x10]
and eax, 0xff
inc esi
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov byte [eax + ebp], 0
pop esi
pop ebp
ret
mov edx, dword [0x429324]
mov eax, esi
sub eax, edx
mov dl, byte [esi]
mov cl, al
inc esi
xor cl, dl
xor cl, 0x6a
inc eax
test cl, cl
mov byte [esp + 0xc], cl
jbe 0x40c430
mov ecx, dword [esp + 0xc]
and ecx, 0xff
mov dl, byte [esi]
xor dl, al
xor dl, 0x6a
mov byte [ebp], dl
inc ebp
inc esi
inc eax
dec ecx
jne 0x40c420
mov byte [ebp], 0
pop esi
pop ebp
ret

Function at 0x40c610
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x429758]
sub esp, 0x24
push ebx
push esi
mov esi, dword [ecx*4 + 0x429550]
test esi, esi
je 0x40c765
mov edx, dword [ecx*4 + 0x429490]
xor eax, eax
test edx, edx
jbe 0x40c654
mov bl, byte [eax + esi]
mov cl, al
add cl, 0x40
xor bl, cl
mov byte [eax + esi], bl
mov edx, dword [0x429758]
inc eax
cmp eax, dword [edx*4 + 0x429490]
jb 0x40c637
xor eax, eax
mov ax, word [esi]
add esi, 2
test eax, eax
jbe 0x40c765
push ebp
mov dword [esp + 0x14], eax
push edi
mov al, byte [esi]
inc esi
mov byte [esp + 0x13], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], esi
lea edx, [esi + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov ebp, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov ebx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov dword [esp + 0x14], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [edx + ecx + 1]
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x4292bc]
push ecx
push edx
call fcn.0040c580
mov al, byte [esp + 0x1b]
add esp, 8
test al, 1
je 0x40c6f6
mov eax, dword [0x4292bc]
lea ecx, [esp + 0x20]
push eax
push 0x14
push ecx
push 0x4297a0
push ebx
push ebp
mov byte [esp + 0x38], 0
call dword [0x421188]
test eax, eax
jne 0x40c754
mov edx, dword [esp + 0x14]
push 0xffdc
push edx
push 0
call fcn.0040c440
mov dword [esp + 0x28], eax
lea eax, [eax + eax + 1]
push eax
call fcn.004190e0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
inc ecx
mov edi, eax
push ecx
push edx
push edi
call fcn.0040c440
mov eax, dword [0x4292bc]
add esp, 0x1c
push eax
push edi
push ebx
mov ebx, dword [0x42118c]
push ebp
call ebx
mov ecx, dword [0x4292bc]
push ecx
push 0
push 0
push 0
call ebx
push edi
call fcn.00419243
add esp, 4
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x40c66a
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x40cea0
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0x1b0
mov ecx, dword [esp + 0x1b4]
mov dword [esp], 1
mov dword [esp + 8], str.regsvr32__s
mov eax, dword [ecx + 0x1e]
test ah, 0x20
je 0x40cf19
cmp word [ecx + 2], 0x1f4
jne 0x40cedf
mov eax, dword [0x4292b8]
lea ecx, [esp + 0x48]
push eax
push str._s___s_
push ecx
jmp 0x40cef0
mov edx, dword [0x4292bc]
lea eax, [esp + 0x48]
push edx
push str._s___s_
push eax
call dword [0x421344]
add esp, 0xc
lea ecx, [esp + 0x48]
push 1
push ecx
push str.regedit
call fcn.00402b20
add esp, 0xc
mov eax, 1
add esp, 0x1b0
ret
test ah, 0x40
je 0x40cf65
cmp word [ecx + 2], 0x1f4
je 0x40cf5d
mov edx, dword [0x4292bc]
lea eax, [esp + 0x48]
push edx
push str._q___s_
push eax
call dword [0x421344]
lea ecx, [esp + 0x54]
push 1
push ecx
push str.regtlib
call fcn.00402b20
add esp, 0x18
mov eax, 1
add esp, 0x1b0
ret
mov dword [esp + 8], str.regtlib__q
mov ax, word [ecx + 2]
cmp ax, 0x1f4
jne 0x40d0c9
lea edx, [esp + 4]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [0x421010]
test eax, eax
jne 0x40d0b6
mov eax, dword [0x4292a8]
push esi
cmp eax, 0x64
push edi
jge 0x40d09e
mov esi, dword [0x421344]
mov edi, dword [0x421030]
push eax
push str.ICLaunch
lea eax, [esp + 0x24]
push str._s_3.3d
push eax
call esi
mov eax, dword [0x4292a8]
add esp, 0x10
inc eax
lea ecx, [esp + 0x14]
mov dword [0x4292a8], eax
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0x168
call edi
test eax, eax
jne 0x40d01f
mov eax, dword [0x4292a8]
cmp eax, 0x64
jl 0x40cfac
mov ecx, dword [esp + 0xc]
push ecx
call dword [0x421018]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x1b0
ret
mov eax, dword [0x4292bc]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x58]
push 0x424608
push edx
call esi
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x50]
not ecx
dec ecx
push ecx
push eax
push 1
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
call dword [0x421020]
test eax, eax
jne 0x40d096
mov eax, dword [esp + 0x1bc]
mov ecx, dword [eax + 0x1e]
test ch, 0x60
jne 0x40d09e
push 0
call fcn.0040ce00
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [0x421018]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x1b0
ret
mov dword [esp + 8], 0
mov ecx, dword [esp + 0xc]
push ecx
call dword [0x421018]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x1b0
ret
mov dword [esp], 0
mov eax, dword [esp]
add esp, 0x1b0
ret
cmp ax, 0x17
je 0x40d0d5
cmp ax, 0x19
jne 0x40d0df
push 1
call fcn.0040ce00
add esp, 4
mov eax, dword [esp]
add esp, 0x1b0
ret