joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408da0
Capabilities:
Encode data using xor
Get disk information
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x456040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x19c]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x184]
mov dword [edi + 0x4e4], eax
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 0xc0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xb0], 2
lea eax, [ebp - 0x174]
mov dword [ebp - 0x170], 0x28
push eax
je 0x408e08
push str.SOFTWAREMicrosoftWindowsCurrentVersion
jmp 0x408e0d
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x178]
push eax
push 0
push str.RegisteredOwner
push dword [ebp - 0x174]
call esi
push dword [ebp - 0x170]
lea eax, [ebp - 0x2c]
push eax
lea eax, [edi + 0x4e8]
push 0x40
push eax
call fcn.00429546
add esp, 0x10
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x178]
push eax
push 0
push str.RegisteredOrganization
push dword [ebp - 0x174]
call esi
push dword [ebp - 0x170]
lea eax, [ebp - 0x2c]
push eax
lea eax, [edi + 0x528]
push 0x40
push eax
call fcn.00429546
add esp, 0x10
push dword [ebp - 0x174]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov ax, word [ebp - 0x16c]
push 0x443ad8
push str.SOFTWARE
push reloc.WS2_32.dll_bind
mov word [edi + 0x3d4], ax
call fcn.0041f8b0
add esp, 0xc
mov dword [edi + 0x3d8], eax
cmp eax, 0xffffffff
jne 0x408f21
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
xor eax, 0xaaaaaaaa
imul eax, eax, 0x5f346d
add eax, 0x5abcdef
mov dword [edi + 0x3d8], eax
je 0x408ee5
cmp eax, 1
je 0x408ee5
cmp eax, 0xffffffff
je 0x408ee5
push eax
push 0x443ad8
push str.SOFTWARE
push reloc.WS2_32.dll_bind
call fcn.0041fc40
add esp, 0x10
push 0
push 0
push 0
push 0
lea esi, [edi + 0x3d0]
push esi
push 0
push 0
push 0x443ae8
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [esi]
test eax, eax
je 0x408f4f
cmp eax, 1
je 0x408f4f
cmp eax, 0xffffffff
jne 0x408f96
push str.ProductCode
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.WS2_32.dll_bind
call fcn.0041f8b0
add esp, 0xc
mov dword [esi], eax
test eax, eax
je 0x408f76
cmp eax, 1
je 0x408f76
cmp eax, 0xffffffff
jne 0x408f96
mov eax, dword [edi + 0x3d8]
push eax
push str.ProductCode
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.WS2_32.dll_bind
mov dword [esi], eax
call fcn.0041fc40
add esp, 0x10
mov eax, dword [esi]
cmp eax, 0x7fffffff
jbe 0x408fa6
add eax, 0x7fffffff
mov dword [esi], eax
push eax
push 0x443af8
push str.SOFTWARE
push reloc.WS2_32.dll_bind
call fcn.0041fc40
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.0041fd52
mov esp, ebp
pop ebp
ret
Function at 0x40a160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
movd xmm0, dword [ebp + 8]
xor eax, eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xorps xmm2, xmm2
pshufd xmm3, xmm0, 0
xorps xmm1, xmm1
nop dword [eax]
movups xmm0, xmmword [edi + eax*4]
xorps xmm0, xmm3
paddd xmm2, xmm0
movups xmm0, xmmword [edi + eax*4 + 0x10]
add eax, 8
xorps xmm0, xmm3
paddd xmm1, xmm0
cmp eax, 0x160
jb 0x40a180
paddd xmm1, xmm2
xor edx, edx
movaps xmm0, xmm1
xor esi, esi
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd ebx, xmm1
cmp eax, 0x165
jae 0x40a211
mov ecx, 0x165
sub ecx, eax
cmp ecx, 2
jb 0x40a1fd
mov ecx, dword [edi + eax*4]
xor ecx, dword [ebp + 8]
add edx, ecx
mov ecx, dword [edi + eax*4 + 4]
xor ecx, dword [ebp + 8]
add eax, 2
add esi, ecx
mov ecx, eax
cmp eax, 0x164
jb 0x40a1d8
cmp ecx, 0x165
jae 0x40a205
mov ecx, dword [edi + eax*4]
xor ecx, dword [ebp + 8]
add ebx, ecx
pop edi
lea eax, [esi + edx]
pop esi
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441730
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
push ebx
push esi
push edi
mov eax, dword [0x456040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0x40
push 0x20
push dword [ebp + 8]
lea ecx, [ebp - 0xcc]
or ebx, 0xffffffff
call fcn.00409320
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 4], 0
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xc0], 6
jne 0x40a309
push 2
push 0
push 0
lea ecx, [ebp - 0xcc]
call fcn.0040a5a0
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0xcc]
call fcn.0040a800
mov ecx, eax
push 0
push 0
push 0
mov esi, dword [ecx + 8]
add esi, dword [ecx]
mov eax, dword [ecx + 0xc]
adc eax, dword [ecx + 4]
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x10], eax
call fcn.0040a5a0
push esi
call fcn.0041fdc6
add esp, 4
lea ecx, [ebp - 0xcc]
mov edi, eax
push 0
push esi
push edi
call fcn.0040a430
or ebx, 0xffffffff
xor edx, edx
test esi, esi
je 0x40a2fe
movzx ecx, byte [edi + edx]
inc edx
movzx eax, bl
xor ecx, eax
shr ebx, 8
mov eax, dword [ebp + 0xc]
xor ebx, dword [eax + ecx*4]
cmp edx, esi
jb 0x40a2e7
push edi
not ebx
call fcn.0041fd9e
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.00404de0
test eax, eax
jne 0x40a354
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x94], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0xc0]
and eax, 0x17
mov dword [ebp + ecx - 0xc0], eax
mov ecx, dword [ebp + ecx - 0xbc]
and ecx, eax
jne 0x40a3db
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xcc], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xd0], eax
lea ecx, [ebp - 0xbc]
call fcn.00403120
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xcc], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xcc]
mov edx, dword [eax + 4]
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0xd0], ecx
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.0042132d
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test cl, 4
je 0x40a3e7
mov esi, str.ios_base::badbit_set
jmp 0x40a3f7
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00406780
add esp, 8
lea ecx, [ebp - 0xe0]
push eax
push esi
call fcn.00402d70
push 0x4532cc
lea eax, [ebp - 0xe0]
push eax
call fcn.004222d7
int3
Function at 0x40a780
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
xor cl, cl
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
test esi, esi
je 0x40a7fa
cmp esi, 0x20
jb 0x40a7f0
mov ecx, esi
xorps xmm2, xmm2
and ecx, 0xffffffe0
xorps xmm1, xmm1
movups xmm0, xmmword [eax + edx]
xorps xmm2, xmm0
movups xmm0, xmmword [edx + eax + 0x10]
add eax, 0x20
xorps xmm1, xmm0
cmp eax, ecx
jb 0x40a7a2
xorps xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
xorps xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
xorps xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 2
xorps xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 1
xorps xmm1, xmm0
movd ecx, xmm1
jmp 0x40a7f4
xor cl, byte [edx + eax]
inc eax
cmp eax, esi
jb 0x40a7f0
mov al, cl
pop esi
pop ebp
ret

Function at 0x40ad90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441850
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x456040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ebx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
push 8
mov dword [ebx], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0041fd60
mov edi, eax
add esp, 4
test edi, edi
je 0x40ae3d
push 1
mov dword [ebp - 4], 0
call fcn.00420d9f
add esp, 4
mov dword [edi + 4], eax
jmp 0x40ae3f
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.00403ee0
mov dword [esi + 0xc], ebx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea edx, [esi + 0x18]
mov byte [esi + 0x48], 0
lea edi, [esi + 0x24]
mov byte [esi + 0x3d], 0
lea ebx, [esi + 0x28]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
mov dword [eax], 0
mov dword [edx], 0
mov dword [esi + 0x28], 0
mov dword [esi + 4], 0
mov dword [ecx], 0
mov dword [edi], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x4570a4]
mov ecx, dword [0x4570a8]
mov dword [esi + 0x40], eax
mov eax, esi
mov dword [esi + 0x44], ecx
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410d40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441d0d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x456040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0041fd60
mov edi, eax
add esp, 4
test edi, edi
je 0x410ddd
push 1
mov dword [ebp - 4], 0
call fcn.00420d9f
add esp, 4
mov dword [edi + 4], eax
jmp 0x410ddf
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.00401e30
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x410e3a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x410e3a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x410e56
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x410e79
cmp byte [ebp + 0xc], 0
je 0x410e65
push esi
call fcn.004212a8
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x410e85
mov esi, str.ios_base::badbit_set
jmp 0x410e95
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00406780
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00402d70
push 0x4532cc
lea eax, [ebp - 0x28]
push eax
call fcn.004222d7
int3
Function at 0x418400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, ecx
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x4184c8
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], 0
mov edi, 1
cmp byte [ecx], 0
jne 0x41843b
cmp eax, 2
jbe 0x4184c7
mov edi, 2
push ebx
lea ebx, [edi + 4]
add edx, 0x10
mov dword [ebp - 0xc], edx
push esi
cmp ebx, eax
ja 0x418487
lea eax, [ecx - 4]
mov dword [ebp - 0x10], eax
push edi
push ecx
call fcn.004170e0
push dword [ebp - 4]
mov esi, eax
push dword [ebp - 0xc]
call fcn.004170e0
mov ecx, dword [ebp - 0x10]
xor eax, esi
xor eax, dword [ebp - 8]
add esp, 0x10
add dword [ebp - 4], 4
add edi, 4
mov dword [ebp - 8], esi
mov dword [ebx + ecx], eax
add ebx, 4
mov ecx, dword [ebp + 8]
cmp ebx, dword [ebp + 0xc]
jbe 0x418450
mov ebx, dword [ebp + 0xc]
sub ebx, edi
je 0x4184c5
lea esi, [edi + ecx]
mov dword [ebp + 0xc], 0
push ebx
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.00421b00
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.004170e0
xor eax, dword [ebp + 0xc]
xor eax, dword [ebp - 8]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push ebx
push eax
push esi
call fcn.00421b00
add esp, 0x20
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x4184d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi]
mov dword [ebp - 8], eax
test eax, eax
je 0x41859f
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
lea edi, [ecx + 1]
cmp byte [edx], cl
jne 0x418507
cmp eax, 2
jbe 0x41859e
mov edi, 2
push ebx
lea ebx, [edi + 4]
add esi, 0x10
mov dword [ebp - 0xc], esi
cmp ebx, eax
ja 0x41855f
lea eax, [edx - 4]
mov dword [ebp - 0x10], eax
nop dword [eax + eax]
push ecx
push esi
call fcn.004170e0
push edi
push dword [ebp + 8]
mov esi, eax
call fcn.004170e0
mov ecx, dword [ebp - 8]
xor eax, esi
mov esi, dword [ebp - 0xc]
xor ecx, eax
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov dword [ebp - 8], ecx
add edi, 4
mov dword [ebx + eax], ecx
add ebx, 4
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, dword [ebp + 0xc]
jbe 0x418520
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
sub ebx, edi
je 0x41859d
lea esi, [edi + edx]
mov dword [ebp + 0xc], 0
push ebx
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.00421b00
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.004170e0
xor eax, dword [ebp + 0xc]
xor eax, dword [ebp - 8]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push ebx
push eax
push esi
call fcn.00421b00
add esp, 0x20
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4197f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
xor edi, edi
cmp byte [esi + edi + 0x41b09], 0xac
jne 0x419890
push 6
call fcn.0041fd60
push 0xc
mov ebx, eax
call fcn.0041fd60
mov ecx, eax
add esp, 8
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x41983c
mov dword [ecx], ebx
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
jmp 0x41983e
xor ecx, ecx
mov eax, dword [esi + 0x14d0]
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
cmp dword [esi + 0x14cc], 0
jne 0x41985f
mov dword [esi + 0x14cc], ecx
jmp 0x419868
mov eax, dword [esi + 0x14d0]
mov dword [eax + 4], ecx
inc dword [esi + 0x14d4]
mov eax, edi
and eax, 0x3ff
mov dword [esi + 0x14d0], ecx
mov word [ebx], ax
mov eax, edi
shr eax, 0xa
mov word [ebx + 2], ax
mov eax, 0xffff
mov word [ebx + 4], ax
inc edi
cmp edi, 0x100000
jb 0x419800
mov edx, dword [esi + 0x14cc]
mov al, byte [esi + 0x142068]
test edx, edx
je 0x419996
movzx ebx, al
dec ebx
mov ecx, dword [edx]
movzx eax, word [ecx + 2]
movzx edi, word [ecx]
mov esi, eax
cmp ebx, 5
ja case.default.0x4198c9
jmp dword [ebx*4 + 0x4199a4]
mov eax, 0x200
cmp di, ax
sbb eax, eax
neg eax
movzx eax, ax
jmp 0x419982
mov esi, 0x200
cmp ax, si
sbb eax, eax
neg eax
movzx eax, ax
jmp 0x419982
mov esi, 0x200
cmp ax, si
jae 0x419917
cmp di, si
mov esi, 4
sbb eax, eax
inc eax
add ecx, esi
movzx eax, ax
movzx eax, ax
jmp 0x419985
mov eax, 2
cmp di, si
jb 0x419926
mov eax, 3
mov esi, 4
movzx eax, ax
add ecx, esi
jmp 0x419985
xor esi, 0x3ff
movzx esi, si
cmp di, ax
jb 0x419959
cmp si, di
mov esi, 4
sbb eax, eax
neg eax
add eax, 2
add ecx, esi
movzx eax, ax
movzx eax, ax
jmp 0x419985
cmp di, si
jbe 0x41996f
mov eax, 1
mov esi, 4
movzx eax, ax
add ecx, esi
jmp 0x419985
xor eax, eax
mov esi, 4
movzx eax, ax
add ecx, esi
jmp 0x419985
mov eax, 0xffff
add ecx, 4
mov word [ecx], ax
mov edx, dword [edx + 4]
test edx, edx
jne 0x4198b5
mov esi, dword [ebp - 4]
mov ecx, esi
call fcn.00419ab0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4198d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
xor edi, edi
cmp byte [esi + edi + 0x41b09], 0xac
jne 0x419890
push 6
call fcn.0041fd60
push 0xc
mov ebx, eax
call fcn.0041fd60
mov ecx, eax
add esp, 8
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x41983c
mov dword [ecx], ebx
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
jmp 0x41983e
xor ecx, ecx
mov eax, dword [esi + 0x14d0]
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
cmp dword [esi + 0x14cc], 0
jne 0x41985f
mov dword [esi + 0x14cc], ecx
jmp 0x419868
mov eax, dword [esi + 0x14d0]
mov dword [eax + 4], ecx
inc dword [esi + 0x14d4]
mov eax, edi
and eax, 0x3ff
mov dword [esi + 0x14d0], ecx
mov word [ebx], ax
mov eax, edi
shr eax, 0xa
mov word [ebx + 2], ax
mov eax, 0xffff
mov word [ebx + 4], ax
inc edi
cmp edi, 0x100000
jb 0x419800
mov edx, dword [esi + 0x14cc]
mov al, byte [esi + 0x142068]
test edx, edx
je 0x419996
movzx ebx, al
dec ebx
mov ecx, dword [edx]
movzx eax, word [ecx + 2]
movzx edi, word [ecx]
mov esi, eax
cmp ebx, 5
ja case.default.0x4198c9
jmp dword [ebx*4 + 0x4199a4]
mov eax, 0x200
cmp di, ax
sbb eax, eax
neg eax
movzx eax, ax
jmp 0x419982
mov esi, 0x200
cmp ax, si
sbb eax, eax
neg eax
movzx eax, ax
jmp 0x419982
mov esi, 0x200
cmp ax, si
jae 0x419917
cmp di, si
mov esi, 4
sbb eax, eax
inc eax
add ecx, esi
movzx eax, ax
movzx eax, ax
jmp 0x419985
mov eax, 2
cmp di, si
jb 0x419926
mov eax, 3
mov esi, 4
movzx eax, ax
add ecx, esi
jmp 0x419985
xor esi, 0x3ff
movzx esi, si
cmp di, ax
jb 0x419959
cmp si, di
mov esi, 4
sbb eax, eax
neg eax
add eax, 2
add ecx, esi
movzx eax, ax
movzx eax, ax
jmp 0x419985
cmp di, si
jbe 0x41996f
mov eax, 1
mov esi, 4
movzx eax, ax
add ecx, esi
jmp 0x419985
xor eax, eax
mov esi, 4
movzx eax, ax
add ecx, esi
jmp 0x419985
mov eax, 0xffff
add ecx, 4
mov word [ecx], ax
mov edx, dword [edx + 4]
test edx, edx
jne 0x4198b5
mov esi, dword [ebp - 4]
mov ecx, esi
call fcn.00419ab0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4199c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ecx + 0x14cc]
mov al, byte [ecx + 0x142068]
mov dword [ebp - 4], ecx
test edx, edx
je 0x419a86
push ebx
push esi
push edi
movzx edi, al
dec edi
mov ecx, dword [edx]
movzx eax, word [ecx + 2]
movzx esi, word [ecx]
mov ebx, eax
cmp edi, 5
ja case.default.0x4199f2
jmp dword [edi*4 + 0x419a90]
mov ebx, 0x200
cmp si, bx
sbb eax, eax
neg eax
movzx eax, ax
jmp 0x419a71
mov ebx, 0x200
cmp ax, bx
sbb eax, eax
neg eax
movzx eax, ax
jmp 0x419a71
mov ebx, 0x200
cmp ax, bx
jae 0x419a33
cmp si, bx
sbb eax, eax
inc eax
movzx eax, ax
movzx eax, ax
jmp 0x419a71
cmp si, bx
sbb eax, eax
add eax, 3
movzx eax, ax
jmp 0x419a71
xor ebx, 0x3ff
movzx ebx, bx
cmp si, ax
jb 0x419a60
cmp bx, si
sbb eax, eax
neg eax
add eax, 2
movzx eax, ax
movzx eax, ax
jmp 0x419a71
cmp bx, si
sbb eax, eax
neg eax
movzx eax, ax
jmp 0x419a71
mov eax, 0xffff
mov word [ecx + 4], ax
mov edx, dword [edx + 4]
test edx, edx
jne 0x4199e2
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00419ab0
mov esp, ebp
pop ebp
ret
Function at 0x4199f9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ecx + 0x14cc]
mov al, byte [ecx + 0x142068]
mov dword [ebp - 4], ecx
test edx, edx
je 0x419a86
push ebx
push esi
push edi
movzx edi, al
dec edi
mov ecx, dword [edx]
movzx eax, word [ecx + 2]
movzx esi, word [ecx]
mov ebx, eax
cmp edi, 5
ja case.default.0x4199f2
jmp dword [edi*4 + 0x419a90]
mov ebx, 0x200
cmp si, bx
sbb eax, eax
neg eax
movzx eax, ax
jmp 0x419a71
mov ebx, 0x200
cmp ax, bx
sbb eax, eax
neg eax
movzx eax, ax
jmp 0x419a71
mov ebx, 0x200
cmp ax, bx
jae 0x419a33
cmp si, bx
sbb eax, eax
inc eax
movzx eax, ax
movzx eax, ax
jmp 0x419a71
cmp si, bx
sbb eax, eax
add eax, 3
movzx eax, ax
jmp 0x419a71
xor ebx, 0x3ff
movzx ebx, bx
cmp si, ax
jb 0x419a60
cmp bx, si
sbb eax, eax
neg eax
add eax, 2
movzx eax, ax
movzx eax, ax
jmp 0x419a71
cmp bx, si
sbb eax, eax
neg eax
movzx eax, ax
jmp 0x419a71
mov eax, 0xffff
mov word [ecx + 4], ax
mov edx, dword [edx + 4]
test edx, edx
jne 0x4199e2
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00419ab0
mov esp, ebp
pop ebp
ret
Function at 0x41ebb0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x456040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x41ebfb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0041ea10
add esp, 4
push eax
push 0x447a08
call fcn.00407f70
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fd52
mov esp, ebp
pop ebp
ret

Function at 0x41ec10
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi], 0xffffffff
je 0x41ec30
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x41ec70
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
push eax
call esi
push eax
call fcn.0041ea10
add esp, 4
push eax
push str.socket_AF_INET__SOCK_DGRAM__IPPROTO_UDP__error_:__s___i__n
call fcn.00407f70
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x10]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0xffff0002
or eax, 2
mov dword [ebp - 0xc], 0
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
movzx eax, word [ebp - 0x10]
shl ecx, 0x10
or ecx, eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [esi]
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x41eccf
movzx eax, bx
push eax
push str.bind__i__error_n
call fcn.00407f70
add esp, 8
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 1
push eax
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [esi]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4