joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100967f
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x1002adc
push 1
push 0
push 0x1002aec
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x100976b
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test byte [esi + 4], 2
je 0x10096d1
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test byte [esi + 4], 1
je 0x10096e3
mov eax, dword [ebp - 4]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test byte [esi + 4], 4
je 0x10096f8
push dword [esi + 0x18]
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
test byte [esi + 4], 8
je 0x100970a
mov eax, dword [ebp - 4]
push dword [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test byte [esi + 4], 0x20
je 0x100971c
mov eax, dword [ebp - 4]
push dword [esi + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
test byte [esi + 4], 0x10
je 0x1009732
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
xor edx, edx
mov dx, word [esi + 0x20]
push edx
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x1002b2c
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x1009762
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 8]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
leave
ret 8

Function at 0x100977d
Capabilities:
Delete file
Get common file path
Get startup folder

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1012288]
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push 7
push eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x1009845
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1009816
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x212], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x10097fa
push 0x1001b64
lea eax, [ebp - 0x210]
push eax
call esi
push 0x1002598
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x1009845
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x218]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
call fcn.0100ecf8
leave
ret
Function at 0x1009956
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1012288]
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push 7
push eax
xor ebx, ebx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x1009a4b
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1009a1c
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x212], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x10099da
push 0x1001b64
lea eax, [ebp - 0x210]
push eax
call edi
push 0x1002598
lea eax, [ebp - 0x210]
push eax
call edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x238], 2
mov dword [ebp - 0x230], esi
call fcn.0100967f
test eax, eax
pop edi
jl 0x1009a1c
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x1009a4b
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x218]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
pop ebx
call fcn.0100ecf8
leave
ret
Function at 0x1009a5e
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
sub eax, esi
je 0x1009a76
dec eax
jne 0x1009a7d
mov dword [ebp + 8], esi
jmp 0x1009a7d
mov dword [ebp + 8], 2
call fcn.01009573
push 0x209
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x1009bb1
push ebx
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [0x1011090]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 0x208]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x1009b3d
push edi
push dword [0x1011090]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, 0x10025dc
push edi
push ebx
call esi
push 0x1001f24
push ebx
call esi
push edi
push ebx
call esi
mov eax, dword [0x1011030]
mov eax, dword [eax + 0x14f8]
test eax, 0x200000
pop edi
je 0x1009b0c
push 0x1001f1c
jmp 0x1009b34
test eax, 0x400000
je 0x1009b1a
push 0x1001f10
jmp 0x1009b34
test eax, 0x800000
je 0x1009b28
push 0x1001f00
jmp 0x1009b34
test eax, 0x2000000
je 0x1009b37
push 0x1001ef8
push ebx
call esi
mov eax, ebx
xor esi, esi
jmp 0x1009b42
mov eax, dword [0x1011090]
push eax
push dword [ebp - 4]
call fcn.01009956
test eax, eax
pop ecx
pop ecx
jne 0x1009b69
push 0x10010
push 0x1f4
call fcn.0100b1e9
pop ecx
push eax
push 0x1fc
jmp 0x1009b96
call fcn.01009854
test eax, eax
je 0x1009b80
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1009ba4
push 0x10010
push 0x1f4
call fcn.0100b1e9
pop ecx
push eax
push 0x1fd
call fcn.0100b1e9
pop ecx
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp ebx, esi
je 0x1009bb0
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ebx
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x1009d9b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002628
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009e00
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x100260c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1009df7
cmp dword [ebp - 8], 1
jne 0x1009df7
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x100b281
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x10017e0
push 0x80000001
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100b2de
push 4
lea eax, [ebp - 0xc]
push eax
push 3
push esi
push 0x100286c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x100b64d
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1012288]
push edi
push 0x45
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
pop edi
jne 0x100b69d
cmp dword [ebp - 0x114], 5
jb 0x100b69d
xor eax, eax
inc eax
jmp 0x100b69f
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.0100ecf8
leave
ret

Function at 0x100b702
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1012288]
push esi
push edi
push 0x45
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
push eax
xor esi, esi
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100b761
cmp dword [ebp - 0x108], 2
jne 0x100b761
cmp dword [ebp - 0x114], 5
ja 0x100b75e
jne 0x100b761
cmp dword [ebp - 0x110], 1
jb 0x100b761
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.0100ecf8
leave
ret
Function at 0x100c2d0
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1012288]
mov dword [ebp - 4], eax
mov eax, dword [0x1011030]
test byte [eax + 0x14f9], 1
push ebx
mov ebx, ecx
je 0x100c31a
add eax, 0x6aa
push eax
push 0x30c
add ebx, 0x54
push ebx
push 0x1002a0c
push 0x10029c8
push 0x1001f94
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x100c38d
and dword [ebp - 0x20c], 0
push esi
push edi
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x208]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1001b64
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x10022b8
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x30c
add ebx, 0x54
push ebx
push 0x1002a0c
push 0x10029c8
push 0x1002294
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0100ecf8
leave
ret

Function at 0x100c3c4
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
je 0x100c415
push ebx
push edi
push dword [esi + 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
lea ebx, [esi + 0x44]
push dword [ebx]
call edi
push ebx
push esi
xor eax, eax
push eax
push eax
push eax
push 1
push eax
push eax
add esi, 0x54
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop ebx
jmp 0x100c425
push 0
push 0x100c39d
push dword [esi + 0x50]
call dword [sym.imp.USER32.dll_EnumThreadWindows]
pop esi
leave
ret

Function at 0x100eecd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002b68
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100ef25
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x100215a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100ef18
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100ef27
xor eax, eax
pop esi
leave
ret 4
Function at 0x4039b0
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x4039c4
inc dword [0x4bb620]
add dword [0x4b7a70], 0xe8
mov edx, dword [0x4b7a70]
push esi
push edi
mov ecx, 0x3a
mov esi, 0x4ba160
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
mov esi, edx
mov dword [esi + 0x2c], ecx
test al, al
je 0x4039f3
push 0
mov eax, 0x4bc4c8
call fcn.004202c0
cmp dword [0x4bb654], 0
mov dword [0x4bcaf8], 0
mov dword [0x4bcafc], 0
je 0x403a2b
mov eax, dword [0x4b8c90]
test eax, eax
je 0x403a1f
mov eax, dword [eax]
test eax, eax
jne 0x403a24
mov eax, 0x4a78b1
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0x10], 0
jne 0x403aaf
or ecx, 0xffffffff
cmp byte [esi + 0xce], 0
jne 0x403a5a
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xce], al
test al, al
je 0x403a5a
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4bcb04], 0
je 0x403a6c
cmp dword [0x4bcb00], 0
jne 0x403a75
cmp byte [esi + 0xce], 0
je 0x403aaf
cmp byte [esi + 0xce], 0
mov byte [esi + 0xcc], 0
jne 0x403aaf
cmp dword [0x4bcb04], 0
jge 0x403a97
pop edi
mov dword [esi + 0xc0], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xbc], eax
mov edx, dword [0x4bcb04]
mov dword [esi + 0xc0], edx
pop edi
pop esi
ret

Function at 0x405090
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4bcb5c], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x4050a8
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x4050f5
cmp ebx, 0xffffffff
jne 0x4050c2
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4050b7
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x4050f5
push edi
lea edi, [ebx + 1]
mov esi, 0x4bcb50
call fcn.00405110
pop edi
test eax, eax
jne 0x4050df
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4bcb5c]
push ebx
push ebp
push eax
mov esi, eax
call fcn.00496440
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4bcb50
jmp fcn.00405180
Function at 0x405180
Capabilities:
Write clipboard data

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x4051a4
push esi
call fcn.00405460
test eax, eax
jne 0x4051a4
push str.Cant_open_clipboard_for_writing.
call fcn.00405290
pop edi
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4051de
cmp dword [esi + 0x18], edi
je 0x4051cf
cmp dword [esi + 8], edi
je 0x4051c4
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x4a7bb0
call fcn.00405290
pop edi
pop esi
ret 4
mov ecx, dword [esi + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp ecx, edi
je 0x405221
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x405249
cmp dword [esp + 0x10], 0xd
push ebx
jne 0x405200
cmp word [eax], di
jmp 0x405203
cmp byte [eax], 0
push ecx
sete bl
call ebp
test bl, bl
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
pop ebx
je 0x405249
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], edi
je 0x40523e
cmp dword [esi + 8], edi
je 0x405233
mov edx, dword [esi]
push edx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
pop ebp
pop edi
mov eax, 1
pop esi
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x405261
mov dword [esi + 4], edi
jmp 0x405221
cmp dword [esi + 0x18], edi
je 0x40527e
cmp dword [esi + 8], edi
je 0x405273
mov ecx, dword [esi]
push ecx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x4a7bc0
call fcn.00405290
pop ebp
pop edi
pop esi
ret 4

Function at 0x405360
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x108
test esi, esi
je 0x405370
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x40543f
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.00493bee
add esp, 0xc
test eax, eax
je 0x405436
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.004932c1
add esp, 8
test eax, eax
je 0x405436
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.004932c1
add esp, 8
test eax, eax
je 0x405436
lea edx, [esp]
push str.Native
push edx
call fcn.004932c1
add esp, 8
test eax, eax
je 0x405436
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.004932c1
add esp, 8
test eax, eax
je 0x405436
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.004932c1
add esp, 8
test eax, eax
je 0x40542c
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.004932c1
add esp, 8
test eax, eax
jne 0x405443
test esi, esi
je 0x405436
mov dword [esi], 1
xor eax, eax
add esp, 0x108
ret
mov byte [esp], 0
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x108
ret
Function at 0x405460
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x405472
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4bb4ac]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x4054e0
mov eax, dword [0x4b79d8]
cmp eax, 0xffffffff
je 0x4054b1
test eax, eax
je 0x4054f6
call esi
mov edx, dword [0x4b79d8]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x4054f6
push 1
push 0x8000012f
mov dword [0x4b79dc], 0
call fcn.004014b0
mov eax, dword [0x4bb4ac]
add esp, 8
push eax
mov dword [0x4b79dc], 1
call ebx
test eax, eax
je 0x405492
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx + 0x18], 1
mov eax, 1
pop ebx
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x405850
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4058e4
cmp word [ebx + 8], 2
push edi
jne 0x4058b5
cmp word [ebx + 0xa], 4
jne 0x4058b5
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4058b5
jmp 0x405890
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ebp
push eax
push ecx
call fcn.004057e0
mov dword [esi], eax
test eax, eax
je 0x4058d8
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x405890
mov edx, dword [ebx]
mov eax, dword [esp + 0x20]
push 0x400
push edx
push 0x401
push eax
call fcn.00494a57
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
ret 0x10
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4058f4.11001
jmp dword [eax*4 + 0x40591c]
pop esi
pop ebp
mov eax, 0x2af9
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afa
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afb
pop ebx
ret 0x10
Function at 0x4060c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
cmp dword [0x4ba060], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], str.getaddrinfo
mov dword [esp + 0x14], 0x405bb0
mov dword [esp + 0x18], str.getnameinfo
mov dword [esp + 0x1c], 0x405e90
mov dword [esp + 0x20], str.freeaddrinfo
mov dword [esp + 0x24], fcn.00405b60
je 0x40611f
movzx eax, word [esp + 0x244]
mov eax, dword [eax*8 + 0x4b7410]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x406217
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004949f8
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.00494bde
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x406196
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4061e2
push esi
call ebp
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.004949f8
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.00494bde
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x406217
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4061e2
push esi
call ebp
jmp 0x406217
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
mov dword [esp + edi*8 + 0x14], eax
test eax, eax
je 0x4061dd
inc edi
cmp edi, 3
jl 0x4061e4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x4b7410], edx
mov dword [0x4b7418], eax
mov dword [fcn.00405b60], ecx
movzx edx, word [esp + 0x244]
mov eax, dword [edx*8 + 0x4b7410]
pop edi
pop esi
pop ebp
mov dword [0x4ba060], 1
pop ebx
add esp, 0x230
ret 4
Function at 0x40a900
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.WSOCK32.dll_recv]
push edi
xor ebx, ebx
jmp 0x40a910
mov ecx, dword [esi + 0x2c]
cmp ebx, ecx
jae 0x40a92f
mov eax, dword [esi + 0x24]
lea ebx, [ebx]
cmp byte [eax + ebx], 0
je 0x40a9b7
inc ebx
cmp ebx, ecx
jb 0x40a920
cmp ecx, dword [esi + 0x28]
jne 0x40a979
mov eax, dword [esi + 0x28]
lea ecx, [eax + eax]
test eax, eax
jne 0x40a943
mov ecx, 0x800
cmp dword [esi + 0x30], 0
jne 0x40a9a4
mov edi, eax
test eax, eax
jne 0x40a954
mov edi, 0x800
cmp edi, ecx
jae 0x40a95e
add edi, edi
cmp edi, ecx
jb 0x40a958
cmp edi, eax
jbe 0x40a979
mov eax, dword [esi + 0x24]
push edi
push eax
call fcn.0049393d
add esp, 8
test eax, eax
je 0x40a99d
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edi
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
push 0
sub ecx, eax
push ecx
add edx, eax
mov eax, dword [esi + 0x10]
push edx
push eax
call ebp
cmp eax, 0xffffffff
je 0x40a9a4
add dword [esi + 0x2c], eax
jmp 0x40a910
mov dword [esi + 0x30], 1
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.0040ae50
add esp, 4
pop edi
pop ebp
pop ebx
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40a9c1
mov dword [eax], ebx
pop edi
pop ebp
xor eax, eax
pop ebx
ret 4

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, dword [ebx + 0x3c]
push 0xa
lea eax, [esp + 0x10]
push eax
add ecx, 0x26
push ecx
call fcn.00492f52
lea edx, [esp + 0x18]
push 0
push edx
call fcn.00494b20
push str.__xml_version_1.0__encoding_UTF_8___
lea esi, [eax + 1]
push 0x4a895c
push esi
call fcn.00494083
mov edx, dword [ebx + 0x10]
add esp, 0x20
add esi, eax
lea eax, [esp + 0xc]
push 0
sub esi, eax
push esi
mov esi, dword [sym.imp.WSOCK32.dll_send]
mov ecx, eax
push ecx
push edx
call esi
cmp eax, 0xffffffff
je 0x40aa83
cmp dword [ebx + 0x40], 0
lea edi, [ebx + 0x34]
jne 0x40aa83
mov ecx, dword [edi + 8]
inc ecx
call fcn.0040b700
test eax, eax
jne 0x40aa83
mov eax, dword [edi]
add eax, dword [edi + 8]
mov cl, byte [0x4a8c7c]
mov byte [eax], cl
inc dword [edi + 8]
mov edx, dword [ebx + 0x3c]
mov eax, dword [edi]
mov ecx, dword [ebx + 0x10]
push 0
push edx
push eax
push ecx
call esi
cmp eax, 0xffffffff
je 0x40aa83
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x4bc440
call fcn.0040ade0
mov edx, dword [0x4bcac8]
mov eax, dword [0x4bb4ac]
push 0x10014
push edx
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x40aabd
push 0
push 4
mov ecx, 0x4bc4c8
call fcn.004207e0
pop edi
pop esi
mov eax, 0x3e6
pop ebx
mov esp, ebp
pop ebp
ret