joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47774c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4778b5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404928
mov eax, dword [ebp - 0x10]
call fcn.0047739c
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x47779e
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404de0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00477b34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x477873
xor eax, eax
push ebp
push 0x47786c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00477548
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004778c4
test al, al
je 0x47784a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404980
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x47784a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404d40
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x477844
mov eax, dword [ebp - 0x14]
call fcn.00404d40
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404a80
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0047774c
dec ebx
cmp ebx, 0xffffffff
jne 0x4777fd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477873
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00477548
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404d40
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00477534
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4778bc
lea eax, [ebp - 0x3c]
call fcn.00404890
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004048b4
ret
Function at 0x477873
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4778b5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404928
mov eax, dword [ebp - 0x10]
call fcn.0047739c
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x47779e
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404de0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00477b34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x477873
xor eax, eax
push ebp
push 0x47786c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00477548
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004778c4
test al, al
je 0x47784a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404980
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x47784a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404d40
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x477844
mov eax, dword [ebp - 0x14]
call fcn.00404d40
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404a80
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0047774c
dec ebx
cmp ebx, 0xffffffff
jne 0x4777fd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477873
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00477548
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404d40
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00477534
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4778bc
lea eax, [ebp - 0x3c]
call fcn.00404890
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004048b4
ret

Function at 0x4778c4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00403308
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x511e2c]
cmp byte [edx + 0xc], 0
je 0x477928
mov edx, dword [0x511e24]
cmp dword [edx], 2
jne 0x477928
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x477a48
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004773b0
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404d40
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x477aa6
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x511b78]
mov dl, 1
mov eax, dword [0x47723c]
call fcn.0040d564
call fcn.0040426c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x477ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404d40
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x477b08
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x511e38]
mov dl, 1
mov eax, dword [0x47723c]
call fcn.0040d564
call fcn.0040426c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004773e0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47aa3c
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 0x47ab14
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x512cd0], 0
jne 0x47aaf8
lea eax, [ebp - 4]
mov edx, 0x47ab2c
call fcn.00404928
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404d40
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x47aaf8
mov eax, ebx
call fcn.004027bc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47aaf1
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 0x47aadb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47ab3c
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47aadb
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x512cd0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47aaf8
mov eax, dword [ebp - 0xc]
call fcn.004027dc
ret
mov ebx, dword [0x512cd0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ab1b
lea eax, [ebp - 4]
call fcn.00404890
ret

Function at 0x481e44
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x512cf4], 0
jne fcn.00481e67
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x481db8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x512cf4], eax
Function at 0x488cc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, ecx
mov dword [ebp - 8], eax
dec edx
mov eax, edx
shl eax, 2
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x488d2d
xor eax, eax
push ebp
push 0x488d26
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488d2d
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_VirtualProtect
ret
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48a208
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
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 0x48a468
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x48a26b
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00489cd0
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040dd38
cmp al, 1
jne 0x48a26b
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00489fe8
test al, al
je 0x48a3f7
cmp dword [ebp - 8], 0
jge 0x48a289
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.00489cd0
mov eax, dword [ebp - 0x210]
call fcn.00404b48
cmp ebx, eax
jge 0x48a2d3
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00489cd0
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x511e0c]
and eax, 0xff
bt dword [edx], eax
jae 0x48a2d3
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x48a2e7
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0048a1e4
cmp ebx, dword [ebp - 8]
je 0x48a3e9
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 0x48a313
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c9c
and eax, 0x7f
movzx eax, word [eax*2 + 0x50f074]
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 + 0x23c], 1
xor eax, eax
push ebp
push 0x48a3d6
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c9c
and eax, 0x7f
movzx eax, word [eax*2 + 0x50f074]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00451810
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c9c
and eax, 0x7f
movzx eax, word [eax*2 + 0x50f074]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00451810
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a3dd
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x48a44a
cmp dword [ebp - 8], 0
jge 0x48a402
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00489cd0
mov eax, dword [ebp - 0x218]
call fcn.00404b48
cmp eax, dword [ebp - 8]
jg 0x48a43c
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00489cd0
mov eax, dword [ebp - 0x21c]
call fcn.00404b48
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0048a1e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a46f
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004048b4
ret
Function at 0x497f50
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 0x4980c1
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 0x49809c
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.00404a70
lea eax, [ebp - 0x118]
mov edx, 0x4980d8
call fcn.00404b50
mov eax, dword [ebp - 0x118]
call fcn.00404d40
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x49800e
lea eax, [ebp - 0x111]
call fcn.00409efc
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404980
jmp 0x498015
mov eax, esi
call fcn.00404890
cmp bl, 0x61
jae 0x498036
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040e1c4
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.004048e4
jmp 0x498050
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040e138
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.004048e4
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, 0x4980e4
call fcn.0040a694
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.004048e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4980a3
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
Function at 0x49bb14
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
xor edx, edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49bcdf
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x40], 0
je 0x49bb4f
cmp byte [ebx + 0x41], 0
jne 0x49bb4f
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x49bb7b
cmp byte [ebx + 0x41], 1
jne 0x49bb69
lea eax, [ebp - 0x24]
push eax
push 0x12
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.004952a0
jmp 0x49bb7b
lea eax, [ebp - 0x24]
push eax
push 0x11
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.004952a0
xor edx, edx
push ebp
push 0x49bcba
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x48]
mov edx, 0x104
call fcn.00404ecc
mov eax, dword [ebx + 0x48]
call fcn.00404d40
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x44], 0
je 0x49bbb4
mov eax, dword [ebx + 0x44]
call fcn.00404d40
mov dword [ebp - 0x1c], eax
jmp 0x49bbb9
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp byte [ebx + 0x41], 1
jne 0x49bbc8
mov dword [ebp - 0x18], 0x1000
jmp 0x49bbcf
mov dword [ebp - 0x18], 9
mov dword [ebp - 0x14], 0x49b73c
mov dword [ebp - 0x10], ebx
mov eax, dword [0x511c04]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0049bcf0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x49bc9f
xor eax, eax
push ebp
push 0x49bc98
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x41], 0
jne 0x49bc65
lea eax, [ebp - 0x12d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
call fcn.0040eb08
lea edx, [ebp - 0x138]
lea eax, [ebp - 0x12d]
call fcn.0040a118
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0049be48
mov edx, dword [ebp - 0x134]
lea eax, [ebx + 0x50]
call fcn.004048e4
jmp 0x49bc70
lea eax, [ebx + 0x50]
mov edx, dword [ebx + 0x48]
call fcn.004048e4
lea eax, [ebx + 0x4c]
mov edx, dword [ebx + 0x50]
call fcn.004048e4
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x54], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bc9f
mov eax, dword [ebp - 8]
push eax
call sub.ole32.dll_CoTaskMemFree
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bcc1
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x49bcb9
push eax
call sub.ole32.dll_CoTaskMemFree
ret

Function at 0x49bea8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d30
xor eax, eax
push ebp
push 0x49bef9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404d40
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x49bedd
test al, 0x10
jne 0x49bee1
xor ebx, ebx
jmp 0x49bee3
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bf00
lea eax, [ebp - 4]
call fcn.00404890
ret
Function at 0x4a1f14
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a1fe8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xa50]
test eax, eax
je 0x4a1f43
push eax
call sub.wsock32.dll_closesocket
call sub.wsock32.dll_WSACleanup
lea eax, [ebx + 0x874]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4a1faf
xor eax, eax
push ebp
push 0x4a1f99
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0xa50], esi
inc esi
jne 0x4a1f8f
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.004a23b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a1fbd
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.004a23b8
mov eax, dword [ebp - 4]
mov dword [ebx + 0x840], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1fef
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004048b4
ret

Function at 0x4a21f8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7fc
mov esi, edx
mov ebx, eax
xor edi, edi
jmp 0x4a227a
test edi, edi
jle 0x4a2225
mov ecx, 0x4a2374
mov dl, 1
mov eax, dword [0x4081f0]
call fcn.0040d46c
call fcn.0040426c
jmp 0x4a227a
cmp word [ebx + 0xa42], 0
jne 0x4a2247
mov ecx, 0x4a2374
mov dl, 1
mov eax, dword [0x4081f0]
call fcn.0040d46c
call fcn.0040426c
jmp 0x4a227a
mov byte [esp], 0
mov edx, esp
mov ecx, esi
mov eax, dword [ebx + 0xa44]
call dword [ebx + 0xa40]
cmp byte [esp], 0
jne 0x4a2279
mov ecx, 0x4a2374
mov dl, 1
mov eax, dword [0x4081f0]
call fcn.0040d46c
call fcn.0040426c
jmp 0x4a227a
inc edi
mov eax, esi
call fcn.0041bfec
cmp edx, 0
jne 0x4a2289
cmp eax, 0
je 0x4a2209
mov byte [ebx + 0x870], 0
mov eax, ebx
call fcn.004a2084
cmp dword [ebx + 0x848], 0
jne 0x4a22bc
mov ecx, 0x4a238c
mov dl, 1
mov eax, dword [0x4a198c]
call fcn.0040d46c
call fcn.0040426c
mov ecx, 0x4a23a8
mov dl, 2
mov eax, ebx
call fcn.004a257c
mov word [ebx + 0x844], 2
mov ax, word [ebx + 0x83c]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0x846], ax
mov edi, 0x10
push 0
push 0
mov eax, esi
call fcn.0041bfd8
mov eax, esi
call fcn.0041bfec
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x4a230c
call fcn.004039e0
mov ecx, eax
lea edx, [esp + 1]
mov eax, esi
call fcn.0041c1e4
push edi
lea eax, [ebx + 0x844]
push eax
push 0
mov eax, esi
call fcn.0041bfec
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x4a2338
call fcn.004039e0
push eax
lea eax, [esp + 0x11]
push eax
mov eax, dword [ebx + 0xa50]
push eax
call sub.wsock32.dll_sendto
cmp word [ebx + 0xa32], 0
je 0x4a2362
mov edx, ebx
mov eax, dword [ebx + 0xa34]
call dword [ebx + 0xa30]
add esp, 0x804
pop edi
pop esi
pop ebx
ret
Function at 0x4a263c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a2710
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x800
lea eax, [ebx + 0x30]
push eax
mov eax, dword [ebx + 0xa50]
push eax
call sub.wsock32.dll_recvfrom
mov dword [ebx + 0x834], eax
cmp word [ebx + 0xa2a], 0
je 0x4a26fa
lea eax, [ebp - 8]
push eax
xor eax, eax
mov al, byte [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebp - 0x13]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebp - 0x12]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x38]
mov ecx, 3
mov eax, 0x4a2724
call fcn.0040a694
mov ax, word [ebp - 0x16]
push eax
call sub.wsock32.dll_ntohs
mov edx, dword [ebp - 8]
push edx
movzx eax, ax
push eax
mov ecx, dword [ebx + 0x834]
mov edx, ebx
mov eax, dword [ebx + 0xa2c]
call dword [ebx + 0xa28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2717
lea eax, [ebp - 8]
call fcn.00404890
ret
Function at 0x4a49b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x34]
sub esi, dword [ebx + 0x6c]
sub esi, dword [ebx + 0x64]
test esi, esi
jne 0x4a49da
cmp dword [ebx + 0x64], 0
jne 0x4a49da
cmp dword [ebx + 0x6c], 0
jne 0x4a49da
mov esi, edi
jmp 0x4a4a69
cmp esi, 0xffffffff
jne 0x4a49e5
dec esi
jmp 0x4a4a69
mov eax, dword [ebx + 0x64]
mov edx, edi
sub edx, 0x106
add edx, edi
cmp eax, edx
jb 0x4a4a69
mov eax, dword [ebx + 0x30]
lea edx, [eax + edi]
mov ebp, edi
mov ecx, ebp
call fcn.004a2dc8
sub dword [ebx + 0x68], edi
sub dword [ebx + 0x64], edi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x4a4a31
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x4a4a36
mov word [edx], 0
dec eax
test eax, eax
jne 0x4a4a17
mov eax, edi
mov edx, dword [ebx + 0x38]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x4a4a5d
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x4a4a62
mov word [edx], 0
dec eax
test eax, eax
jne 0x4a4a43
add esi, edi
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x4a4ac7
mov edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x30]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.004a4730
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x4a4ab2
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x30]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x4a4ac7
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4a49ba
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret