joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e680
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x414
mov eax, dword [0x4cd724]
xor eax, esp
mov dword [esp + 0x410], eax
push ebp
mov ebp, dword [esp + 0x41c]
xor ecx, ecx
test ebp, ebp
je 0x48e81a
movzx eax, word [ebp]
test ax, ax
je 0x48e81a
cmp ax, 0x5c
jne 0x48e6cf
lea eax, [ebp + 2]
mov edx, ebp
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x48e6c0
push 0x5c
push ebp
call fcn.0046a933
add esp, 8
lea edx, [esp + 4]
test eax, eax
je 0x48e701
add eax, 2
sub edx, eax
jmp 0x48e6f0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x48e6f0
jmp 0x48e714
mov eax, ebp
sub edx, ebp
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x48e705
push esi
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x48e7a6
mov eax, dword [esp + 0x424]
lea edx, [esp + 0x210]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x48e734
lea eax, [esp + 0x210]
push 0x5c
push eax
call fcn.0046a933
add esp, 8
test eax, eax
je 0x48e7a6
xor ecx, ecx
mov word [eax + 2], cx
mov eax, ebp
mov edx, ebp
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48e763
push ebx
push edi
lea edi, [esp + 0x218]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [edi + 2]
nop
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x48e780
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
pop edi
pop ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebp
call esi
test eax, eax
jne 0x48e7df
lea eax, [esp + 8]
mov edx, ebp
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x48e7c0
push 0
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFindOnPathW]
push ebp
call esi
test eax, eax
je 0x48e7fb
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004677af
add esp, 0x414
ret
xor edx, edx
pop esi
mov word [ebp], dx
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004677af
add esp, 0x414
ret
mov eax, ecx
mov ecx, dword [esp + 0x414]
pop ebp
xor ecx, esp
call fcn.004677af
add esp, 0x414
ret
Function at 0x48e840
Capabilities:
Check if file exists

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x48e90b
mov eax, dword [esp + 0xc]
test eax, eax
je 0x48e90b
push esi
push eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jbe 0x48e915
cmp eax, 0x7a
je 0x48e915
push ebx
push 0x2e
push edi
xor ebx, ebx
call fcn.0046a933
add esp, 8
test eax, eax
je 0x48e8b1
mov ecx, str..ini
mov esi, eax
sub esi, ecx
nop
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x48e8a0
jmp 0x48e8ea
mov eax, edi
add eax, 0xfffffffe
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x48e8c0
mov ecx, dword [str..ini]
mov dword [eax], ecx
mov ecx, dword [0x4c48b8]
mov dword [eax + 4], ecx
mov cx, word [0x4c48bc]
mov word [eax + 8], cx
mov eax, edx
test eax, eax
je 0x48e902
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48e912
pop ebx
pop esi
mov eax, 2
pop edi
ret
pop ebx
pop esi
mov eax, 0x7a
pop edi
ret
mov eax, 0x57
pop edi
ret
mov eax, ebx
pop ebx
pop esi
pop edi
ret

Function at 0x48fdf0
Capabilities:
Get file version info

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
lea eax, [esp + 0xc]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x48fe0c
pop edi
pop ebx
ret 4
push esi
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x48fe4e
mov ecx, dword [esp + 0x10]
push esi
push edi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x48fe56
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
xor eax, eax
pop ebx
ret 4
mov eax, esi
pop esi
pop edi
pop ebx
ret 4
Function at 0x4909c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
push ebx
push esi
push edi
je 0x490ae2
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x490ae2
mov eax, dword [eax]
test eax, eax
je 0x490ae2
shr eax, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
add eax, 8
cmp eax, 0x400
ja 0x490a1e
call fcn.0046d420
mov edi, esp
test edi, edi
je 0x490ac9
mov dword [edi], 0xcccc
add edi, 8
jmp 0x490a36
push eax
call fcn.004683d7
add esp, 4
test eax, eax
je 0x490a34
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x490ac9
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x490a9e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x490a71
xor eax, eax
jmp 0x490a85
lea eax, [esi + esi]
call fcn.0046d420
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0041f5f0
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push ecx
call fcn.0046a10d
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov dword [eax], edx
cmp dword [edi - 8], 0xdddd
lea eax, [edi - 8]
jne 0x490ab3
push eax
call fcn.004684a1
add esp, 4
mov eax, ebx
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret
mov eax, 8
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret
mov eax, 0x57
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret
Function at 0x490b00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x490c01
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x490b21
sub eax, edx
sar eax, 1
lea ebx, [eax + 1]
lea eax, [ebx + ebx + 8]
cmp eax, 0x400
ja 0x490b58
call fcn.0046d420
mov esi, esp
test esi, esi
je 0x490be8
mov dword [esi], 0xcccc
add esi, 8
jmp 0x490b70
push eax
call fcn.004683d7
add esp, 4
test eax, eax
je 0x490b6e
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
test esi, esi
je 0x490be8
push edi
push ebx
push esi
call fcn.0046a10d
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x490b92
xor eax, eax
jmp 0x490ba8
lea edi, [eax + eax]
mov eax, edi
call fcn.0046d420
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004234b0
mov ecx, dword [ebp + 8]
push ebx
push eax
mov eax, dword [ebp + 0xc]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
mov edi, eax
jne 0x490bd2
push esi
call fcn.004684a1
add esp, 4
mov eax, edi
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret
mov eax, 8
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret
mov eax, 0x57
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret
Function at 0x492bd0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x210
mov eax, dword [0x4cd724]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x218]
push ebx
push ebp
mov ebp, dword [esp + 0x224]
push esi
mov esi, dword [esp + 0x220]
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1e]
push edx
mov dword [esp + 0x1c], eax
xor edi, edi
xor ebx, ebx
mov word [esp + 0x20], cx
call fcn.004677c0
push 1
push 0x208
lea eax, [esp + 0x28]
push eax
push esi
call fcn.00492b40
add esp, 0x1c
test eax, eax
je 0x492c72
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x4c437c
mov eax, edx
push 0x104
push eax
call fcn.00467d96
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x492c68
lea edi, [ebx + 1]
jmp 0x492c77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x492c77
mov ebx, 0xa1
mov eax, edi
test ebp, ebp
je 0x492c80
mov dword [ebp], ebx
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004677af
add esp, 0x210
ret

Function at 0x492d80
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
xor esi, esi
mov dword [esp + 4], esi
test eax, eax
je 0x492de9
mov ecx, dword [esp + 0x1c]
push edi
push ecx
push 2
push 2
push 0x40000000
push str.Mac.pad
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00492ca0
mov edi, dword [esp + 0x2c]
add esp, 0x1c
mov esi, eax
cmp edi, 0xffffffff
je 0x492de1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x492de1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x492dff
mov ecx, esi
neg ecx
sbb ecx, ecx
not ecx
and ecx, dword [esp + 4]
mov dword [eax], ecx
mov eax, esi
pop esi
pop ecx
ret
Function at 0x493160
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4cd724]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
push esi
xor esi, esi
test eax, eax
je 0x493184
mov dword [eax], esi
call fcn.00496ac0
test eax, eax
je 0x49325a
push ebx
mov eax, 0
cpuid
mov dword [esp + 8], eax
movzx eax, word [esp + 8]
cmp eax, 3
jb 0x4931f9
mov eax, 1
cpuid
mov dword [esp + 0x10], eax
mov eax, 3
cpuid
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x20]
movzx edx, ax
push edx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x20]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea edx, [esp + 0x34]
push str._04lX__04lX__04lX__04lX__04lX__04lX
push edx
call fcn.00467cfe
add esp, 0x20
jmp 0x493245
mov eax, 1
cpuid
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0xc]
and eax, 0xf
push eax
mov eax, dword [esp + 0xc]
mov ecx, eax
and ecx, 0xf
push ecx
mov edx, eax
mov ecx, eax
shr edx, 4
and edx, 0xf
push edx
shr ecx, 8
and ecx, 0xf
push ecx
shr eax, 0xc
and eax, 3
push eax
lea edx, [esp + 0x30]
push str._04lX__04lX__04lX__04lX__04lX
push edx
call fcn.00467cfe
add esp, 0x1c
lea eax, [esp + 0x1c]
push eax
call fcn.00492f50
add esp, 4
mov esi, eax
pop ebx
cmp esi, 0x10
jae 0x4932c8
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4932c8
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.Identifier
push edx
mov dword [esp + 0x2c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4932bd
cmp dword [esp + 0x10], 1
jne 0x4932bd
lea eax, [esp + 0x18]
push eax
call fcn.00492f50
add esp, 4
mov esi, eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004677af
add esp, 0x218
ret
Function at 0x4932e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4cd724]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
push edi
mov edi, dword [esp + 0x11c]
mov dword [esp + 0x10], 0
test edi, edi
je 0x49330f
mov dword [edi], 0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push closesocket
call ebp
test eax, eax
je 0x49334d
test edi, edi
je 0x493334
mov dword [edi], eax
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004677af
add esp, 0x110
ret
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push str.ProductId
push eax
mov dword [esp + 0x2c], 0x100
call ebx
mov esi, eax
test esi, esi
je 0x4933f4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x4933e3
lea edx, [esp + 0x10]
push edx
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push closesocket
call ebp
test eax, eax
je 0x4933b0
test edi, edi
je 0x4933ac
mov dword [edi], eax
xor eax, eax
jmp 0x49342a
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push str.ProductId
push edx
mov dword [esp + 0x2c], 0x100
call ebx
mov esi, eax
test esi, esi
je 0x4933ed
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4933e9
mov dword [edi], esi
xor eax, eax
jmp 0x49342a
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x4933f9
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x493406
sub eax, edx
sar eax, 1
je 0x493426
lea eax, [esp + 0x1c]
push eax
call fcn.00492f50
add esp, 4
jmp 0x49342a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x11c]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
call fcn.004677af
add esp, 0x110
ret
Function at 0x493450
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x314
mov eax, dword [0x4cd724]
xor eax, esp
mov dword [esp + 0x310], eax
push esi
mov esi, dword [esp + 0x31c]
test esi, esi
je 0x493476
mov dword [esi], 0
push 0x104
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4934b1
test esi, esi
je 0x493499
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor eax, eax
pop esi
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.004677af
add esp, 0x314
ret
lea ecx, [esp + 0x108]
push 0x5c
push ecx
call fcn.0046a90d
add esp, 8
test eax, eax
je 0x4934cd
xor edx, edx
mov word [eax + 2], dx
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x49348d
mov edx, dword [esp + 4]
push edx
push 0x4c4d44
lea eax, [esp + 0x10]
push 0x80
push eax
call fcn.00467d96
lea ecx, [esp + 0x18]
push ecx
call fcn.00492f50
mov ecx, dword [esp + 0x328]
add esp, 0x14
pop esi
xor ecx, esp
call fcn.004677af
add esp, 0x314
ret

Function at 0x494590
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x22c
mov eax, dword [0x4cd724]
xor eax, esp
mov dword [esp + 0x228], eax
push esi
lea eax, [esp + 0x24]
push 0x104
push eax
or esi, 0xffffffff
call fcn.0048e840
add esp, 8
test eax, eax
jne 0x494602
lea ecx, [esp + 0x24]
push ecx
push 0x10
lea edx, [esp + 0xc]
push edx
push 0x4c4eb0
push str.APTimer
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 4]
push eax
call fcn.0046aa00
add esp, 4
pop esi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004677af
add esp, 0x22c
ret
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004677af
add esp, 0x22c
ret

Function at 0x495120
Capabilities:
Terminate process

Disassembly:
test dword [esp + 0x24], 0x80000000
push esi
mov esi, dword [esp + 0x24]
mov dword [esi], 0
mov dword [esp + 0x24], 0
jne 0x495167
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x495167
push 0x10
push str.Fatal_error
push str.The_main_windows_handle_is_mandatory.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push edi
push ebx
push ebp
push edx
push eax
push ecx
call fcn.00494df0
add esp, 0x20
cmp dword [esi], 0
mov dword [esp + 0x34], eax
jne 0x4951b9
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
push esi
push edi
push ebx
push ebp
push eax
call fcn.004947d0
add esp, 0x18
or dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
pop edi
pop ebp
pop ebx
test eax, eax
je 0x4951ca
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov eax, dword [esp + 0x28]
pop esi
ret
Function at 0x4951d0
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x4951ee
push esi
mov esi, eax
lea ecx, [edi + edx]
sub esi, edi
lea esp, [esp]
mov al, byte [esi + ecx - 1]
xor byte [ecx - 1], al
dec ecx
dec edx
test edx, edx
jne 0x4951e0
pop esi
mov eax, edi
ret
Function at 0x4961a0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x104
mov eax, dword [0x4cd724]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x108]
mov edx, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
xor ebp, ebp
mov dword [edi], 0xffffffff
test eax, eax
je 0x4961fc
cmp byte [eax], 0
je 0x4961fc
lea esi, [esp + 0x10]
sub esi, eax
jmp 0x4961f0
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x4961f0
jmp 0x49620f
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x4c5094]
mov byte [esp + eax + 0x10], cl
inc eax
test cl, cl
jne 0x496200
test edx, edx
je 0x49622a
lea eax, [esp + 0x10]
mov ecx, eax
sub edx, ecx
jmp 0x496220
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x496220
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x496275
movsx eax, word [esi + 0xa]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
push eax
push edx
push edi
call fcn.0046ab00
add esp, 0xc
test ebx, ebx
je 0x49625a
mov ax, word [esi + 8]
mov word [ebx], ax
mov eax, ebp
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004677af
add esp, 0x104
ret
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x49628f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x49625c
mov eax, ebp
test ebx, ebx
je 0x49625c
mov edx, 2
mov word [ebx], dx
jmp 0x49625c
Function at 0x496940
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4cd724]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x134]
push 0x110
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0x114
call fcn.004677c0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 5
push edi
jb 0x4969b3
push esi
call fcn.00496730
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004677af
add esp, 0x118
ret
mov edx, dword [esp + 0x134]
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x12c]
push edx
push eax
push ecx
push esi
call fcn.004963a0
mov ecx, dword [esp + 0x130]
add esp, 0x14
pop edi
pop esi
xor ecx, esp
call fcn.004677af
add esp, 0x118
ret
Function at 0x496bb0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, eax
shr ecx, 4
xor ecx, esi
and ecx, 0xf0f0f0f
xor esi, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, esi
and ecx, 0xffff
xor esi, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, esi
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
add ecx, ecx
add ecx, ecx
xor esi, ecx
mov ecx, esi
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor ecx, esi
rol ecx, 1
mov esi, ecx
xor ecx, eax
and ecx, 0xaaaaaaaa
xor esi, ecx
xor ecx, eax
rol ecx, 1
push edi
mov edi, ecx
mov dword [esp + 0x10], 8
jmp 0x496c30
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x4ced50]
or ecx, dword [ebx*4 + 0x4cef50]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x4cf150]
and eax, 0x3f
or ecx, dword [eax*4 + 0x4cf350]
mov eax, dword [edx]
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4cee50]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4cf050]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4cf250]
and eax, 0x3f
or ebx, dword [eax*4 + 0x4cf450]
add edx, 4
or ebx, ecx
xor edi, ebx
mov eax, edi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x4ced50]
or ecx, dword [ebx*4 + 0x4cef50]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x4cf150]
and eax, 0x3f
or ecx, dword [eax*4 + 0x4cf350]
mov eax, dword [edx]
xor eax, edi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4cee50]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4cf050]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4cf250]
and eax, 0x3f
or ebx, dword [eax*4 + 0x4cf450]
add edx, 4
or ebx, ecx
xor esi, ebx
sub dword [esp + 0x10], 1
jne 0x496c30
ror esi, 1
mov eax, esi
xor eax, edi
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, edi
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
lea edx, [ecx*4]
mov ecx, esi
shr ecx, 0x10
xor eax, edx
mov edx, dword [esp + 0x18]
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
pop esi
xor ecx, eax
pop ebp
mov dword [edx + 4], ecx
pop ebx
pop ecx
ret