joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4603b0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x46044f
cmp dword [ebx + 0x94], 0
jne 0x460449
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x460338
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x460449
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46040f
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x460449
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041f39c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46041e
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x460668
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4d1c9c]
cmp dword [eax + 0x30], 0
je 0x4607c5
test bl, bl
jne 0x460716
cmp dword [esi + 0x9c], 0
jne 0x46070b
mov eax, esi
call fcn.00462e74
push eax
push 0x460594
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4606dc
mov eax, dword [0x4d1c9c]
call fcn.00463464
test al, al
je 0x4606dc
mov eax, dword [0x4d1cc0]
call fcn.0040650c
mov edi, eax
cmp edi, 0
jl 0x4606dc
push 0
mov eax, dword [0x4d1cc0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4606c6
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x46070b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041f39c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4606eb
inc dword [esi + 0x9c]
jmp 0x4607c5
cmp dword [esi + 0x9c], 0
jle 0x4607c5
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4607c5
cmp dword [esi + 0x44], 0
je 0x460771
mov eax, dword [0x4d1c9c]
call fcn.00463464
test al, al
je 0x460771
mov eax, dword [0x4d1cc0]
call fcn.0040650c
mov edi, eax
cmp edi, 0
jl 0x460771
push 5
mov eax, dword [0x4d1cc0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46075b
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4607a0
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041f39c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x460780
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x4d1cc0
mov ecx, 1
mov edx, dword [0x460574]
call fcn.004066c0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x461258
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4612c2
mov eax, ebx
call fcn.00463464
test al, al
jne 0x4612c2
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404e7c
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x4612af
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4612cf
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404de0
jmp 0x4612cf
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404de0
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x462678
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4626e6
mov eax, esi
call fcn.0044c3e0
test al, al
je 0x4626e6
mov eax, dword [ebx + 0x84]
call fcn.0044c030
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4626e6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4626da
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044c030
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00444140
jmp 0x4626e6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004624b4
pop esi
pop ebx
ret
Function at 0x464410
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040520c
mov ebx, 0x4caa00
xor eax, eax
push ebp
push 0x46456e
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
lea eax, [ebp - 8]
mov ecx, 0x464588
mov edx, dword [ebp - 4]
call fcn.004050a4
mov eax, dword [ebp - 8]
call fcn.0040521c
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebx], eax
cmp dword [ebx], 0
jbe 0x464553
push 0x464598
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e1c], eax
push 0x4645a4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e20], eax
push 0x4645b0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e24], eax
push 0x4645b8
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e28], eax
push 0x4645c4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e2c], eax
push 0x4645d0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e30], eax
push 0x4645dc
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e34], eax
push 0x4645e8
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e38], eax
push 0x4645f4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e3c], eax
push 0x464604
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e40], eax
push 0x46461c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e44], eax
push 0x464634
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e48], eax
push 0x464650
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e4c], eax
xor esi, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464575
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404db0
ret
Function at 0x464660
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040520c
mov ebx, 0x4caa04
xor eax, eax
push ebp
push 0x4647b0
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
lea eax, [ebp - 8]
mov ecx, 0x4647c8
mov edx, dword [ebp - 4]
call fcn.004050a4
mov eax, dword [ebp - 8]
call fcn.0040a1d0
test al, al
je 0x464795
mov eax, dword [ebp - 8]
call fcn.0040521c
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebx], eax
cmp dword [ebx], 0
jbe 0x464795
push 0x4647d8
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e50], eax
push 0x4647e8
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e54], eax
push 0x4647fc
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e58], eax
push 0x464814
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e5c], eax
push 0x46482c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e60], eax
push 0x464848
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e64], eax
push 0x464858
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e68], eax
push 0x464870
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e6c], eax
push 0x464890
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e70], eax
push 0x4648a4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e74], eax
push 0x4648bc
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d1e78], eax
call dword [0x4d1e50]
xor esi, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4647b7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404db0
ret

Function at 0x485894
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4858b9
cmp dword [esp + 4], 5
jb 0x4858b9
mov al, 1
jmp 0x4858bb
xor eax, eax
add esp, 0x94
ret
Function at 0x497d5c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x497de5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d1eb8
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x497dcf
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040df98
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x497dfc
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4cc62c]
mov dl, 1
mov eax, dword [0x4970c0]
call fcn.0040e8c8
call fcn.00404704
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497dec
lea eax, [ebp - 0x1c]
call fcn.00404d8c
ret

Function at 0x4983d8
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x498434]
cmp al, byte [ebx + 0x28]
je 0x4983fc
mov esi, 0x401
mov eax, ebx
call fcn.00498524
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x498434]
cmp al, byte [ebx + 0x28]
jne 0x49842c
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4984b8
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004983d8
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403fe0
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x49851c
call fcn.00497ca4
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x49850e
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403fe0
pop esi
pop ebx
ret

Function at 0x4985e8
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.0040521c
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403698
test ebx, ebx
je 0x498637
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [esp + 4], cl
movzx ecx, byte [edx + 1]
mov byte [esp + 5], cl
movzx ecx, byte [edx + 2]
mov byte [esp + 6], cl
movzx eax, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x498714
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x498745
mov ecx, dword [0x4cc7e0]
mov dl, 1
mov eax, dword [0x4970c0]
call fcn.0040e88c
call fcn.00404704
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x498772
mov ecx, dword [0x4cc3c0]
mov dl, 1
mov eax, dword [0x4970c0]
call fcn.0040e88c
call fcn.00404704
xor eax, eax
push ebp
push 0x4987f3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403fe0
cmp byte [ebp + 8], 0
je 0x4987cd
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0049867c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00498438
jmp 0x4987e9
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00497f94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x498810
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4989d8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0049825c
xor eax, eax
push ebp
push 0x498b4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x498b35
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x498a24
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x498a2e
call fcn.004047b0
jmp 0x498b52
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421cd4
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x498b2a
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x498add
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x498aca
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403fe0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.00498990
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x498b60]
cmp dl, byte [eax + 0x28]
je 0x498b31
call fcn.0040e7b0
jmp 0x498b31
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421cf4
jmp 0x498b31
cmp edi, ebx
jge 0x498af9
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421cf4
jmp 0x498a2e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421cd4
cmp edx, dword [esp + 4]
jne 0x498b19
cmp eax, dword [esp]
pop edx
pop eax
jne 0x498a2e
push ebp
call fcn.00498990
pop ecx
jmp 0x498b31
push ebp
call fcn.00498990
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498b52
mov eax, dword [ebp - 4]
call fcn.00498268
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x498b64
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x498c86
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049825c
xor eax, eax
push ebp
push 0x498c69
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x498bb4
call fcn.004047b0
jmp 0x498c70
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x498c53
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x498c53
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403fe0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x498c53
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040df98
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x498ca0
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4cc62c]
mov dl, 1
mov eax, dword [0x4970c0]
call fcn.0040e8c8
call fcn.00404704
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498c70
mov eax, dword [ebp - 4]
call fcn.00498268
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498c8d
lea eax, [ebp - 0x28]
call fcn.00404d8c
ret
Function at 0x498cec
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x498e5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049825c
xor eax, eax
push ebp
push 0x498e40
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x498d51
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x498d51
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x498e2a
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x498d64
call fcn.004047b0
jmp 0x498e47
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
test eax, eax
jne 0x498d8b
cmp dword [ebp - 0x10], 0
jle 0x498d8b
cmp ebx, dword [ebp - 0x10]
jle 0x498d8b
mov ebx, dword [ebp - 0x10]
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x498e2a
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x498e2a
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403fe0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x498e2a
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.0040df98
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, 0x498e78
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [0x4cc62c]
mov dl, 1
mov eax, dword [0x4970c0]
call fcn.0040e8c8
call fcn.00404704
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498e47
mov eax, dword [ebp - 4]
call fcn.00498268
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498e64
lea eax, [ebp - 0x2c]
call fcn.00404d8c
ret
Function at 0x2253700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0225378f
jae 0x225370e
xor ecx, ecx
call fcn.0225378f
jae 0x225373d
xor eax, eax
call fcn.0225378f
jae 0x225374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0225378f
adc al, al
jae 0x225372f
jne 0x2253779
stosb byte es:[edi], al
jmp 0x2253711
call fcn.0225379b
sub ecx, ebx
jne 0x2253756
call fcn.02253799
jmp 0x2253775
lodsb al, byte [esi]
shr eax, 1
je 0x2253783
adc ecx, ecx
jmp 0x2253772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02253799
cmp eax, 0x7d00
jae 0x2253772
cmp ah, 5
jae 0x2253773
cmp eax, 0x7f
ja 0x2253774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2253711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x226ea1c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push esi
push edi
xor ecx, ecx
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x100]
lodsb al, byte [esi]
or al, al
je 0x226ea45
inc ecx
test cl, 3
je 0x226ea42
shl eax, 8
jmp 0x226ea32
stosd dword es:[edi], eax
jmp 0x226ea32
mov al, 0x80
push ecx
inc ecx
test cl, 3
je 0x226ea53
shl eax, 8
jmp 0x226ea48
stosd dword es:[edi], eax
xor eax, eax
jmp 0x226ea5c
stosd dword es:[edi], eax
add ecx, 4
cmp ecx, 0x3c
jb 0x226ea58
pop eax
shl eax, 3
stosd dword es:[edi], eax
sub ecx, 0xc
mov eax, dword [edi - 0x3c]
push ecx
mov ecx, eax
mov edx, eax
ror eax, 7
ror ecx, 0x12
shr edx, 3
xor eax, ecx
xor eax, edx
push eax
mov eax, dword [edi - 8]
mov ecx, eax
mov edx, eax
ror eax, 0x11
ror ecx, 0x13
shr edx, 0xa
xor eax, ecx
xor eax, edx
add dword [esp], eax
pop eax
add eax, dword [edi - 0x40]
pop ecx
add eax, dword [edi - 0x1c]
stosd dword es:[edi], eax
loop 0x226ea69
call int.0226eac6
out 9, al
push 0xffffffffffffff85
scasb al, byte es:[edi]
mov ebx, 0x3c6ef372
cmp dh, ch
dec edi
movsd dword es:[edi], dword [esi]
jg 0x226eb0a
push cs
push ecx
mov word [eax + 5], gs
wait
stosd dword es:[edi], eax
fld dword [ebx - 0x1f32e6e1]
pop ebx
invalid
Function at 0x417e94
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417d05

Function at 0x41828e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407080
mov eax, dword [0x430040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00415fa2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4182d0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41842c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422960
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47d6c0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00419288
mov ecx, dword [esi*4 + 0x47d6c0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x418425
cmp eax, dword [edi + ecx + 0x24]
jne 0x418425
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418425
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419288
add esp, 0x14
test edx, edx
jl 0x418425
jg 0x41839b
test eax, eax
jb 0x418425
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418425
jl 0x4183b5
cmp dword [ebp - 0x1008], eax
ja 0x418425
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4183d3
test ebx, ebx
je 0x41840c
cmp ecx, edi
jae 0x41840c
mov al, byte [ecx]
cmp al, 0xd
jne 0x4183ed
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4183f9
cmp byte [ecx + 1], 0xa
jne 0x4183f9
inc ecx
jmp 0x4183f9
movzx eax, al
movsx eax, byte [eax + 0x430310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4183d3
cmp edx, ebx
jne 0x4183d3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41842a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406520
leave
ret