joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481384
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4813b2
mov eax, ebx
call fcn.00481e38
cmp dword [ebx + 0x40], 0
je 0x4813ab
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x481423
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x481415
cmp dword [ebx + 8], 0
je 0x4813d4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4813e6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x481415
cmp dword [ebx + 8], 0
je 0x4813c7
cmp eax, 3
je 0x4813f9
dec eax
jne 0x4813c7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4813c7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4813c7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x481441
cmp dword [ebx + 0x14], 0xcc
je 0x481441
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0048144c
pop ebx
ret
Function at 0x49fabc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x49fb2d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x5749e0]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x49fb17
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0049faac
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x49f884]
call fcn.0049fb54
mov dword [0x574a44], eax
mov eax, dword [ebp - 4]
call fcn.0049fa5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49fb34
lea eax, [ebp - 8]
call fcn.004069dc
ret

Function at 0x49fd0c
Capabilities:
Get file system object information

Disassembly:
add esp, 0xfffffea0
push 0x4001
push 0x160
lea eax, [esp + 8]
push eax
push 0
push 0x49fd98
call sub.shell32.dll_SHGetFileInfoA
mov dword [0x5749d8], eax
cmp dword [0x5749d8], 0
je 0x49fd8e
cmp dword [0x5749dc], 0
jne 0x49fd8e
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4966ac]
call fcn.00496da0
mov dword [0x5749dc], eax
mov edx, dword [0x5749d8]
mov eax, dword [0x5749dc]
call fcn.00456f38
mov eax, dword [0x5749dc]
mov byte [eax + 0x42], 1
mov dl, 1
mov eax, dword [0x5749dc]
call fcn.004978d0
push 0xffffffffffffffff
mov eax, dword [0x5749dc]
call fcn.00456f74
push eax
call sub.comctl32.dll_ImageList_SetBkColor
add esp, 0x160
ret
Function at 0x4bf4ec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, ebx
call fcn.004bf4d8
test eax, eax
jne 0x4bf50d
mov eax, esi
call fcn.004049f0
jmp 0x4bf59e
mov eax, ebx
call fcn.004bf634
test al, al
je 0x4bf553
push 0
push 0
push 0xe
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_SendMessageA
mov edi, eax
mov eax, esi
mov ecx, edi
xor edx, edx
call fcn.00404ae0
test edi, edi
je 0x4bf54a
mov eax, dword [esi]
push eax
inc edi
push edi
push 0xd
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4bf59e
mov eax, esi
call fcn.004049f0
jmp 0x4bf59e
mov ebp, dword [ebx + 0x70]
test ebp, ebp
je 0x4bf597
mov eax, dword [ebp + 0x208]
call fcn.0041f414
test eax, eax
jle 0x4bf585
mov eax, dword [ebx + 0x70]
mov eax, dword [eax + 0x208]
mov edx, edi
call fcn.004752ec
mov edx, dword [eax + 0xc]
mov eax, esi
call fcn.00404a44
jmp 0x4bf59e
mov eax, esi
mov edx, dword [ebx + 0x70]
mov edx, dword [edx + 0x210]
call fcn.00404a44
jmp 0x4bf59e
mov eax, esi
call fcn.004049f0
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4c1240
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 1
push esi
mov ecx, 1
xor edx, edx
xor eax, eax
call fcn.00407208
push esi
push 0
push 0x419
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_SendMessageA
pop esi
pop ebx
ret

Function at 0x4c3740
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4c37fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004050fc
mov eax, dword [0x576628]
cmp dword [eax], 2
jne 0x4c37af
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405474
mov eax, dword [ebx]
call fcn.004052a0
push eax
mov eax, dword [ebx]
call fcn.00405290
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.004052a0
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405474
jmp 0x4c37e1
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.0040a544
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00405280
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3801
lea eax, [ebp - 0x3f0]
call fcn.004049f0
ret
Function at 0x4cd838
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, edx
mov ebx, eax
mov ebp, 0x577ed8
test esi, esi
jne 0x4cd852
xor eax, eax
jmp 0x4cd954
cmp dword [ebp], 0
jne 0x4cd85d
call fcn.004cd7c8
xor ebx, 0xffffffff
cmp edi, 8
jb 0x4cd92d
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
sub edi, 8
cmp edi, 8
jae 0x4cd869
test edi, edi
jbe 0x4cd94f
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
dec edi
test edi, edi
ja 0x4cd931
mov eax, ebx
xor eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4ed1d4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, eax
mov ebx, dword [ebp + 8]
add ebx, 0xffffffc4
mov esi, dword [ebp + 8]
add esi, 0xffffffbc
xor eax, eax
push ebp
push 0x4ed38c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.0042e194
mov eax, dword [eax + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0x70]
mov edx, dword [edx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x48]
call fcn.0045c514
call fcn.004da434
mov edx, dword [ebp + 8]
mov dword [edx - 0x4c], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x4c], 0
je 0x4ed258
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
mov eax, dword [eax + 0x68]
call fcn.00428a8c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.0042e194
mov eax, dword [eax + 0xc]
pop edx
call fcn.00428a94
mov eax, dword [ebp + 8]
mov dword [eax - 0x50], ebx
lea edx, [ebp - 4]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00428974
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x1c]
call fcn.0040a3d4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x50]
push eax
push 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.0042e194
call fcn.00429900
push eax
call sub.gdi32.dll_GetObjectA
mov dword [ebx + 8], edi
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004289e8
mov dword [ebx], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00428a24
test al, 8
setne al
mov byte [ebx + 0x16], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00428a24
test al, 2
setne al
mov byte [ebx + 0x14], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00428a24
test al, 4
setne al
mov byte [ebx + 0x15], al
mov dword [ebx + 0x10], 0x190
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00428a8c
mov byte [ebx + 0x17], al
xor eax, eax
mov dword [ebx + 4], eax
mov byte [ebx + 0x18], 0
mov byte [ebx + 0x19], 0
mov eax, dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x1b], 0
mov byte [ebx + 0x1a], 0
push ebx
call sub.gdi32.dll_CreateFontIndirectA
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.0042e194
mov eax, dword [eax + 0xc]
pop edx
call fcn.00428920
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.0042e194
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x54]
shl edx, 5
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x9c]
mov edx, dword [ecx + edx*8 + 0xac]
call fcn.00428764
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed393
lea eax, [ebp - 4]
call fcn.004049f0
ret
Function at 0x5076fc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov ebp, edx
mov ebx, eax
cmp dword [ebx + 0x6c], 0
jne 0x507714
mov eax, ebx
call fcn.00506fa8
cmp dword [ebx + 0x68], 0
jne 0x507721
mov eax, ebx
call fcn.00506f04
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x5078d4
cmp dword [ebx + 0x68], 0
je 0x5078d4
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [esp], eax
mov eax, dword [ebx + 0x6c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [esp + 4], eax
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.00506d84
lea eax, [esp + 0x14]
xor edx, edx
call fcn.005092fc
cmp eax, dword [esp]
je 0x5077a3
lea eax, [esp + 0x14]
xor edx, edx
call fcn.00509310
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x50777f
adc edx, 0
push edx
lea eax, [esp + 0x18]
xor edx, edx
call fcn.005092fc
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x507798
adc edx, 0
push edx
lea eax, [esp + 0x1c]
push eax
call sub.user32.dll_InflateRect
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x5077b6
mov eax, dword [eax + 0x10]
call fcn.004505e0
mov esi, eax
jmp 0x5077b9
mov esi, dword [ebx + 0x50]
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x5077ce
or esi, 0xffffffff
jmp 0x5077d8
push 3
push esi
call sub.user32.dll_GetWindow
mov esi, eax
mov edi, 0x610
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x68]
call fcn.00449508
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x68]
call fcn.0044952c
mov edx, dword [esp]
mov eax, dword [ebx + 0x68]
call fcn.00449554
mov edx, dword [esp + 4]
mov eax, dword [ebx + 0x68]
call fcn.00449578
lea ecx, [esp + 8]
xor edx, edx
xor eax, eax
call fcn.00407224
mov eax, ebp
mov byte [esp + 0x12], al
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x13], 1
or edi, 2
or edi, 1
push edi
push 0
push 0
push 0
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.004505e0
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.004505e0
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
or eax, 0x20
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.004505e0
push eax
call sub.user32.dll_SetWindowLongA
push 2
lea eax, [esp + 0x14]
push eax
push 0x1fffffff
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x6c]
call fcn.0042e194
call fcn.00429900
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.004505e0
push eax
mov eax, dword [0x575e84]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebx + 0x68]
call fcn.004505e0
push eax
call sub.user32.dll_ShowWindow
push esi
push 0
call sub.user32.dll_ReleaseDC
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x507b14
Capabilities:
Allocate or change rwx memory
Find taskbar
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp], eax
mov eax, dword [esp]
xor ecx, ecx
mov edx, 0x10
call fcn.0040342c
lea eax, [esp + 0x38]
push eax
call sub.kernel32.dll_GetSystemInfo
call sub.user32.dll_GetDesktopWindow
test eax, eax
je 0x507d00
push 0
push 0x507d08
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x507d00
push 0
push 0x507d18
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x507d00
push 0
push 0x507d28
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x507d00
push 0
push 0x507d38
push 0
push eax
call sub.user32.dll_FindWindowExA
mov ebp, eax
test ebp, ebp
je 0x507d00
push 0
push 0
push 0x418
push ebp
call sub.user32.dll_SendMessageA
mov dword [esp + 4], eax
cmp dword [esp + 4], 1
jl 0x507d00
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push ebp
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [esp + 8], 0
je 0x507d00
mov eax, dword [esp + 8]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
je 0x507d00
push 0x40
push 0x1000
push 0x1000
push 0
push edi
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
test esi, esi
je 0x507d00
or ebx, 0xffffffff
cmp ebx, dword [esp + 4]
jge 0x507cec
inc ebx
push esi
push ebx
push 0x417
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x507ce2
lea eax, [esp + 0xc]
push eax
push 0x18
lea eax, [esp + 0x1c]
push eax
push esi
push edi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x507ce2
test byte [esp + 0x1d], 0xd
jne 0x507ce2
mov al, byte [esp + 0x1c]
and al, 8
cmp al, 8
je 0x507ce2
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
push eax
push edi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x507ce2
cmp dword [esp + 0xc], 0
je 0x507ce2
mov eax, dword [0x576340]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
cmp eax, dword [esp + 0x10]
jne 0x507ce2
push esi
push ebx
push 0x41d
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x507cbe
lea eax, [esp + 0xc]
push eax
push 0x10
mov eax, dword [esp + 8]
push eax
push esi
push edi
call sub.kernel32.dll_ReadProcessMemory
cmp dword [esp + 0xc], 0
je 0x507cec
lea eax, [esp + 0x28]
push eax
push ebp
call sub.user32.dll_GetWindowRect
mov eax, dword [esp]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
call fcn.004072c8
jmp 0x507cec
cmp ebx, dword [esp + 4]
jl 0x507c22
push 0x8000
push 0
push esi
push edi
call sub.kernel32.dll_VirtualFreeEx
push edi
call sub.kernel32.dll_CloseHandle
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x509714
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [0x576340]
mov eax, dword [eax]
call fcn.00469eb0
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, esi
jb 0x50971f
pop esi
pop ebx
ret
Function at 0x509c94
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
mov eax, ebx
call fcn.0040a014
test al, al
je 0x509d1b
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x160
call fcn.0040342c
or esi, 0x100
test esi, esi
jns 0x509ccf
call fcn.00403a1c
push esi
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
mov eax, ebx
call fcn.00404eb0
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x509d1b
mov dl, 1
mov eax, dword [0x427890]
call fcn.0042f7c0
mov dword [esp], eax
mov edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.0042fbcc
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x509d1b
mov eax, esp
call fcn.0040f7ec
mov eax, dword [esp]
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x544e1c
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 0x544e38
cmp dword [esi + 4], 0
je 0x544e65
test byte [ebx + 0x55], 1
jne 0x544e57
mov eax, ebx
call fcn.0044d310
test eax, eax
jne 0x544e57
mov edx, esi
mov eax, ebx
call fcn.00452334
jmp 0x544f75
mov edx, esi
mov eax, ebx
call fcn.0044e294
jmp 0x544f75
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 0x544f6e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004505e0
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.0044af98
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00544e1c
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.004505e0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x544f75
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 0x545db4
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x545dd9
cmp dword [esp + 4], 5
jb 0x545dd9
mov al, 1
jmp 0x545ddb
xor eax, eax
add esp, 0x94
ret
Function at 0x558c10
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov eax, esp
mov edx, 0x94
call fcn.00407fcc
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 5
jb 0x558c44
cmp dword [esp + 8], 1
jb 0x558c44
cmp dword [esp + 0x10], 2
je 0x558c48
xor eax, eax
jmp 0x558c4a
mov al, 1
add esp, 0x94
ret

Function at 0x565904
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 1
push esi
mov ecx, 1
xor edx, edx
xor eax, eax
call fcn.00407208
push esi
push 0
push 0x419
mov eax, ebx
call fcn.004505e0
push eax
call sub.user32.dll_SendMessageA
pop esi
pop ebx
ret

Function at 0x56bac8
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffd68
mov ebx, eax
lea eax, [esp + 8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x56baf2
mov eax, ebx
mov edx, 0x56bb4c
call fcn.00404a44
jmp 0x56bb34
push pe_nt_image_headers32
lea eax, [esp + 0x19c]
push eax
call sub.wsock32.dll_gethostname
lea eax, [esp + 0x198]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 4], eax
push dword [esp + 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.00404be8
call sub.wsock32.dll_WSACleanup
add esp, 0x298
pop ebx
ret
Function at 0x41725d
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
jmp 0x42e8ab
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x44f960]
and word [ebp - 0x7c], 0
and dword [ebp - 0x80], 0
xor eax, ebp
push ebx
mov ebx, dword [ebp + 0x198]
push edi
mov dword [ebp + 0x18c], eax
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x7a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x42e907
push 0x448c70
mov ecx, ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
jmp 0x42e94c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Xunlei
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42e934
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x448cd4
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
pop esi
mov ecx, dword [ebp + 0x18c]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00417230
add ebp, 0x190
leave
ret
Function at 0x4178d9
Capabilities:
Create thread
Resume thread

Disassembly:
jmp 0x42d98e
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x42d9d2
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x417695
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp byte [esp + 0xc], bl
mov dword [esi + 8], eax
jne 0x42d9d2
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ebx
ret 4

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

Disassembly:
jmp 0x43de84
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x43deb7
cmp word [esi], 0
je 0x43deb7
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43dec2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43deb3
test al, 0x10
je 0x43deb3
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
push 0x132b3a1
call fcn.00417a8c
pop ecx
xor al, al
pop esi
ret