joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478c34
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 0x478c9e
mov eax, ebx
call fcn.0047af78
test al, al
jne 0x478c9e
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.00404efc
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x478c8b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x478cab
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404e60
jmp 0x478cab
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404e60
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x47a09c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47a10a
mov eax, esi
call fcn.0046361c
test al, al
je 0x47a10a
mov eax, dword [ebx + 0x84]
call fcn.0046326c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47a10a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x47a0fe
push 0
mov eax, dword [ebx + 0x84]
call fcn.0046326c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0045b14c
jmp 0x47a10a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00479ed8
pop esi
pop ebx
ret

Function at 0x47c284
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 0x47c30d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x57dd14
push 0x202
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x47c2f7
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040df00
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, 0x47c324
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x577e48]
mov dl, 1
mov eax, dword [0x47b270]
call fcn.0040e830
call fcn.004047a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c314
lea eax, [ebp - 0x1c]
call fcn.00404e0c
ret

Function at 0x47c904
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 [0x47c960]
cmp al, byte [ebx + 0x28]
je 0x47c928
mov esi, 0x401
mov eax, ebx
call fcn.0047ca5c
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 [0x47c960]
cmp al, byte [ebx + 0x28]
jne 0x47c958
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 0x47c9ec
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0047c904
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004040e8
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, eax
mov ecx, 0x47ca54
mov eax, ebx
call fcn.0047c1c8
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x47ca46
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.004040e8
pop esi
pop ebx
ret

Function at 0x47ca78
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0047c784
xor eax, eax
push ebp
push 0x47caf3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x47caae
call fcn.0040484c
jmp 0x47cafa
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x47cadd
movzx eax, word [ebp - 0x1a]
push eax
call sub.wsock32.dll_ntohs
movzx eax, ax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cafa
mov eax, dword [ebp - 4]
call fcn.0047c790
ret
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x47cc58
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.004052ac
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.004037b4
test ebx, ebx
je 0x47cca7
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 0x47cd84
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 0x47cdb5
mov ecx, dword [0x577fe8]
mov dl, 1
mov eax, dword [0x47b270]
call fcn.0040e7f4
call fcn.004047a0
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 0x47cde2
mov ecx, dword [0x577c10]
mov dl, 1
mov eax, dword [0x47b270]
call fcn.0040e7f4
call fcn.004047a0
xor eax, eax
push ebp
push 0x47ce63
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.004040e8
cmp byte [ebp + 8], 0
je 0x47ce3d
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.0047ccec
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.0047c964
jmp 0x47ce59
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.0047c4bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47ce80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x47ce8c
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 0x47cebd
mov ecx, dword [0x577cc0]
mov dl, 1
mov eax, dword [0x47b270]
call fcn.0040e7f4
call fcn.004047a0
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 0x47ceea
mov ecx, dword [0x577c10]
mov dl, 1
mov eax, dword [0x47b270]
call fcn.0040e7f4
call fcn.004047a0
xor eax, eax
push ebp
push 0x47cf66
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.004040e8
cmp byte [ebp + 8], 0
je 0x47cf42
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047ccec
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 eax, dword [ebp - 4]
call fcn.0047c9ec
jmp 0x47cf5c
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047c4bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47cf83
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47d164
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.0047c784
xor eax, eax
push ebp
push 0x47d2d7
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 0x47d2c1
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x47d1b0
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x47d1ba
call fcn.0040484c
jmp 0x47d2de
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0042117c
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 0x47d2b6
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 0x47d269
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x47d256
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004040e8
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.0047d11c
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x47d2ec]
cmp dl, byte [eax + 0x28]
je 0x47d2bd
call fcn.0040e718
jmp 0x47d2bd
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0042119c
jmp 0x47d2bd
cmp edi, ebx
jge 0x47d285
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.0042119c
jmp 0x47d1ba
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.0042117c
cmp edx, dword [esp + 4]
jne 0x47d2a5
cmp eax, dword [esp]
pop edx
pop eax
jne 0x47d1ba
push ebp
call fcn.0047d11c
pop ecx
jmp 0x47d2bd
push ebp
call fcn.0047d11c
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d2de
mov eax, dword [ebp - 4]
call fcn.0047c790
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47d2f0
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 0x47d412
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047c784
xor eax, eax
push ebp
push 0x47d3f5
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 0x47d340
call fcn.0040484c
jmp 0x47d3fc
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 0x47d3df
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x47d3df
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004040e8
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 0x47d3df
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040df00
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, 0x47d42c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x577e48]
mov dl, 1
mov eax, dword [0x47b270]
call fcn.0040e830
call fcn.004047a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d3fc
mov eax, dword [ebp - 4]
call fcn.0047c790
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d419
lea eax, [ebp - 0x28]
call fcn.00404e0c
ret
Function at 0x47d478
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47d5c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047c784
xor eax, eax
push ebp
push 0x47d5a5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x47d4dd
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x47d4dd
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 0x47d58f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x47d4f0
call fcn.0040484c
jmp 0x47d5ac
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 0x47d58f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x47d58f
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004040e8
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 0x47d58f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040df00
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, 0x47d5dc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x577e48]
mov dl, 1
mov eax, dword [0x47b270]
call fcn.0040e830
call fcn.004047a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d5ac
mov eax, dword [ebp - 4]
call fcn.0047c790
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d5c9
lea eax, [ebp - 0x28]
call fcn.00404e0c
ret
Function at 0x47ed98
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, eax
test esi, esi
jne 0x47edae
mov eax, esi
call fcn.0047ed6c
mov edi, 1
jmp 0x47edb6
inc edi
cmp byte [esi + edi - 1], 0x20
je 0x47edb5
cmp byte [esi + edi - 1], 0x2d
jne 0x47edcb
mov eax, esi
call fcn.0047ed6c
cmp byte [esi + edi - 1], 0x2b
jne 0x47edd3
inc edi
cmp byte [esi + edi - 1], 0x24
je 0x47edf6
cmp byte [esi + edi - 1], 0x30
jne 0x47eeb0
movzx eax, byte [esi + edi]
call fcn.0040351c
cmp al, 0x58
jne 0x47eeb0
cmp byte [esi + edi - 1], 0x30
jne 0x47edfe
inc edi
inc edi
cmp byte [esi + edi - 1], 0
jne 0x47ee0d
mov eax, esi
call fcn.0047ed6c
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x47eea1
mov eax, ebx
add al, 0xd0
sub al, 0xa
jb 0x47ee38
add al, 0xf9
sub al, 6
jb 0x47ee43
add al, 0xe6
sub al, 6
jb 0x47ee4e
jmp 0x47ee59
movzx eax, bl
sub eax, 0x30
mov dword [ebp - 0x1c], eax
jmp 0x47ee60
movzx eax, bl
sub eax, 0x37
mov dword [ebp - 0x1c], eax
jmp 0x47ee60
movzx eax, bl
sub eax, 0x57
mov dword [ebp - 0x1c], eax
jmp 0x47ee60
mov eax, esi
call fcn.0047ed6c
mov eax, dword [ebp - 0x14]
shr eax, 0x1c
xor edx, edx
cmp edx, 0
jne 0x47ee74
cmp eax, 0
jbe 0x47ee7d
jmp 0x47ee76
jle 0x47ee7d
mov eax, esi
call fcn.0047ed6c
mov eax, dword [ebp - 0x1c]
cdq
push edx
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
shld edx, eax, 4
shl eax, 4
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
inc edi
movzx ebx, byte [esi + edi - 1]
test bl, bl
jne 0x47ee22
jmp 0x47ef28
cmp byte [esi + edi - 1], 0
jne 0x47eebe
mov eax, esi
call fcn.0047ed6c
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x47ef13
xor bl, 0x30
movzx eax, bl
mov dword [ebp - 0xc], eax
push esi
mov eax, dword [ebp - 4]
mov ecx, 0xa
mul ecx
or edx, edx
jne 0x47eefb
mov esi, eax
mov eax, dword [ebp - 8]
mul ecx
add edx, esi
add eax, dword [ebp - 0xc]
adc edx, 0
jb 0x47eefb
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
jmp 0x47ef02
mov dword [ebp - 0xc], 0x29a
pop esi
mov eax, dword [ebp - 0xc]
sub eax, 0xa
jb 0x47ef12
mov eax, esi
call fcn.0047ed6c
inc edi
movzx ebx, byte [esi + edi - 1]
test bl, bl
jne 0x47eeca
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4860d7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareBorlandDatabase_Engine
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48612f
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push str.DLLPATH
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x486125
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x486133
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4c4a2c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp], edx
mov ebp, eax
mov esi, 2
mov byte [esp + 5], 0
mov dword [esp + 8], ecx
mov byte [esp + 6], 0xeb
mov byte [esp + 7], 0x3b
mov edi, dword [esp]
dec edi
test edi, edi
jl 0x4c4aef
inc edi
movzx eax, byte [ebp]
xor al, byte [esp + 6]
inc ebp
cmp esi, 6
jne 0x4c4a9f
mov edx, eax
and dl, 0x3f
movzx edx, dl
movzx ebx, byte [esp + 7]
add edx, ebx
mov byte [ecx], dl
inc ecx
movzx eax, al
shr eax, 2
and al, 0x30
or byte [esp + 5], al
movzx eax, byte [esp + 5]
movzx edx, byte [esp + 7]
add eax, edx
mov byte [ecx], al
inc ecx
mov byte [esp + 5], 0
jmp 0x4c4ad9
movzx edx, al
shr edx, 2
mov byte [esp + 4], dl
movzx edx, byte [esp + 4]
and dl, 0x3c
and al, 3
or dl, al
movzx eax, dl
movzx edx, byte [esp + 7]
add eax, edx
mov byte [ecx], al
inc ecx
movzx eax, byte [esp + 5]
add eax, eax
add eax, eax
movzx edx, byte [esp + 4]
and dl, 3
or al, dl
mov byte [esp + 5], al
mov eax, esi
mov ebx, 6
cdq
idiv ebx
add edx, 2
mov esi, edx
dec edi
jne 0x4c4a5d
cmp esi, 2
je 0x4c4b03
movzx eax, byte [esp + 5]
movzx edx, byte [esp + 7]
add eax, edx
mov byte [ecx], al
inc ecx
mov eax, ecx
sub eax, dword [esp + 8]
mov byte [ecx], 0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c4b14
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov edi, ecx
mov dword [esp], edx
mov ebp, eax
mov dword [esp + 0x10], edi
mov eax, dword [esp]
test eax, eax
jns 0x4c4b30
add eax, 3
sar eax, 2
mov edx, dword [esp]
and edx, 0x80000003
jns 0x4c4b43
dec edx
or edx, 0xfffffffc
inc edx
mov dword [esp + 4], edx
mov byte [esp + 0xd], 0xeb
mov dl, 0x3b
dec eax
test eax, eax
jl 0x4c4bfd
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0
mov esi, dword [esp + 8]
add esi, esi
add esi, esi
lea eax, [esi + ebp]
add eax, 3
movzx eax, byte [eax]
sub al, dl
mov byte [esp + 0xc], al
lea eax, [esi + ebp]
movzx eax, byte [eax]
sub al, dl
mov ecx, eax
add ecx, ecx
add ecx, ecx
and cl, 0xf0
movzx ebx, byte [esp + 0xc]
and bl, 0xc
or cl, bl
and al, 3
or cl, al
mov eax, ecx
xor al, byte [esp + 0xd]
mov byte [edi], al
inc edi
lea eax, [esi + ebp]
inc eax
movzx eax, byte [eax]
sub al, dl
mov ecx, eax
add ecx, ecx
add ecx, ecx
and cl, 0xf0
movzx ebx, byte [esp + 0xc]
add ebx, ebx
add ebx, ebx
and bl, 0xc
or cl, bl
and al, 3
or cl, al
mov eax, ecx
xor al, byte [esp + 0xd]
mov byte [edi], al
inc edi
add esi, ebp
add esi, 2
movzx eax, byte [esi]
sub al, dl
movzx ecx, byte [esp + 0xc]
add ecx, ecx
add ecx, ecx
and cl, 0xc0
or al, cl
xor al, byte [esp + 0xd]
mov byte [edi], al
inc edi
inc dword [esp + 8]
dec dword [esp + 0x14]
jne 0x4c4b64
cmp dword [esp + 4], 2
jne 0x4c4c43
mov eax, dword [esp]
add eax, ebp
mov ecx, eax
dec ecx
movzx ecx, byte [ecx]
sub cl, dl
mov byte [esp + 0xc], cl
sub eax, 2
movzx eax, byte [eax]
sub al, dl
mov edx, eax
add edx, edx
add edx, edx
and dl, 0xf0
movzx ecx, byte [esp + 0xc]
add ecx, ecx
add ecx, ecx
and cl, 0xc
or dl, cl
and al, 3
or dl, al
mov eax, edx
xor al, byte [esp + 0xd]
mov byte [edi], al
inc edi
jmp 0x4c4cb1
cmp dword [esp + 4], 3
jne 0x4c4cb1
mov esi, dword [esp]
add esi, ebp
mov eax, esi
dec eax
movzx eax, byte [eax]
sub al, dl
mov byte [esp + 0xc], al
mov eax, esi
sub eax, 3
movzx eax, byte [eax]
sub al, dl
mov ecx, eax
add ecx, ecx
add ecx, ecx
and cl, 0xf0
movzx ebx, byte [esp + 0xc]
and bl, 0xc
or cl, bl
and al, 3
or cl, al
mov eax, ecx
xor al, byte [esp + 0xd]
mov byte [edi], al
inc edi
sub esi, 2
movzx eax, byte [esi]
sub al, dl
mov edx, eax
add edx, edx
add edx, edx
and dl, 0xf0
movzx ecx, byte [esp + 0xc]
add ecx, ecx
add ecx, ecx
and cl, 0xc
or dl, cl
and al, 3
or dl, al
mov eax, edx
xor al, byte [esp + 0xd]
mov byte [edi], al
inc edi
mov eax, edi
sub eax, dword [esp + 0x10]
mov byte [edi], 0
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c8054
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c81c5
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c81a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00404ff4
lea eax, [ebp - 0x118]
mov edx, 0x4c81dc
call fcn.004050e8
mov eax, dword [ebp - 0x118]
call fcn.004052ac
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4c8112
lea eax, [ebp - 0x111]
call fcn.0040aa08
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404efc
jmp 0x4c8119
mov eax, esi
call fcn.00404e0c
cmp bl, 0x61
jae 0x4c813a
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040f5ec
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404e60
jmp 0x4c8154
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040f558
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404e60
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4c81e8
call fcn.0040b194
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404e60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c81a7
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret