joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8014
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4b8026
add esp, 0xfffffff0
call fcn.0040592c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004475a8
mov eax, dword [0x4d3238]
mov dword [eax + 4], ebx
mov dword [eax], 0x4b8450
mov eax, dword [0x4d3244]
mov dword [eax + 4], ebx
mov dword [eax], 0x4b845c
mov eax, ebx
call fcn.004b8468
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x42ff6c]
call fcn.004053e4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x42ff6c]
call fcn.004053e4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x42ff6c]
call fcn.004053e4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x42ff6c]
call fcn.004053e4
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x42ff6c]
call fcn.004053e4
mov dword [ebx + 0x78], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x44], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x5c]
push eax
mov eax, 0x4b2e8c
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x44ea08]
call fcn.00453c9c
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x44ea08]
call fcn.00453c9c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x44ea08]
call fcn.00453c9c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x44ea08]
call fcn.00453c9c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x44ea08]
call fcn.00453c9c
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004b89c0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b8830
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b8830
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b8830
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b8830
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b8830
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4b819d
call fcn.00405984
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4b85d0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b877b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4b875c
mov dl, 1
mov eax, dword [0x432748]
call fcn.0043edf8
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.00406e1c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4b874b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0047cb00
test al, al
je 0x4b873e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4b878c
lea eax, [ebp - 0x394]
call fcn.0041cd84
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4b873e
xor eax, eax
push ebp
push 0x4b8737
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4b87fc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4b8720
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040790c
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jne 0x4b8720
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040790c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b873e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4b8641
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0043ed34
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8782
lea eax, [ebp - 0x3a0]
call fcn.00406e1c
ret

Function at 0x4b92d8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4d924c]
cmp byte [eax + 0xad], 0
jne 0x4b934a
cmp dword [0x4d9264], 0
jne 0x4b930a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4d3014]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4d9264], eax
cmp dword [0x4d9260], 0
jne 0x4b9325
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4d9260], eax
cmp dword [0x4d9268], 0
jne 0x4b934a
push esp
push 0
push 0
mov eax, dword [0x4d3010]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4d9268], eax
pop edx
ret
Function at 0x4b9660
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4b9677
add esp, 0xfffffff0
call fcn.0040592c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004475a8
mov eax, dword [0x4d3178]
cmp byte [eax], 0
jne 0x4b96a4
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4d33b8]
cmp word [eax + 2], 0
jne 0x4b96be
mov eax, dword [0x4d33b8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004bb728
mov eax, dword [0x4d348c]
cmp word [eax + 2], 0
jne 0x4b96d8
mov eax, dword [0x4d348c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004bb92c
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x44ea08]
call fcn.00453c9c
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4bbea4
mov dl, 1
mov eax, dword [0x42ff6c]
call fcn.004053e4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x42ff6c]
call fcn.004053e4
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x452300]
call fcn.0045aae4
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4b98b8
mov eax, dword [0x4d32b4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0045af78
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4bc18c
mov dl, 1
mov eax, dword [0x42ff6c]
call fcn.004053e4
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4d32b4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041cb44
test eax, eax
je 0x4b97e9
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041c8f8
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041cb28
test eax, eax
je 0x4b9801
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040790c
push ebx
push 0x4bb114
call fcn.004af470
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4d3178]
cmp byte [eax], 0
jne 0x4b9852
mov eax, ebx
call fcn.004b9a2c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004bc3b8
mov eax, ebx
call fcn.004bcfe8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4b98af
call fcn.00405984
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b9cf8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4b9d9a
cmp dword [ebx + 0x94], 0
jne 0x4b9d94
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4b9c44
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4b9d94
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_GetWindowLongW
test al, 8
je 0x4b9d5a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4b9d94
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.0043b2d8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4b9d69
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4d924c]
cmp dword [eax + 0x170], 0
je 0x4ba11d
test bl, bl
jne 0x4ba06b
cmp dword [esi + 0x9c], 0
jne 0x4ba060
mov eax, esi
call fcn.004bce38
push eax
push 0x4b9ec4
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4ba031
mov eax, dword [0x4d924c]
cmp byte [eax + 0xd3], 0
je 0x4ba031
mov eax, dword [esi + 0xd8]
call fcn.004087ec
mov edi, eax
cmp edi, 0
jl 0x4ba031
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4ba01a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4ba060
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043b2d8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4ba040
inc dword [esi + 0x9c]
jmp 0x4ba11d
cmp dword [esi + 0x9c], 0
jle 0x4ba11d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4ba11d
cmp dword [esi + 0x44], 0
je 0x4ba0c8
mov eax, dword [0x4d924c]
cmp byte [eax + 0xd3], 0
je 0x4ba0c8
mov eax, dword [esi + 0xd8]
call fcn.004087ec
mov edi, eax
cmp edi, 0
jl 0x4ba0c8
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4ba0b1
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4ba0f7
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043b2d8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4ba0d7
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4ad348]
call fcn.004089ac
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4bad60
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4badcb
cmp byte [ebx + 0xd3], 0
jne 0x4badcb
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406f84
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4badb8
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4badd8
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004071dc
jmp 0x4badd8
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004071dc
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4bc5a0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4bc60e
mov eax, esi
call fcn.00476a84
test al, al
je 0x4bc60e
mov eax, dword [ebx + 0x84]
call fcn.004766d8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4bc60e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4bc602
push 0
mov eax, dword [ebx + 0x84]
call fcn.004766d8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0046d654
jmp 0x4bc60e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004bc3d8
pop esi
pop ebx
ret

Function at 0x4bfa2c
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
cmp byte [ebx + 0x34], 0
jne 0x4bfaac
movzx eax, word [ebx + 0x42]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [eax*4 + 0x4d30b4]
push eax
movzx eax, byte [ebx + 0x40]
mov eax, dword [eax*4 + 0x4d3054]
push eax
call sub.wsock32.dll_socket
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov esi, eax
mov dword [ebx + 0x44], esi
inc esi
setne al
mov byte [ebx + 0x34], al
test al, al
je 0x4bfaac
cmp byte [ebx + 0x35], 1
jne 0x4bfa97
mov dword [esp], 1
push esp
push 0x8004667e
mov eax, dword [ebx + 0x44]
push eax
call sub.wsock32.dll_ioctlsocket
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
xor eax, eax
mov dword [ebx + 0x38], eax
xor eax, eax
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov si, 0xfff0
call fcn.0040569c
pop edx
pop esi
pop ebx
ret

Function at 0x4bfb00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
push edi
push esi
mov eax, dword [ebx + 0x44]
push eax
call sub.wsock32.dll_recv
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
pop edi
pop esi
pop ebx
ret
Function at 0x4bfc80
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
je 0x4bfe02
cmp dword [ebp - 8], 0
je 0x4bfcd1
lea ebx, [ebp - 0x120]
lea eax, [ebp - 0x120]
call fcn.004bd718
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004bd708
jmp 0x4bfcd3
xor ebx, ebx
cmp dword [ebp - 0xc], 0
je 0x4bfcfd
lea esi, [ebp - 0x224]
lea eax, [ebp - 0x224]
call fcn.004bd718
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004bd708
jmp 0x4bfcff
xor esi, esi
cmp dword [ebp + 0xc], 0
je 0x4bfd2c
lea eax, [ebp - 0x328]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x328]
call fcn.004bd718
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004bd708
jmp 0x4bfd31
xor eax, eax
mov dword [ebp - 0x10], eax
test edi, edi
jl 0x4bfd5d
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x4bfd62
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4bfda2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
inc eax
push eax
call sub.wsock32.dll_select
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
setg al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bfdae
cmp dword [ebp - 8], 0
je 0x4bfdca
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004bd6f0
mov edx, dword [ebp - 8]
mov byte [edx], al
cmp dword [ebp - 0xc], 0
je 0x4bfde6
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004bd6f0
mov edx, dword [ebp - 0xc]
mov byte [edx], al
cmp dword [ebp + 0xc], 0
je 0x4bfe02
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004bd6f0
mov edx, dword [ebp + 0xc]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea ecx, [ebp - 4]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x38]
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 0x44]
push eax
call sub.wsock32.dll_send
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
cmp eax, 0xffffffff
je 0x4bfe4d
add dword [ebx + 0x3c], eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x4c0264
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x4c0347
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00406e40
test ebx, ebx
je 0x4c0325
movzx eax, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x4c02bb
mov eax, ebx
call fcn.00407604
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x4c0331
mov eax, esi
mov edx, ebx
call fcn.00407278
jmp 0x4c0331
mov eax, ebx
call fcn.00407604
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4c0331
mov ebx, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
movzx eax, byte [edi]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
movzx eax, byte [edi + 1]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
movzx eax, byte [edi + 2]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
movzx eax, byte [edi + 3]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x24]
mov ecx, 3
mov eax, 0x4c0364
call fcn.0041ce48
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, 0
call fcn.0040768c
jmp 0x4c0331
mov eax, esi
mov edx, 0x4c0388
call fcn.00407278
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c034e
lea eax, [ebp - 4]
call fcn.00406e1c
ret

Function at 0x4c04b8
Capabilities:
Get hostname

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00406e40
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jne 0x4c04f7
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
push 0
call fcn.00407508
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x401100
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x164
mov ecx, dword [esp + 0x168]
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x70]
push 0x104
push eax
push 0x3e8
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x21
push str.SKPlayer
push str.Remove_fade_to_black_
push 0
call ebx
cmp eax, 2
je 0x40131e
push 0
push 0x80
push 3
push 0
push 1
lea edx, [esp + 0x84]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40117f
push str.Could_not_open_demo_file
jmp 0x401316
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x401311
test edi, edi
je 0x401311
push 0
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call fcn.00403f65
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], edi
je 0x4011e6
push 0x40
push str.SKPlayer
push str.Could_not_read_file_to_memory
push 0
call ebx
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x164
ret
lea eax, [edi - 0xb]
test eax, eax
jbe 0x4012a2
mov edx, 1
mov ebx, 0xfffffff7
sub edx, esi
sub ebx, esi
lea ecx, [esi + 9]
mov dword [esp + 0x18], ebx
jmp 0x40120c
mov ebx, dword [esp + 0x18]
cmp byte [ecx - 9], 0x62
mov al, 0x30
jne 0x40128e
cmp byte [ecx - 8], 0
jne 0x40128e
cmp byte [ecx - 7], al
jne 0x40128e
cmp byte [ecx - 6], 0
jne 0x40128e
cmp byte [ecx - 5], al
jne 0x40128e
cmp byte [ecx - 4], 5
jne 0x40128e
mov al, byte [ecx - 3]
test al, al
jne 0x40128e
mov al, byte [ecx - 2]
test al, al
jne 0x40128e
mov al, byte [ecx - 1]
test al, al
jne 0x40128e
cmp byte [ecx], 0
jne 0x40128e
cmp byte [ecx + 1], 0xff
jne 0x40128e
lea eax, [edx + ecx - 0xa]
mov byte [eax + esi], 1
inc eax
mov byte [eax + esi], 1
inc eax
mov byte [eax + esi], 1
inc eax
mov byte [eax + esi], 1
inc eax
mov byte [eax + esi], 1
inc eax
mov byte [eax + esi], 1
inc eax
mov byte [eax + esi], 1
inc eax
mov byte [eax + esi], 1
inc eax
mov byte [eax + esi], 1
inc eax
mov byte [eax + esi], 1
mov byte [eax + esi + 1], 1
inc dword [esp + 0x14]
inc ecx
lea eax, [edi - 0xb]
add ebx, ecx
cmp ebx, eax
jb 0x401208
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x10]
push 0
push ecx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], edi
je 0x4012cc
push str.Could_not_write_content_to_file
jmp 0x401316
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push str.Fade_to_black_removed_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0x21
push str.SKPlayer
push ecx
push 0
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00403f36
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
push str.Could_not_open_demo_file__reason_2_
call fcn.00401090
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x164
ret