joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49253c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4926a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x4e9db8]
call fcn.004916e4
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, 0x4926b0
call fcn.004064d8
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, 0x4926c0
call fcn.004064d8
mov eax, esi
call fcn.00404e20
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
mov eax, ebx
call fcn.00404e20
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x10]
push eax
push 0x10
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x119]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
push 0x4926d8
push ebx
push 0x4926e4
lea eax, [ebp - 0x124]
mov edx, 3
call fcn.00404ce0
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 0x120]
call fcn.004051f8
mov eax, dword [ebp - 0x120]
push eax
lea eax, [ebp - 0x128]
lea edx, [ebp - 0x119]
mov ecx, 0x105
call fcn.004051e0
mov edx, dword [ebp - 0x128]
lea eax, [ebp - 0x14]
pop ecx
call fcn.00405224
push 0
mov eax, dword [ebp - 0x14]
call fcn.00405208
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4926a7
lea eax, [ebp - 0x128]
call fcn.00405094
lea eax, [ebp - 0x124]
call fcn.00404960
lea eax, [ebp - 0x120]
call fcn.00405094
lea eax, [ebp - 0x14]
call fcn.00405094
lea eax, [ebp - 0xc]
call fcn.00406494
lea eax, [ebp - 8]
call fcn.00406494
lea eax, [ebp - 4]
call fcn.00406494
ret
Function at 0x4926ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x492850
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x4e9db8]
call fcn.004916e4
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, 0x492860
call fcn.004064d8
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, 0x492870
call fcn.004064d8
mov eax, esi
call fcn.00404e20
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
mov eax, ebx
call fcn.00404e20
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x10]
push eax
push 6
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x119]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
push 0x492888
push ebx
push 0x492894
lea eax, [ebp - 0x124]
mov edx, 3
call fcn.00404ce0
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 0x120]
call fcn.004051f8
mov eax, dword [ebp - 0x120]
push eax
lea eax, [ebp - 0x128]
lea edx, [ebp - 0x119]
mov ecx, 0x105
call fcn.004051e0
mov edx, dword [ebp - 0x128]
lea eax, [ebp - 0x14]
pop ecx
call fcn.00405224
push 0
mov eax, dword [ebp - 0x14]
call fcn.00405208
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492857
lea eax, [ebp - 0x128]
call fcn.00405094
lea eax, [ebp - 0x124]
call fcn.00404960
lea eax, [ebp - 0x120]
call fcn.00405094
lea eax, [ebp - 0x14]
call fcn.00405094
lea eax, [ebp - 0xc]
call fcn.00406494
lea eax, [ebp - 8]
call fcn.00406494
lea eax, [ebp - 4]
call fcn.00406494
ret
Function at 0x492ea8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi]
call fcn.00404c20
mov esi, eax
dec esi
test esi, esi
jl 0x492ed1
inc esi
xor ebx, ebx
mov eax, dword [edi]
call fcn.00404e20
mov edx, ebx
add dl, 0xd
xor byte [eax + ebx], dl
inc ebx
dec esi
jne 0x492ebe
pop edi
pop esi
pop ebx
ret

Function at 0x4a0440
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a057a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0041af08
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 2
jne 0x4a04bc
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4a04bc
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408bf4
mov edx, dword [ebp - 0x14]
mov ebx, dword [0x4e9d9c]
mov ebx, dword [ebx]
mov eax, 0x4a0590
call ebx
dec eax
jne 0x4a04bc
mov ebx, 1
jmp 0x4a04be
xor ebx, ebx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
sub eax, ebx
jl 0x4a055f
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0049ff50
test al, al
jne 0x4a0553
mov eax, dword [ebp - 4]
call fcn.004a0434
mov ebx, eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x1c]
call fcn.004049b4
xor edx, edx
push ebp
push 0x4a0541
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
test al, al
je 0x4a0537
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.004a0868
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a0553
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x4a04d6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0581
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404984
ret

Function at 0x4bd7b0
Capabilities:
Log keystrokes via polling

Disassembly:
push 2
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
test ah, 0x80
jne 0x4bd7d1
push 1
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
test ah, 0x80
jne 0x4bd7d1
xor eax, eax
ret
mov al, 1
ret
Function at 0x4cc2ac
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 4], ecx
mov esi, edx
xor eax, eax
push ebp
push 0x4cc3e7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x4ea364]
mov eax, dword [eax]
call fcn.0049009c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e20
mov ebx, eax
push ebx
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4cc3be
mov eax, dword [ebp - 8]
call fcn.00408b70
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4cc3b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push ebx
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4cc3f4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4cc418
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
lea eax, [ebp - 0x11c]
mov edx, dword [ebp - 0x18]
call fcn.00403554
lea edx, [ebp - 0x11c]
lea eax, [ebp - 0x1c]
call fcn.00404bc4
push dword [ebp - 0x1c]
push 0x4cc444
lea eax, [ebp - 0x120]
mov edx, dword [ebp - 0x14]
call fcn.00404b58
push dword [ebp - 0x120]
mov eax, esi
mov edx, 3
call fcn.00404ce0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc3be
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.00402794
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc3ee
lea eax, [ebp - 0x120]
call fcn.00404960
lea eax, [ebp - 0x1c]
call fcn.00404960
lea eax, [ebp - 4]
call fcn.00404960
ret
Function at 0x4d18cc
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e10
xor eax, eax
push ebp
push 0x4d1a0d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x4d19e5
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0x298]
mov edx, dword [ebp - 4]
call fcn.00409bbc
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4d19ce
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4d19c8
mov ebx, dword [edx]
test ebx, ebx
je 0x4d19c2
lea eax, [ebp - 0x29c]
push eax
xor eax, eax
mov al, byte [ebx]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 0x2b8], 0
xor eax, eax
mov al, byte [ebx + 1]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
xor eax, eax
mov al, byte [ebx + 2]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
xor eax, eax
mov al, byte [ebx + 3]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
lea edx, [ebp - 0x2bc]
mov ecx, 3
mov eax, 0x4d1a28
call fcn.0040a21c
mov edx, dword [ebp - 0x29c]
mov eax, esi
call fcn.004049b4
mov byte [ebp - 5], 1
jmp 0x4d19d2
mov byte [ebp - 5], 0
jmp 0x4d19d2
mov byte [ebp - 5], 0
jmp 0x4d19d2
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d19ec
call sub.wsock32.dll_WSACleanup
ret
Function at 0x4d1a34
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d1c24
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x4d1c0e
xor edx, edx
push ebp
push 0x4d1c07
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0xc], 0x640
mov eax, dword [ebp - 0xc]
call fcn.00402774
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4d1be9
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x4d1ad9
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004027b4
jmp 0x4d1a9d
test eax, eax
je 0x4d1aec
call fcn.00404388
call fcn.00404388
jmp 0x4d1c0e
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x4d1a9d
inc eax
mov dword [ebp - 0x1c], eax
xor edi, edi
mov eax, edi
shl eax, 2
mov edx, dword [ebp - 0x10]
lea esi, [edx + eax*8]
cmp dword [esi + 8], 2
jne 0x4d1b7c
lea eax, [ebx + 0x40]
mov edx, dword [esi + 0x14]
call fcn.00404b58
mov eax, dword [ebx + 0x40]
mov edx, 0x4d1c3c
call fcn.0043ae14
test al, al
je 0x4d1b45
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebx + 0x40]
xor ecx, ecx
mov edx, 0x4d1c3c
call fcn.0043ade8
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x40]
call fcn.004049b4
mov eax, dword [ebp - 4]
mov dword [ebx + 0x48], eax
lea edx, [ebx + 0x44]
mov eax, dword [ebx + 0x40]
call fcn.004d18cc
test al, al
je 0x4d1b67
push ebx
push 0x4d17ac
mov eax, ebx
call fcn.00422ff0
cmp byte [ebx + 0xd], 0
je 0x4d1bc1
call fcn.00404388
call fcn.00404388
jmp 0x4d1c0e
lea eax, [ebx + 0x40]
mov edx, dword [esi + 0x14]
call fcn.00404b58
mov eax, dword [ebp - 4]
mov dword [ebx + 0x48], eax
push ebx
push 0x4d16b4
mov eax, ebx
call fcn.00422ff0
cmp byte [ebx + 0xd], 0
je 0x4d1bac
call fcn.00404388
call fcn.00404388
jmp 0x4d1c0e
mov eax, edi
shl eax, 2
mov edx, dword [ebp - 0x10]
lea edx, [edx + eax*8]
mov ecx, dword [ebx + 0x48]
mov eax, ebx
call fcn.004d1a34
inc edi
dec dword [ebp - 0x1c]
jne 0x4d1afa
jmp 0x4d1a9d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1c2b
lea eax, [ebp - 0x20]
call fcn.00404960
ret
Function at 0x4ddbf0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ddcc7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4e9cf8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx]
lea eax, [ebp - 8]
call fcn.00404960
lea eax, [ebp - 0x1a8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor eax, eax
push ebp
push 0x4ddcaa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x60]
call fcn.00404e20
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x14], eax
push 2
push 4
lea eax, [ebp - 0x14]
push eax
call sub.wsock32.dll_gethostbyaddr
mov ebx, eax
test ebx, ebx
je 0x4ddc80
lea edx, [ebp - 8]
mov eax, dword [ebx]
call fcn.00409d2c
mov eax, ebx
xor ecx, ecx
mov edx, 0x10
call fcn.004030bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ddcb1
call sub.wsock32.dll_WSACleanup
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004049b4
mov eax, dword [0x4e9cf8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 4]
ret

Function at 0x4ddd84
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
mov esi, eax
mov byte [ebp - 1], 0
xor ebx, ebx
call sub.ICMP.DLL_IcmpCreateFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4ddead
xor edx, edx
push ebp
push 0x4ddea6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0x3c
call fcn.00402774
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4dddd1
call fcn.00404388
jmp 0x4ddead
xor edx, edx
push ebp
push 0x4dde88
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 0x20
call fcn.004030bc
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0xc]
mov word [eax + 0xc], 0x20
mov eax, dword [esi + 0x60]
call fcn.00404e20
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [0x4ea600]
cmp ebx, dword [eax]
jge 0x4dde72
mov eax, dword [0x4e9ce8]
mov eax, dword [eax]
push eax
push 0x3c
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x20
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ICMP.DLL_IcmpSendEcho
test eax, eax
je 0x4dde62
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
jne 0x4dde62
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [0x4e9ce8]
cmp eax, dword [edx]
setl byte [ebp - 1]
cmp byte [ebp - 1], 0
jne 0x4dde72
inc ebx
mov eax, dword [0x4ea600]
cmp ebx, dword [eax]
jl 0x4dde20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dde8f
mov eax, dword [ebp - 0xc]
call fcn.00402794
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4de708
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
mov byte [ebp - 5], 0
lea eax, [ebp - 0x1a4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4de868
xor edx, edx
push ebp
push 0x4de861
push dword fs:[edx]
mov dword fs:[edx], esp
mov al, byte [ebp + 8]
sub al, 1
jb 0x4de758
je 0x4de84a
jmp 0x4de84e
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4de774
call fcn.00404388
jmp 0x4de868
mov word [ebp - 0x1b4], 2
push esi
call sub.wsock32.dll_htons
mov word [ebp - 0x1b2], ax
mov eax, dword [edi + 0x60]
call fcn.00404e20
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0xc]
push eax
push 0x8004667e
push ebx
call sub.wsock32.dll_ioctlsocket
push 0x10
lea eax, [ebp - 0x1b4]
push eax
push ebx
call sub.wsock32.dll_connect
inc eax
jne 0x4de82a
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4de82e
lea eax, [ebp - 0x2b8]
call fcn.004a319c
lea edx, [ebp - 0x2b8]
mov eax, ebx
call fcn.004a318c
mov eax, dword [ebp - 4]
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x2b8]
push eax
push 0
push 0
call sub.wsock32.dll_select
test eax, eax
setg byte [ebp - 5]
jmp 0x4de82e
mov byte [ebp - 5], 0
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x8004667e
push ebx
call sub.wsock32.dll_ioctlsocket
push ebx
call sub.wsock32.dll_closesocket
jmp 0x4de84e
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de868
call sub.wsock32.dll_WSACleanup
ret
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x12d36c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe7b000]
push edi
jmp 0x12d36da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x12d36e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12d36d0
mov eax, 1
add ebx, ebx
jne 0x12d36f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x12d3704
jne 0x12d3723
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12d3723
dec eax
add ebx, ebx
jne 0x12d3710
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x12d36e8
add ebx, ebx
jne 0x12d371f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x12d3775
xor ecx, ecx
sub eax, 3
jb 0x12d373b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x12d37aa
sar eax, 1
mov ebp, eax
jmp 0x12d3746
add ebx, ebx
jne 0x12d3746
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12d3714
inc ecx
add ebx, ebx
jne 0x12d3754
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12d3714
add ebx, ebx
jne 0x12d3761
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x12d3756
jne 0x12d3772
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x12d3756
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x12d3794
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x12d3786
jmp 0x12d36d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x12d3794
add edi, ecx
jmp 0x12d36d6
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x12d37b2
cmp byte [edi], 0x11
jne 0x12d37b2
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 0x12d37b7
lea edi, [esi + 0xecc000]
mov eax, dword [edi]
or eax, eax
je 0x12d382f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ccd710]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ccd88c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x12d37e4
mov ecx, edi
jns 0x12d3813
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 + 0x1ccd890]
or eax, eax
je 0x12d3829
mov dword [ebx], eax
add ebx, 4
jmp 0x12d3801
call dword [esi + 0x1ccd8a0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x12d3860
cmp al, 0xef
ja 0x12d3853
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x12d3835
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x12d3842
mov ebp, dword [esi + 0x1ccd894]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x12d3894
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1377580e
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x76762650
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
jmp 0x401219