joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4362cc
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4362e8
cmp dword [esi + 4], 0
je 0x436315
test byte [ebx + 0x55], 1
jne 0x436307
mov eax, ebx
call fcn.00434e6c
test eax, eax
jne 0x436307
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x436425
mov edx, esi
mov eax, ebx
call fcn.00435df0
jmp 0x436425
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43641e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043813c
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00432b08
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004362cc
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043813c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436425
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43c9f4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x454188]
cmp byte [eax + 0xc], 0
je 0x43cb61
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43cb5a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x455b90], 0
jne 0x43ca48
push 0x43cb68
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43cb70
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b90], eax
cmp dword [0x453b58], 0
jne 0x43cb43
push 0x43cb80
call sub.kernel32.dll_LoadLibraryA
mov dword [0x453b58], eax
cmp dword [0x453b58], 0
je 0x43cb43
push 0x43cb8c
mov eax, dword [0x453b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b94], eax
push 0x43cb9c
mov eax, dword [0x453b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b98], eax
push 0x43cbb0
mov eax, dword [0x453b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b9c], eax
push 0x43cbc8
mov eax, dword [0x453b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455ba0], eax
push 0x43cbe0
mov eax, dword [0x453b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455ba4], eax
push 0x43cbf4
mov eax, dword [0x453b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455ba8], eax
push 0x43cc0c
mov eax, dword [0x453b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455bac], eax
push 0x43cc24
mov eax, dword [0x453b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455bb0], eax
push 0x43cc40
mov eax, dword [0x453b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455bb4], eax
push 0x43cc4c
mov eax, dword [0x453b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455bb8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43cb61
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4409ec
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403e4c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x440a3b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x448150
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4481a0]
test si, 4
je 0x448164
or bl, 1
test si, 8
je 0x44816e
or bl, 4
test si, 1
je 0x448178
or bl, 8
test si, 2
je 0x448182
or bl, 0x10
test si, 0x10
je 0x44818c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44819b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4481a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4481dc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4481bd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4481cc
or bl, 4
test esi, 0x20000000
je 0x4481d7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44e884
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44e896
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419300
mov eax, dword [0x453e5c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ec28
mov eax, dword [0x453e68]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ec34
mov eax, ebx
call fcn.0044ec40
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4115f8]
call fcn.004030cc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4115f8]
call fcn.004030cc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4115f8]
call fcn.004030cc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4115f8]
call fcn.004030cc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4115f8]
call fcn.004030cc
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44b05c
push eax
push 0
push 0
mov eax, dword [0x453fac]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ad54]
call fcn.0041c4c8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ad54]
call fcn.0041c4c8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ad54]
call fcn.0041c4c8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044f060
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ef3c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ef3c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ef3c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44e9d3
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44ed20
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44eecb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44eeac
mov dl, 1
mov eax, dword [0x411a14]
call fcn.004030cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e4c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44ee9b
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.0043cd54
test al, al
je 0x44ee8e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44eedc
lea eax, [ebp - 0x254]
call fcn.00408988
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44ee8e
xor eax, eax
push ebp
push 0x44ee87
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44ef14
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44ee70
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
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 + 0x3c]
jne 0x44ee70
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ee8e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44ed91
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004154f0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44eed2
lea eax, [ebp - 0x260]
call fcn.00403e4c
ret

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

Disassembly:
push ecx
mov eax, dword [0x455bdc]
cmp byte [eax + 0xa5], 0
jne 0x44f871
cmp dword [0x455bf4], 0
jne 0x44f832
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44f7bc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x455bf4], eax
cmp dword [0x455bf0], 0
jne 0x44f84d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x455bf0], eax
cmp dword [0x455bf8], 0
jne 0x44f871
push esp
push 0
push 0
push 0x44f760
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x455bf8], eax
pop edx
ret
Function at 0x44f968
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44f97f
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419300
mov eax, dword [0x453f98]
cmp word [eax + 2], 0
jne 0x44f9a7
mov eax, dword [0x453f98]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450fc0
mov eax, dword [0x454044]
cmp word [eax + 2], 0
jne 0x44f9c1
mov eax, dword [0x454044]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004511b8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4115f8]
call fcn.004030cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4115f8]
call fcn.004030cc
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b834]
call fcn.00422bac
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44fb48
mov eax, dword [0x453ebc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422f7c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x451758
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x453ebc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c058
test eax, eax
je 0x44fab6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040837c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c080
test eax, eax
je 0x44faca
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
mov eax, dword [0x453db0]
cmp byte [eax], 0
jne 0x44fafe
mov eax, ebx
call fcn.0044fc70
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00451934
mov eax, ebx
call fcn.004522f8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44fb3e
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44fef0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x455bdc]
cmp dword [eax + 0x30], 0
je 0x44ff9a
cmp dword [ebx + 0x94], 0
jne 0x44ff94
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44fe80
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44ff94
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_GetWindowLongA
test al, 8
je 0x44ff5a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44ff94
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.00413960
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44ff69
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x450afc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x450b31
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f3c
jmp 0x450b3e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ea0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451b10
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451b51
mov eax, esi
call fcn.00438414
test al, al
je 0x451b51
mov eax, dword [ebx + 0x84]
call fcn.0043813c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451b51
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043813c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x452504
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor eax, eax
push ebp
push 0x452588
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, 0x45259c
call fcn.004523c8
lea eax, [ebp - 8]
mov ecx, 0x4525a8
mov edx, dword [ebp - 4]
call fcn.00404158
mov eax, dword [ebp - 4]
call fcn.00408328
push 5
mov eax, dword [ebp - 8]
call fcn.0040430c
push eax
call sub.kernel32.dll_WinExec
cmp eax, 2
jne 0x45256d
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, 0x4525b8
call fcn.00404158
mov eax, dword [ebp - 0xc]
call fcn.004273ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45258f
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403e70
ret
Function at 0x403920
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x403934
inc dword [0x4e8060]
add dword [0x4e4b24], 0x108
mov edx, dword [0x4e4b24]
push esi
push edi
mov ecx, 0x42
mov esi, 0x4e6aa8
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 0x403963
push 0
mov eax, 0x4ea1d0
call fcn.0042ab70
cmp dword [0x4e808c], 0
mov dword [0x4eacd0], 0
mov dword [0x4eacd4], 0
je 0x40398b
push 0x4e86f8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esp + 0x10], 0
jne 0x403a0f
or ecx, 0xffffffff
cmp byte [esi + 0xee], 0
jne 0x4039ba
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xee], al
test al, al
je 0x4039ba
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4eacdc], 0
je 0x4039cc
cmp dword [0x4eacd8], 0
jne 0x4039d5
cmp byte [esi + 0xee], 0
je 0x403a0f
cmp byte [esi + 0xee], 0
mov byte [esi + 0xec], 0
jne 0x403a0f
cmp dword [0x4eacdc], 0
jge 0x4039f7
pop edi
mov dword [esi + 0xe0], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xdc], eax
mov edx, dword [0x4eacdc]
mov dword [esi + 0xe0], edx
pop edi
pop esi
ret
Function at 0x405160
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x405184
push esi
call fcn.00405430
test eax, eax
jne 0x405184
push str.Cant_open_clipboard_for_writing.
call fcn.00405260
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4051bd
cmp dword [esi + 0x18], ebx
je 0x4051af
cmp dword [esi + 8], ebx
je 0x4051a4
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4bc05c
call fcn.00405260
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp eax, ebx
je 0x4051f6
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x40521d
cmp word [ecx], bx
push eax
sete byte [esp + 0x13]
call edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
cmp byte [esp + 0xf], bl
je 0x40521d
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], ebx
je 0x405213
cmp dword [esi + 8], ebx
je 0x405208
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
mov edx, dword [esi + 4]
push edx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x405232
mov dword [esi + 4], ebx
jmp 0x4051f6
cmp dword [esi + 0x18], ebx
je 0x40524f
cmp dword [esi + 8], ebx
je 0x405244
mov eax, dword [esi]
push eax
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4bc07c
call fcn.00405260
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x405330
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
test edi, edi
je 0x405340
mov dword [edi], 0
lea eax, [ebx - 0xc000]
push esi
cmp eax, 0x3fff
ja 0x40540c
push 0x104
lea ecx, [esp + 8]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea edx, [esp + 8]
push str.Link_Source
push edx
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x405402
mov esi, dword [sym.imp.MSVCR100.dll__wcsicmp]
lea eax, [esp + 4]
push str.ObjectLink
push eax
call esi
add esp, 8
test eax, eax
je 0x405402
lea ecx, [esp + 4]
push str.OwnerLink
push ecx
call esi
add esp, 8
test eax, eax
je 0x405402
lea edx, [esp + 4]
push str.Native
push edx
call esi
add esp, 8
test eax, eax
je 0x405402
lea eax, [esp + 4]
push str.Embed_Source
push eax
call esi
add esp, 8
test eax, eax
je 0x405402
lea ecx, [esp + 4]
push str.MSDEVColumnSelect
push ecx
call esi
add esp, 8
test eax, eax
je 0x4053f8
lea edx, [esp + 4]
push str.MSDEVLineSelect
push edx
call esi
add esp, 8
test eax, eax
jne 0x405413
test edi, edi
je 0x405402
mov dword [edi], 1
xor eax, eax
pop esi
add esp, 0x20c
ret
xor eax, eax
mov word [esp + 4], ax
push ebx
call dword [sym.imp.USER32.dll_GetClipboardData]
pop esi
add esp, 0x20c
ret
Function at 0x405430
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x405442
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4e7ef0]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x4054b0
mov eax, dword [0x4e4a24]
cmp eax, 0xffffffff
je 0x405481
test eax, eax
je 0x4054c6
call esi
mov edx, dword [0x4e4a24]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x4054c6
push 1
push 0x8000012f
mov dword [0x4e4a2c], 0
call fcn.00401510
mov eax, dword [0x4e7ef0]
add esp, 8
push eax
mov dword [0x4e4a2c], 1
call ebx
test eax, eax
je 0x405462
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 0x4058f0
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 0x405985
cmp word [ebx + 8], 2
push edi
jne 0x405955
cmp word [ebx + 0xa], 4
jne 0x405955
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x405955
jmp 0x405930
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ebp
push eax
push ecx
call fcn.00405870
mov dword [esi], eax
test eax, eax
je 0x405979
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x405930
mov edx, dword [ebx]
mov eax, dword [esp + 0x20]
push 0x400
push edx
push 0x401
push eax
call dword [sym.imp.MSVCR100.dll_strncpy_s]
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.0x405995.11001
jmp dword [eax*4 + 0x4059c0]
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 0x406170
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
cmp dword [0x4eaecc], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], str.getaddrinfo
mov dword [esp + 0x14], 0x405c50
mov dword [esp + 0x18], str.getnameinfo
mov dword [esp + 0x1c], 0x405f40
mov dword [esp + 0x20], str.freeaddrinfo
mov dword [esp + 0x24], fcn.00405c00
je 0x4061cf
movzx eax, word [esp + 0x244]
mov eax, dword [eax*8 + 0x4e4160]
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 0x4062d3
mov edi, dword [sym.imp.MSVCR100.dll_strcpy_s]
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call edi
mov ebx, dword [sym.imp.MSVCR100.dll_strcat_s]
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call ebp
mov esi, eax
test esi, esi
je 0x406248
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x406298
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call edi
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call ebx
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call ebp
mov esi, eax
test esi, esi
je 0x4062d3
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x40629e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4062d3
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
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 0x40628f
inc edi
cmp edi, 3
jl 0x4062a0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x4e4160], edx
mov dword [0x4e4168], eax
mov dword [fcn.00405c00], ecx
movzx edx, word [esp + 0x244]
mov eax, dword [edx*8 + 0x4e4160]
pop edi
pop esi
pop ebp
mov dword [0x4eaecc], 1
pop ebx
add esp, 0x230
ret 4