joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068b0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x40a9e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x10
mov dword [esp + 0x2c], 0
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x28], 1
je 0x4068f6
mov ecx, eax
call sub.MFC42u.DLL_CFile::CFile
mov esi, eax
jmp 0x4068f8
xor esi, esi
mov ecx, dword [esp + 0x30]
mov eax, dword [esi]
push 0
push 0x42
push ecx
mov ecx, esi
mov byte [esp + 0x34], 0
call dword [eax + 0x28]
test eax, eax
jne 0x406937
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.00409d30
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x38]
mov ebx, eax
push ebx
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x30], eax
mov eax, dword [esi]
mov ecx, esi
push 2
push 0xfffffffffffffffb
call dword [eax + 0x30]
mov edx, dword [esi]
lea eax, [esp + 0x18]
push 5
push eax
mov ecx, esi
call dword [edx + 0x3c]
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42u.DLL_CString::CString
call fcn.00406710
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
xor eax, eax
mov dl, byte [esp + eax + 0x18]
xor dl, cl
mov byte [esp + eax + 0x18], dl
inc eax
cmp eax, 5
jl 0x40698b
mov ebp, str.HTSO
lea edi, [esp + 0x18]
mov cl, byte [edi]
mov dl, byte [ebp]
mov al, cl
cmp cl, dl
jne 0x4069cd
test al, al
je 0x4069c9
mov dl, byte [edi + 1]
mov cl, byte [ebp + 1]
mov al, dl
cmp dl, cl
jne 0x4069cd
add edi, 2
add ebp, 2
test al, al
jne 0x4069a4
xor eax, eax
jmp 0x4069d2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4069fc
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.00409d30
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi]
push 0
push 0
mov ecx, esi
call dword [eax + 0x30]
mov edi, dword [esp + 0x30]
mov edx, dword [esi]
push ebx
push edi
mov ecx, esi
call dword [edx + 0x3c]
xor eax, eax
test ebx, ebx
jle 0x406a3c
mov cl, bl
sub cl, 5
mov byte [esp + 0x30], cl
jmp 0x406a29
mov cl, byte [esp + 0x30]
mov dl, byte [eax + edi]
xor dl, cl
mov cl, byte [esp + 0x10]
xor dl, cl
mov byte [eax + edi], dl
inc eax
cmp eax, ebx
jl 0x406a25
mov eax, dword [esi]
push 0
push 0
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [esi]
push ebx
push edi
mov ecx, esi
call dword [edx + 0x40]
mov eax, dword [esi]
add ebx, 0xfffffffb
push ebx
mov ecx, esi
call dword [eax + 0x34]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
push edi
call sub.MFC42u.DLL_operatordelete
add esp, 4
test esi, esi
je 0x406a78
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.00409d30
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x407900
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
lea esi, [ecx + 0x5c]
push 0x40
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.00408480
mov byte [esi], 0x80
pop esi
ret

Function at 0x4084e0
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x44
mov ecx, 0x10
push ebp
push esi
push edi
mov esi, 0x40e8ac
lea edi, [esp + 0xc]
mov ebp, dword [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
cmp ebp, 3
movsb byte es:[edi], byte [esi]
jl 0x40857b
mov eax, 0xaaaaaaab
mov esi, dword [esp + 0x54]
mul ebp
mov edi, edx
shr edi, 1
lea eax, [edi*4]
sub eax, edi
neg eax
add ebp, eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov cl, byte [esi]
add esi, 3
shr ecx, 2
inc eax
mov dl, byte [esp + ecx + 0xc]
mov byte [eax - 1], dl
mov cl, byte [esi - 3]
xor edx, edx
and ecx, 3
mov dl, byte [esi - 2]
shl ecx, 4
shr edx, 4
or ecx, edx
inc eax
mov cl, byte [esp + ecx + 0xc]
mov byte [eax - 1], cl
mov dl, byte [esi - 2]
xor ecx, ecx
and edx, 0xf
mov cl, byte [esi - 1]
shl edx, 2
shr ecx, 6
or edx, ecx
inc eax
mov dl, byte [esp + edx + 0xc]
mov byte [eax - 1], dl
mov cl, byte [esi - 1]
and ecx, 0x3f
inc eax
dec edi
mov dl, byte [esp + ecx + 0xc]
mov byte [eax - 1], dl
jne 0x408520
jmp 0x408583
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x54]
test ebp, ebp
jle 0x4085f8
xor ecx, ecx
mov cl, byte [esi]
shr ecx, 2
inc eax
mov dl, byte [esp + ecx + 0xc]
mov byte [eax - 1], dl
mov cl, byte [esi]
and cl, 3
shl cl, 4
cmp ebp, 1
mov byte [esp + 0x5c], cl
jle 0x4085b3
mov dl, byte [esi + 1]
shr dl, 4
or cl, dl
mov byte [esp + 0x5c], cl
mov ecx, dword [esp + 0x5c]
and ecx, 0xff
inc eax
cmp ebp, 2
mov dl, byte [esp + ecx + 0xc]
mov byte [eax - 1], dl
jge 0x4085dc
mov cl, 0x3d
pop edi
mov byte [eax], cl
inc eax
pop esi
pop ebp
mov byte [eax], cl
mov byte [eax + 1], 0
add esp, 0x44
ret
mov cl, byte [esi + 1]
pop edi
and ecx, 0xf
inc eax
pop esi
pop ebp
mov cl, byte [esp + ecx*4]
mov byte [eax - 1], cl
mov byte [eax], 0x3d
mov byte [eax + 1], 0
add esp, 0x44
ret
pop edi
pop esi
mov byte [eax], 0
pop ebp
add esp, 0x44
ret

Function at 0x408730
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ecx, ecx
push edi
xor eax, eax
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x40873d
mov byte [esi + 0x100], cl
mov byte [esi + 0x101], cl
mov byte [esp + 0x20], cl
xor edi, edi
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov dl, byte [edi + esi]
and eax, 0xff
xor ebx, ebx
mov bl, byte [eax + ebp]
mov ebp, edx
and ebp, 0xff
add ecx, ebx
add ecx, ebp
and ecx, 0x800000ff
jns 0x40878b
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
inc eax
mov bl, byte [ecx + esi]
mov byte [edi + esi], bl
mov byte [ecx + esi], dl
cdq
idiv dword [esp + 0x1c]
inc edi
cmp edi, 0x100
mov byte [esp + 0x20], dl
jl 0x40875a
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4087c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor edi, edi
mov byte [esp + 8], cl
test esi, esi
mov byte [esp + 0x20], dl
jbe 0x4088ba
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x20]
push ebx
and ecx, 0xff
push ebp
and esi, 0xff
lea edx, [ecx + 1]
and edx, 0x800000ff
jns 0x408814
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x10], dl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov bl, byte [ecx + eax]
mov byte [esp + 0x18], bl
and ebx, 0xff
add ebx, esi
and ebx, 0x800000ff
jns 0x408841
dec ebx
or ebx, 0xffffff00
inc ebx
mov byte [esp + 0x28], bl
mov bl, byte [esp + 0x18]
mov esi, dword [esp + 0x28]
mov byte [esp + 0x14], bl
and esi, 0xff
mov ebp, dword [esp + 0x14]
and ebp, 0xff
mov bl, byte [esi + eax]
mov byte [ecx + eax], bl
mov bl, byte [esp + 0x14]
mov byte [esi + eax], bl
xor ebx, ebx
mov bl, byte [ecx + eax]
add ebx, ebp
and ebx, 0x800000ff
jns 0x408885
dec ebx
or ebx, 0xffffff00
inc ebx
mov ebp, dword [esp + 0x20]
and ebx, 0xff
mov bl, byte [ebx + eax]
xor byte [edi + ebp], bl
mov ebx, dword [esp + 0x24]
inc edi
cmp edi, ebx
jb 0x408801
mov cl, byte [esp + 0x28]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
add esp, 0xc
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
add esp, 0xc
ret
Function at 0x408940
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x40ab76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push esi
push edi
xor esi, esi
push 0x40ec54
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], esi
call sub.MFC42u.DLL_CString::CString_3
push 0x40ec54
lea ecx, [esp + 0x18]
mov dword [esp + 0x104], 1
mov dword [esp + 0x10], esi
call sub.MFC42u.DLL_CString::CString_3
mov edx, dword [esp + 0xc]
mov byte [esp + 0x100], 2
cmp edx, esi
jne 0x4089b8
push esi
push esi
push esi
lea eax, [esp + 0x18]
push esi
push eax
push esi
push esi
push 0x40e944
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edx, dword [esp + 0xc]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], esi
jne 0x4089f9
push edx
lea ecx, [esp + 0x20]
push 0x40e278
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x408a0e
push eax
push edx
lea edx, [esp + 0x24]
push str._x__s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x5c]
call fcn.004078b0
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x100], 3
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1c]
push ecx
push eax
lea ecx, [esp + 0x64]
call fcn.00407940
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x60]
call fcn.004079f0
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, esi
jle 0x408ab9
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_1
xor edx, edx
lea eax, [esp + 0x10]
mov dl, byte [esp + esi + 0x1c]
mov byte [esp + 0x100], 4
push edx
push 0x40e934
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x100], 3
call fcn.00409d30
inc esi
cmp esi, edi
jl 0x408a6b
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::MakeUpper
mov esi, dword [esp + 0x108]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x100], 2
call fcn.004078f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x100], 1
call fcn.00409d30
lea ecx, [esp + 8]
mov byte [esp + 0x100], 0
call fcn.00409d30
mov ecx, dword [esp + 0xf8]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xfc
ret
Function at 0x4090b0
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40ac0b
push eax
mov eax, 0x1010
mov dword fs:[0], esp
call fcn.0040a0f0
mov eax, dword [0x40ec4c]
push ebp
xor ebp, ebp
cmp eax, ebp
jne 0x4092a2
push ebx
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], bp
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x1028], ebp
push eax
push 0x20019
push ebp
push str.SOFTWAREDocGuarderClient
push connect
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x409169
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
push ebp
mov ebx, esi
push str.DGPath
push esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 0x400
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, ebp
je 0x409169
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [0x40e020]
lea edx, [esp + 0x20]
test edx, edx
mov dword [esp + 0x10], ecx
je 0x4091cc
lea eax, [esp + 0x20]
shr eax, 0x10
jne 0x409194
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
call fcn.004092c0
jmp 0x4091cc
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebp
je 0x4091cc
push esi
lea ecx, [esp + 0x14]
call fcn.004076b0
test eax, eax
je 0x4091cc
mov edi, dword [esp + 0x10]
lea ecx, [esi + esi]
mov eax, ecx
lea esi, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebp
jne 0x4091e4
push ebp
lea edx, [esp + 0x24]
push 0x26
push edx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x822]
mov word [esp + 0x820], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x20]
push str.config.ini
push eax
lea ecx, [esp + 0x828]
push str._s_s
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
lea edx, [esp + 0x830]
push 0x40e070
push edx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 0x18
cmp esi, ebp
je 0x409252
push 0x40ec4c
push 0x40e278
push esi
call dword [sym.imp.MSVCRT.dll_fscanf]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x10
mov eax, dword [esp + 0x10]
mov edx, dword [0x40e024]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x409281
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x409281
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
cmp ebx, ebp
je 0x40928c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x40ec4c]
pop edi
pop esi
cmp eax, ebp
pop ebx
jne 0x4092a2
mov eax, 0x802
mov dword [0x40ec4c], eax
mov ecx, dword [esp + 0x1014]
pop ebp
mov dword fs:[0], ecx
add esp, 0x101c
ret
Function at 0x4093e0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
mov word [ebx + 0x3e], 0x4e4
je 0x4093f7
lea edi, [ebx + 4]
jmp 0x4093f9
xor edi, edi
mov ecx, 0xd
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jg 0x409422
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
push esi
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebx + 0x38], eax
push eax
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x409445
pop edi
pop esi
pop ebx
add esp, 8
ret 4
mov eax, dword [ebx + 0x38]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push edx
push 0x40e054
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40946a
pop edi
pop esi
pop ebx
add esp, 8
ret 4
test ebx, ebx
je 0x409473
lea edi, [ebx + 4]
jmp 0x409475
xor edi, edi
mov esi, dword [esp + 0x18]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x38]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push edx
push str.VarFileInfoTranslation
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4094ac
cmp dword [esp + 0xc], 4
jb 0x4094ac
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov dword [ebx + 0x3c], edx
mov ecx, dword [ebx + 4]
xor eax, eax
cmp ecx, 0xfeef04bd
pop edi
pop esi
pop ebx
sete al
add esp, 8
ret 4
Function at 0x409560
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0xc]
mov eax, dword [esi]
push ecx
mov ecx, dword [0x40e9f4]
push edx
push 4
xor edi, edi
push ecx
mov ecx, esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [eax + 0x10]
test eax, eax
je 0x4095a6
push str.RecvStringData_Error_1
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0xc]
cmp edx, edi
je 0x409667
mov eax, dword [esp + 0x20]
cmp edx, eax
jl 0x40961d
lea edx, [edx + edx + 2]
push edx
call sub.MFC42u.DLL_operatornew
mov edx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x10]
add esp, 4
mov dword [edx], edi
lea ecx, [eax + eax + 2]
xor eax, eax
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [edx]
lea ecx, [esp + 0x10]
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0x10]
push edx
lea edx, [ecx + ecx]
mov ecx, dword [0x40e9f4]
push edx
push ecx
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x409667
push str.RecvStringData_Error_2
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x1c]
lea ecx, [eax + eax]
push ebp
mov ebp, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
add edx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [0x40e9f4]
push ebx
push edx
push ecx
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
pop ebp
je 0x409667
push str.RecvStringData_Error_3
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x409780
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 0xc]
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll_isalpha]
add esp, 4
test eax, eax
push esi
je 0x40979f
call dword [sym.imp.WS2_32.dll_gethostbyname]
jmp 0x4097c1
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4097b2
xor eax, eax
pop esi
ret
push 2
lea ecx, [esp + 0x10]
push 4
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x4097d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4097e8
xor eax, eax
pop esi
ret
mov edx, dword [eax + 0xc]
mov ecx, dword [esp + 8]
pop esi
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [ecx + 4], eax
mov eax, 1
ret
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
pop esi
mov dword [ecx + 4], eax
mov eax, 1
ret
Function at 0x409850
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
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 0x40986e
or eax, eax
pop esi
add esp, 0x10
ret
push ebx
mov ebx, dword [esp + 0x20]
push edi
push ebx
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [esp + 0x20]
mov word [esp + 0xe], ax
push edi
call fcn.00409800
add esp, 4
test eax, eax
jne 0x4098b0
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
push ebx
push edi
push ecx
call fcn.00409780
add esp, 0x10
test eax, eax
jne 0x4098bb
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x10], eax
lea edx, [esp + 0xc]
push 0x10
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
pop edi
cmp eax, 0xffffffff
pop ebx
jne 0x4098df
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00431219
Function at 0x4adf30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x76000]
push edi
jmp 0x4adf4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4adf51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4adf40
mov eax, 1
add ebx, ebx
jne 0x4adf63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4adf74
jne 0x4adf93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4adf93
dec eax
add ebx, ebx
jne 0x4adf80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4adf58
add ebx, ebx
jne 0x4adf8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4adfe5
xor ecx, ecx
sub eax, 3
jb 0x4adfab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ae01a
sar eax, 1
mov ebp, eax
jmp 0x4adfb6
add ebx, ebx
jne 0x4adfb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4adf84
inc ecx
add ebx, ebx
jne 0x4adfc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4adf84
add ebx, ebx
jne 0x4adfd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4adfc6
jne 0x4adfe2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4adfc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ae004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4adff6
jmp 0x4adf46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ae004
add edi, ecx
jmp 0x4adf46
pop esi
mov edi, esi
mov ecx, 0x2c6d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ae022
cmp byte [edi], 0x11
jne 0x4ae022
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4ae027
lea edi, [esi + 0xaa000]
mov eax, dword [edi]
or eax, eax
je 0x4ae09f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd66dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd67f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ae054
mov ecx, edi
jns 0x4ae083
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd67f8]
or eax, eax
je 0x4ae099
mov dword [ebx], eax
add ebx, 4
jmp 0x4ae071
call dword [esi + 0xd6808]
mov ebp, dword [esi + 0xd67fc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4ae0d3
sub esp, 0xffffff80
jmp 0x454bde
Function at 0x405d6a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x405d79
pop dword [ebp - 0x3c]
mov eax, 0x91121b6c
sub eax, 0x90d1bdf3
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xc9df41f6
sub dword [ebp - 0x4c], 0x7b8cfcab
mov dword [ebp - 0x48], 0x797746f8
sub dword [ebp - 0x48], 0x4743fab3
mov dword [ebp - 0x44], 0xe18b9ce8
sub dword [ebp - 0x44], 0x953f58ba
mov dword [ebp - 0x40], 0x42162dd1
sub dword [ebp - 0x40], 0x42162dd1
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x78a4ca84
add dword [ebp - 0x4c], 0xfbcd9ed2
mov dword [ebp - 0x48], 0x546892c3
add dword [ebp - 0x48], 0xed03ceb2
mov dword [ebp - 0x44], 0x884b8d99
sub dword [ebp - 0x44], 0x24dc212d
mov dword [ebp - 0x40], 0x8dcbb63a
sub dword [ebp - 0x40], 0x8dcbb63a
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x398fb
push 0
call eax
mov ecx, 0x7dcdc432
add ecx, 0x82328b31
mov edx, eax
mov edi, 0x2e73192a
sub edi, 0x2e32512a
add edi, dword [ebp - 0x3c]
mov esi, 0x28dfe91e
xor dword [ebp - 0x38], eax
mov ebx, dword [edi]
mov dword [ebp - 0xc], 0xe708c577
xor ebx, esi
sub dword [ebp - 0x1c], esi
mov dword [edx], ebx
mov dword [ebp - 0x38], 0x1a7e3efa
add edx, 4
add edi, 0xbfd8cacb
add edi, 0x40273539
loop 0x405e8b
add eax, 0x4525309a
add eax, 0xbadbffc5
mov ebx, eax
add eax, 0x6c6c6e23
add eax, 0x939391e2
mov ecx, 0x86be86ea
sub ecx, 0x867e86ea
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

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
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
popal
nop
nop
nop
nop
jmp loc.00401219