joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492b0c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00492204
xor edx, edx
push ebp
push 0x492c6c
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x492c56
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x492b56
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x492b60
call fcn.004036e4
jmp 0x492c73
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00413ff8
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 + 4]
mov ebx, eax
test ebx, ebx
jle 0x492c4b
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
cmp eax, 0xffffffff
jne 0x492c09
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x492bf9
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00403088
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.00492ac4
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x492c7c]
cmp dl, byte [eax + 0x28]
je 0x492c52
call fcn.0040c3c0
jmp 0x492c52
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00414008
jmp 0x492c52
cmp eax, ebx
jge 0x492c22
mov edx, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00414008
jmp 0x492b60
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00413ff8
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00414014
cmp ebx, eax
jne 0x492b60
push ebp
call fcn.00492ac4
pop ecx
jmp 0x492c52
push ebp
call fcn.00492ac4
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492c73
mov eax, dword [ebp - 4]
call fcn.00492210
ret
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x492c80
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 0x492da2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00492204
xor eax, eax
push ebp
push 0x492d85
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 0x492cd0
call fcn.004036e4
jmp 0x492d8c
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 0x492d6f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x492d6f
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00403088
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 0x492d6f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bbdc
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, 0x492dbc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x53c00c]
mov dl, 1
mov eax, dword [0x490eb8]
call fcn.0040c514
call fcn.00403644
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492d8c
mov eax, dword [ebp - 4]
call fcn.00492210
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492da9
lea eax, [ebp - 0x28]
call fcn.00403bf8
ret
Function at 0x492e08
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 0x492f52
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00492204
xor eax, eax
push ebp
push 0x492f35
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x492e6d
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x492e6d
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 0x492f1f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x492e80
call fcn.004036e4
jmp 0x492f3c
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 0x492f1f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x492f1f
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00403088
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 0x492f1f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bbdc
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, 0x492f6c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x53c00c]
mov dl, 1
mov eax, dword [0x490eb8]
call fcn.0040c514
call fcn.00403644
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492f3c
mov eax, dword [ebp - 4]
call fcn.00492210
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492f59
lea eax, [ebp - 0x28]
call fcn.00403bf8
ret

Function at 0x495ba0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push esp
push 0x208
call sub.kernel32.dll_GetCurrentDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.004043e0
add esp, 0x208
pop ebx
ret
Function at 0x4982a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x498503
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x498306
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00497d6c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040cd30
cmp al, 1
jne 0x498306
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00498084
test al, al
je 0x498492
cmp dword [ebp - 8], 0
jge 0x498324
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00497d6c
mov eax, dword [ebp - 0x210]
call fcn.00403e78
cmp ebx, eax
jge 0x49836e
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00497d6c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x53c298]
and eax, 0xff
bt dword [edx], eax
jae 0x49836e
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x498382
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00498280
cmp ebx, dword [ebp - 8]
je 0x498484
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4983ae
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403088
and eax, 0x7f
movzx eax, word [eax*2 + 0x50df68]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 1
xor eax, eax
push ebp
push 0x498471
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403088
and eax, 0x7f
movzx eax, word [eax*2 + 0x50df68]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00439da0
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403088
and eax, 0x7f
movzx eax, word [eax*2 + 0x50df68]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00439da0
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498478
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x218], edx
jmp 0x4984e5
cmp dword [ebp - 8], 0
jge 0x49849d
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00497d6c
mov eax, dword [ebp - 0x218]
call fcn.00403e78
cmp eax, dword [ebp - 8]
jg 0x4984d7
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00497d6c
mov eax, dword [ebp - 0x21c]
call fcn.00403e78
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00498280
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49850a
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00403c1c
ret
Function at 0x4a8c08
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a8ce0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x53dde0], 0
jne 0x4a8cc4
lea eax, [ebp - 4]
mov edx, 0x4a8cf8
call fcn.00403c90
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040403c
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4a8cc4
mov eax, ebx
call fcn.00402744
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4a8cbd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4a8ca7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4a8d08
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4a8ca7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x53dde0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8cc4
mov eax, dword [ebp - 0xc]
call fcn.0040275c
ret
mov ebx, dword [0x53dde0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8ce7
lea eax, [ebp - 4]
call fcn.00403bf8
ret

Function at 0x4bcd04
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
push eax
mov eax, dword [eax]
mov esi, edx
or ecx, ecx
je 0x4bcd28
mov edx, eax
shl edx, 8
mov bl, byte [esi]
shr eax, 0x18
xor al, bl
mov eax, dword [eax*4 + 0x50e1f4]
xor eax, edx
inc esi
dec ecx
jne 0x4bcd0f
mov ecx, eax
pop eax
mov dword [eax], ecx
pop ebx
pop esi
ret

Function at 0x4bd6d0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, ebx
and ax, 0xffff
cmp ax, 0xffff
jne 0x4bd6ff
mov eax, esi
call fcn.0040440c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4bd6ff
push 0x20
push edi
call sub.kernel32.dll_SetFileAttributesW
push ebx
mov ecx, esi
mov dl, 1
mov eax, dword [0x490b0c]
call fcn.00490c74
cmp dword [eax + 8], 0xffffffff
jne 0x4bd71b
call fcn.00402eac
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x4bec20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.0040402c
xor eax, eax
push ebp
push 0x4bed9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x1a8]
mov edx, dword [ebp - 0xc]
mov ecx, 0xff
call fcn.00403e54
lea edx, [ebp - 0x1a8]
lea eax, [ebp - 0xa8]
mov cl, 0xf
call fcn.00402a68
movzx esi, byte [ebp - 0xa8]
test esi, esi
jle 0x4bed88
cmp esi, 0xf
jle 0x4bec9e
lea eax, [ebp - 0xa8]
mov edx, 0xf
call fcn.0040296c
mov esi, 0xf
inc esi
xor edi, edi
lea ebx, [ebp - 0x58]
mov eax, edi
cdq
idiv esi
mov al, byte [ebp + edx - 0xa8]
mov byte [ebx], al
inc edi
inc ebx
cmp edi, 0x40
jne 0x4beca4
mov edi, 0x40
lea eax, [ebp - 0x58]
mov dl, byte [eax]
shl edx, 4
xor ecx, ecx
mov cl, byte [eax]
shr ecx, 4
or dl, cl
mov byte [eax], dl
inc eax
dec edi
jne 0x4becc1
mov edi, 0x3f
lea eax, [ebp - 0x57]
mov dl, byte [eax]
xor dl, byte [eax - 1]
add dl, 0x17
mov byte [eax], dl
inc eax
dec edi
jne 0x4becdd
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 4]
mov ebx, eax
cmp ebx, 4
jne 0x4bed88
cmp dword [ebp - 0x14], 0x34127859
jne 0x4bed88
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 4]
mov ebx, eax
cmp ebx, 4
jl 0x4bed88
lea eax, [ebp - 0x58]
mov edx, 0x10
call fcn.004bebb8
cmp eax, dword [ebp - 0x18]
jne 0x4bed88
lea edx, [ebp - 0x98]
mov ecx, 0x40
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 4]
mov ebx, eax
test ebx, ebx
jle 0x4bed80
mov esi, ebx
dec esi
test esi, esi
jl 0x4bed70
inc esi
lea eax, [ebp - 0x98]
lea edx, [ebp - 0x58]
mov cl, byte [eax]
sub cl, 0x11
xor cl, byte [edx]
mov byte [eax], cl
inc edx
inc eax
dec esi
jne 0x4bed62
lea edx, [ebp - 0x98]
mov ecx, ebx
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 8]
test ebx, ebx
jg 0x4bed38
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4beda5
lea eax, [ebp - 0xc]
call fcn.00403bf8
ret

Function at 0x4beee4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov ebp, edx
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov dl, 1
mov eax, dword [0x40fee4]
call fcn.00402e7c
mov esi, eax
push esi
push 0x4beecc
call sub.user32.dll_EnumWindows
mov edi, dword [esi + 8]
dec edi
test edi, edi
jl 0x4bef64
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, esi
call fcn.00411b18
cmp ebp, eax
je 0x4bef60
push 0x50
lea eax, [esp + 0xc]
push eax
mov edx, ebx
mov eax, esi
call fcn.00411b18
push eax
call sub.user32.dll_GetClassNameA
test eax, eax
jle 0x4bef60
lea eax, [esp + 8]
mov edx, dword [esp]
call fcn.0040996c
test eax, eax
jne 0x4bef60
mov edx, ebx
mov eax, esi
call fcn.00411b18
mov dword [esp + 4], eax
jmp 0x4bef64
inc ebx
dec edi
jne 0x4bef1a
mov eax, esi
call fcn.00402eac
mov eax, dword [esp + 4]
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4bf088
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
xor edx, edx
mov dword [ebp - 0x88], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4bf10d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x21
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x83]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4bf0f4
lea eax, [ebp - 0x83]
call fcn.00409840
mov byte [ebp - 0x84], al
lea eax, [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.00403e1c
mov eax, dword [ebp - 0x88]
mov edx, ebx
call fcn.00408ac4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf114
lea eax, [ebp - 0x88]
call fcn.00403bf8
ret

Function at 0x4bf3bc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4bf4d2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [esi]
mov eax, 0x4bf4e8
call fcn.00404164
mov ebx, eax
test ebx, ebx
je 0x4bf4b1
cmp ebx, dword [ebp - 8]
je 0x4bf4b1
mov dword [ebp - 8], ebx
mov eax, esi
mov ecx, 1
mov edx, ebx
call fcn.004040c0
mov edx, dword [esi]
mov eax, 0x4bf4e8
call fcn.00404164
mov edi, eax
test edi, edi
je 0x4bf4b1
lea eax, [ebp - 4]
push eax
mov ecx, edi
sub ecx, ebx
mov eax, dword [esi]
mov edx, ebx
call fcn.00404080
mov ecx, edi
sub ecx, ebx
inc ecx
mov eax, esi
mov edx, ebx
call fcn.004040c0
cmp dword [ebp - 4], 0
je 0x4bf3e8
push 0x4bf4e8
push dword [ebp - 4]
push 0x4bf4e8
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403f38
push 0x104
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 4]
call fcn.00404048
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x10c]
mov ecx, 0x104
call fcn.00403e28
mov eax, dword [ebp - 0x110]
mov edx, esi
mov ecx, ebx
call fcn.00404108
jmp 0x4bf3e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf4d9
lea eax, [ebp - 0x110]
call fcn.00403bf8
lea eax, [ebp - 4]
call fcn.00403bf8
ret

Function at 0x4bf724
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov edi, eax
mov esi, edx
mov ecx, ecx
shr ecx, 2
cld
lodsd eax, dword [esi]
xor dword [edi], eax
add edi, 4
loop 0x4bf730
pop esi
pop edi
ret
Function at 0x4c0288
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test bl, bl
je 0x4c02a5
test byte [esi + 0x20], 0x10
je 0x4c02a5
mov eax, 0x4c0314
call fcn.004589d8
jmp 0x4c0306
cmp bl, byte [esi + 0x28]
je 0x4c0306
test bl, bl
je 0x4c02de
test byte [esi + 0x20], 0x10
jne 0x4c0303
mov cl, 1
mov dl, 1
mov eax, dword [0x4bfffc]
call fcn.00418c1c
mov edi, eax
mov dword [esi + 0x48], edi
mov dword [edi + 0x30], esi
mov byte [edi + 0xe], 1
mov eax, edi
call fcn.00418d58
mov eax, esi
call fcn.004c0338
jmp 0x4c0303
test byte [esi + 0x20], 0x10
jne 0x4c0303
mov eax, dword [esi + 0x24]
push eax
call sub.winmm.dll_timeKillEvent
push 0
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [esi + 0x48]
call fcn.00402eac
mov byte [esi + 0x28], bl
pop edi
pop esi
pop ebx
ret

Function at 0x4cbe20
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
xor ecx, ecx
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040402c
xor eax, eax
push ebp
push 0x4cbfde
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 4]
push 0x4cbff4
lea edx, [ebp - 0x16c]
mov eax, ebx
call fcn.00408ff0
push dword [ebp - 0x16c]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403f38
mov edx, dword [ebp - 8]
mov eax, dword [0x53def8]
call fcn.0049095c
test eax, eax
jl 0x4cbea5
mov edx, eax
mov eax, dword [0x53def8]
call fcn.004908f4
mov ebx, eax
mov ebx, dword [ebx + 4]
jmp 0x4cbfb3
push 0x111
push 0x160
lea eax, [ebp - 0x168]
push eax
push ebx
lea eax, [ebp - 0x170]
mov ecx, dword [ebp - 4]
mov edx, 0x4cc000
call fcn.00403ec4
mov eax, dword [ebp - 0x170]
call fcn.0040403c
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4cbf7a
mov eax, dword [ebp - 0x168]
call fcn.004cbdec
mov ebx, eax
test ebx, ebx
je 0x4cbefc
mov ebx, dword [ebx + 4]
jmp 0x4cbfb3
mov dl, 1
mov eax, dword [0x41ac34]
call fcn.004227f4
mov ebx, eax
mov edx, dword [ebp - 0x168]
mov eax, ebx
call fcn.00422bc4
mov eax, dword [0x50e6bc]
mov eax, dword [eax + 0x2f4]
mov edx, ebx
call fcn.0043fc68
mov eax, ebx
call fcn.00402eac
mov edx, dword [0x4cbda4]
mov eax, 0xc
call fcn.00404a7c
mov ebx, eax
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00403c4c
mov eax, dword [0x50e6bc]
mov eax, dword [eax + 0x2f4]
call fcn.0043fcb4
dec eax
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x168]
mov dword [ebx + 8], eax
mov edx, ebx
mov eax, dword [0x53def8]
call fcn.00490908
mov ebx, dword [ebx + 4]
jmp 0x4cbfb3
mov edx, dword [0x4cbda4]
mov eax, 0xc
call fcn.00404a7c
mov ebx, eax
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00403c4c
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 8], 0xffffffff
mov edx, ebx
mov eax, dword [0x53def8]
call fcn.00490908
mov ebx, dword [ebx + 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cbfe5
lea eax, [ebp - 0x170]
mov edx, 2
call fcn.00403c1c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403c1c
ret
Function at 0x4cc42c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0
push 0x10
lea eax, [esp + 8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
test eax, eax
je 0x4cc459
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00403e28
jmp 0x4cc460
mov eax, ebx
call fcn.00403bf8
add esp, 0x108
pop ebx
ret
Function at 0x4d36cc
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040402c
xor eax, eax
push ebp
push 0x4d382f
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
mov esi, 0x4d3840
lea edi, [ebp - 0x54]
mov ecx, 3
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
mov edi, 0xe
xor ebx, ebx
lea ecx, [ebp - 0x44]
mov eax, ebx
cdq
idiv edi
mov al, byte [ebp + edx - 0x54]
mov byte [ecx], al
inc ebx
inc ecx
cmp ebx, 0x40
jne 0x4d3715
mov ebx, 0x40
lea edi, [ebp - 0x44]
mov al, byte [edi]
mov edx, eax
shl edx, 4
and eax, 0xff
shr eax, 4
or dl, al
mov byte [edi], dl
inc edi
dec ebx
jne 0x4d372f
mov ebx, 0x3f
lea eax, [ebp - 0x43]
mov dl, byte [eax]
xor dl, byte [eax - 1]
add dl, 0x17
mov byte [eax], dl
inc eax
dec ebx
jne 0x4d374e
mov eax, dword [ebp - 4]
mov al, byte [eax]
xor al, byte [ebp - 0x44]
mov edx, dword [ebp - 4]
add al, byte [edx + 0xb]
mov edx, dword [ebp - 4]
mov byte [edx], al
mov ebx, 1
lea eax, [ebp - 0x43]
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx]
xor dl, byte [eax]
mov ecx, dword [ebp - 4]
add dl, byte [ecx + ebx - 1]
mov ecx, dword [ebp - 4]
mov byte [ecx + ebx], dl
inc ebx
inc eax
cmp ebx, 0xc
jne 0x4d3777
mov eax, dword [ebp - 4]
mov al, byte [eax]
xor al, byte [ebp - 0x44]
mov edx, dword [ebp - 4]
add al, byte [edx + 0xb]
mov edx, dword [ebp - 4]
mov byte [edx], al
mov ebx, 1
lea eax, [ebp - 0x43]
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx]
xor dl, byte [eax]
mov ecx, dword [ebp - 4]
add dl, byte [ecx + ebx - 1]
mov ecx, dword [ebp - 4]
mov byte [ecx + ebx], dl
inc ebx
inc eax
cmp ebx, 0xc
jne 0x4d37ae
mov eax, esi
call fcn.00403bf8
xor ebx, ebx
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx]
call fcn.004d36a8
mov edx, eax
lea eax, [ebp - 0x58]
call fcn.00403da0
mov edx, dword [ebp - 0x58]
mov eax, esi
call fcn.00403e80
inc ebx
cmp ebx, 0xc
jne 0x4d37d3
lea edx, [ebp - 0x5c]
mov eax, dword [esi]
call fcn.00408ac4
mov edx, dword [ebp - 0x5c]
mov eax, esi
call fcn.00403c4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3836
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00403c1c
lea eax, [ebp - 4]
call fcn.00403bf8
ret

Function at 0x4de920
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x4de92f
or edx, 0x200
test eax, 0x20000000
je 0x4de963
test eax, 0x40000000
je 0x4de94e
test eax, 0x80000000
je 0x4de949
or edx, 0x40
jmp 0x4de98a
or edx, 0x20
jmp 0x4de98a
test eax, 0x80000000
je 0x4de95d
or edx, 0x80
jmp 0x4de98a
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x4de97b
test eax, 0x80000000
je 0x4de976
or edx, 4
jmp 0x4de98a
or edx, 2
jmp 0x4de98a
test eax, 0x80000000
je 0x4de987
or edx, 8
jmp 0x4de98a
or edx, 1
mov eax, edx
ret